diff usr/src/uts/intel/ia32/os/archdep.c @ 12613:4c5722bc28dc

PSARC/2010/169 EOF lx brand 6959264 EOF lx brand
author Surya Prakki <Surya.Prakki@Sun.COM>
date Fri, 11 Jun 2010 12:07:14 -0700
parents 8e4cf0dbd8ca
children ab9ae749152f
line wrap: on
line diff
--- a/usr/src/uts/intel/ia32/os/archdep.c	Fri Jun 11 14:34:29 2010 -0400
+++ b/usr/src/uts/intel/ia32/os/archdep.c	Fri Jun 11 12:07:14 2010 -0700
@@ -19,8 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
@@ -604,8 +603,6 @@
 static greg_t
 fix_segreg(greg_t sr, int iscs, model_t datamodel)
 {
-	kthread_t *t = curthread;
-
 	switch (sr &= 0xffff) {
 
 	case 0:
@@ -642,19 +639,6 @@
 	}
 
 	/*
-	 * Allow this process's brand to do any necessary segment register
-	 * manipulation.
-	 */
-	if (PROC_IS_BRANDED(t->t_procp) && BRMOP(t->t_procp)->b_fixsegreg) {
-		greg_t bsr = BRMOP(t->t_procp)->b_fixsegreg(sr, datamodel);
-
-		if (bsr == 0 && iscs == IS_CS)
-			return (0 | SEL_UPL);
-		else
-			return (bsr);
-	}
-
-	/*
 	 * Force it into the LDT in ring 3 for 32-bit processes, which by
 	 * default do not have an LDT, so that any attempt to use an invalid
 	 * selector will reference the (non-existant) LDT, and cause a #gp