coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | trapframe |
struct | insn_fetch_t |
Typedefs | |
typedef uint32_t | insn_t |
Functions | |
static void | exception_init (void) |
void | redirect_trap (void) |
void | trap_handler (trapframe *tf) |
void | handle_supervisor_call (trapframe *tf) |
void | handle_misaligned (trapframe *tf) |
Definition at line 17 of file exception.h.
Definition at line 24 of file exception.h.
Definition at line 159 of file misaligned.c.
References addr, endian_buf::b, trapframe::badvaddr, endian_buf::d, trapframe::epc, fetch_16bit_instruction(), fetch_32bit_instruction(), trapframe::gpr, memory_instruction_info::is_fp, memory_instruction_info::is_load, match_instruction(), redirect_trap(), memory_instruction_info::reg_addition, memory_instruction_info::reg_mask, memory_instruction_info::reg_shift, memory_instruction_info::sign_extend, endian_buf::v, endian_buf::w, and memory_instruction_info::width.
Referenced by trap_handler().
Definition at line 151 of file trap_handler.c.
References EXTRACT_FIELD, INSERT_FIELD, MSTATUS_MPP, and MSTATUS_SPP.
Referenced by handle_misaligned().
Definition at line 111 of file trap_handler.c.
References BIOS_EMERG, trapframe::cause, CAUSE_BREAKPOINT, CAUSE_FETCH_ACCESS, CAUSE_HYPERVISOR_ECALL, CAUSE_ILLEGAL_INSTRUCTION, CAUSE_LOAD_ACCESS, CAUSE_MACHINE_ECALL, CAUSE_MISALIGNED_FETCH, CAUSE_MISALIGNED_LOAD, CAUSE_MISALIGNED_STORE, CAUSE_STORE_ACCESS, CAUSE_SUPERVISOR_ECALL, CAUSE_USER_ECALL, die(), handle_misaligned(), handle_sbi(), interrupt_handler(), print_trap_information(), and printk.