Intel 64 and IA-32 Architectures Software Developers Manual Volume 3B, System Programming Guide Part 2

Table Of Contents
D-2 Vol. 3
PROGRAMMING THE LINT0 AND LINT1 INPUTS
4. Program LVT2 as NMI, which delivers the signal on the NMI signal of all processor
cores listed in the destination.
MOV ESI, LVT2
MOV EAX, [ESI]
AND EAX, 0FFFE58FFH; mask off bits 8-10 and 15
OR EAX, 000000400H ; Bit 16=0 for not masked, Bit 15=0 edge
; triggered, Bit 13=0 for high active input
; polarity, Bits 8-10 are 100b for NMI
MOV [ESI], EAX; Write to LVT2
;Unmask 8259 interrupts and allow NMI.