From 835960fd85989ee961b5a932f467e6e4f545d201 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 5 Aug 2020 21:33:48 +0200 Subject: Added some cpu function wrappers --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c1f7ebc..7738e10 100644 --- a/src/main.c +++ b/src/main.c @@ -2,6 +2,7 @@ #include "config.h" #include +#include #include #include #include @@ -35,7 +36,7 @@ void kernel_main(struct mem_info *mem_info, struct vid_info *vid_info) keyboard_install(); // Enable drivers - __asm__("sti"); + sti(); mem_info++; // TODO: Use the mmap (or remove)! @@ -47,6 +48,5 @@ void kernel_main(struct mem_info *mem_info, struct vid_info *vid_info) syscall_init(); proc_init(); - while (1) { - }; + idle(); } -- cgit v1.2.3