Add proc scheme stubs for aarch64

This commit is contained in:
Jeremy Soller
2022-08-19 16:00:35 -06:00
parent 80fc1d7fd4
commit 38361661e6

View File

@@ -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<usize> {
//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<usize> {
// 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<usize> {
//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<usize> {
// Don't hold a global lock during the context switch later on
let info = {