Path: blob/master/arch/powerpc/include/uapi/asm/ucontext.h
26516 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _ASM_POWERPC_UCONTEXT_H2#define _ASM_POWERPC_UCONTEXT_H34#ifdef __powerpc64__5#include <asm/sigcontext.h>6#else7#include <asm/elf.h>8#endif9#include <asm/signal.h>1011#ifndef __powerpc64__12struct mcontext {13elf_gregset_t mc_gregs;14elf_fpregset_t mc_fregs;15unsigned long mc_pad[2];16elf_vrregset_t mc_vregs __attribute__((__aligned__(16)));17};18#endif1920struct ucontext {21unsigned long uc_flags;22struct ucontext __user *uc_link;23stack_t uc_stack;24#ifndef __powerpc64__25int uc_pad[7];26struct mcontext __user *uc_regs;/* points to uc_mcontext field */27#endif28sigset_t uc_sigmask;29/* glibc has 1024-bit signal masks, ours are 64-bit */30#ifdef __powerpc64__31sigset_t __unused[15]; /* Allow for uc_sigmask growth */32struct sigcontext uc_mcontext; /* last for extensibility */33#else34int uc_maskext[30];35int uc_pad2[3];36struct mcontext uc_mcontext;37#endif38};3940#endif /* _ASM_POWERPC_UCONTEXT_H */414243