task3 finished

This commit is contained in:
2025-05-27 17:11:31 +08:00
parent bd21012f73
commit f0aaffb0b6
3 changed files with 88 additions and 7 deletions

View File

@@ -128,6 +128,10 @@ exec(char *path, char **argv)
p->trapframe->sp = sp; // initial stack pointer
proc_freepagetable(oldpagetable, oldsz);
if (p->pid == 1) {
vmprint(p->pagetable);
}
return argc; // this ends up in a0, the first argument to main(argc, argv)
bad: