summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/ml
diff options
context:
space:
mode:
authorrab <none@none>2006-01-06 10:19:31 -0800
committerrab <none@none>2006-01-06 10:19:31 -0800
commit0baeff3d96eae184e775c1064f1836090446a7bf (patch)
tree223a82fa3266e75588aace66980f22165d83fcff /usr/src/uts/i86pc/ml
parentd045b9872121ef87817d5d01968d80cc01574bc8 (diff)
downloadillumos-joyent-0baeff3d96eae184e775c1064f1836090446a7bf.tar.gz
6219276 need per-process equivalent of device context
6244042 x86 kernels do not need default LDTs 6308413 sysi86(SI86DSCR) rejects the first valid custom descriptor #6 with errno 6308413 contributed by Juergen Keil <jk@tools.de>
Diffstat (limited to 'usr/src/uts/i86pc/ml')
-rw-r--r--usr/src/uts/i86pc/ml/mpcore.s10
-rw-r--r--usr/src/uts/i86pc/ml/offsets.in3
2 files changed, 7 insertions, 6 deletions
diff --git a/usr/src/uts/i86pc/ml/mpcore.s b/usr/src/uts/i86pc/ml/mpcore.s
index cf64091917..1c1b84df15 100644
--- a/usr/src/uts/i86pc/ml/mpcore.s
+++ b/usr/src/uts/i86pc/ml/mpcore.s
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -252,7 +252,7 @@ kernel_cs_code:
movw $KTSS_SEL, %ax /* setup kernel TSS */
ltr %ax
- movw $ULDT_SEL, %ax /* setup ldt */
+ xorw %ax, %ax /* clear LDTR */
lldt %ax
/*
@@ -500,7 +500,7 @@ kernel_cs_code:
movw $KTSS_SEL, %ax /* setup kernel TSS */
ltr %ax
- movw $ULDT_SEL, %ax /* setup ldt */
+ xorw %ax, %ax /* clear LDTR */
lldt %ax
/*
@@ -636,7 +636,7 @@ kernel_cs_code:
movl TSS_ESP0(%esi),%esp
movw $KTSS_SEL,%ax
ltr %ax
- movw $ULDT_SEL, %ax /* setup ldt */
+ xorw %ax, %ax /* clear LDTR */
lldt %ax
movl %cr0,%edx
andl $-1![CR0_TS|CR0_EM],%edx /* clear emulate math chip bit */
@@ -719,7 +719,7 @@ kernel_cs_code:
mov TSS_ESP0(%esi), %esp
mov $(KTSS_SEL), %ax
ltr %ax
- mov $ULDT_SEL, %ax /* load user ldt */
+ xorw %ax, %ax /* clear LDTR */
lldt %ax
mov %cr0, %edx
and $~(CR0_TS|CR0_EM), %edx /* clear emulate math chip bit */
diff --git a/usr/src/uts/i86pc/ml/offsets.in b/usr/src/uts/i86pc/ml/offsets.in
index 4a1959a822..13ec19da05 100644
--- a/usr/src/uts/i86pc/ml/offsets.in
+++ b/usr/src/uts/i86pc/ml/offsets.in
@@ -1,5 +1,5 @@
\
-\ Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+\ Copyright 2006 Sun Microsystems, Inc. All rights reserved.
\ Use is subject to license terms.
\
\ CDDL HEADER START
@@ -75,6 +75,7 @@ proc PROCSIZE
p_ldt
p_ldt_desc
p_model
+ p_pctx
p_agenttp
_kthread THREAD_SIZE