1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 #include <linux/compat.h>
6 #include <asm/siginfo.h>
7 #include <asm/signal.h>
10 * Data types and macros for providing 32b PowerPC support.
13 /* These are here to support 32-bit syscalls on a 64-bit kernel. */
19 unsigned int orig_gpr3; /* Used for restarting system calls */
24 unsigned int mq; /* 601 only (not used at present) */
25 unsigned int trap; /* Reason for being here */
26 unsigned int dar; /* Fault registers */
28 unsigned int result; /* Result of a system call */
32 unsigned int _unused[4];
34 compat_uptr_t handler;
36 compat_uptr_t regs; /* 4 byte pointer to the pt_regs32 structure. */
40 elf_gregset_t32 mc_gregs;
41 elf_fpregset_t mc_fregs;
42 unsigned int mc_pad[2];
43 elf_vrregset_t32 mc_vregs __attribute__((__aligned__(16)));
44 elf_vsrreghalf_t32 mc_vsregs __attribute__((__aligned__(16)));
48 unsigned int uc_flags;
50 compat_stack_t uc_stack;
52 compat_uptr_t uc_regs; /* points to uc_mcontext field */
53 compat_sigset_t uc_sigmask; /* mask last for extensibility */
54 /* glibc has 1024-bit signal masks, ours are 64-bit */
57 struct mcontext32 uc_mcontext;
60 #endif /* _PPC64_PPC32_H */