Refactor kernel virtual memory allocation for kernel stack and I/O memory

This commit is contained in:
Wang Siyuan
2024-09-24 19:02:26 +00:00
committed by Tate, Hongliang Tian
parent 29eb37c07c
commit 998869d57e
11 changed files with 495 additions and 257 deletions

View File

@ -199,7 +199,7 @@ impl From<ostd::Error> for Error {
ostd::Error::PageFault => Error::new(Errno::EFAULT),
ostd::Error::Overflow => Error::new(Errno::EOVERFLOW),
ostd::Error::MapAlreadyMappedVaddr => Error::new(Errno::EINVAL),
ostd::Error::KvaAllocError => Error::new(Errno::ENOMEM),
ostd::Error::KVirtAreaAllocError => Error::new(Errno::ENOMEM),
}
}
}