diff options
author | AlmuHS <almuhs@github.com> | 2019-06-26 23:40:41 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-06-26 23:40:41 +0200 |
commit | 9709f6a764cb94d364b6d7b50f46bbefb43ca5e5 (patch) | |
tree | 978e403b3f02d6d30634aeddf3598d7020d55b77 | |
parent | 951d8ae4c6e3099f957a282acbb2d0305ec0d683 (diff) |
debug: add little trace
-rw-r--r-- | i386/i386/mp_desc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 2c9cdb54..4f7a1546 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -300,8 +300,10 @@ cpu_setup() int i = 1; while(i < ncpu && (machine_slot[i].running == TRUE)) i++; + /* assume Pentium 4, Xeon, or later processors */ //unsigned apic_id = (((ApicLocalUnit*)phystokv(lapic_addr))->apic_id.r >> 24) & 0xff; unsigned apic_id = lapic->apic_id.r >> 24; + printf("apic id: %d", apic_id); /* panic? */ if(i >= ncpu) @@ -309,7 +311,7 @@ cpu_setup() /*TODO: Move this code to a separate function*/ - /* assume Pentium 4, Xeon, or later processors */ + /* Update apic2kernel and machine_slot with the newest apic_id */ if(apic2kernel[machine_slot[i].apic_id] == i) |