[PATCH 2/3] test: realmode: initialize all bits of esp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Initializing just sp can leave the high bits of esp uninitialized.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
 kvm/test/x86/realmode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kvm/test/x86/realmode.c b/kvm/test/x86/realmode.c
index d0cc3dc..c4a2e1e 100644
--- a/kvm/test/x86/realmode.c
+++ b/kvm/test/x86/realmode.c
@@ -936,7 +936,7 @@ asm(
 	"mov %ax, %ss \n\t"
 	"mov %ax, %fs \n\t"
 	"mov %ax, %gs \n\t"
-	"mov $stacktop, %sp\n\t"
+	"mov $stacktop, %esp\n\t"
 	"ljmp $0, $realmode_start \n\t"
 
 	".code16gcc \n\t"
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux