Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2007 01:32:16 GMT
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 113743 for review
Message-ID:  <200701310132.l0V1WGmd020067@repoman.freebsd.org>

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

Change 113743 by jkim@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



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