diff options
author | AlmuHS <almuhs@github.com> | 2019-05-20 19:59:43 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-05-20 20:00:21 +0200 |
commit | 0cf928ec1e011d352301ca073eb1d96a4b6829d7 (patch) | |
tree | 0de62898411354deaa1b386b4d693d9a598c8da1 | |
parent | 69980fb525b67905965f3d352e199c00bafd723a (diff) |
experiment: get apic_id from lapic pointer
-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 b807b664..9f1bb64e 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 = (((ApicLocalUnit*)phystokv(lapic_addr))->apic_id.r >> 24) & 0xff; + unsigned apic_id = lapic->apic_id.r >> 24; /* panic? */ if(i >= ncpu) |