Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _M68KNOMMU_UCONTEXT_H |
| 2 | #define _M68KNOMMU_UCONTEXT_H |
| 3 | |
| 4 | typedef int greg_t; |
| 5 | #define NGREG 18 |
| 6 | typedef greg_t gregset_t[NGREG]; |
| 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | typedef struct fpregset { |
| 9 | int f_pcr; |
| 10 | int f_psr; |
| 11 | int f_fpiaddr; |
| 12 | int f_fpregs[8][3]; |
| 13 | } fpregset_t; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | struct mcontext { |
| 16 | int version; |
| 17 | gregset_t gregs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | fpregset_t fpregs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | #define MCONTEXT_VERSION 2 |
| 22 | |
| 23 | struct ucontext { |
| 24 | unsigned long uc_flags; |
| 25 | struct ucontext *uc_link; |
| 26 | stack_t uc_stack; |
| 27 | struct mcontext uc_mcontext; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | unsigned long uc_filler[80]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | sigset_t uc_sigmask; /* mask last for extensibility */ |
| 30 | }; |
| 31 | |
| 32 | #endif |