summaryrefslogtreecommitdiff
path: root/pt/riscv_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'pt/riscv_test.h')
-rw-r--r--pt/riscv_test.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pt/riscv_test.h b/pt/riscv_test.h
index 84b2d51..93c1c4d 100644
--- a/pt/riscv_test.h
+++ b/pt/riscv_test.h
@@ -22,9 +22,9 @@ _skip: \
_jump_around_interrupt_handler: \
#define ENABLE_TIMER_INTERRUPT \
- li a0, MSTATUS_STIE; \
- csrs mstatus, a0; \
- csrr a0, scycle; \
+ li a0, MIP_STIP; \
+ csrs mie, a0; \
+ csrr a0, stime; \
addi a0, a0, TIMER_INTERVAL; \
csrw stimecmp, a0; \
@@ -42,7 +42,7 @@ _interrupt_handler: \
VECTOR_RESTORE; \
_skip_vector_restore: \
csrr a1, sscratch; \
- csrr a0, scycle; \
+ csrr a0, stime; \
addi a0, a0, TIMER_INTERVAL; \
csrw stimecmp, a0; \
csrr a0, mscratch; \