Introduce kernel virtual memory allocation for kernel stack

This commit is contained in:
Ni Shirong
2024-09-24 06:09:15 +00:00
committed by Tate, Hongliang Tian
parent 03906513aa
commit 29eb37c07c
8 changed files with 270 additions and 53 deletions

View File

@ -199,6 +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),
}
}
}