summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-08Merge branch 'riscv-proc' into riscvFrans Kaashoek
2019-07-08Merge branch 'riscv-proc' of g.csail.mit.edu:xv6-dev into riscv-procRobert Morris
2019-07-08holding p->lock all the way through state=RUNNABLE means we don't need EMBRYORobert Morris
2019-07-08Update runoff list for producing xv6.pdfFrans Kaashoek
2019-07-07eliminate ptable. ptable.lock -> pid_lock.Robert Morris
2019-07-07nitsRobert Morris
2019-07-07avoid a double-lock of initproc->lock if child of init is reparentingRobert Morris
2019-07-07Merge branch 'riscv-proc' of g.csail.mit.edu:xv6-dev into riscv-procRobert Morris
2019-07-07another fork testRobert Morris
2019-07-06Maybe fix two races identified by rtm (thx!):Frans Kaashoek
- during exit(), hold p's parent lock and p's lock across all changes to p and its parent (e.g., reparenting and wakeup1). the lock ordering between concurrent exits of children, parent, and great parent might work out because processes form a tree. - in wakeup1() test and set p->state atomically by asking caller to have p locked. a correctness proof would be desirable.
2019-07-05back-port fork/exit/exit tests to xv6-riscvRobert Morris
2019-07-05two exit/exit testsRobert Morris
2019-07-04Make size in stat.h be a uint64Frans Kaashoek
Supporting print long using %l (a bit of cheat) Modify ls to print size using %l We should probably update size in inode too.
2019-07-04xFrans Kaashoek
2019-07-03Simplify wakeup1Frans Kaashoek
2019-07-03Apply some corresponding bug fixes from wq branch hereFrans Kaashoek
2019-07-02Remove some debugging codeFrans Kaashoek
2019-07-02Fix a lost wakeup bug: the disk driver's wakeup() can run after theFrans Kaashoek
reading process acquired p->lock and released virtio lock in sleep(), but before the process had set p->status to SLEEPING, because the wakeup tested p->status without holding p's lock. Thus, wakeup can complete without seeing any process SLEEPING and then p sets p->status to SLEEPING. Fix some other issues: - Don't initialize proc lock in allocproc(), because freeproc() sets np->state = UNUSED and allocproc() can choose np and calls initlock() on the process's lock, releasing np's lock accidentally. Move initializing proc's lock to init. - Protect nextpid using ptable.lock (and move into its own function) Some clean up: - Don't acquire p->lock when it p is used in a private way (e.g., exit()/grow()). - Move find_runnable() back into scheduler().
2019-07-02Merge branch 'riscv' into riscv-procFrans Kaashoek
2019-07-02xFrans Kaashoek
2019-07-02Don't start processes at the end of the proc tableFrans Kaashoek
2019-07-02Avoid two cores selecting the same process to runFrans Kaashoek
2019-07-02try to continue from walk() failing to allocate a page-table pageRobert Morris
2019-07-02avoid allocproc() returning a struct proc with non-zero p->szRobert Morris
2019-07-02COW testsRobert Morris
2019-07-02Checkpoint switching to per-process locks, in attempt clarify xv6'sFrans Kaashoek
locking plan, which is a difficult to understand because ptable lock protects many invariants. This implementation has a bug: once in a while xv6 unlocks a proc lock that is locked by another core.
2019-07-02don't enable interrupts until done with sstatus, scause, &cRobert Morris
2019-07-01oops, don't hold mycpu() result across intr_off()Robert Morris
2019-07-01have fork() fail, not panic, if not enough phys memRobert Morris
2019-07-01sbrk() returns a pointer, so it should be 64 bitsRobert Morris
2019-07-01oops, don't hold mycpu() result across intr_off()Robert Morris
2019-07-01timer interrupt in the kernel -> yieldRobert Morris
2019-07-01Checkpoint some progress compiling xv6.pdfFrans Kaashoek
2019-07-01xFrans Kaashoek
2019-07-01Introduce alloc3_desc and UsedArea to make code easier to readFrans Kaashoek
2019-06-13FD_DEVICERobert Morris
2019-06-13for spinlocks, use gcc intrinsics, but say what they compile toRobert Morris
2019-06-13clean up virtio codeRobert Morris
2019-06-13eliminate ramdiskRobert Morris
2019-06-13virtio disk driverRobert Morris
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris
2019-06-06gdb backtraces: -ggdb, -fno-omit-frame-pointer, BSIZE=1024Robert Morris
2019-06-06fix a create()/unlink() deadlockRobert Morris
2019-06-06add plic.cRobert Morris
2019-06-06add kernelvecRobert Morris
2019-06-05make -O work with asm volatile(...)Robert Morris
2019-06-05clean up -WallRobert Morris
2019-06-05push_off() and pop_off() in myproc()Robert Morris
2019-06-05spinlocks using gcc intrinsicsRobert Morris
push_off() / pop_off() set up per-hart plic stuff so all harts get device interrupts
2019-06-05start at support for multiple CPUsRobert Morris