Module Name: src
Committed By: christos
Date: Sat Feb 4 16:14:28 UTC 2017
Modified Files:
src/sys/arch/i386/stand/efiboot/bootx64: startprog64.S
Log Message:
Fix operand width
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S
diff -u src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S:1.1 src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S:1.2
--- src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S:1.1 Tue Jan 24 06:09:14 2017
+++ src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S Sat Feb 4 11:14:27 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: startprog64.S,v 1.1 2017/01/24 11:09:14 nonaka Exp $ */
+/* $NetBSD: startprog64.S,v 1.2 2017/02/04 16:14:27 christos Exp $ */
/* NetBSD: startprog.S,v 1.3 2003/02/01 14:48:18 dsl Exp */
/* starts program in protected mode / flat space
@@ -110,11 +110,11 @@ start:
.code32
start32a:
movl $DATA_SEGMENT, %eax
- movw %eax, %ds
- movw %eax, %es
- movw %eax, %fs
- movw %eax, %gs
- movw %eax, %ss
+ movw %ax, %ds
+ movw %ax, %es
+ movw %ax, %fs
+ movw %ax, %gs
+ movw %ax, %ss
movl %edx, %esp