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
2b19190c13
xv6
/
spinlock.h
7 lines
77 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
{
open()
2006-07-29 09:35:02 +00:00
char
*
name
;
add uint and standardize on typedefs instead of unsigned
2006-07-17 01:52:13 +00:00
uint
locked
;
add ide_lock for sleep
2006-07-17 05:00:25 +00:00
int
cpu
;
interrupts could be recursive since lapic_eoi() called before rti so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
2006-08-10 22:08:14 +00:00
uint
pcs
[
10
]
;
cvs add spinlock.h fix race in schedule()
2006-07-12 09:10:25 +00:00
}
;
Reference in a new issue
Copy permalink