From: Tulio A M Mendes Date: Tue, 10 Feb 2026 05:26:38 +0000 (-0300) Subject: refactor: remove include/multiboot2.h wrapper, use arch/x86/multiboot2.h directly X-Git-Url: https://projects.tadryanom.me/docs/POSIX_ROADMAP.md?a=commitdiff_plain;h=d5cdfa8ac744d2634b261c554a7298855e347b7c;p=AdrOS.git refactor: remove include/multiboot2.h wrapper, use arch/x86/multiboot2.h directly The generic wrapper include/multiboot2.h only forwarded to arch/x86/multiboot2.h under #if x86. Since Multiboot2 is purely x86/GRUB-specific, the wrapper should not exist in the generic include/ directory. pmm.c now includes arch/x86/multiboot2.h directly (already inside its own #if x86 guard). Passes: make, cppcheck, QEMU smoke test. --- diff --git a/include/multiboot2.h b/include/multiboot2.h deleted file mode 100644 index 4162c40..0000000 --- a/include/multiboot2.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef MULTIBOOT2_H -#define MULTIBOOT2_H - -#include - -#if defined(__i386__) || defined(__x86_64__) -#include "arch/x86/multiboot2.h" -#endif -#endif /* MULTIBOOT2_H */ diff --git a/src/mm/pmm.c b/src/mm/pmm.c index 8410cb8..0806119 100644 --- a/src/mm/pmm.c +++ b/src/mm/pmm.c @@ -1,6 +1,6 @@ #include "pmm.h" #if defined(__i386__) || defined(__x86_64__) -#include "multiboot2.h" +#include "arch/x86/multiboot2.h" #endif #include "utils.h" #include "uart_console.h"