]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
refactor: guard multiboot2.h include in pmm.c with #if x86
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:30:39 +0000 (01:30 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:30:39 +0000 (01:30 -0300)
commit58010c57473d8a576195046e26f4f79499361fa6
tree25afbd8f6f77af8c16805c84ab6681bb46c39bab
parentc42c5d1cb7ffe458e604242b01156e2a8ddb1ad8
refactor: guard multiboot2.h include in pmm.c with #if x86

multiboot2.h is an x86/GRUB boot protocol header. pmm.c (generic
mm/ code) included it unconditionally even though all Multiboot2
usage is already inside #if x86 blocks. Guard the include so it
is not pulled in on ARM/RISC-V/MIPS builds.

Passes: make, cppcheck, QEMU smoke test.
src/mm/pmm.c