Expand description
Support for the 32-bit RISC-V architecture.
Modules§
- Core Local Interrupt Control peripheral driver.
- Tock Register interface for using CSR registers.
- RISC-V Generic Machine Timer
- Core low-level operations.
- Kernel-userland system call interface for RISC-V architecture.
Enums§
- The various privilege levels in RISC-V.
Functions§
- This assembly does three functions:
- This is the trap handler function. This code is called on all traps, including interrupts, exceptions, and system calls from applications.
- Tell the MCU what address the trap handler is located at, and initialize
mscratch
to zero, indicating kernel execution. - Print a readable string for an mcause reason.
- Prints out RISCV machine state, including basic system registers (mcause, mstatus, mtvec, mepc, mtval, interrupt status).
- RISC-V semihosting needs three exact instructions in uncompressed form.