Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jun 2003 05:01:41 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 32744 for review
Message-ID:  <200306071201.h57C1ffS042247@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=32744

Change 32744 by jmallett@jmallett_dalek on 2003/06/07 05:01:02

	Include tlbr, tlbp.  Include pagemask reading.

Affected files ...

.. //depot/projects/mips/sys/mips/include/cpufunc.h#13 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/cpufunc.h#13 (text+ko) ====

@@ -34,6 +34,18 @@
 #include <machine/cpuregs.h>
 
 static __inline void
+mips_tlbp(void)
+{
+	__asm __volatile ("tlbp");
+}
+
+static __inline void
+mips_tlbr(void)
+{
+	__asm __volatile ("tlbr");
+}
+
+static __inline void
 mips_tlbwi(void)
 {
 	__asm __volatile ("tlbwi");
@@ -74,6 +86,7 @@
 MIPS_RDRW64_COP0(entrylo0, MIPS_COP_0_TLB_LO0)
 MIPS_RDRW64_COP0(entrylo1, MIPS_COP_0_TLB_LO1)
 MIPS_RDRW64_COP0(entryhi, MIPS_COP_0_TLB_HI)
+MIPS_RDRW64_COP0(pagemask, MIPS_COP_0_TLB_PG_MASK)
 
 #undef	MIPS_RDRW64_COP0
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306071201.h57C1ffS042247>