rename panic to interrupts to better reflect it's future role

This commit is contained in:
Liam Kerr 2026-02-09 19:33:11 +00:00
parent 16124277ee
commit b37f890266
5 changed files with 5 additions and 5 deletions

View file

@ -17,10 +17,10 @@ RISC-V Operating System.
- [~] **Formatted Printing**: Robust `kprintf` implementation for hex and decimal. - [~] **Formatted Printing**: Robust `kprintf` implementation for hex and decimal.
### Phase 2: Hardware Interfacing & Traps ### Phase 2: Hardware Interfacing & Traps
- [ ] **Trap Handling**: - [/] **Trap Handling**:
- [~] Setup `mtvec` (Machine Trap Vector). - [/] Setup `mtvec` (Machine Trap Vector).
- [ ] Assembly "trampoline" to save/restore registers. - [ ] Assembly "trampoline" to save/restore registers.
- [~] C dispatcher for exceptions and interrupts. - [/] C dispatcher for exceptions and interrupts.
- [ ] **Timer Interrupts**: - [ ] **Timer Interrupts**:
- [ ] Interface with RISC-V CLINT (Core Local Interrupter). - [ ] Interface with RISC-V CLINT (Core Local Interrupter).
- [ ] Implement a system heartbeat (ticks). - [ ] Implement a system heartbeat (ticks).

View file

@ -2,7 +2,7 @@
#include <stddef.h> #include <stddef.h>
#include <drivers/uart.h> #include <drivers/uart.h>
#include <syscon/syscon.h> #include <syscon/syscon.h>
#include <kernel/panic.h> #include <kernel/interrupts.h>
#include <kernel/memory.h> #include <kernel/memory.h>
void kmain() void kmain()

View file

@ -2,7 +2,7 @@
#include <stddef.h> #include <stddef.h>
#include "drivers/uart.h" #include "drivers/uart.h"
#include "memory.h" #include "memory.h"
#include "panic.h" #include "interrupts.h"
HeapHeader *heap_free_list; HeapHeader *heap_free_list;
extern uint8_t _heap_start[]; // named in the linker script extern uint8_t _heap_start[]; // named in the linker script