This website requires JavaScript.
Explore
Help
Sign In
greg
/
xv6
Watch
1
Star
0
Fork
You've already forked xv6
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
8148b6ee53
xv6
/
spinlock.h
7 lines
95 B
C
Raw
Normal View
History
Unescape
Escape
cvs add spinlock.h fix race in schedule()
2006-07-12 09:10:25 +00:00
struct
spinlock
{
unsigned
int
locked
;
i think my cmpxchg use was wrong in acquire nesting cli/sti: release shouldn't always enable interrupts separate setup of lapic from starting of other cpus, so cpu() works earlier flag to disable locking in console output make locks work even when curproc==0 (still crashes in clock interrupt)
2006-07-12 11:15:38 +00:00
unsigned
who
;
cvs add spinlock.h fix race in schedule()
2006-07-12 09:10:25 +00:00
int
count
;
unsigned
locker_pc
;
}
;
Reference in a new issue
Copy permalink