Define stack alignment required by the architecture's ABI
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 1m3s
Builds / ExectOS (i686) (push) Successful in 1m1s

This commit is contained in:
Aiken Harris 2025-07-28 17:53:50 +02:00 committed by CodingWorkshop Signing Team
parent d2ce921676
commit 2ca708fe43
Signed by: CodingWorkshop Signing Team
GPG Key ID: 6DC88369C82795D2

View File

@ -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