1 #ifndef _ASM_X86_IA32_H
2 #define _ASM_X86_IA32_H
5 #ifdef CONFIG_IA32_EMULATION
7 #include <linux/compat.h>
10 * 32 bit structures for IA32 support.
13 #include <uapi/asm/sigcontext.h>
17 struct ucontext_ia32
{
18 unsigned int uc_flags
;
20 compat_stack_t uc_stack
;
21 struct sigcontext_32 uc_mcontext
;
22 compat_sigset_t uc_sigmask
; /* mask last for extensibility */
25 /* This matches struct stat64 in glibc2.2, hence the absolutely
26 * insane amounts of padding around dev_t's.
29 unsigned long long st_dev
;
30 unsigned char __pad0
[4];
32 #define STAT64_HAS_BROKEN_ST_INO 1
33 unsigned int __st_ino
;
36 unsigned int st_nlink
;
41 unsigned long long st_rdev
;
42 unsigned char __pad3
[4];
45 unsigned int st_blksize
;
47 long long st_blocks
;/* Number 512-byte blocks allocated */
50 unsigned st_atime_nsec
;
52 unsigned st_mtime_nsec
;
54 unsigned st_ctime_nsec
;
56 unsigned long long st_ino
;
57 } __attribute__((packed
));
59 #define IA32_STACK_TOP IA32_PAGE_OFFSET
63 extern int ia32_setup_arg_pages(struct linux_binprm
*bprm
,
64 unsigned long stack_top
, int exec_stack
);
66 extern void ia32_pick_mmap_layout(struct mm_struct
*mm
);
70 #endif /* !CONFIG_IA32_SUPPORT */
72 #endif /* _ASM_X86_IA32_H */