add: sleep

This commit is contained in:
2025-01-08 16:38:02 +01:00
parent bab3069152
commit 916e8b6f19
5 changed files with 60 additions and 4 deletions

View File

@ -18,3 +18,13 @@ typedef void (*isr_t)(struct registers *);
void isr_handler(struct registers *regs);
void pic_send_eoi(uint8_t irq);
void register_interrupt_handler(int index, isr_t handler);
static inline void cli(void)
{
__asm__ volatile("cli");
}
static inline void sti(void)
{
__asm__ volatile("sti");
}