summaryrefslogtreecommitdiff
path: root/spinlock.h
AgeCommit message (Collapse)AuthorFilesLines
2016-08-25Remove trailing white space with:Frans Kaashoek1-1/+1
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
2011-08-29Revert "Introduce and use sleeplocks instead of BUSY flags"Frans Kaashoek1-6/+1
My changes have a race with re-used bufs and the code doesn't seem to get shorter Keep the changes that fixed ip->off race This reverts commit 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072. Conflicts: defs.h file.c file.h
2011-08-26Introduce and use sleeplocks instead of BUSY flagsFrans Kaashoek1-1/+6
Remove I_BUSY, B_BUSY, and intrans defs and usages One spinlock per buf to avoid ugly loop in bget fix race in filewrite (don't update f->off after releasing lock)
2009-08-30assorted fixes:Russ Cox1-5/+5
* rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout
2008-08-20formatting updatesrsc1-43/+0
2007-08-28clumsy blank pages to make some files align betterrsc1-0/+44
2006-09-07more commentsrsc1-4/+8
2006-08-29clean up stale error checks and panicsrtm1-1/+0
delete unused functions a few comments
2006-08-10interrupts could be recursive since lapic_eoi() called before rtirtm1-1/+2
so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
2006-08-08fix race in holding() check in acquire()rtm1-1/+1
give cpu1 a TSS and gdt for when it enters scheduler() and a pseudo proc[] entry for each cpu cpu0 waits for each other cpu to start up read() for files
2006-07-29open()rtm1-0/+1
2006-07-20uint32_t -> uint &crtm1-1/+1
2006-07-17add ide_lock for sleeprsc1-1/+2
2006-07-17add uint and standardize on typedefs instead of unsignedrsc1-2/+2
2006-07-15no more recursive locksrtm1-2/+0
wakeup1() assumes you hold proc_table_lock sleep(chan, lock) provides atomic sleep-and-release to wait for condition ugly code in swtch/scheduler to implement new sleep fix lots of bugs in pipes, wait, and exit fix bugs if timer interrupt goes off in schedule() console locks per line, not per byte
2006-07-12i think my cmpxchg use was wrong in acquirertm1-1/+1
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-12cvs add spinlock.hrtm1-0/+6
fix race in schedule()