Commit graph

67 commits

Author SHA1 Message Date
40333f1a37 timer: Refactor tick_delta to use hardware-specific clock frequency 2026-05-02 03:19:15 +01:00
5f09049765 Fix RISC-V timer interrupt (IRQ 7) and enable proper interrupt handling
- Correct IRQ number for CLINT timer from 5 to 7 in PLIC and headers.
- Add debug prints for MIE, SIE, and MSTATUS CSRs to verify interrupt enablement.
- Enable timer (IRQ 7) and global interrupts in MIE/SIE registers.
- Update `timer_tick()` to log `mtimecmp` and `mtime` for debugging.
- Ensure `stvec` is set and interrupts are properly acknowledged.
2026-05-02 01:53:03 +01:00
ebdd572f8e feat: implement basic timer 2026-05-01 23:14:44 +01:00
f76ca1ee31 traps/interrupts: Refactor trap handling and align CSR access 2026-05-01 22:34:27 +01:00
0176b636c5 Save floating point unit registers 2026-05-01 21:05:12 +01:00
44427f7734 (interrupts): Timer interrupts enabled and handled 2026-02-14 17:21:48 +00:00
665be11c76 (memory): zero out memory on free 2026-02-13 00:19:04 +00:00
b5788b01cd (uart): kprintf_internals improvements 2026-02-12 23:53:59 +00:00
225e44bbdc (memory): move some magic numbers 2026-02-12 23:09:06 +00:00
e3d0c0bab0 (interrupts): clean up PLIC addresses 2026-02-12 02:32:00 +00:00
c875a2c35c (memory): initialise HeapHeader when allocating page + other fixes 2026-02-12 02:31:20 +00:00
b48da838ec (interrupt): implement robust trap frame and state preservation 2026-02-11 22:56:25 +00:00
43a26abe74 (memory): clean up warnings in test functions 2026-02-11 22:52:52 +00:00
bae4308d93 (libs): fixing off-by-one error 2026-02-11 16:17:47 +00:00
f855d910ed (memory): returning pages back when freeing memory 2026-02-11 04:05:27 +00:00
4d34312748 (roadmap): add multi paging 2026-02-11 02:40:39 +00:00
820163395e (memory): updating kcoalesce only merges contiguous memory locations. 2026-02-11 02:38:43 +00:00
3c7b927abf (memory): alignment checks, clean up, and tests 2026-02-11 01:37:31 +00:00
a8e1bbc3a8 using memset to zero out the page 2026-02-11 00:39:51 +00:00
19d981c878 zeroing bss and changing init ordering 2026-02-11 00:12:14 +00:00
df0e78ede2 updating status 2026-02-10 23:25:52 +00:00
e8a6c3f5cf formatting 2026-02-10 23:24:19 +00:00
1b033a0ff6 GPLv3 2026-02-10 16:14:50 +00:00
780a059c77 fixing exception logic 2026-02-10 13:53:36 +00:00
7e7a7fcd3b No "woo!" and make heap split error clearer 2026-02-10 13:33:54 +00:00
663c2712fd Make kprintf_internal so panic.h can use it. 2026-02-10 13:22:12 +00:00
b4d5f8f6eb (uart): supporting input new lines 2026-02-10 03:21:44 +00:00
8d5aae1ac9 clean up warnings 2026-02-10 03:01:50 +00:00
98f7ce6f1e Cleaning up #defines from bad approach 2026-02-10 02:52:43 +00:00
50757427be Keyboard Work - setting up PLIC, UART, Interrupts 2026-02-10 01:21:49 +00:00
4c0a4958a2 correct location for memory free_list 2026-02-09 21:50:16 +00:00
dec7c42cfd code clean up 2026-02-09 21:44:08 +00:00
3f0105e37e Tweak messaging 2026-02-09 21:14:13 +00:00
3ac35acfca increase stack size 2026-02-09 21:00:25 +00:00
977f63b14f remove redundant comments 2026-02-09 20:59:56 +00:00
175c6ce0f0 Readme update 2026-02-09 20:31:31 +00:00
d655441993 completing GCC required string functions 2026-02-09 20:26:36 +00:00
7125823505 adding new task 2026-02-09 20:03:16 +00:00
00274fc726 update roadmap 2026-02-09 19:36:26 +00:00
b37f890266 rename panic to interrupts to better reflect it's future role 2026-02-09 19:33:11 +00:00
16124277ee Update Roadmap 2026-02-09 19:20:25 +00:00
9e91024f35 formatting 2026-02-09 18:55:51 +00:00
821716adcc cleaning up debugging message to use kprintf 2026-02-09 17:56:49 +00:00
de312ee5fa adding prev to HeapHeader to allow backwards coalescing. 2026-02-09 15:33:11 +00:00
8226764dea fixing double 0x on panic fault address 2026-02-09 15:32:24 +00:00
db74bf9b06 improve panic with heap_stats 2026-02-09 15:06:49 +00:00
798aed2a39 remove duplicate x0 from kprintf. kprint_hex handles that 2026-02-09 14:45:54 +00:00
af57366544 add hex prefix to kprint_hex 2026-02-09 14:25:56 +00:00
b2f5841b39 fix strange unicode character at the end of hex values kprint 2026-02-09 12:56:05 +00:00
0b7aa495a0 adding readme 2026-02-09 03:48:05 +00:00