diff options
Diffstat (limited to 'runtime/arch/x86_64/context_x86_64.cc')
-rw-r--r-- | runtime/arch/x86_64/context_x86_64.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/arch/x86_64/context_x86_64.cc b/runtime/arch/x86_64/context_x86_64.cc index 7699eaf..79d0666 100644 --- a/runtime/arch/x86_64/context_x86_64.cc +++ b/runtime/arch/x86_64/context_x86_64.cc @@ -129,7 +129,7 @@ void X86_64Context::DoLongJump() { } // We want to load the stack pointer one slot below so that the ret will pop eip. - uintptr_t rsp = gprs[kNumberOfCpuRegisters - RSP - 1] - kWordSize; + uintptr_t rsp = gprs[kNumberOfCpuRegisters - RSP - 1] - sizeof(intptr_t); gprs[kNumberOfCpuRegisters] = rsp; *(reinterpret_cast<uintptr_t*>(rsp)) = rip_; |