summaryrefslogtreecommitdiffstats
path: root/arch/ppc/mm/fault.c
diff options
context:
space:
mode:
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)
{