Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112703
b: refs/heads/master
c: d4c63ec
h: refs/heads/master
i:
  112701: 54689e8
  112699: b51ccd3
  112695: e41a5e9
  112687: 768754b
  112671: 7f8936f
  112639: 6447e5a
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jul 24, 2008
1 parent 9197287 commit 27f372c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36a028de785c6e6f15ac84f8b3b087b89137ea26
refs/heads/master: d4c63ec060f3315653c0ae5bc3a7fe2419a2282f
8 changes: 6 additions & 2 deletions trunk/arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,15 @@ u32 safe_apic_wait_icr_idle(void)
*/
void __cpuinit enable_NMI_through_LVT0(void)
{
unsigned int v = APIC_DM_NMI;
unsigned int v;

/* unmask and set to NMI */
v = APIC_DM_NMI;

/* Level triggered for 82489DX */
/* Level triggered for 82489DX (32bit mode) */
if (!lapic_is_integrated())
v |= APIC_LVT_LEVEL_TRIGGER;

apic_write(APIC_LVT0, v);
}

Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ void __cpuinit enable_NMI_through_LVT0(void)

/* unmask and set to NMI */
v = APIC_DM_NMI;

/* Level triggered for 82489DX (32bit mode) */
if (!lapic_is_integrated())
v |= APIC_LVT_LEVEL_TRIGGER;

apic_write(APIC_LVT0, v);
}

Expand Down

0 comments on commit 27f372c

Please sign in to comment.