patch-2.3.20 linux/arch/ppc/mm/fault.c
Next file: linux/arch/ppc/mm/init.c
Previous file: linux/arch/ppc/mbxboot/qspan_pci.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Oct 7 10:17:09 1999
- Orig file:
v2.3.19/linux/arch/ppc/mm/fault.c
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.19/linux/arch/ppc/mm/fault.c linux/arch/ppc/mm/fault.c
@@ -181,38 +181,6 @@
}
#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)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)