aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r--src/kernel/system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c
index 368dee5..e4f59a2 100644
--- a/src/kernel/system.c
+++ b/src/kernel/system.c
@@ -103,7 +103,7 @@ const char *random_message[10] = {
void panic(char *msg)
{
- asm ("cli");
+ cli();
vesa_set_color(vesa_dark_red);
kernel_time();
serial_printf("PNC: %s - System halted!", msg);
@@ -121,9 +121,9 @@ void assert(int x)
void halt_loop()
{
- asm ("cli");
+ cli();
loop:
- asm ("hlt");
+ hlt();
goto loop;
}
@@ -132,4 +132,4 @@ void v86(uint8_t code, regs16_t *regs)
paging_disable();
int32(code, regs);
paging_enable();
-} \ No newline at end of file
+}