arch/arm/include/setjmp.h: Add prototypes for setjmp/longjmp functions.

This commit is contained in:
Xiang Xiao 2019-11-17 08:36:05 -06:00 committed by Gregory Nutt
parent 4c524407ea
commit 8f05cc560b

View File

@ -42,12 +42,11 @@
#include <nuttx/config.h>
#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 */