diff options
author | AlmuHS <almuhs@github.com> | 2019-06-26 23:54:33 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-06-26 23:54:33 +0200 |
commit | 017ddee48d613d6710b43ce7e7a281188c7f68d3 (patch) | |
tree | 79f0e99db6a40aead89df106291ad6a10915db9a | |
parent | 6f90e6986da61d93bb105487346a666c4643191c (diff) |
debug: hardcoded apic_id = 1 in AP processor
-rw-r--r-- | i386/i386/mp_desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 36b66f55..88fd518f 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -303,8 +303,8 @@ cpu_setup() /* 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; - unsigned apic_id = 1; - printf("apic id: %d", apic_id); + unsigned apic_id = 1 >> 24; + printf("apic id: %d\n", apic_id); /* panic? */ if(i >= ncpu) |