From 5cb7877e0f1dd09a513859f018d3981a9c9d17ad Mon Sep 17 00:00:00 2001 From: kaashoek Date: Fri, 8 Sep 2006 14:48:07 +0000 Subject: use bootstrap processor as specified by MP table. typically 0, but not guaranteed. --- mp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mp.c') diff --git a/mp.c b/mp.c index 59beda3..c34982d 100644 --- a/mp.c +++ b/mp.c @@ -191,7 +191,8 @@ mp_init(void) int mp_bcpu(void) { - return bcpu-cpus; + if (ismp) return bcpu-cpus; + else return 0; } extern void mpmain(void); -- cgit v1.2.3