Commit 4aa22949 authored by Avi Kivity's avatar Avi Kivity
Browse files

realmode: fix esp in long jump test



esp needs to point at the end of the stack, or it will corrupt memory.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 18253fde
......@@ -541,7 +541,7 @@ void test_long_jmp()
u32 esp[16];
inregs = (struct regs){ 0 };
inregs.esp = (u32)esp;
inregs.esp = (u32)(esp+16);
MK_INSN(long_jmp, "call 1f\n\t"
"jmp 2f\n\t"
"1: jmp $0, $test_function\n\t"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment