From c6657aac0c5d5ecf347bc082cb6df38e1174d297 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 16:41:21 +0100 Subject: Replaced asm calls with sweet function --- src/kernel/system.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/system.c') 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 +} -- cgit v1.2.3