aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-05 21:33:48 +0200
committerMarvin Borner2020-08-05 21:33:48 +0200
commit835960fd85989ee961b5a932f467e6e4f545d201 (patch)
treed93c67e51189eec12fb43ef860deba92e9017329 /src/main.c
parent4af62bb53676b7f721b46cabee78cac3a557e924 (diff)
Added some cpu function wrappers
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
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 <boot.h>
+#include <cpu.h>
#include <def.h>
#include <fs.h>
#include <gui.h>
@@ -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();
}