diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-05 05:32:40 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-05 05:32:40 +0100 |
commit | 41383ad0120630edd42c5c897a287e2f9d9161b4 (patch) | |
tree | 8be5d54a18256d149febb8a8bbf432bacb5e28e8 /sys/src/9/xen | |
parent | dd8908cff003135095996d2b0b5ea250c615a0e2 (diff) |
kernel: change active.machs from bitmap to char array to support up to 64 cpus on pc64
Diffstat (limited to 'sys/src/9/xen')
-rw-r--r-- | sys/src/9/xen/main.c | 2 | ||||
-rw-r--r-- | sys/src/9/xen/trap.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/xen/main.c b/sys/src/9/xen/main.c index 33b800579..ab6272081 100644 --- a/sys/src/9/xen/main.c +++ b/sys/src/9/xen/main.c @@ -121,7 +121,7 @@ mach0init(void) machinit(); - active.machs = 1; + active.machs[0] = 1; active.exiting = 0; } diff --git a/sys/src/9/xen/trap.c b/sys/src/9/xen/trap.c index a81182a8b..d524b403c 100644 --- a/sys/src/9/xen/trap.c +++ b/sys/src/9/xen/trap.c @@ -393,8 +393,8 @@ trap(Ureg* ureg) iprint("cpu%d: spurious interrupt %d, last %d\n", m->machno, vno, m->lastintr); if(0)if(conf.nmach > 1){ - for(i = 0; i < 32; i++){ - if(!(active.machs & (1<<i))) + for(i = 0; i < MAXMACH; i++){ + if(active.machs[i] == 0) continue; mach = MACHP(i); if(m->machno == mach->machno) |