summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/pgtable.h
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-mips64/pgtable.h
parenta221c730f2e607310d0294e77f2a914b4f25e15a (diff)
Add access function for the cp0 info register.
Diffstat (limited to 'include/asm-mips64/pgtable.h')
-rw-r--r--include/asm-mips64/pgtable.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h
index d74d04737..5c872f673 100644
--- a/include/asm-mips64/pgtable.h
+++ b/include/asm-mips64/pgtable.h
@@ -701,6 +701,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)
{