summaryrefslogtreecommitdiff
path: root/kernel/trap.c
AgeCommit message (Collapse)AuthorFilesLines
2022-08-23Merge branch 'riscv-killed' into riscvFrans Kaashoek1-3/+3
2022-08-22slightly better commentsRobert Morris1-3/+3
2022-08-11Use p->lock to read p->killedFrans Kaashoek1-1/+1
2022-08-11Use atomic store_n and load_nFrans Kaashoek1-1/+1
2022-08-11Clean up using killed()Frans Kaashoek1-2/+2
2022-08-10Read and write p->killed using atomicsFrans Kaashoek1-3/+3
2022-08-09adopt github PR98 (No need to store TRAPFRAME in sscratch register)Robert Morris1-5/+6
2020-08-10interrupt-driven uart output, hopefully a nice example for teaching.Robert Morris1-2/+6
2020-08-10rename p->tf to p->trapframe, for consistency with p->contextRobert Morris1-7/+7
2019-10-27nitsRobert Morris1-2/+5
2019-09-17all of PTE_FLAGSRobert Morris1-2/+2
2019-09-10Support exit status for exit/waitFrans Kaashoek1-2/+2
One test case for returning a exit status Passes usertests, but haven't used it to simplify tests
2019-07-27console/uart tweaksRobert Morris1-1/+3
2019-07-26???Robert Morris1-1/+1
2019-07-26machinevec -> timervecRobert Morris1-5/+5
2019-07-26uservec before userret in trampoline, to match book and kernelvecRobert Morris1-2/+3
2019-07-26trampin -> uservecRobert Morris1-2/+2
trampout -> userret
2019-07-24display assembly instructions, to help with first.tex exerciseRobert Morris1-1/+1
2019-07-23simplify kernel mapping callsRobert Morris1-1/+1
2019-07-23one more TRAMPOLINEFrans Kaashoek1-1/+1
2019-07-11cosmetic changesRobert Morris1-6/+14
2019-07-10have kill() lock before looking at p->pidRobert Morris1-0/+3
document wait()'s use of np->parent w/o holding lock.
2019-07-10tweak some comments.Robert Morris1-1/+1
2019-07-02Merge branch 'riscv' into riscv-procFrans Kaashoek1-7/+20
2019-07-02Checkpoint switching to per-process locks, in attempt clarify xv6'sFrans Kaashoek1-1/+1
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 Morris1-4/+6
2019-07-01timer interrupt in the kernel -> yieldRobert Morris1-3/+14
2019-06-13clean up virtio codeRobert Morris1-1/+1
2019-06-13virtio disk driverRobert Morris1-0/+2
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris1-0/+184