xv6/spinlock.h
rtm 5be0039ce9 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

7 lines
91 B
C

struct spinlock {
uint magic;
char *name;
uint locked;
int cpu;
uint pcs[10];
};