mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
mem: turn function comment into rustdoc
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
4bb3f6db68
commit
fb3da7294c
1 changed files with 2 additions and 3 deletions
|
|
@ -232,15 +232,14 @@ impl MemoryManager {
|
|||
Err(xous::Error::OutOfMemory)
|
||||
}
|
||||
|
||||
// Find a virtual address in the current process that is big enough
|
||||
// to fit `size` bytes.
|
||||
/// Find a virtual address in the current process that is big enough
|
||||
/// to fit `size` bytes.
|
||||
fn find_virtual_address(&mut self, virt_ptr: *mut usize, size: usize) -> Result<usize, xous::Error> {
|
||||
// If we were supplied a perfectly good address, return that.
|
||||
if virt_ptr as usize != 0 {
|
||||
return Ok(virt_ptr as usize);
|
||||
}
|
||||
|
||||
// let mm = SystemServicesHandle::get().current_process();
|
||||
Err(xous::Error::BadAddress)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue