patch-2.4.0-test12 linux/include/asm-mips64/pgtable.h

Next file: linux/include/asm-mips64/processor.h
Previous file: linux/include/asm-mips64/pgalloc.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test11/linux/include/asm-mips64/pgtable.h linux/include/asm-mips64/pgtable.h
@@ -526,7 +526,7 @@
 #define swp_entry_to_pte(x)	((pte_t) { (x).val })
 
 /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
-#define PageSkip(page)		test_bit(PG_skip, &(page)->flags)
+#define PageSkip(page)		(0)
 #ifndef CONFIG_DISCONTIGMEM
 #define kern_addr_valid(addr)	(1)
 #endif
@@ -696,6 +696,19 @@
 		"mtc0 %0, $6\n\t"
 		".set reorder"
 		: : "r" (val));
+}
+
+extern inline unsigned long get_info(void)
+{
+	unsigned long val;
+
+	__asm__(
+		".set push\n\t"
+		".set reorder\n\t"
+		"mfc0 %0, $7\n\t"
+		".set pop"
+		: "=r" (val));
+	return val;
 }
 
 /* CP0_TAGLO and CP0_TAGHI registers */

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