diff options
Diffstat (limited to 'Python/asm_trampoline.S')
-rw-r--r-- | Python/asm_trampoline.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/asm_trampoline.S b/Python/asm_trampoline.S index 616752459ba..a14e68c0e81 100644 --- a/Python/asm_trampoline.S +++ b/Python/asm_trampoline.S @@ -12,9 +12,10 @@ _Py_trampoline_func_start: #if defined(__CET__) && (__CET__ & 1) endbr64 #endif - sub $8, %rsp - call *%rcx - add $8, %rsp + push %rbp + mov %rsp, %rbp + call *%rcx + pop %rbp ret #endif // __x86_64__ #if defined(__aarch64__) && defined(__AARCH64EL__) && !defined(__ILP32__) |