summaryrefslogtreecommitdiff
path: root/kernel/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index e20d2e1..bdb34d9 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -31,7 +31,7 @@ void kernel_main(uint32_t eax,uint32_t ebx)
klog("Interrupt Vector Table (IVT) init ...");
interrupts_init(0x08);
- klog("Remapping & (not yet Disabling) PIC ...");
+ klog("Remapping & Disabling PIC ...");
asm_pic_setup();
klog("Keyboard init ...");
@@ -59,7 +59,7 @@ void kernel_main(uint32_t eax,uint32_t ebx)
uint32_t kernel_blocks=mem_init(info);
klog("Vritual Memory / Paging init ... ");
- pdirectory *dir=vmem_init(kernel_blocks,(uint32_t)info->framebuffer_addr,procdata.local_apic_address);
+ pdirectory *dir=vmem_init(kernel_blocks,(uint32_t)info->framebuffer_addr,procdata.local_apic_address,procdata.io_apic_address);
//
klog("Ram Filesystem init ... ");
@@ -85,10 +85,10 @@ void kernel_main(uint32_t eax,uint32_t ebx)
uint64_t unixtime=timer_init();
klog("Unix Time = %u seconds)",unixtime);
- klog("Enable Interrupts & Unlock application processors ... ");
+ klog("Unlock application processors ... ");
asm_smp_unlock();
- // TODO : bsp sti needs to happen before ap sti? seriously? why? is this guaranteed now?
- // TODO: switch to ioapic
+
+ klog("Enable Interrupts ... ");
x86_sti(); // this will start processing hardware interrupts
// now just wait until our scheduler kicks in.