lkml.org 
[lkml]   [1998]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.019 / U:30.720 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site