]> Devi Nivas Git - cs3210-lab0.git/commit
APIC IDs may not be consecutive and start from zero, so we cannot really use it
authorFrans Kaashoek <kaashoek@mit.edu>
Fri, 2 Sep 2016 12:31:13 +0000 (08:31 -0400)
committerFrans Kaashoek <kaashoek@mit.edu>
Fri, 2 Sep 2016 12:31:13 +0000 (08:31 -0400)
commitae15515d80559ff95b315e3342c3baa00b87be1c
treeb61b17981cce96f0b66efc77a7ce479e3e66a843
parent37939f24c2fbb12a57a628fedd024a4865741e74
APIC IDs may not be consecutive and start from zero, so we cannot really use it
as a direct index into cpus.  Record apicid in struct cpu and have cpunum() look
for it. Replace cpu->id with cpunum() everywhere, and replace cpu->id with cpu->apicid.
Thanks to Xi Wang.
console.c
lapic.c
main.c
mp.c
proc.h
trap.c