Basic definitions for the RISC-V CPU module. More...
Basic definitions for the RISC-V CPU module.
Definition in file cpu_common.h.
Go to the source code of this file.
Functions | |
void | riscv_init (void) |
Initialize rv32i specific core parts of the CPU. | |
void | riscv_fpu_init (void) |
Enable the rv32i FPU when present. | |
void | riscv_irq_init (void) |
Initialization of the interrupt controller. | |
static uintptr_t | cpu_get_caller_pc (void) |
Gets the last instruction's address. | |
static void | cpu_reg_enable_bits (volatile uint32_t *reg, uint32_t mask) |
Convenience function to set bit flags in a register. | |
static void | cpu_reg_disable_bits (volatile uint32_t *reg, uint32_t mask) |
Convenience function to clear bit flags in a register. | |