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/ppc | |
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/ppc')
-rw-r--r-- | sys/src/9/ppc/dat.h | 4 | ||||
-rw-r--r-- | sys/src/9/ppc/m8260.c | 2 | ||||
-rw-r--r-- | sys/src/9/ppc/msaturn.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/ppc/dat.h b/sys/src/9/ppc/dat.h index d10559f01..b04362794 100644 --- a/sys/src/9/ppc/dat.h +++ b/sys/src/9/ppc/dat.h @@ -189,8 +189,8 @@ struct Mach struct { Lock; - short machs; - short exiting; + char machs[MAXMACH]; + int exiting; }active; /* diff --git a/sys/src/9/ppc/m8260.c b/sys/src/9/ppc/m8260.c index 4f84ec135..0c441a209 100644 --- a/sys/src/9/ppc/m8260.c +++ b/sys/src/9/ppc/m8260.c @@ -214,7 +214,7 @@ machinit(void) vco 198 */ - active.machs = 1; + active.machs[0] = 1; active.exiting = 0; putmsr(getmsr() | MSR_ME); diff --git a/sys/src/9/ppc/msaturn.c b/sys/src/9/ppc/msaturn.c index 94aa1fb17..ca2a599c7 100644 --- a/sys/src/9/ppc/msaturn.c +++ b/sys/src/9/ppc/msaturn.c @@ -140,7 +140,7 @@ machinit(void) m->cpuhz = 200000000; /* 750FX? */ m->cyclefreq = m->bushz / 4; - active.machs = 1; + active.machs[0] = 1; active.exiting = 0; putmsr(getmsr() | MSR_ME); |