Common implementations and headers for the RISC-V CPU.
More...
Common implementations and headers for the RISC-V CPU.
◆ cpu_get_caller_pc()
| static uintptr_t cpu_get_caller_pc |
( |
void |
| ) |
|
|
inlinestatic |
Gets the last instruction's address.
- Todo:
- : Not supported
Definition at line 50 of file cpu_common.h.
◆ cpu_reg_disable_bits()
| static void cpu_reg_disable_bits |
( |
volatile uint32_t * |
reg, |
|
|
uint32_t |
mask |
|
) |
| |
|
inlinestatic |
Convenience function to clear bit flags in a register.
- Parameters
-
| reg | register to clear bits in |
| mask | bits to clear in the register |
Definition at line 75 of file cpu_common.h.
◆ cpu_reg_enable_bits()
| static void cpu_reg_enable_bits |
( |
volatile uint32_t * |
reg, |
|
|
uint32_t |
mask |
|
) |
| |
|
inlinestatic |
Convenience function to set bit flags in a register.
- Parameters
-
| reg | register to set bits in |
| mask | bits to set in the register |
Definition at line 63 of file cpu_common.h.
◆ riscv_init()
Initialize rv32i specific core parts of the CPU.
Initialized the interrupt controller and the enables the FPU if present