Remove debug log

This commit is contained in:
Mathieu Maret 2021-11-06 00:17:15 +01:00
parent 9ac252c235
commit 69d4702696

View File

@ -201,14 +201,12 @@ static uaddr_t loadElfProg(const char *prog)
paddr_t ppage;
ppage = allocPhyPage(1);
printf("map user page at 0x%x\n", uaddr);
assert(pageMap(uaddr, ppage,
PAGING_MEM_USER | PAGING_MEM_WRITE | PAGING_MEM_READ) == 0);
unrefPhyPage(ppage);
}
printf("memcpy at 0x%x from file offset %d size %d\n", elf_phdrs[i].p_vaddr, elf_phdrs[i].p_offset, elf_phdrs[i].p_filesz);
/* Copy segment into memory */
memcpy((void *)elf_phdrs[i].p_vaddr, (void *)(prog + elf_phdrs[i].p_offset),
elf_phdrs[i].p_filesz);