From cd0ccfc7786c87e35fb508261436fcab4133c5fc Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 16 May 2004 20:46:13 +0000 Subject: [PATCH] MFi386: avoid partial register references, for what its worth. --- sys/amd64/amd64/support.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index 34c4d8178f63..36f0f4d926b4 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -624,11 +624,11 @@ ENTRY(lgdt) 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 + movl %eax,%ds + movl %eax,%es + movl %eax,%fs /* Beware, use wrmsr to set 64 bit base */ + movl %eax,%gs + movl %eax,%ss /* reload code selector by turning return into intersegmental return */ popq %rax