aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-05-10update doxygen configKimplul
2024-05-10update formatting configKimplul
2024-01-10silence warningKimplul
2024-01-10some kmx alleviationsKimplul
2023-10-10fix enough_rpc_stackKimplul
+ Had a slight brainfart when refactoring
2023-10-09experimenting with removing lists threads per procKimplul
+ Gives a very slight improvement to RPC speeds, but mostly cleans up code a little bit.
2023-10-09move rpc stack handling to arch-specific codeKimplul
+ Fairly considerable speedup, as we don't have to look up the rpc pte every time separately, instead cacheing them. Adds an architecture specific limitation to total rpc stack size, though.
2023-10-03fix fork return valuesKimplul
2023-08-04fix warnings in smp.cKimplul
+ Only occur with my version of riscv64-linux-gnu-gcc. Funny, that.
2023-08-04add initial smp bringupKimplul
2023-08-03add sbi_hart_startKimplul
2023-08-03fix cpu_send_ipiKimplul
2023-08-03dispatch doesn't have to worry about ipiKimplul
2023-07-31add copyright stuff to new filesKimplul
2023-07-31start working on irqsKimplul
2023-07-27use nifty variable argument count trickKimplul
+ Found it in newlib. This allows the compiler to more effectively optimize away unnecessary register operations. Applied to both kernel and init.c for a slight speed increase. I really should move init.c to some other repository though, the binary files are starting to get annoying
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