Commit graph

8 commits

Author SHA1 Message Date
b78b3f5763
OpenSBI: Added PMU(Performance Monitoring Unit) extension 2022-01-26 23:17:58 -05:00
e149b8d503
OpenSBI: Added SRST(System Reset) extension 2022-01-26 18:31:40 -05:00
03fcf4dbb2
OpenSBI: Added HSM(Hart State Management) extension 2022-01-26 18:16:29 -05:00
a8a7c5fdc9
OpenSBI: Added rfence extension and HartMask struct 2022-01-26 17:39:49 -05:00
854f65a4b3
OpenSBI: Added IPI extension 2022-01-24 21:36:53 -05:00
dbfd13630d
OpenSBI: Added timer extension
NOTE: I didn't switch to the new functions in the kernel because for
some reason we get a page fault when trying to fetch the first
instruction of set_timer(addi sp, sp, -48). I doubt this is related to
the set_timer funcion itself and is instead some kind of paging or
linking problem because it works fine with paging disabled and really
just doesnt make sense.
2022-01-23 23:56:46 -05:00
464a61102e
OpenSBI memes
Added legacy extension

Fixed typing memes by just define a sbiword_t typedef

Renamed sbiret_t to SbiRet, I think i'll only use _t for typedefs

Added ecall() variant that takes no additional arguments

Moved opensbi includes to includes/opensbi/...

kernel.cpp uses the legacy extensions instead of raw ecalls

All legacy extension calls are marked as deprecated
2022-01-23 20:15:53 -05: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