aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/init_32.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-12 15:52:47 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 15:52:47 -0400
commit6439d1c693bae2e7552ceaf16e45a6e819d18873 (patch)
tree3ccd1bfbef1794b6fd45a2e8181659105cc0c0fc /arch/sparc/mm/init_32.c
parent3d8273675d4771d30e1e1c3dbae820dec55a0950 (diff)
sparc32: Un-btfixup PAGE_{NONE,COPY,READONLY,SHARED,KERNEL}.
That lets us also get rid of the run-time initialization of protection_map[] and all the ugly module workarounds for PAGE_KERNEL and PAGE_SHARED to deal with the fact that we can't do btfixups for modular code. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/init_32.c')
-rw-r--r--arch/sparc/mm/init_32.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index 79b215e9b5ca..61f9b7039760 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -44,9 +44,6 @@ EXPORT_SYMBOL(phys_base);
44unsigned long pfn_base; 44unsigned long pfn_base;
45EXPORT_SYMBOL(pfn_base); 45EXPORT_SYMBOL(pfn_base);
46 46
47unsigned long page_kernel;
48EXPORT_SYMBOL(page_kernel);
49
50struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1]; 47struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1];
51unsigned long sparc_unmapped_base; 48unsigned long sparc_unmapped_base;
52 49
@@ -293,9 +290,6 @@ unsigned long __init bootmem_init(unsigned long *pages_avail)
293extern void srmmu_paging_init(void); 290extern void srmmu_paging_init(void);
294extern void device_scan(void); 291extern void device_scan(void);
295 292
296pgprot_t PAGE_SHARED __read_mostly;
297EXPORT_SYMBOL(PAGE_SHARED);
298
299void __init paging_init(void) 293void __init paging_init(void)
300{ 294{
301 switch(sparc_cpu_model) { 295 switch(sparc_cpu_model) {
@@ -315,23 +309,6 @@ void __init paging_init(void)
315 prom_halt(); 309 prom_halt();
316 } 310 }
317 311
318 /* Initialize the protection map with non-constant, MMU dependent values. */
319 protection_map[0] = PAGE_NONE;
320 protection_map[1] = PAGE_READONLY;
321 protection_map[2] = PAGE_COPY;
322 protection_map[3] = PAGE_COPY;
323 protection_map[4] = PAGE_READONLY;
324 protection_map[5] = PAGE_READONLY;
325 protection_map[6] = PAGE_COPY;
326 protection_map[7] = PAGE_COPY;
327 protection_map[8] = PAGE_NONE;
328 protection_map[9] = PAGE_READONLY;
329 protection_map[10] = PAGE_SHARED;
330 protection_map[11] = PAGE_SHARED;
331 protection_map[12] = PAGE_READONLY;
332 protection_map[13] = PAGE_READONLY;
333 protection_map[14] = PAGE_SHARED;
334 protection_map[15] = PAGE_SHARED;
335 btfixup(); 312 btfixup();
336 prom_build_devicetree(); 313 prom_build_devicetree();
337 of_fill_in_cpu_data(); 314 of_fill_in_cpu_data();