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/pgtable_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/pgtable_64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_64.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index 724f97e5dee5..484d24f9208b 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c | |||
@@ -67,30 +67,9 @@ | |||
67 | #include <asm/vdso.h> | 67 | #include <asm/vdso.h> |
68 | #include <asm/imalloc.h> | 68 | #include <asm/imalloc.h> |
69 | 69 | ||
70 | #if PGTABLE_RANGE > USER_VSID_RANGE | ||
71 | #warning Limited user VSID range means pagetable space is wasted | ||
72 | #endif | ||
73 | |||
74 | #if (TASK_SIZE_USER64 < PGTABLE_RANGE) && (TASK_SIZE_USER64 < USER_VSID_RANGE) | ||
75 | #warning TASK_SIZE is smaller than it needs to be. | ||
76 | #endif | ||
77 | |||
78 | int mem_init_done; | ||
79 | unsigned long ioremap_bot = IMALLOC_BASE; | 70 | unsigned long ioremap_bot = IMALLOC_BASE; |
80 | static unsigned long phbs_io_bot = PHBS_IO_BASE; | 71 | static unsigned long phbs_io_bot = PHBS_IO_BASE; |
81 | 72 | ||
82 | extern pgd_t swapper_pg_dir[]; | ||
83 | extern struct task_struct *current_set[NR_CPUS]; | ||
84 | |||
85 | unsigned long klimit = (unsigned long)_end; | ||
86 | |||
87 | /* max amount of RAM to use */ | ||
88 | unsigned long __max_memory; | ||
89 | |||
90 | /* info on what we think the IO hole is */ | ||
91 | unsigned long io_hole_start; | ||
92 | unsigned long io_hole_size; | ||
93 | |||
94 | #ifdef CONFIG_PPC_ISERIES | 73 | #ifdef CONFIG_PPC_ISERIES |
95 | 74 | ||
96 | void __iomem *ioremap(unsigned long addr, unsigned long size) | 75 | void __iomem *ioremap(unsigned long addr, unsigned long size) |
@@ -355,3 +334,16 @@ int iounmap_explicit(volatile void __iomem *start, unsigned long size) | |||
355 | EXPORT_SYMBOL(ioremap); | 334 | EXPORT_SYMBOL(ioremap); |
356 | EXPORT_SYMBOL(__ioremap); | 335 | EXPORT_SYMBOL(__ioremap); |
357 | EXPORT_SYMBOL(iounmap); | 336 | EXPORT_SYMBOL(iounmap); |
337 | |||
338 | void __iomem * reserve_phb_iospace(unsigned long size) | ||
339 | { | ||
340 | void __iomem *virt_addr; | ||
341 | |||
342 | if (phbs_io_bot >= IMALLOC_BASE) | ||
343 | panic("reserve_phb_iospace(): phb io space overflow\n"); | ||
344 | |||
345 | virt_addr = (void __iomem *) phbs_io_bot; | ||
346 | phbs_io_bot += size; | ||
347 | |||
348 | return virt_addr; | ||
349 | } | ||