diff options
author | rsc <rsc> | 2006-07-16 15:50:13 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-07-16 15:50:13 +0000 |
commit | b74f4b57ae48719fca4fc621732b055b2debaf3e (patch) | |
tree | c485febec4a42c66783c05690a9bfb5c1b47b07f /mp.c | |
parent | ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed (diff) | |
download | xv6-labs-b74f4b57ae48719fca4fc621732b055b2debaf3e.tar.gz xv6-labs-b74f4b57ae48719fca4fc621732b055b2debaf3e.tar.bz2 xv6-labs-b74f4b57ae48719fca4fc621732b055b2debaf3e.zip |
Keep interrupts disabled during startup.
Diffstat (limited to 'mp.c')
-rw-r--r-- | mp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } } |