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/init_64.c | |
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/init_64.c')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index c0ce6a7af3c7..b0fc822ec29f 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -73,18 +73,8 @@ | |||
73 | #warning TASK_SIZE is smaller than it needs to be. | 73 | #warning TASK_SIZE is smaller than it needs to be. |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | int mem_init_done; | ||
77 | unsigned long ioremap_bot = IMALLOC_BASE; | ||
78 | static unsigned long phbs_io_bot = PHBS_IO_BASE; | ||
79 | |||
80 | extern pgd_t swapper_pg_dir[]; | ||
81 | extern struct task_struct *current_set[NR_CPUS]; | ||
82 | |||
83 | unsigned long klimit = (unsigned long)_end; | 76 | unsigned long klimit = (unsigned long)_end; |
84 | 77 | ||
85 | unsigned long _SDR1=0; | ||
86 | unsigned long _ASR=0; | ||
87 | |||
88 | /* max amount of RAM to use */ | 78 | /* max amount of RAM to use */ |
89 | unsigned long __max_memory; | 79 | unsigned long __max_memory; |
90 | 80 | ||
@@ -193,19 +183,6 @@ static int __init setup_kcore(void) | |||
193 | } | 183 | } |
194 | module_init(setup_kcore); | 184 | module_init(setup_kcore); |
195 | 185 | ||
196 | void __iomem * reserve_phb_iospace(unsigned long size) | ||
197 | { | ||
198 | void __iomem *virt_addr; | ||
199 | |||
200 | if (phbs_io_bot >= IMALLOC_BASE) | ||
201 | panic("reserve_phb_iospace(): phb io space overflow\n"); | ||
202 | |||
203 | virt_addr = (void __iomem *) phbs_io_bot; | ||
204 | phbs_io_bot += size; | ||
205 | |||
206 | return virt_addr; | ||
207 | } | ||
208 | |||
209 | static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags) | 186 | static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags) |
210 | { | 187 | { |
211 | memset(addr, 0, kmem_cache_size(cache)); | 188 | memset(addr, 0, kmem_cache_size(cache)); |
@@ -244,16 +221,3 @@ void pgtable_cache_init(void) | |||
244 | name); | 221 | name); |
245 | } | 222 | } |
246 | } | 223 | } |
247 | |||
248 | pgprot_t phys_mem_access_prot(struct file *file, unsigned long addr, | ||
249 | unsigned long size, pgprot_t vma_prot) | ||
250 | { | ||
251 | if (ppc_md.phys_mem_access_prot) | ||
252 | return ppc_md.phys_mem_access_prot(file, addr, size, vma_prot); | ||
253 | |||
254 | if (!page_is_ram(addr >> PAGE_SHIFT)) | ||
255 | vma_prot = __pgprot(pgprot_val(vma_prot) | ||
256 | | _PAGE_GUARDED | _PAGE_NO_CACHE); | ||
257 | return vma_prot; | ||
258 | } | ||
259 | EXPORT_SYMBOL(phys_mem_access_prot); | ||