cowtest passed

This commit is contained in:
2025-07-01 20:31:29 +08:00
parent bc8921a77f
commit bef91a3bf0
8 changed files with 161 additions and 47 deletions

View File

@@ -67,6 +67,8 @@ usertrap(void)
syscall();
} else if((which_dev = devintr()) != 0){
// ok
} else if((r_scause() == 15 || r_scause() == 13) && iscowpage(r_stval())){
startcowcopy(r_stval());
} else {
printf("usertrap(): unexpected scause 0x%lx pid=%d\n", r_scause(), p->pid);
printf(" sepc=0x%lx stval=0x%lx\n", r_sepc(), r_stval());