1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_IA32_H
3 #define _ASM_X86_IA32_H
6 #ifdef CONFIG_IA32_EMULATION
8 #include <linux/compat.h>
11 * 32 bit structures for IA32 support.
14 #include <uapi/asm/sigcontext.h>
18 struct ucontext_ia32
{
19 unsigned int uc_flags
;
21 compat_stack_t uc_stack
;
22 struct sigcontext_32 uc_mcontext
;
23 compat_sigset_t uc_sigmask
; /* mask last for extensibility */
26 /* This matches struct stat64 in glibc2.2, hence the absolutely
27 * insane amounts of padding around dev_t's.
30 unsigned long long st_dev
;
31 unsigned char __pad0
[4];
33 #define STAT64_HAS_BROKEN_ST_INO 1
34 unsigned int __st_ino
;
37 unsigned int st_nlink
;
42 unsigned long long st_rdev
;
43 unsigned char __pad3
[4];
46 unsigned int st_blksize
;
48 long long st_blocks
;/* Number 512-byte blocks allocated */
51 unsigned st_atime_nsec
;
53 unsigned st_mtime_nsec
;
55 unsigned st_ctime_nsec
;
57 unsigned long long st_ino
;
58 } __attribute__((packed
));
60 #define IA32_STACK_TOP IA32_PAGE_OFFSET
64 extern int ia32_setup_arg_pages(struct linux_binprm
*bprm
,
65 unsigned long stack_top
, int exec_stack
);
67 extern void ia32_pick_mmap_layout(struct mm_struct
*mm
);
71 #endif /* !CONFIG_IA32_SUPPORT */
73 #endif /* _ASM_X86_IA32_H */