From 4633b6fcda49604159322bbee941957b2bf67502 Mon Sep 17 00:00:00 2001 From: Drew Barbier Date: Wed, 26 Jul 2017 15:18:25 -0500 Subject: removed save/restore of x18 --- bsp/env/ventry.S | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'bsp/env') 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 -- cgit v1.2.3