Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8629
b: refs/heads/master
c: 1a426cb
h: refs/heads/master
i:
  8627: 854f80d
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Sep 12, 2005
1 parent 8531256 commit f3356df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 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: a2a0c992e9da823dc23abcb92a42ec5faf856b8b
refs/heads/master: 1a426cb76443f5b0a021a9df57d3446d14763c21
1 change: 1 addition & 0 deletions trunk/include/asm-x86_64/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
struct hw_interrupt_type;
#endif

#define NMI_VECTOR 0x02
/*
* IDT vectors usable for external interrupt sources start
* at 0x20:
Expand Down
17 changes: 14 additions & 3 deletions trunk/include/asm-x86_64/ipi.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,20 @@

static inline unsigned int __prepare_ICR (unsigned int shortcut, int vector, unsigned int dest)
{
unsigned int icr = APIC_DM_FIXED | shortcut | vector | dest;
if (vector == KDB_VECTOR)
icr = (icr & (~APIC_VECTOR_MASK)) | APIC_DM_NMI;
unsigned int icr = shortcut | dest;

switch (vector) {
default:
icr |= APIC_DM_FIXED | vector;
break;
case NMI_VECTOR:
/*
* Setup KDB IPI to be delivered as an NMI
*/
case KDB_VECTOR:
icr |= APIC_DM_NMI;
break;
}
return icr;
}

Expand Down

0 comments on commit f3356df

Please sign in to comment.