diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-10-17 11:17:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-10-19 01:37:11 +0200 |
commit | 312f482d395b591398296b5472a3884a12716cbd (patch) | |
tree | 682402fa4c470d4aa7c1334f7616408779559a8f /libc/sysdeps/linux/lm32/bits/setjmp.h | |
parent | c807e03c88504cf01508daa6dbae9e93dacfcf3c (diff) |
lm32: add new architecture
Add support for FPGA systems from Lattice Semiconductor
http://www.latticesemi.com
Merge https://github.com/m-labs/uclibc-lm32.git
Diffstat (limited to 'libc/sysdeps/linux/lm32/bits/setjmp.h')
-rw-r--r-- | libc/sysdeps/linux/lm32/bits/setjmp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/lm32/bits/setjmp.h b/libc/sysdeps/linux/lm32/bits/setjmp.h new file mode 100644 index 000000000..6798083bd --- /dev/null +++ b/libc/sysdeps/linux/lm32/bits/setjmp.h @@ -0,0 +1,24 @@ +#ifndef _BITS_SETJMP_H +#define _BITS_SETJMP_H 1 + +#if !defined _SETJMP_H && !defined _PTHREAD_H +# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead." +#endif + +#ifndef _ASM +typedef struct + { + int __regs[15]; /* callee-saved registers r11-r25 */ + void *__gp; /* global pointer */ + void *__fp; /* frame pointer */ + void *__sp; /* stack pointer */ + void *__ra; /* return address */ + } __jmp_buf[1]; +#endif + +/* Test if longjmp to JMPBUF would unwind the frame + containing a local variable at ADDRESS. */ +#define _JMPBUF_UNWINDS(jmpbuf, address) \ + ((void *) (address) < (void *) (jmpbuf)[0].__sp) + +#endif |