diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2021-08-26 21:39:57 -0500 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2021-08-26 21:39:57 -0500 |
commit | b2dc154433fecdacc245387d6b15736e3415532e (patch) | |
tree | 2889ddccfe3d66d93cb2320cfe9d815abaaf9d94 /src/kernel/kernel.c | |
parent | 079c3308b80f4ab1830f3e05dda57445e91d30a6 (diff) |
smp boots!
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 50b8359..d550e37 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -20,7 +20,10 @@ #include <testmalloc.h> - +void multicore_main() { + printf("\nKernal started\n"); + asm("cli\nhlt"); +} void main() { #ifndef SCREEN_OUTPUT @@ -28,7 +31,6 @@ void main() { #endif get_mem_capabilities(); init_pmap(map_complete_physical()); - unmap_lowmem(); find_root_sdp(); @@ -40,6 +42,8 @@ void main() { randinit(); smp_boot(); + fix_stack(); + unmap_lowmem(); PANIC(KERNEL_PANIC_KERNEL_RETURNED); } |