Function definitions for interrupt handler, exception.
Main Trap Entry Point (Naked). | |
Hardware vector target (written to mtvec). | |
| void | trap_entry (void) |
| The Main Trap Entry Point (Naked). | |
CPU Interrupt Handler. | |
Handle interrupt from external, timer, software interrupts.
| |
| int | irq_handleSoft (void) |
| Handlers for CPU interrupts (Software). | |
| int | irq_handleTimer (void) |
| Handlers for CPU interrupts (Timer). | |
| void | irq_handleExt (void) |
| External Interrupt Handler (PLIC). | |
Dispatcher/Exception Handlers (Function) | |
Trap Dispatcher mainly for external interrupt and exception handler.
| |
| void | trap (void) |
| Main C Trap Dispatcher. | |
| void | crash (void) |
| Fatal Exception Handler. | |
| void crash | ( | void | ) |
| void irq_handleExt | ( | void | ) |
| int irq_handleSoft | ( | void | ) |
#include <mtrap.h>
Handlers for CPU interrupts (Software).
| int irq_handleTimer | ( | void | ) |
#include <mtrap.h>
Handlers for CPU interrupts (Timer).
| void trap | ( | void | ) |
#include <mtrap.h>
Main C Trap Dispatcher.
Called by trap_entry after context save. It reads mcause to determine if the event was an Interrupt (Async) or Exception (Sync).
| void trap_entry | ( | void | ) |
#include <mtrap.h>
The Main Trap Entry Point (Naked).
This function is the hardware vector target (written to mtvec).