Loading...
Searching...
No Matches
cpu_common.h File Reference

Basic definitions for the RISC-V CPU module. More...

Detailed Description

Basic definitions for the RISC-V CPU module.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

Definition in file cpu_common.h.

#include <stdint.h>
#include "irq_arch.h"
+ Include dependency graph for 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.