From 0566429284ebd3211ed418b0441c50a5037e482e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 1 Feb 2011 01:14:54 +0000 Subject: [PATCH] 2011-01-31 Joel Sherrill * context_switch.S: Reverse registers. --- cpukit/score/cpu/m32r/ChangeLog | 4 ++++ cpukit/score/cpu/m32r/context_switch.S | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/m32r/ChangeLog b/cpukit/score/cpu/m32r/ChangeLog index aa584ae9e5..81b4994114 100644 --- a/cpukit/score/cpu/m32r/ChangeLog +++ b/cpukit/score/cpu/m32r/ChangeLog @@ -1,3 +1,7 @@ +2011-01-31 Joel Sherrill + + * context_switch.S: Reverse registers. + 2010-10-21 Joel Sherrill * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to diff --git a/cpukit/score/cpu/m32r/context_switch.S b/cpukit/score/cpu/m32r/context_switch.S index 10baac910d..dd95a461fb 100644 --- a/cpukit/score/cpu/m32r/context_switch.S +++ b/cpukit/score/cpu/m32r/context_switch.S @@ -65,5 +65,5 @@ restore: .global _CPU_Context_Restart_self .type _CPU_Context_Restart_self, @function _CPU_Context_Restart_self: - mv r0, r1 + mv r1, r0 bra restore