diff options
author | AlmuHS <almuhs@github.com> | 2019-10-03 19:01:55 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-10-03 19:01:55 +0200 |
commit | 4dd07e0787270dbcce2aa6171912ea73bfdd2e4f (patch) | |
tree | 935be7378f86fa853e69a62f17d960369d5c051d /i386/i386/mp_desc.c | |
parent | b076434a3c6303d817dc839d2097bc6f308b6dea (diff) |
fix: add shift 24 in apic id
Diffstat (limited to 'i386/i386/mp_desc.c')
-rw-r--r-- | i386/i386/mp_desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 10caeb19..557b7e18 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -299,7 +299,7 @@ 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; + unsigned apic_id = lapic->apic_id.r >>24; /* panic? */ if(i >= ncpu) |