:: commit 5aeaa2a2bece72dae8a72f29a618c75f37a68c13

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 09:18

parents: da98c40f18

sys/smp: Revert AArch64 trampoline allocation to smp_trampoline_size

diff --git a/common/sys/smp.c b/common/sys/smp.c
index 90187f4c..13b29eed 100644
--- a/common/sys/smp.c
+++ b/common/sys/smp.c
@@ -329,8 +329,7 @@ static bool try_start_ap(int boot_method, uint64_t method_ptr,
     // Prepare the trampoline
     static void *trampoline = NULL;
     if (trampoline == NULL) {
-        // AArch64 trampoline expects 0x1000 byte buffer with passed_info at the end
-        trampoline = ext_mem_alloc(0x1000);
+        trampoline = ext_mem_alloc(smp_trampoline_size);
 
         memcpy(trampoline, smp_trampoline_start, smp_trampoline_size);
     }
tab: 248 wrap: offon