From: Avi Kivity <[email protected]>

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

Signed-off-by: Avi Kivity <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>

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"
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to