From 77357ba0bd02eb9ef76af15697f62f6021c0a4fe Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 8 Sep 2014 12:23:20 +0200 Subject: fixed waiting for keypress in bootloader. --- kernel/kernel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kernel/kernel.c') 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) // -- cgit v1.2.3