Initial support for x86 32-bit
This commit is contained in:
@@ -53,6 +53,7 @@ extern "C" {
|
||||
pub fn pte_clone_inner(stack: usize) -> usize;
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
global_asm!("
|
||||
.globl pte_clone_inner
|
||||
.type pte_clone_inner, @function
|
||||
|
||||
@@ -850,6 +850,12 @@ impl Pal for Sys {
|
||||
unimplemented!("pte_clone not implemented on aarch64");
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86")]
|
||||
unsafe fn pte_clone(stack: *mut usize) -> pid_t {
|
||||
//TODO: x86
|
||||
unimplemented!("pte_clone not implemented on x86");
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
unsafe fn pte_clone(stack: *mut usize) -> pid_t {
|
||||
e(syscall::Error::demux(extra::pte_clone_inner(stack as usize))) as pid_t
|
||||
|
||||
@@ -110,6 +110,17 @@ fn inner_ptrace(
|
||||
unimplemented!("inner_ptrace not implemented on aarch64");
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86")]
|
||||
fn inner_ptrace(
|
||||
request: c_int,
|
||||
pid: pid_t,
|
||||
addr: *mut c_void,
|
||||
data: *mut c_void,
|
||||
) -> io::Result<c_int> {
|
||||
//TODO: x86
|
||||
unimplemented!("inner_ptrace not implemented on x86");
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn inner_ptrace(
|
||||
request: c_int,
|
||||
|
||||
Reference in New Issue
Block a user