blob: 713a27f901cdb7b717dbeead3ae85baffa3248c4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _M68KNOMMU_UCONTEXT_H
2#define _M68KNOMMU_UCONTEXT_H
3
4typedef int greg_t;
5#define NGREG 18
6typedef greg_t gregset_t[NGREG];
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008typedef struct fpregset {
9 int f_pcr;
10 int f_psr;
11 int f_fpiaddr;
12 int f_fpregs[8][3];
13} fpregset_t;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15struct mcontext {
16 int version;
17 gregset_t gregs;
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 fpregset_t fpregs;
Linus Torvalds1da177e2005-04-16 15:20:36 -070019};
20
21#define MCONTEXT_VERSION 2
22
23struct ucontext {
24 unsigned long uc_flags;
25 struct ucontext *uc_link;
26 stack_t uc_stack;
27 struct mcontext uc_mcontext;
Linus Torvalds1da177e2005-04-16 15:20:36 -070028 unsigned long uc_filler[80];
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 sigset_t uc_sigmask; /* mask last for extensibility */
30};
31
32#endif