diff --git a/src/scheme/proc.rs b/src/scheme/proc.rs index 18fe228..d156cbf 100644 --- a/src/scheme/proc.rs +++ b/src/scheme/proc.rs @@ -497,6 +497,13 @@ impl Scheme for ProcScheme { Ok(value) } + #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] + fn read(&self, id: usize, buf: &mut [u8]) -> Result { + //TODO: support other archs + Err(Error::new(EINVAL)) + } + + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] fn read(&self, id: usize, buf: &mut [u8]) -> Result { // Don't hold a global lock during the context switch later on let info = { @@ -702,6 +709,13 @@ impl Scheme for ProcScheme { } } + #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] + fn write(&self, id: usize, buf: &[u8]) -> Result { + //TODO: support other archs + Err(Error::new(EINVAL)) + } + + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] fn write(&self, id: usize, buf: &[u8]) -> Result { // Don't hold a global lock during the context switch later on let info = {