summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-06-26 23:47:23 +0200
committerAlmuHS <almuhs@github.com>2019-06-26 23:47:23 +0200
commit6f90e6986da61d93bb105487346a666c4643191c (patch)
tree358b0c762e6bf8d1378243002b9b0ba04e6f43e5
parent9709f6a764cb94d364b6d7b50f46bbefb43ca5e5 (diff)
debug: hardcoded apic_id = 1 in AP processor
-rw-r--r--i386/i386/mp_desc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 4f7a1546..36b66f55 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -302,7 +302,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 = lapic->apic_id.r >> 24;
+ unsigned apic_id = 1;
printf("apic id: %d", apic_id);
/* panic? */