Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit f12d7cd

Browse files
committed
Match the behavior of the Constrained Naked RFC
rust-lang/rfcs#2972
1 parent 1562b0f commit f12d7cd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/arch/x86_64/sysv.rs

-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ impl Context {
4444
"mov [rdi + 0x38], rsi",
4545
"mov rax, 1",
4646
"jmp rsi",
47-
in("rdi") self,
4847
options(noreturn)
4948
)
5049
}
@@ -63,7 +62,6 @@ impl Context {
6362
"mov rbp, qword ptr [rdi + 0x28]",
6463
"mov rsp, qword ptr [rdi + 0x30]",
6564
"jmp qword ptr [rdi + 0x38]",
66-
in("rdi") self,
6765
options(noreturn)
6866
)
6967
}

src/arch/x86_64/win.rs

-4
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ impl Context {
4444
"mov [rdx + 0x48], rcx",
4545
"mov rax, 1",
4646
"jmp rcx",
47-
48-
in("rdx") self,
4947
options(noreturn)
5048
)
5149
}
@@ -66,8 +64,6 @@ impl Context {
6664
"mov rbp, qword ptr [rdx + 0x38]",
6765
"mov rsp, qword ptr [rdx + 0x40]",
6866
"jmp qword ptr [rdx + 0x48]",
69-
70-
in("rdx") self,
7167
options(noreturn)
7268
)
7369
}

0 commit comments

Comments
 (0)