patch-2.4.0-test6 linux/include/asm-sparc64/pgalloc.h

Next file: linux/include/asm-sparc64/pgtable.h
Previous file: linux/include/asm-sparc64/page.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-sparc64/pgalloc.h linux/include/asm-sparc64/pgalloc.h
@@ -21,6 +21,8 @@
 /* These operations are unnecessary on the SpitFire since D-CACHE is write-through. */
 #define flush_icache_range(start, end)		do { } while (0)
 #define flush_page_to_ram(page)			do { } while (0)
+extern void __flush_dcache_page(void *addr);
+#define flush_dcache_page(page)	__flush_dcache_page((page)->virtual)
 
 extern void __flush_dcache_range(unsigned long start, unsigned long end);
 
@@ -123,7 +125,7 @@
 
 extern __inline__ void free_pgd_fast(pgd_t *pgd)
 {
-	struct page *page = mem_map + MAP_NR(pgd);
+	struct page *page = virt_to_page(pgd);
 
 	if (!page->pprev_hash) {
 		(unsigned long *)page->next_hash = pgd_quicklist;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)