-/* $OpenBSD: trap.c,v 1.7 2021/05/12 01:20:52 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.8 2021/05/13 06:45:23 kettenis Exp $ */
/*
* Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
return;
}
- enable_interrupts(); //XXX allow preemption?
+ intr_enable();
#if 0 // XXX Debug logging
printf( "do_trap_user: curproc: %p, sepc: %lx, ra: %lx frame: %p\n",
panic("Unknown userland exception %llx, trap value %lx\n",
exception, frame->tf_stval);
}
- disable_interrupts(); /* XXX - ??? */
+
/* now that we will not context switch again,
* see if we should enable FPU
*/