changeset 4310:127d7ee782ad

6449978 sun4v context registers do not require masking - CTXREG_CTX_MASK should be removed for sun4v
author arutz
date Thu, 24 May 2007 12:06:56 -0700
parents 3dfde0f4662d
children 27c974ce5d7f
files usr/src/uts/sun4v/sys/mmu.h usr/src/uts/sun4v/vm/mach_sfmmu_asm.s
diffstat 2 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4v/sys/mmu.h	Thu May 24 11:30:57 2007 -0700
+++ b/usr/src/uts/sun4v/sys/mmu.h	Thu May 24 12:06:56 2007 -0700
@@ -131,11 +131,6 @@
 #define	TAGACC_CTX_LSHIFT	(64 - TAGACC_SHIFT)
 
 /*
- * MMU PRIMARY/SECONDARY CONTEXT register
- */
-#define	CTXREG_CTX_MASK		0xFFFF
-
-/*
  * The kernel always runs in KCONTEXT, and no user mappings
  * are ever valid in it (so any user access pagefaults).
  */
--- a/usr/src/uts/sun4v/vm/mach_sfmmu_asm.s	Thu May 24 11:30:57 2007 -0700
+++ b/usr/src/uts/sun4v/vm/mach_sfmmu_asm.s	Thu May 24 12:06:56 2007 -0700
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -213,18 +213,14 @@
 
 	ENTRY_NP(sfmmu_getctx_pri)
 	set	MMU_PCONTEXT, %o0
-	set	CTXREG_CTX_MASK, %o1
+	retl
 	ldxa	[%o0]ASI_MMU_CTX, %o0
-	retl
-	and	%o0, %o1, %o0
 	SET_SIZE(sfmmu_getctx_pri)
 
 	ENTRY_NP(sfmmu_getctx_sec)
 	set	MMU_SCONTEXT, %o0
-	set	CTXREG_CTX_MASK, %o1
+	retl
 	ldxa	[%o0]ASI_MMU_CTX, %o0
-	retl
-	and	%o0, %o1, %o0
 	SET_SIZE(sfmmu_getctx_sec)
 
 	/*