aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/kernel.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-18 16:41:21 +0100
committerMarvin Borner2020-03-18 16:41:21 +0100
commitc6657aac0c5d5ecf347bc082cb6df38e1174d297 (patch)
tree5db660dd74d9741cf1105290d4584d9a1fdb7020 /src/kernel/kernel.c
parentadd6efeb22ffb7695d5c9addcef073fc653f700e (diff)
Replaced asm calls with sweet function
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r--src/kernel/kernel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index ec98a88..9ce1e14 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -34,13 +34,13 @@ void kernel_main(uint32_t initial_stack)
set_optimal_resolution();
// Install drivers
- asm ("cli");
+ cli();
timer_install();
mouse_install();
keyboard_install();
pci_remap();
network_install();
- asm ("sti");
+ sti();
// tasking_install();
@@ -67,4 +67,4 @@ void kernel_main(uint32_t initial_stack)
panic("This should NOT happen!");
// asm ("div %0" :: "r"(0)); // Exception testing x/0
-} \ No newline at end of file
+}