Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x32: Add struct ucontext_x32

Add a definition for struct ucontext_x32; this is inherently a mix of
the 32- and 64-bit versions.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by

H. J. Lu and committed by
H. Peter Anvin
4048e2a8 85139422

+9
+9
arch/x86/include/asm/ia32.h
··· 43 43 compat_sigset_t uc_sigmask; /* mask last for extensibility */ 44 44 }; 45 45 46 + struct ucontext_x32 { 47 + unsigned int uc_flags; 48 + unsigned int uc_link; 49 + stack_ia32_t uc_stack; 50 + unsigned int uc__pad0; /* needed for alignment */ 51 + struct sigcontext uc_mcontext; /* the 64-bit sigcontext type */ 52 + compat_sigset_t uc_sigmask; /* mask last for extensibility */ 53 + }; 54 + 46 55 /* This matches struct stat64 in glibc2.2, hence the absolutely 47 56 * insane amounts of padding around dev_t's. 48 57 */