summaryrefslogtreecommitdiff
path: root/v/riscv_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'v/riscv_test.h')
-rw-r--r--v/riscv_test.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/v/riscv_test.h b/v/riscv_test.h
index c74e05d..e39123c 100644
--- a/v/riscv_test.h
+++ b/v/riscv_test.h
@@ -24,6 +24,16 @@
extra_boot: \
EXTRA_INIT \
ret; \
+.global trap_filter; \
+trap_filter: \
+ FILTER_TRAP \
+ li a0, 0; \
+ ret; \
+.global pf_filter; \
+pf_filter: \
+ FILTER_PAGE_FAULT \
+ li a0, 0; \
+ ret; \
.global userstart; \
userstart: \
init