Improvements for aarch64 support

This commit is contained in:
Jeremy Soller
2021-01-11 08:52:20 -07:00
parent 04fd4520d3
commit 3c1300e8ec
8 changed files with 552 additions and 24 deletions
+6
View File
@@ -797,6 +797,12 @@ impl Pal for Sys {
res as c_int
}
#[cfg(target_arch = "aarch64")]
unsafe fn pte_clone(stack: *mut usize) -> pid_t {
//TODO: aarch64
unimplemented!("pte_clone not implemented on aarch64");
}
#[cfg(target_arch = "x86_64")]
unsafe fn pte_clone(stack: *mut usize) -> pid_t {
let flags = syscall::CLONE_VM
+12
View File
@@ -90,6 +90,18 @@ pub fn get_session(
}
}
#[cfg(target_arch = "aarch64")]
fn inner_ptrace(
request: c_int,
pid: pid_t,
addr: *mut c_void,
data: *mut c_void,
) -> io::Result<c_int> {
//TODO: aarch64
unimplemented!("inner_ptrace not implemented on aarch64");
}
#[cfg(target_arch = "x86_64")]
fn inner_ptrace(
request: c_int,
pid: pid_t,