:: commit 2481a3470c3851bdb4dc76209d5b260588db345b

Mintsuki <mintsuki@protonmail.com> — 2025-09-21 19:25

parents: e04194d3ad

protos/linux: Enforce 2MiB alignment for modules for the 64-bit protocol

diff --git a/common/protos/linux_x86.c b/common/protos/linux_x86.c
index d48e40ff..c6f544be 100644
--- a/common/protos/linux_x86.c
+++ b/common/protos/linux_x86.c
@@ -438,7 +438,7 @@ noreturn void linux_load(char *config, char *cmdline) {
                 modules_mem_base = (uintptr_t)ext_mem_alloc_type_aligned_mode(
                     size_of_all_modules,
                     MEMMAP_BOOTLOADER_RECLAIMABLE,
-                    0x100000,
+                    0x200000,
                     true
                 );
                 use_64_bit_proto = true;
tab: 248 wrap: offon