Commit Graph

24 Commits

Author SHA1 Message Date
Mintsuki
e0b5fd0d21 sys/cpu_riscv: Validate RHCT hart_info offsets array bounds 2026-04-19 00:36:18 +02:00
Mintsuki
9d3e231834 sys/cpu: Replace cycle-based delay() with calibrated stall() 2026-02-17 08:07:11 +01:00
Mintsuki
f6de46a7fc sys/cpu: Use rdtime and time_base_frequency for RISC-V performance timing 2026-02-09 13:02:39 +01:00
Mintsuki
f1167da7a9 misc: Fix wrong format specifiers for 64-bit arguments in print calls 2026-02-09 13:02:39 +01:00
Mintsuki
3a609b166a mm/vmm: Use firmware-reported MMU type instead of satp probe on RISC-V 2026-02-09 13:02:39 +01:00
Mintsuki
36f242ce3c sys/cpu_riscv: Skip re-init when config unchanged to prevent FDT use-after-free 2026-02-09 13:02:38 +01:00
Mintsuki
5134bd97e5 madt: Add entry length validation to prevent infinite loop 2026-01-13 01:03:08 +01:00
Mintsuki
340e1e1e64 cpu_riscv: Add complete bounds validation for RHCT ISA string and MMU nodes 2026-01-13 01:03:08 +01:00
Mintsuki
3f30da7e12 cpu_riscv: Add bounds checks for RHCT table parsing 2026-01-12 01:46:18 +01:00
Mintsuki
f3d037b921 smp: Fix MADT bounds check, PSCI NULL check, and AArch64 trampoline size 2026-01-12 01:46:18 +01:00
Mintsuki
1cbc9f7a8d sys/cpu_riscv: Add missing continue after invalid ISA string check 2026-01-05 05:44:08 +01:00
Mintsuki
1e43c13bb2 riscv: Simplify logic of code added in 051bb27ed0 2025-11-30 01:13:02 +01:00
Mintsuki
051bb27ed0 riscv: Prioritise CPU init with ACPI unless DTB manually overridden 2025-11-30 00:56:07 +01:00
Mintsuki
7d90dcb97a riscv: Fix use-after-free bug related to DTB initialisation 2025-11-29 15:37:22 +01:00
Mintsuki
5460569106 riscv: Do an early RISC-V init to allow checking ISA features early 2025-11-29 09:51:56 +01:00
Mintsuki
8620b970e9 misc: Prevent some memory leaks after get_device_tree_blob(..., 0) made to allocate 2025-10-13 12:22:55 +02:00
Mintsuki
996a0c1801 misc: Move to using separate libfdt repository 2025-07-12 12:08:05 +02:00
Kacper Słomiński
945c43de0d lib: Move DTB_PATH handling logic into common code 2024-12-24 17:10:47 +01:00
mintsuki
68ad2db755 dtb: Fix bugs introduced in cc05481b89 2024-06-28 01:01:21 +02:00
mintsuki
45e036275a dtb: Optionally reallocate and expand DTB memory as needed 2024-06-28 00:43:27 +02:00
xvanc
65e2c1b4d8 riscv: add support for device tree 2024-05-30 10:53:21 -05:00
xvanc
f4bfe1289a riscv: skip rv{32,64} prefix when parsing extensions from isa strings 2023-09-16 11:28:15 -05:00
xvanc
90b82dc43f riscv/vmm: use Svpbmt extension when available 2023-09-16 11:28:15 -05:00
xvanc
f33732a2e5 riscv: implement feature dectection 2023-09-16 11:21:17 -05:00