Messages in this thread |  | | | Date | Sun, 20 Sep 1998 12:13:57 +0200 (CEST) | | From | Geert Uytterhoeven <> | | Subject | Re: Today Linus redesigns the networking driver interface (was Re: tulip driver in ...) |
| |
On Sun, 20 Sep 1998, Alan Cox wrote: > > The whole notion of "interrupt priority" is just completely broken. There > > is no such thing. > > On a PC.
> Almost every cli in the kernel is in fact really > > block_interrupt(dev->irq) > something > unblock_interrupt(dev->irq) > > Where dev->irq is the device irq.
#ifdef __i386__ #define block_interrupt(irq) save_flags(flags); cli(); #define unblock_interrupt(irq) restore_flags(); #else #define block_interrupt(irq) sane_block_interrupt(irq); #define unblock_interrupt(irq) sane_unblock_interrupt(irq); #endif
Greetings,
Geert
-- Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/ Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium
- 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.tux.org/lkml/
|  |