aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-27add ipc_kickKimplul
+ Tests will have to come later
2023-07-26allow tail call optimizations to happen easierKimplul
2023-07-26fix possible segfault with non-gig memory sizesKimplul
2023-07-25simplify fdt reg readingKimplul
2023-07-25simplify populate/probe pmapKimplul
2023-07-24split makefile into two partsKimplul
+ First part generates deps.mk, second part reads it. Allows us to use both bmake and gmake with the same makefiles. Only drawback seems to be that the first makefile considers all individual files as 'finished' targets, meaning that it's more difficult to do something like make kernel.elf though I haven't found this to be an issue.
2023-06-14move rpc check to ipc_respoKimplul
2023-06-11add some clarifications to rpc stack stuffKimplul
2023-06-08fix visionfive boot docsKimplul
2023-06-08skip saving registers when possibleKimplul
2023-06-08add fast userspace return to do_ipcKimplul
2023-06-07slightly improve paddingKimplul
2023-06-07add unlikely hint to leave_rpcKimplul
2023-06-07slight improvements to buildingKimplul
+ User can now specify debug, release and assert handling
2023-06-07fix root node get_reginfoKimplul
2023-06-07change register save/load to increasing orderKimplul
2023-06-05add check against calling ipc_resp erroneouslyKimplul
2023-06-05give compiler more room to optimize rpc invocationKimplul
+ Try to write arguments to memory as fast as possible to free up some registers that the compiler can then play with. Qemu runs ~1 700 000 rpc's per second, visionfive2 @1GHz (I think) ~800 000.
2023-06-04clarify a few thingsKimplul
2023-06-04slight optimization and brainfart fixKimplul
2023-06-04remove misleading commentKimplul
2023-06-04add some docs about visionfive2Kimplul
2023-06-04visionfive2 bootsKimplul
+ Make 8250 serial driver more generic + Still TODO: write a tutorial on how to boot on the visionfive2
2023-06-04visionfive2 boots until debugging is initializedKimplul
2023-05-29start trying to boot on visionfive 2Kimplul
+ Not bootable quite yet. Among other things, I couldn't get the current starfive u-boot fork to boot, so try adding support for booting with precompiled u-boot via the `go` command. Initial testing with qemu shows that this should be possible, and if it works, might be useful in the (far) future with other slightly janky SBCs. Also, NS16550 is 8250-based, and I'm really only using the base 8250, so rename and add visionfive 2 uart to list of compatibles. Visionfive 2 is still completely untested.
2023-05-17align handle_irq to four byte boundaries alwaysKimplul
+ CSR_STVEC requires four byte alignment
2023-05-12update README to reflect recent changesKimplul
2023-05-12disable LTO with LLVMKimplul
2023-05-12fix LLVM compilationKimplul
+ RELEASE=1 doesn't work for some reason, though
2023-05-11fix riscv64-linux-gnu- buildKimplul
2023-05-11only init is pic and fix a warningKimplul
2023-05-11arbitrary load address and RAM base detectionKimplul
+ Both kind of go hand in hand, made sense to do both at the same time. Some parts feel slightly hacky, the loader works by placing everything on the stack and avoiding global values. Still, seems to work?
2023-05-08improve undocumented file warningKimplul
2023-05-06fix some formatting for terminal usersKimplul
2023-05-06Update README.mdKimplul
2023-05-06Update README.mdKimplul
2023-05-06make cross compile more conformantKimplul
2023-05-06always use debug flagKimplul
2023-05-01update license stuffKimplul
2023-05-01bump dtc versionKimplul
2023-04-30conform closer to other project structuresKimplul
2023-04-30rename to kmiKimplul
2023-01-26add req_page syscallKimplul
2023-01-16initialize variable to zeroKimplul
+ Silences possible warning
2023-01-16make process ids signedKimplul
+ Unlikely to ever run into billions of threads, and this keeps in line with stuff like Linux. Also allows C to relatively painlessly implement hashmaps of pids, if neccessary.
2022-12-02remove MR_SHAREDKimplul
+ The new shared memory plan doesn't need it.
2022-12-02initial shared memory workingKimplul
2022-12-01start looking into memory handlingKimplul
+ Now 10M alloc/frees succeed, which totals more memory than the virtual machine has, so no too obvious leaks are occuring. For future debugging speed, changed 10M to 1M. + Also quick fix to rpcs, stacks are now assigned. Not entirely sure why they worked before this, but good that I found it.
2022-11-21fix llvmKimplul
2022-11-21make syscall handlers voidKimplul