Assert that interrupts are enabled in the trap handlers on x86 before
calling generic code to deliver signals. Discussed with: bde Tested by: pho MFC after: 1 week
This commit is contained in:
parent
95d28652af
commit
9138579845
@ -630,6 +630,7 @@ trap(struct trapframe *frame)
|
||||
fubyte((void *)(frame->tf_rip + 6)),
|
||||
fubyte((void *)(frame->tf_rip + 7)));
|
||||
}
|
||||
KASSERT((read_rflags() & PSL_I) != 0, ("interrupts disabled"));
|
||||
trapsignal(td, &ksi);
|
||||
|
||||
user:
|
||||
|
@ -780,6 +780,7 @@ trap(struct trapframe *frame)
|
||||
fubyte((void *)(frame->tf_eip + 6)),
|
||||
fubyte((void *)(frame->tf_eip + 7)));
|
||||
}
|
||||
KASSERT((read_eflags() & PSL_I) != 0, ("interrupts disabled"));
|
||||
trapsignal(td, &ksi);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user