]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: replace hardcoded 0xC0000000 in syscall.c with hal_mm_kernel_virt_base()
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:08:02 +0000 (01:08 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:08:02 +0000 (01:08 -0300)
commit3432bdd7e2bc1a194f4290cf7986149c00f5f51b
tree20ac55193911b22f515ffc567781506343e56b09
parent71ff37a31ea1057b5372674304c87cc23ab8fba3
fix: replace hardcoded 0xC0000000 in syscall.c with hal_mm_kernel_virt_base()

sys_brk and mmap used hardcoded 0xC0000000U (x86 kernel virtual
base) for bounds checking. Replace with hal_mm_kernel_virt_base()
so the code is architecture-independent.

Passes: make, cppcheck, QEMU smoke test.
src/kernel/syscall.c