Use a known good stack at the time of servicing an NMI --- reuse
the space allocated for the double fault handler since this space is otherwise unused till the time a double fault occurs. This change should have been committed alongside r1.127 of "exception.S", but I somehow missed doing so. Problem reported by: jeff Pointy hat to: jkoshy
This commit is contained in:
parent
a85614b42b
commit
20c71e39c3
@ -1183,7 +1183,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
|
||||
setidt(x, &IDTVEC(rsvd), SDT_SYSIGT, SEL_KPL, 0);
|
||||
setidt(IDT_DE, &IDTVEC(div), SDT_SYSIGT, SEL_KPL, 0);
|
||||
setidt(IDT_DB, &IDTVEC(dbg), SDT_SYSIGT, SEL_KPL, 0);
|
||||
setidt(IDT_NMI, &IDTVEC(nmi), SDT_SYSIGT, SEL_KPL, 0);
|
||||
setidt(IDT_NMI, &IDTVEC(nmi), SDT_SYSIGT, SEL_KPL, 1);
|
||||
setidt(IDT_BP, &IDTVEC(bpt), SDT_SYSIGT, SEL_UPL, 0);
|
||||
setidt(IDT_OF, &IDTVEC(ofl), SDT_SYSIGT, SEL_KPL, 0);
|
||||
setidt(IDT_BR, &IDTVEC(bnd), SDT_SYSIGT, SEL_KPL, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user