PERFORCE change 113743 for review

Jung-uk Kim jkim at FreeBSD.org
Wed Jan 31 01:32:17 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113743

Change 113743 by jkim at jkim_hammer on 2007/01/31 01:31:54

	Don't restore gsbase.  We don't need it any more.

Affected files ...

.. //depot/projects/linuxolator/src/sys/amd64/amd64/cpu_switch.S#4 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/amd64/amd64/cpu_switch.S#4 (text+ko) ====

@@ -188,7 +188,7 @@
 	/* Restore userland 32 bit GS descriptor for Linuxulator */
 	movq	PCB_GS32P(%r8),%rax
 	testq	%rax,%rax
-	jz	3f				/* no, skip over */
+	jz	2f				/* no, skip over */
 
 	movq	PCB_GS32SD(%r8),%rcx
 	movq	%rcx,(%rax)
@@ -201,14 +201,13 @@
 	movl	PCB_FSBASE+4(%r8),%edx
 	wrmsr
 
-2:
 	/* Restore userland %gs */
 	movl	$MSR_KGSBASE,%ecx
 	movl	PCB_GSBASE(%r8),%eax
 	movl	PCB_GSBASE+4(%r8),%edx
 	wrmsr
 
-3:
+2:
 	/* Update the TSS_RSP0 pointer for the next interrupt */
 	movq	PCPU(TSSP), %rax
 	addq	$COMMON_TSS_RSP0, %rax


More information about the p4-projects mailing list