mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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)
|
Err(xous::Error::OutOfMemory)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find a virtual address in the current process that is big enough
|
/// Find a virtual address in the current process that is big enough
|
||||||
// to fit `size` bytes.
|
/// to fit `size` bytes.
|
||||||
fn find_virtual_address(&mut self, virt_ptr: *mut usize, size: usize) -> Result<usize, xous::Error> {
|
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 we were supplied a perfectly good address, return that.
|
||||||
if virt_ptr as usize != 0 {
|
if virt_ptr as usize != 0 {
|
||||||
return Ok(virt_ptr as usize);
|
return Ok(virt_ptr as usize);
|
||||||
}
|
}
|
||||||
|
|
||||||
// let mm = SystemServicesHandle::get().current_process();
|
|
||||||
Err(xous::Error::BadAddress)
|
Err(xous::Error::BadAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue