History log of /xv6-public/defs.h (Results 1 – 25 of 162)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: xv6-rev11
# c9fa90f7 02-Feb-2017 Frans Kaashoek <kaashoek@mit.edu>

A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into
mycpu() in proc.c.


# ed396c06 01-Feb-2017 Frans Kaashoek <kaashoek@mit.edu>

Eliminate code for gs trick to track per-cpu state. We rely on lapiccpunum()
to find a per-cpu id with which we locate a cpu's cpu struct.


# fbb4c094 01-Feb-2017 Frans Kaashoek <kaashoek@mit.edu>

Read curproc from cpu structure, but be careful because after a schedule event
myproc() points to a different thread.

myproc();
sched();
myproc(); // this proc maybe different than the one

Read curproc from cpu structure, but be careful because after a schedule event
myproc() points to a different thread.

myproc();
sched();
myproc(); // this proc maybe different than the one before sched

Thus, in a function that operates on one thread better to retrieve the
current process once at the start of the function.

show more ...


# abf847a0 31-Jan-2017 Frans Kaashoek <kaashoek@mit.edu>

Start of an experiment to remove the use of gs for cpu local variables.


# c383612a 31-Jan-2017 Frans Kaashoek <kaashoek@mit.edu>

Thanks to Wolfgang Keller <nubok@users.noreply.github.com>


# 2adb7c21 12-Sep-2016 Frans Kaashoek <kaashoek@mit.edu>

Move retry loop/sleep/wakeup in bio.c into sleeping locks


# 6670d3b5 11-Sep-2016 Frans Kaashoek <kaashoek@mit.edu>

Straight replacement of B_BUSY with a sleeping lock.


Revision tags: xv6-rev9
# 2c60b7f3 26-Sep-2015 Peter H. Froehlich <peter.hans.froehlich@gmail.com>

Removed useless function and prototypes.


# 8320d61b 27-Jun-2015 Frans Kaashoek <kaashoek@mit.edu>

Pick up where i left off in april:
- move log into metadata part of disk, so that marking
that the log's blocks are in use falls out for free
- superblock describes the whole disk (sizes and offets)

Pick up where i left off in april:
- move log into metadata part of disk, so that marking
that the log's blocks are in use falls out for free
- superblock describes the whole disk (sizes and offets)
- sizes and offsets are computed in one place (mkfs) and
the rest of the code refers to the superblock for these values,
instead of recomputing them.

show more ...


# aae4e749 12-Sep-2014 Cody Cutler <ccutler@mat.lcs.mit.edu>

cmosgetdate() for system-call homework

the day of reckoning has come for the debug port "Shutdown" hack.

instead of mucking with ACPI or using a new hack, the student will now write
sys_date() usin

cmosgetdate() for system-call homework

the day of reckoning has come for the debug port "Shutdown" hack.

instead of mucking with ACPI or using a new hack, the student will now write
sys_date() using the cmosgetdate() helper.

show more ...


Revision tags: xv6-rev8
# 71453f72 27-Aug-2014 Robert Morris <rtm@csail.mit.edu>

a start at concurrent FS system calls


Revision tags: xv6-rev7
# 4ce832dd 23-Aug-2012 Frans Kaashoek <kaashoek@mit.edu>

Remove unused argument to setupkvm (thanks to Peter Froehlich)


# 70c55557 23-Aug-2012 Frans Kaashoek <kaashoek@mit.edu>

Remove unused argument from lapicinit (thanks to Peter Froehlich)


Revision tags: osdi12-submit
# 9d59eb01 18-Feb-2012 Austin Clements <amdragon@mit.edu>

Make fetchint and fetchstr use proc instead of taking a struct proc

Previously, these were inconsistent: they used their struct proc
argument for bounds checking, but always copied the argument from

Make fetchint and fetchstr use proc instead of taking a struct proc

Previously, these were inconsistent: they used their struct proc
argument for bounds checking, but always copied the argument from the
current address space (and hence the current process). Drop the
struct proc argument and always use the current proc.

Suggested by Carmi Merimovich.

show more ...


# c092540e 13-Sep-2011 Robert Morris <rtm@csail.mit.edu>

eliminate enter_alloc -- use kalloc for everything


Revision tags: xv6-rev6
# 2eb214c9 02-Sep-2011 Austin Clements <amdragon@mit.edu>

clear_pte_u -> clearpteu


# 371ab7fa 01-Sep-2011 Robert Morris <rtm@csail.mit.edu>

inaccessible page under the user stack page, to help exec deal w/ too-large args


# 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 ...


# a7061b4f 29-Aug-2011 Austin Clements <amdragon@mit.edu>

Style nits; indentation and tabs


# 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 ...


# c3dcf479 16-Aug-2011 Frans Kaashoek <kaashoek@26-4-190.dynamic.csail.mit.edu>

Clean up memlayout.h
Get rid of last instances of linear address and "la"
Get ready for detecting physical memory dynamically


# a4b213cf 16-Aug-2011 Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>

Avoid "boot" in xv6


# 66ba8079 10-Aug-2011 Frans Kaashoek <kaashoek@42.sub-75-251-87.myvzw.com>

Use static page table for boot, mapping first 4Mbyte; no more segment trick
Allocate proper kernel page table immediately in main using boot allocator
Remove pginit
Simplify address space layout a ti

Use static page table for boot, mapping first 4Mbyte; no more segment trick
Allocate proper kernel page table immediately in main using boot allocator
Remove pginit
Simplify address space layout a tiny bit
More to come (e.g., superpages to simplify static table)

show more ...


# 9aa0337d 29-Jul-2011 Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>

Map kernel high
Very important to give qemu memory through PHYSTOP :(


# 13a96bae 28-Jul-2011 Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>

Dirt simple logging
Passes usertests and stressfs
Seems to recover correctly in a number of simple cases


1234567