mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: remove debug print from mem.rs
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
15c9eadc4c
commit
9bba083e2e
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue