diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-08-27 23:29:53 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-17 15:15:04 +1000 |
commit | e6b6e3ffb9ee8926f9f2f7dc9147df73e27d5828 (patch) | |
tree | ecda5a24187801c1ad46e0d9d90a9fc5f547a52b /arch/ppc/mm | |
parent | 8237bf080e9ef6adc3f2adce26060722685bbb15 (diff) | |
download | blackbird-op-linux-e6b6e3ffb9ee8926f9f2f7dc9147df73e27d5828.tar.gz blackbird-op-linux-e6b6e3ffb9ee8926f9f2f7dc9147df73e27d5828.zip |
[POWERPC] Remove APUS support from arch/ppc
Current status of APUS:
- arch/powerpc/: removed in 2.6.23
- arch/ppc/: marked BROKEN since 2 years
This therefore removes the remaining parts of APUS support from
arch/ppc, include/asm-ppc, arch/powerpc and include/asm-powerpc.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/mm')
-rw-r--r-- | arch/ppc/mm/pgtable.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/ppc/mm/pgtable.c b/arch/ppc/mm/pgtable.c index 35ebb6395ae3..1f51e6c94507 100644 --- a/arch/ppc/mm/pgtable.c +++ b/arch/ppc/mm/pgtable.c @@ -426,41 +426,3 @@ unsigned long iopa(unsigned long addr) return(pa); } -/* This is will find the virtual address for a physical one.... - * Swiped from APUS, could be dangerous :-). - * This is only a placeholder until I really find a way to make this - * work. -- Dan - */ -unsigned long -mm_ptov (unsigned long paddr) -{ - unsigned long ret; -#if 0 - if (paddr < 16*1024*1024) - ret = ZTWO_VADDR(paddr); - else { - int i; - - for (i = 0; i < kmap_chunk_count;){ - unsigned long phys = kmap_chunks[i++]; - unsigned long size = kmap_chunks[i++]; - unsigned long virt = kmap_chunks[i++]; - if (paddr >= phys - && paddr < (phys + size)){ - ret = virt + paddr - phys; - goto exit; - } - } - - ret = (unsigned long) __va(paddr); - } -exit: -#ifdef DEBUGPV - printk ("PTOV(%lx)=%lx\n", paddr, ret); -#endif -#else - ret = (unsigned long)paddr + KERNELBASE; -#endif - return ret; -} - |