PERFORCE change 29473 for review

Peter Wemm peter at FreeBSD.org
Tue Apr 22 18:23:34 PDT 2003


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

Change 29473 by peter at peter_daintree on 2003/04/22 18:23:16

	make sure that %ds,%es,%ss etc are not still lingering on the loader
	trampoline gdt somehow...  Note that this will trash the 64 bit
	msr base address, so another wrmsr() would be needed to repair the
	damage.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/support.s#19 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/support.s#19 (text+ko) ====

@@ -480,6 +480,13 @@
 	jmp	1f
 	nop
 1:
+	movl	$KDSEL, %eax
+	mov	%ax,%ds
+	mov	%ax,%es
+	mov	%ax,%fs		/* Beware, use wrmsr to set 64 bit base */
+	mov	%ax,%gs
+	mov	%ax,%ss
+
 	/* reload code selector by turning return into intersegmental return */
 	popq	%rax
 	pushq	$KCSEL


More information about the p4-projects mailing list