diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 07:58:35 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 07:58:35 -0400 |
commit | ab1f9dac6eea25ee59e4c8e1cf0b7476afbbfe07 (patch) | |
tree | 03577652197b5e58c348ede3c474bc8dd47e046c /arch/powerpc/mm/mmu_decl.h | |
parent | 70d64ceaa1a84d2502405422a4dfd3f87786a347 (diff) |
powerpc: Merge arch/ppc64/mm to arch/powerpc/mm
This moves the remaining files in arch/ppc64/mm to arch/powerpc/mm,
and arranges that we use them when compiling with ARCH=ppc64.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/mmu_decl.h')
-rw-r--r-- | arch/powerpc/mm/mmu_decl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h index 06fe8af3af55..a4d7a327c0e5 100644 --- a/arch/powerpc/mm/mmu_decl.h +++ b/arch/powerpc/mm/mmu_decl.h | |||
@@ -22,11 +22,11 @@ | |||
22 | #include <asm/tlbflush.h> | 22 | #include <asm/tlbflush.h> |
23 | #include <asm/mmu.h> | 23 | #include <asm/mmu.h> |
24 | 24 | ||
25 | #ifdef CONFIG_PPC32 | ||
25 | extern void mapin_ram(void); | 26 | extern void mapin_ram(void); |
26 | extern int map_page(unsigned long va, phys_addr_t pa, int flags); | 27 | extern int map_page(unsigned long va, phys_addr_t pa, int flags); |
27 | extern void setbat(int index, unsigned long virt, unsigned long phys, | 28 | extern void setbat(int index, unsigned long virt, unsigned long phys, |
28 | unsigned int size, int flags); | 29 | unsigned int size, int flags); |
29 | extern void reserve_phys_mem(unsigned long start, unsigned long size); | ||
30 | extern void settlbcam(int index, unsigned long virt, phys_addr_t phys, | 30 | extern void settlbcam(int index, unsigned long virt, phys_addr_t phys, |
31 | unsigned int size, int flags, unsigned int pid); | 31 | unsigned int size, int flags, unsigned int pid); |
32 | extern void invalidate_tlbcam_entry(int index); | 32 | extern void invalidate_tlbcam_entry(int index); |
@@ -36,16 +36,16 @@ extern unsigned long ioremap_base; | |||
36 | extern unsigned long ioremap_bot; | 36 | extern unsigned long ioremap_bot; |
37 | extern unsigned int rtas_data, rtas_size; | 37 | extern unsigned int rtas_data, rtas_size; |
38 | 38 | ||
39 | extern unsigned long __max_low_memory; | ||
40 | extern unsigned long __initial_memory_limit; | ||
41 | extern unsigned long total_memory; | ||
42 | extern unsigned long total_lowmem; | ||
43 | extern int mem_init_done; | ||
44 | |||
45 | extern PTE *Hash, *Hash_end; | 39 | extern PTE *Hash, *Hash_end; |
46 | extern unsigned long Hash_size, Hash_mask; | 40 | extern unsigned long Hash_size, Hash_mask; |
47 | 41 | ||
48 | extern unsigned int num_tlbcam_entries; | 42 | extern unsigned int num_tlbcam_entries; |
43 | #endif | ||
44 | |||
45 | extern unsigned long __max_low_memory; | ||
46 | extern unsigned long __initial_memory_limit; | ||
47 | extern unsigned long total_memory; | ||
48 | extern unsigned long total_lowmem; | ||
49 | 49 | ||
50 | /* ...and now those things that may be slightly different between processor | 50 | /* ...and now those things that may be slightly different between processor |
51 | * architectures. -- Dan | 51 | * architectures. -- Dan |
@@ -66,8 +66,8 @@ extern void MMU_init_hw(void); | |||
66 | extern unsigned long mmu_mapin_ram(void); | 66 | extern unsigned long mmu_mapin_ram(void); |
67 | extern void adjust_total_lowmem(void); | 67 | extern void adjust_total_lowmem(void); |
68 | 68 | ||
69 | #else | 69 | #elif defined(CONFIG_PPC32) |
70 | /* anything except 4xx or 8xx */ | 70 | /* anything 32-bit except 4xx or 8xx */ |
71 | extern void MMU_init_hw(void); | 71 | extern void MMU_init_hw(void); |
72 | extern unsigned long mmu_mapin_ram(void); | 72 | extern unsigned long mmu_mapin_ram(void); |
73 | 73 | ||