diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-18 01:10:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-18 01:10:28 +0000 |
commit | b34e006872e0c6c6f851ca36eda46d01e3ca0e6b (patch) | |
tree | 8206ca5739109e6482643cbea01975601c39b3b0 /libc/sysdeps/linux/i960/bits/setjmp.h | |
parent | 33a9fd74f98749da869c8d649f0a148768205867 (diff) |
Patch from Martin Proulx <mproulx@okiok.com> to support
the i960 architecture.
Diffstat (limited to 'libc/sysdeps/linux/i960/bits/setjmp.h')
-rw-r--r-- | libc/sysdeps/linux/i960/bits/setjmp.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/i960/bits/setjmp.h b/libc/sysdeps/linux/i960/bits/setjmp.h new file mode 100644 index 000000000..29fe2439f --- /dev/null +++ b/libc/sysdeps/linux/i960/bits/setjmp.h @@ -0,0 +1,33 @@ +/* Define the machine-dependent type `jmp_buf'. i960 version. */ + +#ifndef _SETJMP_H +# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead." +#endif + +/* + * assume that every single local and global register + * must be saved. + * + * ___SAVEREGS is the number of quads to save. + * + * Using the structure will guarantee quad-word alignment for the + * jmp_buf type. + */ + +#define ___SAVEREGS 8 + +typedef struct __jmp_buf__ { + long _q0; + long _q1; + long _q2; + long _q3; +} __attribute__ ((aligned (16))) __jmp_buf[___SAVEREGS] ; + +/* I have not yet figured out what this should be for the i960... */ + +#if 0 +/* Test if longjmp to JMPBUF would unwind the frame + containing a local variable at ADDRESS. */ +#define _JMPBUF_UNWINDS(jmpbuf, address) \ + ((void *) (address) < (jmpbuf)[0].__sp) +#endif |