[rtems commit] riscv: Fix SMP context switch support

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


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jun 29 12:08:01 2018 +0200

riscv: Fix SMP context switch support

Update #3433.

---

 cpukit/score/cpu/riscv/riscv-context-switch.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/riscv/riscv-context-switch.S b/cpukit/score/cpu/riscv/riscv-context-switch.S
index 03ce142..6643f21 100644
--- a/cpukit/score/cpu/riscv/riscv-context-switch.S
+++ b/cpukit/score/cpu/riscv/riscv-context-switch.S
@@ -153,8 +153,8 @@ SYM(_CPU_Context_restore):
 	/* We may have a new heir */
 
 	/* Read the executing and heir */
-	lw	a4, PER_CPU_OFFSET_EXECUTING(a2)
-	lw	a5, PER_CPU_OFFSET_HEIR(a2)
+	LREG	a4, PER_CPU_OFFSET_EXECUTING(a2)
+	LREG	a5, PER_CPU_OFFSET_HEIR(a2)
 
 	/*
 	 * Update the executing only if necessary to avoid cache line




More information about the vc mailing list