summaryrefslogtreecommitdiff
path: root/v/entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'v/entry.S')
-rw-r--r--v/entry.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/v/entry.S b/v/entry.S
index 8dbf248..7b9230d 100644
--- a/v/entry.S
+++ b/v/entry.S
@@ -143,7 +143,7 @@ trap_entry:
bnez ra, 1f
# no, so start at the top of the stack
- la x2,stack_top+MAX_TEST_PAGES*PGSIZE-SIZEOF_TRAPFRAME_T
+ la x2,stack_top-SIZEOF_TRAPFRAME_T
jal save_tf
move sp,x2
csrs status,SR_EI