diff options
author | Marvin Borner | 2020-03-18 16:41:21 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-18 16:41:21 +0100 |
commit | c6657aac0c5d5ecf347bc082cb6df38e1174d297 (patch) | |
tree | 5db660dd74d9741cf1105290d4584d9a1fdb7020 /src/kernel/system.c | |
parent | add6efeb22ffb7695d5c9addcef073fc653f700e (diff) |
Replaced asm calls with sweet function
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r-- | src/kernel/system.c | 8 |
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 +} |