From 2ca708fe4372097f8d5dc54136f8d17169342298 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Mon, 28 Jul 2025 17:53:50 +0200 Subject: [PATCH] Define stack alignment required by the architecture's ABI --- sdk/xtdk/xttarget.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/xtdk/xttarget.h b/sdk/xtdk/xttarget.h index 5eb5e5e..bbd2656 100644 --- a/sdk/xtdk/xttarget.h +++ b/sdk/xtdk/xttarget.h @@ -29,6 +29,7 @@ #define MEMORY_ALIGNMENT 8 #define MM_USERPAGE_TABLES 1536 #define MM_VIRTUAL_PAGESIZE 20 + #define STACK_ALIGNMENT 4 #elif defined(__amd64__) || defined(__x86_64__) #define _ARCH amd64 #define _ARCH_AMD64 1 @@ -43,6 +44,7 @@ #define MEMORY_ALIGNMENT 16 #define MM_USERPAGE_TABLES 4194304 #define MM_VIRTUAL_PAGESIZE 52 + #define STACK_ALIGNMENT 16 #else #error Unknown architecture #endif