Skip to content

Commit

Permalink
mm: remove verbose mmio() log
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 26, 2024
1 parent d874781 commit 8d1759c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ uintptr_t mmio(Thread *t, uintptr_t addr, off_t count, int flags) {
for(int i = 0; i < pageCount; i++)
platformMapPage(virt + (i*PAGE_SIZE), addr + (i*PAGE_SIZE), pageFlags);

KDEBUG("mapped %d pages at physical addr 0x%X for tid %d\n", pageCount, addr, t->tid);
//KDEBUG("mapped %d pages at physical addr 0x%X for tid %d\n", pageCount, addr, t->tid);
return virt | offset;
} else {
// deleting a memory mapping
Expand All @@ -62,7 +62,7 @@ uintptr_t mmio(Thread *t, uintptr_t addr, off_t count, int flags) {
for(int i = 0; i < pageCount; i++)
platformMapPage(addr + (i * PAGE_SIZE), 0, 0);

KDEBUG("unmapped %d pages at virtual address 0x%X for tid %d\n", pageCount, addr, t->tid);
//KDEBUG("unmapped %d pages at virtual address 0x%X for tid %d\n", pageCount, addr, t->tid);
return 0;
}
}

0 comments on commit 8d1759c

Please sign in to comment.