diff options
| author | Miguel <m.i@gmx.at> | 2018-09-11 00:33:28 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-11 00:33:28 +0200 |
| commit | 75f0977e41004511bd475ee75a24fd04db4ddc39 (patch) | |
| tree | f0062b01f1f57c31be007c2c01b580a2081e399b /kernel/smp.c | |
| parent | a7ca82133bcb8139bb9d11aa717657ef42ab6cfe (diff) | |
little cleanup vmem, parse kernel section headers
Diffstat (limited to 'kernel/smp.c')
| -rw-r--r-- | kernel/smp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/smp.c b/kernel/smp.c index 084f730..1b1659b 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -12,6 +12,7 @@ #include "asm_pit.h" #include "asm_smp.h" #include "apic.h" +#include "vesa.h" void smp_main() @@ -40,7 +41,6 @@ void kernel_ap() uint32_t *cpu_mem=0x8000000; //1024 pages from here on are mapped per cpu for testing! TODO: dynamic! *cpu_mem=apic_id(); - klog("%x",*cpu_mem); klog("Setup the LAPIC Timer on CPU with lapic_id=0x%x ...",apic_id()); apic_init_timer(1);// freq 1HZ @@ -50,7 +50,11 @@ void kernel_ap() asm_smp_unlock(); - while(1)asm("hlt"); +// cpu_mem[1]=0; + while(1){ + PutString("cpu cnt: %d",10,10+(*cpu_mem)*20,0xff0000,cpu_mem[1]++); + asm("hlt"); + } } // this will start all our application processors! |
