schedrelease() syscall for more efficient spinning
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
#include "proc/ps2kbproc/ps2kbproc.h"
|
||||
#include "rbuf/rbuf.h"
|
||||
|
||||
IntrStackFrame *INTR_CURRENT_FRAME;
|
||||
|
||||
typedef struct BackTraceFrame {
|
||||
struct BackTraceFrame *rbp;
|
||||
uint64_t rip;
|
||||
@ -196,6 +198,8 @@ void intr_eoi(uint8_t irq) {
|
||||
}
|
||||
|
||||
void intr_handleintr(IntrStackFrame *frame) {
|
||||
INTR_CURRENT_FRAME = frame;
|
||||
|
||||
if (frame->trapnum <= 31) {
|
||||
kprintf("ERROR %s, 0x%lX\n", exceptions[frame->trapnum], frame->errnum);
|
||||
intr_dumpframe(frame);
|
||||
|
Reference in New Issue
Block a user