]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/vax/bits/setjmp.h
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / vax / bits / setjmp.h
1 /* Define the machine-dependent type `jmp_buf'.  Vax version. */
2
3 #ifndef _SETJMP_H
4 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
5 #endif
6
7 /* we want to save enough that we can use this to fool RET,
8  * So we basically save all of the CALLS stack frame. Plus regs. */
9 #ifndef _ASM
10 typedef int __jmp_buf[16];
11 #endif
12
13 /* Test if longjmp to JMPBUF would unwind the frame
14    containing a local variable at ADDRESS.  */
15 #define _JMPBUF_UNWINDS(jmpbuf, address) \
16   ((void *) (address) < (void *) (jmpbuf[4]))
17 /*
18         jmp_buf layout. jmp_buf[0]
19         void *__cond;            The condition handler
20         void *__psw;             mask and PSW bits
21         void *__ap;              argument pointer
22         void *__fp;              frame pointer
23         void *__pc;              program counter
24                                  no need to save r0
25         void *__r1;              regs, r0->r11.
26         void *__r2;              regs, r0->r11.
27         void *__r3;              regs, r0->r11.
28         void *__r4;              regs, r0->r11.
29         void *__r5;              regs, r0->r11.
30         void *__r6;              regs, r0->r11.
31         void *__r7;              regs, r0->r11.
32         void *__r8;              regs, r0->r11.
33         void *__r9;              regs, r0->r11.
34         void *__rA;              regs, r0->r11.
35         void *__rB;              regs, r0->r11.
36 */
37