patch-2.3.36 linux/arch/sparc/mm/generic.c
Next file: linux/arch/sparc/mm/init.c
Previous file: linux/arch/sparc/mm/btfixup.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Jan 3 12:01:31 2000
- Orig file:
v2.3.35/linux/arch/sparc/mm/generic.c
- Orig date:
Wed Dec 29 13:13:13 1999
diff -u --recursive --new-file v2.3.35/linux/arch/sparc/mm/generic.c linux/arch/sparc/mm/generic.c
@@ -1,4 +1,4 @@
-/* $Id: generic.c,v 1.8 1999/12/20 05:01:49 davem Exp $
+/* $Id: generic.c,v 1.9 1999/12/27 06:30:03 anton Exp $
* generic.c: Generic Sparc mm routines that are not dependent upon
* MMU type but are Sparc specific.
*
@@ -9,6 +9,7 @@
#include <linux/mm.h>
#include <linux/swap.h>
+#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/page.h>
@@ -27,7 +28,7 @@
free_page_and_swap_cache(mem_map+nr);
return;
}
- swap_free(page);
+ swap_free(pte_to_swp_entry(page));
}
/* Remap IO memory, the same way as remap_page_range(), but use
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])