kernel: remove debug print from mem.rs

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-06 13:05:23 +08:00
parent 15c9eadc4c
commit 9bba083e2e

View file

@ -249,7 +249,7 @@ impl MemoryManager {
#[cfg(baremetal)]
pub fn alloc_page(&mut self, pid: PID) -> Result<usize, xous_kernel::Error> {
// Go through all RAM pages looking for a free page.
println!("Allocating page for PID {}", pid);
// println!("Allocating page for PID {}", pid);
unsafe {
let end_point = self.ram_size / PAGE_SIZE;
let starting_point = self.last_ram_page;
@ -258,10 +258,10 @@ impl MemoryManager {
.zip(starting_point..)
.chain(MEMORY_ALLOCATIONS[..starting_point].iter_mut().zip(0..))
{
println!(
" Checking {:08x}...",
index * PAGE_SIZE + self.ram_start as usize
);
// println!(
// " Checking {:08x}...",
// index * PAGE_SIZE + self.ram_start as usize
// );
if allocation.is_none() {
*allocation = Some(pid);
self.last_ram_page = index + 1;