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