[coyotos-dev] SMP: Bootable ISO image for fun
Jonathan S. Shapiro
shap at eros-os.com
Wed Oct 24 08:46:01 EDT 2007
Oh. One last thing.
Where code is SMP-specific (e.g. the AP spin-up code), it should be
wrapped in
#if MAX_NCPU > 1
#endif /* MAX_NCPU > 1 */
This is not required for code where the SMP stuff will constant-fold
out. For example, the change in transmap.c will probably need to use
MY_CPU(id). Using that does not require an ifdef, because (eventually)
we will be able to make that go away through constant folding.
--
Jonathan S. Shapiro, Ph.D.
Managing Director
The EROS Group, LLC
www.coyotos.org, www.eros-os.org
More information about the coyotos-dev
mailing list