History log of /xv6-public/spinlock.h (Results 1 – 17 of 17)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: xv6-rev11, xv6-rev9
# 7894fcd2 25-Aug-2016 Frans Kaashoek <kaashoek@mit.edu>

Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done
(Thanks to Nicolás Wolovick)


Revision tags: xv6-rev8, xv6-rev7, osdi12-submit, xv6-rev6
# 1ddfbbb1 29-Aug-2011 Frans Kaashoek <kaashoek@26-4-190.dynamic.csail.mit.edu>

Revert "Introduce and use sleeplocks instead of BUSY flags"
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 co

Revert "Introduce and use sleeplocks instead of BUSY flags"
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

show more ...


# 3a5fa7ed 26-Aug-2011 Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>

Introduce and use sleeplocks instead of BUSY flags
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

Introduce and use sleeplocks instead of BUSY flags
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)

show more ...


Revision tags: xv6-rev5, xv6-2010, xv6-rev4, xv6-rev3
# 48755214 31-Aug-2009 Russ Cox <rsc@swtch.com>

assorted fixes:
* rename c/cp to cpu/proc
* rename cpu.context to cpu.scheduler
* fix some comments
* formatting for printout


Revision tags: xv6-2008
# 9b62657e 20-Aug-2008 rsc <rsc>

formatting updates


Revision tags: xv6-2007, xv6-rev1
# c2f354e4 28-Aug-2007 rsc <rsc>

clumsy blank pages to make some files align better


Revision tags: symlinks, xv6-2006, xv6-rev0
# 31085bb4 07-Sep-2006 rsc <rsc>

more comments


# 2b19190c 29-Aug-2006 rtm <rtm>

clean up stale error checks and panics
delete unused functions
a few comments


# 5be0039c 10-Aug-2006 rtm <rtm>

interrupts could be recursive since lapic_eoi() called before rti
so fast interrupts overflow the kernel stack
fix: cli() before lapic_eoi()


# 0e84a0ec 08-Aug-2006 rtm <rtm>

fix race in holding() check in acquire()
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


# 32630628 29-Jul-2006 rtm <rtm>

open()


# 29270816 20-Jul-2006 rtm <rtm>

uint32_t -> uint &c


# 0dd42537 17-Jul-2006 rsc <rsc>

add ide_lock for sleep


# b5ee5165 17-Jul-2006 rsc <rsc>

add uint and standardize on typedefs instead of unsigned


# 46bbd72f 15-Jul-2006 rtm <rtm>

no more recursive locks
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 lo

no more recursive locks
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

show more ...


# 8148b6ee 12-Jul-2006 rtm <rtm>

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 loc

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)

show more ...


# 66432474 12-Jul-2006 rtm <rtm>

cvs add spinlock.h
fix race in schedule()