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/kernel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/kernel.c') 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 +} -- cgit v1.2.3