From 4029ffaf2dde58100b06637cc248b68ac2d3f8b4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 16 Jul 2024 18:06:45 -0400 Subject: kernel/amd64: trap: Set IPL_HIGH in trap_handler() Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/trap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys') 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 #include #include +#include #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); } -- cgit v1.2.3