summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-09-23 23:36:07 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-09-23 23:36:07 +0000
commit40402bf743f2a0e462091a16f676ac1c5bb497e2 (patch)
treeda2afb0e2e7502118872539d0fa0206af5e677b9 /include/asm-mips
parenta221c730f2e607310d0294e77f2a914b4f25e15a (diff)
Add access function for the cp0 info register.
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/pgtable.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index 6ee5bfc2a..d64e7ed68 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -638,6 +638,19 @@ extern inline void set_wired(unsigned long val)
: : "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 */
extern inline unsigned long get_taglo(void)
{