diff options
| author | kaashoek <kaashoek> | 2006-09-08 14:48:07 +0000 |
|---|---|---|
| committer | kaashoek <kaashoek> | 2006-09-08 14:48:07 +0000 |
| commit | 5cb7877e0f1dd09a513859f018d3981a9c9d17ad (patch) | |
| tree | 9b37310457294ef2b690d2b05c05958b37ef0b32 /mp.c | |
| parent | f80873e60276a644ef085750881ee43911fed492 (diff) | |
| download | xv6-labs-2022-5cb7877e0f1dd09a513859f018d3981a9c9d17ad.tar.xz xv6-labs-2022-5cb7877e0f1dd09a513859f018d3981a9c9d17ad.zip | |
use bootstrap processor as specified by MP table. typically 0, but not
guaranteed.
Diffstat (limited to 'mp.c')
| -rw-r--r-- | mp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
