Re: 2.0.30 (and pre-2.0.31) OOPS - repeatable, reliable, disgraceful :-)

Matthias Urlichs (smurf@work.smurf.noris.de)
30 May 1997 17:17:12 +0200


torvalds@transmeta.com (Linus Torvalds) writes:
>
> Oops.
>
> +++ linux/arch/i386/kernel/traps.c Thu May 29 21:45:21 1997
> show_registers(regs);
> -do { int i=2000000000; while (i) i--; } while (0);
> -do { int i=2000000000; while (i) i--; } while (0);
> spin_unlock_irq(&die_lock);

There are three problems with the above code.

- Linus forgot to take it out of his patch.
- It doesn't use udelay().
- Linus' machine is _definitely_ _way_too_fast_.
(As long as it doesn't execute infinite loops in finite time, that's OK,
though...)

;-)

-- 
You know the great thing about TV?  If something important happens
anywhere at all in the world, no matter what time of the day or night,
you can always change the channel.
                                        -- Jim Ignatowski
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42