diff options
-rw-r--r-- | cpukit/score/cpu/riscv/riscv-context-switch.S | 4 |
1 files 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 03ce1429bb..6643f21ee9 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 |