interrupts could be recursive since lapic_eoi() called before rti
so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
This commit is contained in:
parent
8a8be1b8c3
commit
5be0039ce9
16 changed files with 194 additions and 28 deletions
1
mmu.h
1
mmu.h
|
|
@ -178,6 +178,7 @@ struct gatedesc {
|
|||
|
||||
// Set up a normal interrupt/trap gate descriptor.
|
||||
// - istrap: 1 for a trap (= exception) gate, 0 for an interrupt gate.
|
||||
// interrupt gate clears FL_IF, trap gate leaves FL_IF alone
|
||||
// - sel: Code segment selector for interrupt/trap handler
|
||||
// - off: Offset in code segment for interrupt/trap handler
|
||||
// - dpl: Descriptor Privilege Level -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue