better api

This commit is contained in:
nub31
2025-09-03 19:22:53 +02:00
parent b7bbccca73
commit bb923621f9
12 changed files with 112 additions and 109 deletions

View File

@@ -9,14 +9,4 @@ typedef struct
uint64_t int_no;
uint64_t err_code;
uint64_t rip, cs, rflags, rsp, ss;
} __attribute__((packed)) isr_frame_t;
static inline void enable_interrupts()
{
__asm__ volatile("sti");
}
static inline void disable_interrupts()
{
__asm__ volatile("cli");
}
} __attribute__((packed)) isr_frame_t;