From b74f4b57ae48719fca4fc621732b055b2debaf3e Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 16 Jul 2006 15:50:13 +0000 Subject: Keep interrupts disabled during startup. --- mp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mp.c') diff --git a/mp.c b/mp.c index 19e18d1..c6e7d3f 100644 --- a/mp.c +++ b/mp.c @@ -191,6 +191,8 @@ mp_bcpu(void) return bcpu-cpus; } +extern void mpmain(void); + void mp_startthem() { @@ -205,7 +207,7 @@ mp_startthem() if (c == cpu()) continue; cprintf ("starting processor %d\n", c); *(unsigned *)(APBOOTCODE-4) = (unsigned) (cpus[c].mpstack) + MPSTACK; // tell it what to use for %esp - *(unsigned *)(APBOOTCODE-8) = (unsigned)&main; // tell it where to jump to + *(unsigned *)(APBOOTCODE-8) = (unsigned)mpmain; // tell it where to jump to lapic_startap(cpus[c].apicid, (uint32_t) APBOOTCODE); } } -- cgit v1.2.3