os/sys.c

16 lines
229 B
C
Raw Normal View History

2024-05-21 18:41:16 +03:00
#include "sys.h"
void sys_halt(void)
{
asm volatile("hlt" ::: "memory");
}
void sys_enable_interrupts(void)
{
asm volatile("sti" ::: "memory");
}
void sys_disable_interrupts(void)
{
asm volatile("cli" ::: "memory");
}