diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-25 14:39:45 +0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-07-27 18:16:45 -0300 |
commit | f8b52956b59f44a6995bc26a761e38311def8306 (patch) | |
tree | 5c927db2b76a14e8eec7d21d30ed50bd7848d0da /kvm | |
parent | 26e0a5c021073e3095dd41e18341fc6ebb823ce1 (diff) |
test: realmode: initialize all bits of esp
Initializing just sp can leave the high bits of esp uninitialized.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm')
-rw-r--r-- | 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 d0cc3dc6d..c4a2e1e54 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" |