Improvements for aarch64 support
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user