summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/riscv/riscv-context-switch.S
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-03 09:54:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-05 07:12:24 +0200
commite755782bde234350c6263f893b1c4e8d30bb0a53 (patch)
tree996842ed7493ec8423822b9a49ea58cd26d6dc03 /cpukit/score/cpu/riscv/riscv-context-switch.S
parentposix: Check for new <pthread.h> prototypes (diff)
downloadrtems-e755782bde234350c6263f893b1c4e8d30bb0a53.tar.bz2
riscv: Clear reservations
See also RISC-V User-Level ISA V2.3, comment in section 8.2 "Load-Reserved/Store-Conditional Instructions". Update #3433.
Diffstat (limited to 'cpukit/score/cpu/riscv/riscv-context-switch.S')
-rw-r--r--cpukit/score/cpu/riscv/riscv-context-switch.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/cpu/riscv/riscv-context-switch.S b/cpukit/score/cpu/riscv/riscv-context-switch.S
index 6643f21ee9..96c117b3de 100644
--- a/cpukit/score/cpu/riscv/riscv-context-switch.S
+++ b/cpukit/score/cpu/riscv/riscv-context-switch.S
@@ -136,6 +136,8 @@ SYM(_CPU_Context_switch):
sw a3, PER_CPU_ISR_DISPATCH_DISABLE(a2)
+ CLEAR_RESERVATIONS a2
+
ret
SYM(_CPU_Context_restore):