x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / x86 / include / asm / ia32.h
blobd0e8e0141041e95a127c3d1dbe188f6d040a5897
1 #ifndef _ASM_X86_IA32_H
2 #define _ASM_X86_IA32_H
5 #ifdef CONFIG_IA32_EMULATION
7 #include <linux/compat.h>
9 /*
10 * 32 bit structures for IA32 support.
13 #include <asm/sigcontext32.h>
15 /* signal.h */
17 struct ucontext_ia32 {
18 unsigned int uc_flags;
19 unsigned int uc_link;
20 compat_stack_t uc_stack;
21 struct sigcontext_ia32 uc_mcontext;
22 compat_sigset_t uc_sigmask; /* mask last for extensibility */
25 struct ucontext_x32 {
26 unsigned int uc_flags;
27 unsigned int uc_link;
28 compat_stack_t uc_stack;
29 unsigned int uc__pad0; /* needed for alignment */
30 struct sigcontext uc_mcontext; /* the 64-bit sigcontext type */
31 compat_sigset_t uc_sigmask; /* mask last for extensibility */
34 /* This matches struct stat64 in glibc2.2, hence the absolutely
35 * insane amounts of padding around dev_t's.
37 struct stat64 {
38 unsigned long long st_dev;
39 unsigned char __pad0[4];
41 #define STAT64_HAS_BROKEN_ST_INO 1
42 unsigned int __st_ino;
44 unsigned int st_mode;
45 unsigned int st_nlink;
47 unsigned int st_uid;
48 unsigned int st_gid;
50 unsigned long long st_rdev;
51 unsigned char __pad3[4];
53 long long st_size;
54 unsigned int st_blksize;
56 long long st_blocks;/* Number 512-byte blocks allocated */
58 unsigned st_atime;
59 unsigned st_atime_nsec;
60 unsigned st_mtime;
61 unsigned st_mtime_nsec;
62 unsigned st_ctime;
63 unsigned st_ctime_nsec;
65 unsigned long long st_ino;
66 } __attribute__((packed));
68 #define IA32_STACK_TOP IA32_PAGE_OFFSET
70 #ifdef __KERNEL__
71 struct linux_binprm;
72 extern int ia32_setup_arg_pages(struct linux_binprm *bprm,
73 unsigned long stack_top, int exec_stack);
74 struct mm_struct;
75 extern void ia32_pick_mmap_layout(struct mm_struct *mm);
77 #endif
79 #endif /* !CONFIG_IA32_SUPPORT */
81 #endif /* _ASM_X86_IA32_H */