diff options
Diffstat (limited to 'kernel/kernel.c')
| -rw-r--r-- | kernel/kernel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c index a9f8e54..533ff7c 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -130,13 +130,24 @@ void kernel_main(uint32_t initial_stack, int mp) // mem_init(0x7c00+1,*((uint16_t *)(0x7c00))); + // init spinlocks + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"Initializing Spinlocks"); + + init_spinlocks(); + + lock_spin(0); + // // Start the other Processors (also before paging !) // smp_log_procdata(&procdata); + + lock_spin(0); + smp_start_aps(&procdata,0x80000); // starts at 0x90000 // but it will be copied over mbr + // // Activate Virtual Memory (paging) // |
