summaryrefslogtreecommitdiff
path: root/bsp/env
diff options
context:
space:
mode:
authorDrew Barbier <dbarbi1@gmail.com>2017-07-26 15:18:25 -0500
committerDrew Barbier <dbarbi1@gmail.com>2017-07-26 15:18:25 -0500
commit4633b6fcda49604159322bbee941957b2bf67502 (patch)
treef6c0f91a2b21897f92dea5711b446b4cde59b295 /bsp/env
parente05c4adbe47267b8646e683fdf9565cecf7efc95 (diff)
removed save/restore of x18
Diffstat (limited to 'bsp/env')
-rw-r--r--bsp/env/ventry.S22
1 files changed, 10 insertions, 12 deletions
diff --git a/bsp/env/ventry.S b/bsp/env/ventry.S
index 6b672e5..5cdd4b7 100644
--- a/bsp/env/ventry.S
+++ b/bsp/env/ventry.S
@@ -8,7 +8,7 @@
#only save caller registers
.macro TRAP_ENTRY
- addi sp, sp, -18*REGBYTES
+ addi sp, sp, -17*REGBYTES
STORE x1, 1*REGBYTES(sp)
STORE x5, 2*REGBYTES(sp)
@@ -22,11 +22,10 @@
STORE x15, 10*REGBYTES(sp)
STORE x16, 11*REGBYTES(sp)
STORE x17, 12*REGBYTES(sp)
- STORE x18, 13*REGBYTES(sp)
- STORE x28, 14*REGBYTES(sp)
- STORE x29, 15*REGBYTES(sp)
- STORE x30, 16*REGBYTES(sp)
- STORE x31, 17*REGBYTES(sp)
+ STORE x28, 13*REGBYTES(sp)
+ STORE x29, 14*REGBYTES(sp)
+ STORE x30, 15*REGBYTES(sp)
+ STORE x31, 16*REGBYTES(sp)
.endm
#restore caller registers
@@ -47,13 +46,12 @@
LOAD x15, 10*REGBYTES(sp)
LOAD x16, 11*REGBYTES(sp)
LOAD x17, 12*REGBYTES(sp)
- LOAD x18, 13*REGBYTES(sp)
- LOAD x28, 14*REGBYTES(sp)
- LOAD x29, 15*REGBYTES(sp)
- LOAD x30, 16*REGBYTES(sp)
- LOAD x31, 17*REGBYTES(sp)
+ LOAD x28, 13*REGBYTES(sp)
+ LOAD x29, 14*REGBYTES(sp)
+ LOAD x30, 15*REGBYTES(sp)
+ LOAD x31, 16*REGBYTES(sp)
- addi sp, sp, 18*REGBYTES
+ addi sp, sp, 17*REGBYTES
mret
.endm