Question 6
Consider the following code snippet for the syscall function in kernel/syscall.c (RISC-V xv6):
Why does xv6 store the system call number in the
register before invoking the kernel?
To store the return value of the system call.
To indicate the number of bytes to be transferred.
To let the kernel identify which system call the user process is requesting.
To store the stack pointer for the child process.