Spinlock and SMP booting
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Mar 2009 06:48:34 +0000 (23:48 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Mar 2009 06:48:34 +0000 (23:48 -0700)
commit4281048308de8a46b8edf2be3ce122c01e2109a3
treec8a416ccbebd76a659ff4808585e8bf7ec732245
parent9355cfa309a9eb1373d3570cb19ac0b2c9ec543b
Spinlock and SMP booting

Added spin_lock and some initial other atomic ops.  Used them to hack up
a way for core0 to wait a bit (timer), then wait for the other cores to
finish their smp_main()s.
inc/atomic.h [new file with mode: 0644]
kern/init.c
kern/smp_entry.S