summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/trap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c
index 7b866d8..7615140 100644
--- a/sys/arch/amd64/amd64/trap.c
+++ b/sys/arch/amd64/amd64/trap.c
@@ -35,6 +35,7 @@
#include <sys/syscall.h>
#include <machine/trap.h>
#include <machine/frame.h>
+#include <machine/intr.h>
#define pr_error(fmt, ...) kprintf("trap: " fmt, ##__VA_ARGS__)
@@ -106,6 +107,8 @@ trap_syscall(struct trapframe *tf)
void
trap_handler(struct trapframe *tf)
{
+ splraise(IPL_HIGH);
+
if (tf->trapno >= NELEM(trap_type)) {
panic("Got unknown trap %d\n", tf->trapno);
}