summaryrefslogtreecommitdiff
path: root/answers-syscall.txt
diff options
context:
space:
mode:
Diffstat (limited to 'answers-syscall.txt')
-rw-r--r--answers-syscall.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/answers-syscall.txt b/answers-syscall.txt
new file mode 100644
index 0000000..ca0ce77
--- /dev/null
+++ b/answers-syscall.txt
@@ -0,0 +1,9 @@
+usertrap()
+7
+SYS_exec
+user mode
+lw a3,0(zero)
+a3
+no
+yes, `scause` 0xd -> interrupt = 0, exception code = 13 -> instruction page fault (riscv-priviledged p71)
+'initcode', 1