mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add placeholder for v2p/PID mapping
We need the V2P feature, but don't need the ability to swap PID spaces yet. Leave the alternate API as a todo!() item in the kernel for riscv targets.
This commit is contained in:
parent
2a389d2999
commit
a79b134d14
1 changed files with 4 additions and 0 deletions
|
|
@ -870,6 +870,10 @@ pub fn virt_to_phys(virt: usize) -> Result<usize, xous_kernel::Error> {
|
|||
Ok((l0_pt.entries[vpn0] >> 10) << 12)
|
||||
}
|
||||
|
||||
pub fn virt_to_phys_pid(_pid: PID, _virt: usize) -> Result<usize, xous_kernel::Error> {
|
||||
todo!("virt_to_phys_pid is not yet implemented for riscv");
|
||||
}
|
||||
|
||||
pub fn ensure_page_exists_inner(address: usize) -> Result<usize, xous_kernel::Error> {
|
||||
// Disallow mapping memory outside of user land
|
||||
if !MemoryMapping::current().is_kernel() && address >= USER_AREA_END {
|
||||
|
|
|
|||
Loading…
Reference in a new issue