coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
virtual_memory.c File Reference
#include <arch/cpu.h>
#include <arch/encoding.h>
#include <vm.h>
Include dependency graph for virtual_memory.c:

Go to the source code of this file.

Functions

void mstatus_init (void)
 

Variables

static int delegate
 

Function Documentation

◆ mstatus_init()

void mstatus_init ( void  )

Definition at line 29 of file virtual_memory.c.

References delegate, MIP_MTIP, MIP_SSIP, MIP_STIP, and supports_extension().

Here is the call graph for this function:

Variable Documentation

◆ delegate

int delegate
static
Initial value:
= 0
#define CAUSE_ILLEGAL_INSTRUCTION
Definition: encoding.h:964
#define CAUSE_STORE_ACCESS
Definition: encoding.h:969
#define CAUSE_MISALIGNED_FETCH
Definition: encoding.h:962
#define CAUSE_LOAD_ACCESS
Definition: encoding.h:967
#define CAUSE_BREAKPOINT
Definition: encoding.h:965
#define CAUSE_FETCH_ACCESS
Definition: encoding.h:963
#define CAUSE_STORE_PAGE_FAULT
Definition: encoding.h:976
#define CAUSE_FETCH_PAGE_FAULT
Definition: encoding.h:974
#define CAUSE_USER_ECALL
Definition: encoding.h:970
#define CAUSE_LOAD_PAGE_FAULT
Definition: encoding.h:975

Definition at line 16 of file virtual_memory.c.

Referenced by mstatus_init().