Remove debug log
This commit is contained in:
parent
9ac252c235
commit
69d4702696
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user