Commit graph

7 commits

Author SHA1 Message Date
80dc438fd0
Drivers: Added start of 16550 UART driver
Seems to work well enough to take over the OpenSBI putchar

TODO: Add some kind of flush() to avoid trashing data still in the FIFO
when we take over from OpenSBI
2022-07-31 23:29:24 -04:00
259d929c13
Drivers: Added Sunxi pinctrl driver
Works well enough to set bank modes and turn on an LED

Very not complete and needs more testing
2022-07-31 23:03:01 -04:00
d100b515d6
Kernel: Disabled dtb stuff for now 2022-07-31 23:01:57 -04:00
8274a93abb
Make: Throwing more random shit at the makefiles
Switched to an acutal cross compiler instead of using the linux gcc

Stole more ideas from managarm

Figured out the "right" way to handle warnings and flags in meson

Removed libgcc dependency because it doesnt exist in riscv64-elf-
will need to figure out how to use things like  __builtin_memcpy
properly
2022-07-31 22:57:40 -04:00
ad1ac3f9d7
Common: Started writing a DTB/FDT parser 2022-06-07 01:06:02 -04:00
d5d92555ae
Drivers: Started OpenSBI driver
Just ecall wrapper for now

TODO: Build system changes are lazy and need to be figured out

TODO: Looks like kernel.cpp was indented with tabs, fix
2022-01-05 02:47:30 -05:00
b35d58df1f
Build System: More better
Split code into generic, arch, and platform

Made QEMU its own platform

Added shitty uart upload script for lichee board until I can get fel to
actually upload uboot payloads without hanging

TODO: Move platform selection out of build script

TODO: Move arch specific stuff from kernel to arch

TODO: Common linker script for arch instead of having a copy in each
platform
2022-01-04 01:50:46 -05:00