Re: 2.0.35 lockup

Richard B. Johnson (root@chaos.analogic.com)
Fri, 17 Jul 1998 22:27:55 -0400 (EDT)


On Fri, 17 Jul 1998, [ISO-8859-1] C. Jaspâh Spaans wrote:

> Hi all!
>
> .. and a cool blinkenlight-thing attached to the parallel port
>
> I think this lockup can be blamed on the cli() and sti() thing, a little
> code fragment follows:
>
> ----8<----
> sti ();
> #if NUMLIGHTS==4
> lights = ((port_in (PORT) & ((256 - (1 << (2 + NUMLIGHTS))))) | lights);
> #else
> lights = ((port_in (PORT) & ((256 - (1 << (NUMLIGHTS))))) | lights);
> #endif
> port_out (PORT, lights);
> cli ();
> ----8<----
>
If cli was last, you halted the kernel. Don't do that!

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.108 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html