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:
Konstantin Belousov 2013-06-03 17:40:05 +00:00
parent 95d28652af
commit 9138579845
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251324
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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