diff options
-rw-r--r-- | arch/sh/include/asm/mmu.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h index 6c43625bb1a5..f5963037c9d6 100644 --- a/arch/sh/include/asm/mmu.h +++ b/arch/sh/include/asm/mmu.h | |||
@@ -1,22 +1,6 @@ | |||
1 | #ifndef __MMU_H | 1 | #ifndef __MMU_H |
2 | #define __MMU_H | 2 | #define __MMU_H |
3 | 3 | ||
4 | /* Default "unsigned long" context */ | ||
5 | typedef unsigned long mm_context_id_t[NR_CPUS]; | ||
6 | |||
7 | typedef struct { | ||
8 | #ifdef CONFIG_MMU | ||
9 | mm_context_id_t id; | ||
10 | void *vdso; | ||
11 | #else | ||
12 | unsigned long end_brk; | ||
13 | #endif | ||
14 | #ifdef CONFIG_BINFMT_ELF_FDPIC | ||
15 | unsigned long exec_fdpic_loadmap; | ||
16 | unsigned long interp_fdpic_loadmap; | ||
17 | #endif | ||
18 | } mm_context_t; | ||
19 | |||
20 | /* | 4 | /* |
21 | * Privileged Space Mapping Buffer (PMB) definitions | 5 | * Privileged Space Mapping Buffer (PMB) definitions |
22 | */ | 6 | */ |
@@ -41,6 +25,24 @@ typedef struct { | |||
41 | 25 | ||
42 | #define PMB_NO_ENTRY (-1) | 26 | #define PMB_NO_ENTRY (-1) |
43 | 27 | ||
28 | #ifndef __ASSEMBLY__ | ||
29 | |||
30 | /* Default "unsigned long" context */ | ||
31 | typedef unsigned long mm_context_id_t[NR_CPUS]; | ||
32 | |||
33 | typedef struct { | ||
34 | #ifdef CONFIG_MMU | ||
35 | mm_context_id_t id; | ||
36 | void *vdso; | ||
37 | #else | ||
38 | unsigned long end_brk; | ||
39 | #endif | ||
40 | #ifdef CONFIG_BINFMT_ELF_FDPIC | ||
41 | unsigned long exec_fdpic_loadmap; | ||
42 | unsigned long interp_fdpic_loadmap; | ||
43 | #endif | ||
44 | } mm_context_t; | ||
45 | |||
44 | struct pmb_entry; | 46 | struct pmb_entry; |
45 | 47 | ||
46 | struct pmb_entry { | 48 | struct pmb_entry { |
@@ -70,6 +72,7 @@ void pmb_free(struct pmb_entry *pmbe); | |||
70 | long pmb_remap(unsigned long virt, unsigned long phys, | 72 | long pmb_remap(unsigned long virt, unsigned long phys, |
71 | unsigned long size, unsigned long flags); | 73 | unsigned long size, unsigned long flags); |
72 | void pmb_unmap(unsigned long addr); | 74 | void pmb_unmap(unsigned long addr); |
75 | #endif /* __ASSEMBLY__ */ | ||
73 | 76 | ||
74 | #endif /* __MMU_H */ | 77 | #endif /* __MMU_H */ |
75 | 78 | ||