[rtems commit] riscv: Fix interrupt save/restore

Sebastian Huber sebh at rtems.org
Fri Jun 29 10:00:19 UTC 2018


Module:    rtems
Branch:    master
Commit:    dffc08c0e9e0fdaa2911edf8b5067298ba468ed8
Changeset: http://git.rtems.org/rtems/commit/?id=dffc08c0e9e0fdaa2911edf8b5067298ba468ed8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 28 13:55:29 2018 +0200

riscv: Fix interrupt save/restore

Update #3433.

---

 cpukit/score/cpu/riscv/riscv-exception-handler.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/riscv/riscv-exception-handler.S b/cpukit/score/cpu/riscv/riscv-exception-handler.S
index 0bdfa2f..cc47bbb 100644
--- a/cpukit/score/cpu/riscv/riscv-exception-handler.S
+++ b/cpukit/score/cpu/riscv/riscv-exception-handler.S
@@ -80,7 +80,7 @@ SYM(ISR_Handler):
 	SREG	x26, (26 * CPU_SIZEOF_POINTER)(sp)
 	SREG	x27, (27 * CPU_SIZEOF_POINTER)(sp)
 	SREG	x28, (28 * CPU_SIZEOF_POINTER)(sp)
-	SREG	x29, (28 * CPU_SIZEOF_POINTER)(sp)
+	SREG	x29, (29 * CPU_SIZEOF_POINTER)(sp)
 	SREG	x30, (30 * CPU_SIZEOF_POINTER)(sp)
 	SREG	x31, (31 * CPU_SIZEOF_POINTER)(sp)
 



More information about the vc mailing list