summaryrefslogtreecommitdiffstats
path: root/arch/ppc/mm/fault.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-12-04 03:58:56 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-12-04 03:58:56 +0000
commit1d67e90f19a7acfd9a05dc59678e7d0c5090bd0d (patch)
tree357efc7b93f8f5102110d20d293f41360ec212fc /arch/ppc/mm/fault.c
parentaea27b2e18d69af87e673972246e66657b4fa274 (diff)
Merge with Linux 2.3.21.
Diffstat (limited to 'arch/ppc/mm/fault.c')
-rw-r--r--arch/ppc/mm/fault.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/ppc/mm/fault.c b/arch/ppc/mm/fault.c
index 524087541..aa4f97acd 100644
--- a/arch/ppc/mm/fault.c
+++ b/arch/ppc/mm/fault.c
@@ -181,38 +181,6 @@ bad_page_fault(struct pt_regs *regs, unsigned long address)
}
#ifdef CONFIG_8xx
-/*
- * I need a va to pte function for the MPC8xx so I can set the cache
- * attributes on individual pages used by the Communication Processor
- * Module.
- */
-pte_t *va_to_pte(struct task_struct *tsk, unsigned long address)
-{
- pgd_t *dir;
- pmd_t *pmd;
- pte_t *pte;
-
- dir = pgd_offset(tsk->mm, address & PAGE_MASK);
- if (dir)
- {
- pmd = pmd_offset(dir, address & PAGE_MASK);
- if (pmd && pmd_present(*pmd))
- {
- pte = pte_offset(pmd, address & PAGE_MASK);
- if (pte && pte_present(*pte))
- {
- return(pte);
- }
- } else
- {
- return (0);
- }
- } else
- {
- return (0);
- }
- return (0);
-}
unsigned long va_to_phys(unsigned long address)
{