aboutsummaryrefslogtreecommitdiff
path: root/lib/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arch/arm64')
-rw-r--r--lib/arch/arm64/init_stack.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arch/arm64/init_stack.cc b/lib/arch/arm64/init_stack.cc
index f00320b..1153737 100644
--- a/lib/arch/arm64/init_stack.cc
+++ b/lib/arch/arm64/init_stack.cc
@@ -1,6 +1,10 @@
#include <cassert>
#include <cstdint> // uintN_t
+#if !defined(__ARM_PCS_AAPCS64)
+static_assert(false, "Must be compiled with the Arm64 Procedure Call Standard (aapcs64)!");
+#endif
+
extern "C" void thread_create();
void* init_stack(void* stack_ptr, void (*entry)(void*), const void* ctx) {