schedrelease() syscall for more efficient spinning

This commit is contained in:
2025-09-19 23:38:08 +02:00
parent e01d8d5e1a
commit 1b5701a659
10 changed files with 49 additions and 1 deletions

View File

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

View File

@ -35,4 +35,6 @@ typedef struct {
void intr_init(void);
IntrStackFrame *INTR_CURRENT_FRAME;
#endif // HAL_INTR_H_