diff options
-rw-r--r-- | include/asm-arm/elf.h | 18 | ||||
-rw-r--r-- | include/asm-arm/page.h | 4 |
2 files changed, 10 insertions, 12 deletions
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h index ae7baa6c73f7..17f0c656d272 100644 --- a/include/asm-arm/elf.h +++ b/include/asm-arm/elf.h | |||
@@ -8,9 +8,6 @@ | |||
8 | 8 | ||
9 | #include <asm/ptrace.h> | 9 | #include <asm/ptrace.h> |
10 | #include <asm/user.h> | 10 | #include <asm/user.h> |
11 | #ifdef __KERNEL | ||
12 | #include <asm/procinfo.h> | ||
13 | #endif | ||
14 | 11 | ||
15 | typedef unsigned long elf_greg_t; | 12 | typedef unsigned long elf_greg_t; |
16 | typedef unsigned long elf_freg_t[3]; | 13 | typedef unsigned long elf_freg_t[3]; |
@@ -32,11 +29,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | |||
32 | typedef struct user_fp elf_fpregset_t; | 29 | typedef struct user_fp elf_fpregset_t; |
33 | 30 | ||
34 | /* | 31 | /* |
35 | * This is used to ensure we don't load something for the wrong architecture. | ||
36 | */ | ||
37 | #define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) ) | ||
38 | |||
39 | /* | ||
40 | * These are used to set parameters in the core dumps. | 32 | * These are used to set parameters in the core dumps. |
41 | */ | 33 | */ |
42 | #define ELF_CLASS ELFCLASS32 | 34 | #define ELF_CLASS ELFCLASS32 |
@@ -47,6 +39,14 @@ typedef struct user_fp elf_fpregset_t; | |||
47 | #endif | 39 | #endif |
48 | #define ELF_ARCH EM_ARM | 40 | #define ELF_ARCH EM_ARM |
49 | 41 | ||
42 | #ifdef __KERNEL__ | ||
43 | #include <asm/procinfo.h> | ||
44 | |||
45 | /* | ||
46 | * This is used to ensure we don't load something for the wrong architecture. | ||
47 | */ | ||
48 | #define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) ) | ||
49 | |||
50 | #define USE_ELF_CORE_DUMP | 50 | #define USE_ELF_CORE_DUMP |
51 | #define ELF_EXEC_PAGESIZE 4096 | 51 | #define ELF_EXEC_PAGESIZE 4096 |
52 | 52 | ||
@@ -83,8 +83,6 @@ typedef struct user_fp elf_fpregset_t; | |||
83 | extern char elf_platform[]; | 83 | extern char elf_platform[]; |
84 | #define ELF_PLATFORM (elf_platform) | 84 | #define ELF_PLATFORM (elf_platform) |
85 | 85 | ||
86 | #ifdef __KERNEL__ | ||
87 | |||
88 | /* | 86 | /* |
89 | * 32-bit code is always OK. Some cpus can do 26-bit, some can't. | 87 | * 32-bit code is always OK. Some cpus can do 26-bit, some can't. |
90 | */ | 88 | */ |
diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index b721270b9986..02bd3ee935b0 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h | |||
@@ -11,13 +11,13 @@ | |||
11 | #define _ASMARM_PAGE_H | 11 | #define _ASMARM_PAGE_H |
12 | 12 | ||
13 | 13 | ||
14 | #ifdef __KERNEL__ | ||
15 | |||
14 | /* PAGE_SHIFT determines the page size */ | 16 | /* PAGE_SHIFT determines the page size */ |
15 | #define PAGE_SHIFT 12 | 17 | #define PAGE_SHIFT 12 |
16 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 18 | #define PAGE_SIZE (1UL << PAGE_SHIFT) |
17 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 19 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
18 | 20 | ||
19 | #ifdef __KERNEL__ | ||
20 | |||
21 | /* to align the pointer to the (next) page boundary */ | 21 | /* to align the pointer to the (next) page boundary */ |
22 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) | 22 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) |
23 | 23 | ||