xref: /openbmc/linux/arch/m68k/include/asm/ucontext.h (revision b2441318)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _M68K_UCONTEXT_H
3 #define _M68K_UCONTEXT_H
4 
5 typedef int greg_t;
6 #define NGREG 18
7 typedef greg_t gregset_t[NGREG];
8 
9 typedef struct fpregset {
10 	int f_fpcntl[3];
11 	int f_fpregs[8*3];
12 } fpregset_t;
13 
14 struct mcontext {
15 	int version;
16 	gregset_t gregs;
17 	fpregset_t fpregs;
18 };
19 
20 #define MCONTEXT_VERSION 2
21 
22 struct ucontext {
23 	unsigned long	  uc_flags;
24 	struct ucontext  *uc_link;
25 	stack_t		  uc_stack;
26 	struct mcontext	  uc_mcontext;
27 	unsigned long	  uc_filler[80];
28 	sigset_t	  uc_sigmask;	/* mask last for extensibility */
29 };
30 
31 #endif
32