Correct more asm! usages
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@
|
||||
#[naked]
|
||||
pub unsafe extern "C" fn _start() {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
asm!("mov rdi, rsp
|
||||
llvm_asm!("mov rdi, rsp
|
||||
and rsp, 0xFFFFFFFFFFFFFFF0
|
||||
call relibc_start"
|
||||
:
|
||||
@@ -18,7 +18,7 @@ pub unsafe extern "C" fn _start() {
|
||||
: "intel", "volatile"
|
||||
);
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
asm!("mov x0, sp
|
||||
llvm_asm!("mov x0, sp
|
||||
bl relibc_start"
|
||||
:
|
||||
:
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn _start() {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
asm!("
|
||||
llvm_asm!("
|
||||
# rsi = _start + 5
|
||||
call next
|
||||
next: pop rsi
|
||||
@@ -41,7 +41,7 @@ next: pop rsi
|
||||
: "intel", "volatile"
|
||||
);
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
asm!("
|
||||
llvm_asm!("
|
||||
mov x0, sp
|
||||
bl ld_so_start
|
||||
TODO
|
||||
|
||||
@@ -766,7 +766,7 @@ impl Pal for Sys {
|
||||
| syscall::CLONE_SIGHAND
|
||||
| syscall::CLONE_STACK;
|
||||
let pid;
|
||||
asm!("
|
||||
llvm_asm!("
|
||||
# Call clone syscall
|
||||
syscall
|
||||
|
||||
|
||||
Reference in New Issue
Block a user