]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
refactor: remove include/multiboot2.h wrapper, use arch/x86/multiboot2.h directly
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:26:38 +0000 (02:26 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:26:38 +0000 (02:26 -0300)
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.

include/multiboot2.h [deleted file]
src/mm/pmm.c

diff --git a/include/multiboot2.h b/include/multiboot2.h
deleted file mode 100644 (file)
index 4162c40..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef MULTIBOOT2_H
-#define MULTIBOOT2_H
-
-#include <stdint.h>
-
-#if defined(__i386__) || defined(__x86_64__)
-#include "arch/x86/multiboot2.h"
-#endif
-#endif /* MULTIBOOT2_H */
index 8410cb898e44c1b135ebe9ab6ed71ce8899e44d1..0806119efafc70c035ece122c110732b679167b6 100644 (file)
@@ -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"