diff --git a/arch/arm/include/setjmp.h b/arch/arm/include/setjmp.h index c90bdd78fb..d7854d0635 100644 --- a/arch/arm/include/setjmp.h +++ b/arch/arm/include/setjmp.h @@ -42,12 +42,11 @@ #include -#ifdef CONFIG_ARCH_ARMV7M - /**************************************************************************** * Public Types ****************************************************************************/ +#ifdef CONFIG_ARCH_ARMV7M struct setjmp_buf_s { /* Note: core registers r0-r3 are caller-saved */ @@ -95,4 +94,11 @@ typedef struct setjmp_buf_s jmp_buf[1]; # error "setjmp() not compiled!" #endif /* CONFIG_ARCH_ARMV7M */ +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +int setjmp(jmp_buf env); +void longjmp(jmp_buf env, int val) noreturn_function; + #endif /* __ARCH_ARM_INCLUDE_SETJUMP_H */