diff options
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); } } |