:: commit 48691f02a24acad475f6df9e5006f658368053f6

Mintsuki <mintsuki@protonmail.com> — 2026-02-07 08:42

parents: 340f8d43c4

protos/multiboot2: Warn on EFI_BS tag and reject if required

diff --git a/common/protos/multiboot2.c b/common/protos/multiboot2.c
index 34e1c78d..a1ccc26e 100644
--- a/common/protos/multiboot2.c
+++ b/common/protos/multiboot2.c
@@ -231,7 +231,12 @@ noreturn void multiboot2_load(char *config, char* cmdline) {
             }
             // We always align the modules ;^)
             case MULTIBOOT_HEADER_TAG_MODULE_ALIGN:
+                break;
             case MULTIBOOT_HEADER_TAG_EFI_BS:
+                print("multiboot2: Warning: EFI_BS tag requested but not supported\n");
+                if (is_required) {
+                    panic(true, "multiboot2: EFI_BS tag is required but not supported");
+                }
                 break;
 
             case MULTIBOOT_HEADER_TAG_RELOCATABLE: {
tab: 248 wrap: offon