From e58a957f32e0becfe49f313a819087789211a6c2 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 28 Feb 2021 20:39:34 +0100 Subject: arm/arm64 add check for arm proc call std --- lib/arch/arm64/init_stack.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arch/arm64') 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 #include // 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) { -- cgit v1.2.3