Lab: https://pdos.csail.mit.edu/6.S081/2022/labs/syscall.html

attention: 在你开始写代码之前,请阅读xv6手册《book-riscv-rev1》的第2章、第4章的第4.3节和第4.4节以及相关源代码文件:
系统调用的用户空间代码在user/user.h和user/usys.pl中。
内核空间代码是kernel/syscall.h、kernel/syscall.c。
与进程相关的代码是kernel/proc.h和kernel/proc.c。