diff options
Diffstat (limited to 'lib/arch/arm')
-rw-r--r-- | lib/arch/arm/init_stack.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arch/arm/init_stack.cc b/lib/arch/arm/init_stack.cc index 422be64..32d00b5 100644 --- a/lib/arch/arm/init_stack.cc +++ b/lib/arch/arm/init_stack.cc @@ -1,6 +1,10 @@ #include <cassert> #include <cstdint> // uintN_t +#if !defined(__APCS_32__) +static_assert(false, "Must be compiled with the Arm Procedure Call Standard (aapcs32)!"); +#endif + extern "C" void thread_create(); void* init_stack(void* stack_ptr, void (*entry)(void*), const void* ctx) { |