svn commit: r227782 - head/sys/mips/include
Jayachandran C.
jchandra at FreeBSD.org
Mon Nov 21 07:55:37 UTC 2011
Author: jchandra
Date: Mon Nov 21 07:55:37 2011
New Revision: 227782
URL: http://svn.freebsd.org/changeset/base/227782
Log:
XLP processors have the release 2 pagegrain register
Add accessors to cpufunc.h
Obtained from: prabhath at netlogicmicro com
Modified:
head/sys/mips/include/cpufunc.h
Modified: head/sys/mips/include/cpufunc.h
==============================================================================
--- head/sys/mips/include/cpufunc.h Mon Nov 21 07:50:29 2011 (r227781)
+++ head/sys/mips/include/cpufunc.h Mon Nov 21 07:55:37 2011 (r227782)
@@ -272,6 +272,9 @@ MIPS_RW32_COP0(status, MIPS_COP_0_STATUS
MIPS_RW32_COP0(entryhi, MIPS_COP_0_TLB_HI);
MIPS_RW32_COP0(pagemask, MIPS_COP_0_TLB_PG_MASK);
#endif
+#ifdef CPU_NLM
+MIPS_RW32_COP0_SEL(pagegrain, MIPS_COP_0_TLB_PG_MASK, 1);
+#endif
#if !defined(__mips_n64) && !defined(__mips_n32) /* !PHYSADDR_64_BIT */
MIPS_RW32_COP0(entrylo0, MIPS_COP_0_TLB_LO0);
MIPS_RW32_COP0(entrylo1, MIPS_COP_0_TLB_LO1);
More information about the svn-src-all
mailing list