Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2003 18:23:32 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29473 for review
Message-ID:  <200304230123.h3N1NWki081974@repoman.freebsd.org>

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

Change 29473 by peter@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



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