[lkml]   [2002]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: NMI handling rework
On Thu, 7 Nov 2002, Corey Minyard wrote:

> NMIs cannot be masked, they are by definition non-maskable :-). You can
> get an NMI while executing an NMI.

"After an NMI interrupt is recognized by the P6 family, Pentium, Intel486,
Intel386, and Intel 286 processors, the NMI interrupt is masked until the
first IRET instruction is executed, unlike the 8086 processor."

- 18.22.2 NMI Interrupts, Intel IA32 System Developer's Manual vol3

> An NMI-based timer? I can see the use if you REALLY need accurate
> intervals, but you can't do much in an NMI, no spinlocks, even.

You don't have to worry about protection in the handler, just make sure
external references (non NMI) mask that handler. Alternatively you can do
a spin_trylock if you really need to and consider it a lost NMI if you
can't acquire.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:30    [W:0.062 / U:0.912 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site