mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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)]
|
#[cfg(baremetal)]
|
||||||
pub fn alloc_page(&mut self, pid: PID) -> Result<usize, xous_kernel::Error> {
|
pub fn alloc_page(&mut self, pid: PID) -> Result<usize, xous_kernel::Error> {
|
||||||
// Go through all RAM pages looking for a free page.
|
// Go through all RAM pages looking for a free page.
|
||||||
println!("Allocating page for PID {}", pid);
|
// println!("Allocating page for PID {}", pid);
|
||||||
unsafe {
|
unsafe {
|
||||||
let end_point = self.ram_size / PAGE_SIZE;
|
let end_point = self.ram_size / PAGE_SIZE;
|
||||||
let starting_point = self.last_ram_page;
|
let starting_point = self.last_ram_page;
|
||||||
|
|
@ -258,10 +258,10 @@ impl MemoryManager {
|
||||||
.zip(starting_point..)
|
.zip(starting_point..)
|
||||||
.chain(MEMORY_ALLOCATIONS[..starting_point].iter_mut().zip(0..))
|
.chain(MEMORY_ALLOCATIONS[..starting_point].iter_mut().zip(0..))
|
||||||
{
|
{
|
||||||
println!(
|
// println!(
|
||||||
" Checking {:08x}...",
|
// " Checking {:08x}...",
|
||||||
index * PAGE_SIZE + self.ram_start as usize
|
// index * PAGE_SIZE + self.ram_start as usize
|
||||||
);
|
// );
|
||||||
if allocation.is_none() {
|
if allocation.is_none() {
|
||||||
*allocation = Some(pid);
|
*allocation = Some(pid);
|
||||||
self.last_ram_page = index + 1;
|
self.last_ram_page = index + 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue