summaryrefslogtreecommitdiff
path: root/kernel
AgeCommit message (Collapse)AuthorFilesLines
2020-08-17try to handle a few of the possible out-of-memory errors in fork()Robert Morris1-5/+18
2020-08-17modify uvmunmap() to be in aligned pagesRobert Morris2-21/+18
fix a bug in fork() recovering from out of memory
2020-08-17pa isn't needed in the uvmunmap() loopRobert Morris1-3/+1
2020-08-10Typo (thanks yt <[email protected]>)Frans Kaashoek1-1/+1
2020-08-10Merge pull request #9 from d0iasm/riscvFrans Kaashoek1-7/+7
update initcode to avoid using the compressed extension
2020-08-10Merge pull request #10 from takahirox/VirtioInterruptAckFrans Kaashoek1-0/+1
Write virtio interrupt ack register in virtio_disk_intr()
2020-08-10Merge pull request #6 from jrrk2/riscvFrans Kaashoek1-1/+1
Update ramdisk.c
2020-08-10Merge branch 'riscv' into riscvFrans Kaashoek22-128/+227
2020-08-10streamline copyin/copyout code in usertestsRobert Morris3-3/+3
fix bugs in read/write return values when there's an error
2020-08-10Change tf -> trapframe in a few commentsFrans Kaashoek1-6/+6
2020-08-10modify each page in usertests countfree()Robert Morris3-8/+7
get rid of static for walk() and freewalk()
2020-08-10defines for UART register bitsRobert Morris1-13/+21
2020-08-10fix printf() in interruptsRobert Morris3-25/+29
2020-08-10interrupt-driven uart output, hopefully a nice example for teaching.Robert Morris5-18/+100
2020-08-10cpu->scheduler -> cpu->context to reduce confusionRobert Morris2-3/+3
2020-08-10rename p->tf to p->trapframe, for consistency with p->contextRobert Morris6-30/+30
2020-08-10make "echo hello > x" truncate file x.Robert Morris4-7/+9
2020-04-18Write interrupt ack register in virtio_disk_intr()Takahiro1-0/+1
2020-03-20update initcode to avoid using the compressed extensionAsami Doi1-7/+7
2020-01-16Update ramdisk.cJonathan Kimmitt1-1/+1
The qemu syntax for a ram disk was documented incorrectly. The documented syntax is here: https://qemu.weilnetz.de/doc/qemu-doc.html
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-21Fix minor typosFumiya Shigemitsu1-2/+2
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