llvm-mos-sdk
setjmp.h
Go to the documentation of this file.
1 #ifndef _SETJMP_H_
2 #define _SETJMP_H_
3 
4 struct __jmp_buf_tag {
5  void *ret_addr;
6  char s;
7  void *sp;
8  char csrs[14];
9 };
10 
11 typedef struct __jmp_buf_tag jmp_buf[1];
12 
13 // Using preserve-none means that setjmp is only responsible for saving reserved
14 // registers: FP, SP, and S.
15 __attribute__((preserve_none, leaf)) int setjmp(jmp_buf src);
16 void longjmp(jmp_buf dst, int arg);
17 
18 #endif // not _SETJMP_H_
src
const void * src
Definition: memory.h:57
jmp_buf
struct __jmp_buf_tag jmp_buf[1]
Definition: setjmp.h:11
longjmp
void longjmp(jmp_buf dst, int arg)