From 41383ad0120630edd42c5c897a287e2f9d9161b4 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 5 Jan 2016 05:32:40 +0100 Subject: kernel: change active.machs from bitmap to char array to support up to 64 cpus on pc64 --- sys/src/9/omap/dat.h | 2 +- sys/src/9/omap/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/src/9/omap') diff --git a/sys/src/9/omap/dat.h b/sys/src/9/omap/dat.h index 982e18b74..0f0c5d6a4 100644 --- a/sys/src/9/omap/dat.h +++ b/sys/src/9/omap/dat.h @@ -216,7 +216,7 @@ typedef void KMap; struct { Lock; - int machs; /* bitmap of active CPUs */ + char machs[MAXMACH]; /* active CPUs */ int exiting; /* shutdown */ }active; diff --git a/sys/src/9/omap/main.c b/sys/src/9/omap/main.c index 42ce8ba5a..f16ca5d6d 100644 --- a/sys/src/9/omap/main.c +++ b/sys/src/9/omap/main.c @@ -295,7 +295,7 @@ machinit(void) conf.nmach = 1; - active.machs = 1; + active.machs[0] = 1; active.exiting = 0; up = nil; -- cgit v1.2.3