summaryrefslogtreecommitdiff
path: root/kernel
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29mention LRU list a bit more in comments.Robert Morris1-3/+5
2019-10-27fix a potential memory leakRobert Morris2-3/+3
2019-10-27nitsRobert Morris4-7/+9
2019-10-21Clean up linker scriptAnish Athalye1-12/+24
This patch does the following: - Add .text.* to the .text section in the output - Add an assertion that the trampoline does not overflow a page - Add the .rodata section - Make .sdata and .sdata.* (which is for small data) be absorbed into the .data section, because we don't need to distinguish between them; this prevents .sdata from appearing in the output - Make the analogous change for .srodata and .sbss - Make all the data sections 16-byte aligned This patch also updates the .editorconfig for *.ld files.
2019-10-16nitsRobert Morris2-3/+3
2019-10-03updated alarmtestRobert Morris5-19/+8
2019-09-24no buf->qnextRobert Morris1-1/+0
2019-09-23fix major validationXi Wang1-0/+4
fileread/filewrite should validate major to avoid buffer overflows or bogus function pointers.
2019-09-23story is more complex than I thought.Robert Morris1-8/+11
2019-09-23bug fix: reparent() sometimes deadlockedRobert Morris1-15/+32
bug fix: exit() sometimes released a different parent lock than it acquired usertests
2019-09-21don't leak memory if exec() arguments are invalid.Robert Morris1-3/+8
2019-09-20don't leak a file system block if the buf argument to write is invalidRobert Morris1-2/+7
and a usertest
2019-09-20yet another sbrk() bug fix, and usertestRobert Morris1-1/+2
2019-09-20don't panic if a program frees all its memory with sbrk().Robert Morris2-4/+5
if a program sbrk()'s to a non-page-boundary, don't free that page. corresponding usertests.
2019-09-20more incorrect cast to uintRobert Morris1-2/+2
2019-09-20fix a potential kernel crashRobert Morris1-1/+4
add a regression test for it
2019-09-20nitsRobert Morris1-1/+0
2019-09-17all of PTE_FLAGSRobert Morris3-5/+5
2019-09-12set architecture riscv:rv64 -- fix gdb trampoline disassembly, thanks jonathanRobert Morris1-4/+4
2019-09-10Support exit status for exit/waitFrans Kaashoek6-9/+26
One test case for returning a exit status Passes usertests, but haven't used it to simplify tests
2019-09-08Make the end variable be really at the end of bss, and delete + 4096 in ↵Frans Kaashoek2-3/+2
freerange()
2019-09-08thanks to Anthony CoulterRobert Morris1-1/+1
2019-09-03sfence.vma in trampoline as wellRobert Morris2-5/+7
2019-09-03fix sfence_vma commentRobert Morris1-4/+1
2019-09-03sfence_vma after satpRobert Morris1-1/+1
2019-08-23Add major/minor/mkdevFrans Kaashoek1-0/+3
Maybe apply this change to master
2019-08-20Also release buffer on failed copyoutFrans Kaashoek1-1/+3
2019-08-20Release buffer also when copyin failsFrans Kaashoek1-1/+3
2019-08-20512 -> BSIZEFrans Kaashoek1-1/+1
2019-08-19Merge remote-tracking branch 'origin/master' into riscvFrans Kaashoek1-1/+0
2019-08-19A few now unused DOCFrans Kaashoek2-4/+4
2019-08-19Merge remote-tracking branch 'origin/master' into riscvFrans Kaashoek1-2/+1
2019-08-18Cosmetic cleanup: fsinit reads sb and calls loginit. initialize icacheFrans Kaashoek5-18/+21
in main.c and don't make it disk specific; the icache is shared. This doesn't matter since we have only one disk, but conceptually cleaner and maybe helpful to students for mount lab.
2019-08-12Wrap state of disk driver in a struct so that it is easier to supportFrans Kaashoek1-69/+71
several disks (e.g., in a mount lab).
2019-08-02syscall lab nitsRobert Morris1-2/+0
2019-08-01Merge branch 'riscv-bcache' into riscvFrans Kaashoek5-31/+43
2019-08-01fences for startingRobert Morris1-0/+2
2019-07-30cut ramdiskRobert Morris1-3/+0
2019-07-30Track in buf if disk "owns" bufferFrans Kaashoek2-3/+5
2019-07-30Make pin/unpin explicitFrans Kaashoek3-2/+20
2019-07-30The driver should free descriptors, not interrupt handler. ThisFrans Kaashoek1-3/+3
avoids handler freeing descriptors before driver sees that the request has completed.
2019-07-29Remove B_DIRTYFrans Kaashoek5-27/+19
Use refcnt to pin blocks into the cache Replace flags/B_VALID with a boolean field valid Use info[id].status to signal completion of disk interrupt Pass a read/write flag to virtio_disk_rw
2019-07-28separate out timer init code for clarityRobert Morris1-10/+24
2019-07-28xxxRobert Morris1-2/+3
2019-07-28argptr no longer needed, since copyin checksRobert Morris3-26/+11
2019-07-27cleaner UART register interfaceRobert Morris2-26/+40
2019-07-27console/uart tweaksRobert Morris3-7/+20
2019-07-27beautify console.cRobert Morris3-35/+68
2019-07-27split printf into a separate file, to make console.c more like a driverRobert Morris4-134/+167
2019-07-26fetchint isn't used any moreRobert Morris2-14/+0