Skip to content

Commit 1a28ad4

Browse files
committed
fix bug in loading argument regs
1 parent b30a76e commit 1a28ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/arch/x86_64/_context.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ swap_registers:
9898
mov (RUSTRT_R15*8)(%rsi), %r15
9999

100100
// Restore relevant argument registers:
101-
mov (RUSTRT_RCX*8)(%rdi), %rcx
102-
mov (RUSTRT_RDI*8)(%rdi), %rdi
101+
mov (RUSTRT_RCX*8)(%rsi), %rcx
102+
mov (RUSTRT_RDI*8)(%rsi), %rdi
103103

104104
// Restore non-volatile XMM registers:
105105
movapd (RUSTRT_XMM0*8)(%rsi), %xmm0

0 commit comments

Comments
 (0)