Commit Graph

1325 Commits

Author SHA1 Message Date
Mintsuki
727f2114d2 config: Add NUL terminator check in config_get_entry header line scan 2026-03-07 03:28:39 +01:00
Mintsuki
6db4e3f609 protos/linux_risc: Validate kernel header before trusting image_size for allocation 2026-03-07 03:28:39 +01:00
Mintsuki
8f953d27e7 protos/multiboot1: Validate load_end_addr >= load_addr to prevent underflow 2026-03-07 03:28:39 +01:00
Mintsuki
f547a0eea5 sys/lapic: Preserve LAPIC register state across x2APIC-to-xAPIC transition 2026-03-07 03:28:39 +01:00
Mintsuki
16a803ef37 Revert "sys/pic: Reinitialise PICs in pic_flush() to clear stale IRR/ISR state"
This reverts commit bfde2899fc.
2026-02-26 00:53:59 +01:00
Mintsuki
20d5ca7045 sys/lapic: Preserve I/O APIC redirection entries when masking 2026-02-26 00:11:21 +01:00
Mintsuki
5979b35b09 sys/lapic: Preserve LVT entries with SMI/INIT/reserved delivery modes 2026-02-26 00:11:21 +01:00
Mintsuki
7e3d6448b7 sys/pic: Reinitialise PICs in pic_flush() to clear stale IRR/ISR state 2026-02-26 00:11:21 +01:00
Mintsuki
076c8bb154 sys/cpu: Round up stall() tick count for sub-MHz timer frequencies 2026-02-26 00:11:21 +01:00
Mintsuki
d01e32eea5 sys/cpu: Fix rdtsc_usec() intermediate overflow 2026-02-26 00:11:21 +01:00
Mintsuki
a6beb8167f sys/iommu: Remove VT-d polling timeout and fix poll loop order 2026-02-26 00:11:21 +01:00
Mintsuki
b7897f857f sys/cpu: Add memory clobber to rdtsc inline assembly 2026-02-26 00:11:21 +01:00
Mintsuki
9456dcb1d9 sys/smp: Add xAPIC ICR delivery status checks to INIT-SIPI-SIPI sequence 2026-02-26 00:11:21 +01:00
Mintsuki
37eddc6ddb sys/iommu: Fix VT-d disable order to TE, IRE, QIE 2026-02-26 00:11:21 +01:00
Mintsuki
70676a97d3 lib/spinup: Load TR and zero CR3 before protocol entry 2026-02-22 18:31:14 +01:00
Mintsuki
b2c265f2be protos/multiboot: Try to disable x2APIC before kernel entry 2026-02-22 18:31:14 +01:00
Mintsuki
fe4544b612 Revert "sys/exceptions: Remove unnecessary exception number bounds check"
This reverts commit cdc875073c.
2026-02-22 18:31:14 +01:00
Mintsuki
e5d96fbb91 sys/cpu: Fix integer truncation in stall() 2026-02-22 18:31:14 +01:00
Mintsuki
402d4bec47 protos/limine: Try to disable x2APIC when there is no MP request 2026-02-22 18:31:14 +01:00
Mintsuki
f6cbd3b698 protos/limine: Strictly define x86-64 machine state for base revision 5 2026-02-22 18:31:14 +01:00
Mintsuki
928f18905c protos/limine: Implement x86-64 Keep IOMMU feature 2026-02-22 18:31:14 +01:00
Mintsuki
9fed600b1b protos/linux_x86: Do not disable IOMMU due to paranoia 2026-02-22 18:31:14 +01:00
Mintsuki
8df3c7ae5a sys/smp: Try to disable x2APIC when kernel does not support it 2026-02-22 18:31:13 +01:00
Mintsuki
ea41baaf75 protos/limine: Implement base revision 5 2026-02-22 18:31:13 +01:00
Mintsuki
0a2fec6ac6 sys/iommu: Disable Intel VT-d and AMD-Vi IOMMUs before kernel entry 2026-02-22 18:31:13 +01:00
Mintsuki
239bf3ecb4 lib/acpi: Align ACPI table memory map entries to page size where safe 2026-02-19 20:37:36 +01:00
Mintsuki
428e94febe mm/pmm: Prefer allocations below 4GiB on x86 2026-02-19 20:37:36 +01:00
Mintsuki
f1b89ec1bb sys/cpu: Replace cycle-based delay() with calibrated stall() 2026-02-19 20:37:36 +01:00
Mintsuki
229bc85481 drivers/gop: Ensure SetMode is called at least once per GOP handle 2026-02-19 20:37:36 +01:00
Mintsuki
1f9a418511 drivers/gop: Use gop->Mode->Info for pitch instead of QueryMode 2026-02-19 20:37:36 +01:00
Mintsuki
33f0726e24 lib/gterm: Warn and use default font instead of silently overriding font width 2026-02-19 20:37:36 +01:00
Mintsuki
64ee2f4502 lib/misc: Remove unused oct2bin and hex2bin 2026-02-19 20:37:36 +01:00
Mintsuki
e0f56b958f drivers/gop: Remove unnecessary pitch calculation cast 2026-02-19 20:37:36 +01:00
Mintsuki
243405ac5b lib/getchar: Remove arbitrary escape sequence value limit 2026-02-19 20:37:36 +01:00
Mintsuki
ba662d02ea sys/exceptions: Remove unnecessary exception number bounds check 2026-02-19 20:37:36 +01:00
Mintsuki
455aeb4967 lib/elf: Remove arbitrary program header count limit 2026-02-19 20:37:36 +01:00
Mintsuki
f85f86ff42 drivers/disk: Remove sector size whitelist 2026-02-19 20:37:36 +01:00
Mintsuki
903c76b09c pxe/tftp: Remove arbitrary file size cap 2026-02-19 20:37:36 +01:00
Mintsuki
8b9b217b22 mm/pmm: Do not panic on EFI memory descriptor size overflow 2026-02-19 20:37:36 +01:00
Mintsuki
cea184b286 menu: Fall back to text console instead of panicking on small terminals 2026-02-19 20:37:36 +01:00
Mintsuki
66fe9a7cce drivers/vbe: Remove unnecessary EDID resolution bounds check 2026-02-19 20:37:36 +01:00
Mintsuki
38cebea808 drivers/vbe: Skip modes with invalid pitch values 2026-02-19 20:37:36 +01:00
Mintsuki
0996767811 drivers/gop: Skip modes with invalid pitch values 2026-02-19 20:37:36 +01:00
Mintsuki
ae26da03a1 lib/memory: Use uintptr_t for pointer comparisons in memmove 2026-02-19 20:37:36 +01:00
Mintsuki
a96c4009c6 lib/gterm: Fix font autoscaling not resetting per display 2026-02-19 20:37:36 +01:00
Mintsuki
0922fafe4b lib/print: Improve \n -> \r\n handling from last commit 2026-02-10 11:10:03 +01:00
Mintsuki
904c75e208 lib/print: Update Flanterm subproject and handle carriage return 2026-02-10 11:10:03 +01:00
Mintsuki
a2fc8af1e3 drivers/disk: Move BlockSize and LastBlock validation before volume allocation 2026-02-10 11:10:03 +01:00
Mintsuki
e7398d8fb5 sys/smp: Use smp_trampoline_size for AArch64 cache maintenance range 2026-02-10 11:10:03 +01:00
Mintsuki
77ecb23961 mm/pmm: Fix missing m[i] update before break in full-containment sanitiser path 2026-02-10 11:10:03 +01:00