cvs add spinlock.h

fix race in schedule()
This commit is contained in:
rtm 2006-07-12 09:10:25 +00:00
parent 4e8f237be8
commit 664324745e
4 changed files with 17 additions and 3 deletions

7
Notes
View file

@ -126,3 +126,10 @@ in general, the table locks protect both free-ness and
why can't i get a lock in console code?
always triple fault
lock code shouldn't call cprintf...
ide_init doesn't work now?
and IOAPIC: read from unsupported address
when running pre-empt user test
so maybe something wrong with clock interrupts
no! if one cpu holds lock w/ curproc0=,
then another cpu can take it, it looks like
a recursive acquire()