mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
kernel: remove debugging prints for memory allocation
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
62216b7295
commit
956d5f0866
2 changed files with 9 additions and 9 deletions
|
|
@ -455,10 +455,10 @@ impl MemoryManager {
|
||||||
if is_user {
|
if is_user {
|
||||||
crate::arch::mem::hand_page_to_user(virt as _)?;
|
crate::arch::mem::hand_page_to_user(virt as _)?;
|
||||||
}
|
}
|
||||||
println!(
|
// println!(
|
||||||
"Mapped {:08x} -> {:08x} (user? {})",
|
// "Mapped {:08x} -> {:08x} (user? {})",
|
||||||
phys as usize, virt as usize, is_user
|
// phys as usize, virt as usize, is_user
|
||||||
);
|
// );
|
||||||
Ok(virt)
|
Ok(virt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -664,11 +664,11 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
||||||
// don't need to do this.
|
// don't need to do this.
|
||||||
if phys.is_some() {
|
if phys.is_some() {
|
||||||
if mm.is_main_memory(phys_ptr) {
|
if mm.is_main_memory(phys_ptr) {
|
||||||
println!(
|
// println!(
|
||||||
"Going to zero out {} bytes @ {:08x}",
|
// "Going to zero out {} bytes @ {:08x}",
|
||||||
range.len(),
|
// range.len(),
|
||||||
range.as_ptr() as usize,
|
// range.as_ptr() as usize,
|
||||||
);
|
// );
|
||||||
unsafe {
|
unsafe {
|
||||||
range
|
range
|
||||||
.as_mut_ptr()
|
.as_mut_ptr()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue