Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/mm
In directory usw-pr-cvs1:/tmp/cvs-serv27320
Modified Files:
pgalloc.c
Log Message:
Include last remaining functions from pgalloc.h that need special treatment.
Fixup freeing of pages from pte cache to free correct addresses.
Index: pgalloc.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/mm/pgalloc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pgalloc.c 2001/08/21 20:09:34 1.4
+++ pgalloc.c 2001/08/23 09:27:01 1.5
@@ -566,6 +566,23 @@
remap_pte_invalidate(pte);
}
+/* we don't allocate any space for pte, just clear the one passed to us */
+void free_pte_slow(pte_t *pte)
+{
+ free_page((unsigned long) get_pageaddr_from_pte(pte));
+ /* invalidate the S0 pte that maps this */
+ remap_pte_invalidate(pte);
+}
+
+void pte_free_kernel(pte_t *pte)
+{
+#ifdef VAX_MM_PGALLOC_DEBUG
+ printk(KERN_DEBUG "VAXMM: pte_free_kernel called on pte %8p\n",pte);
+#endif
+ printk(KERN_DEBUG "VAXMM: pte_free_kernel called on pte %8p\n",pte);
+ free_pte_fast(pte);
+}
+
/* Find an entry in the third-level page table.. */
#ifdef VAX_MM_PGALLOC_DEBUG
pte_t * pte_offset(pmd_t * dir, unsigned long address)
|