diff options
author | AlmuHS <almuhs@github.com> | 2019-05-20 20:40:23 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-05-20 20:40:23 +0200 |
commit | 0c5c4fcd9de8aa21c0c6a424576abe6b7b0ae949 (patch) | |
tree | 52391eb58782e4acc0fd85027081de2f31ac8117 /i386/i386/mp_desc.c | |
parent | 0cf928ec1e011d352301ca073eb1d96a4b6829d7 (diff) |
fix: fix address and registers
Diffstat (limited to 'i386/i386/mp_desc.c')
-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 9f1bb64e..93876da5 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -300,8 +300,8 @@ cpu_setup() int i = 1; while(i < ncpu && (machine_slot[i].running == TRUE)) i++; - //unsigned apic_id = (((ApicLocalUnit*)phystokv(lapic_addr))->apic_id.r >> 24) & 0xff; - unsigned apic_id = lapic->apic_id.r >> 24; + unsigned apic_id = (((ApicLocalUnit*)phystokv(lapic_addr))->apic_id.r >> 24) & 0xff; + //unsigned apic_id = lapic->apic_id.r >> 24; /* panic? */ if(i >= ncpu) |