From 36c2586f9287814635f12a13a783ebb79338046c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Jul 2009 19:07:54 +0000 Subject: 2009-07-09 Josh Switnicki * cpu_asm.S: Fixed bug in _CPU_Context_Switch. The wrong registers were being used for pointer to running task Context_Control struct. --- cpukit/score/cpu/avr/ChangeLog | 8 +++++++- cpukit/score/cpu/avr/cpu_asm.S | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu/avr') diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog index 2b75319224..51ea845efc 100644 --- a/cpukit/score/cpu/avr/ChangeLog +++ b/cpukit/score/cpu/avr/ChangeLog @@ -1,4 +1,10 @@ -2009-07-03 Josh Switnicki +2009-07-09 Josh Switnicki + + * cpu_asm.S: Fixed bug in _CPU_Context_Switch. The wrong registers + were being used for pointer to running task Context_Control + struct. + +2009-07-03 Josh Switnicki * cpu.c: Implemented _CPU_Context_Initialize as a C function instead of a macro. It works with limited functionality. Implemented diff --git a/cpukit/score/cpu/avr/cpu_asm.S b/cpukit/score/cpu/avr/cpu_asm.S index 779efc70b5..51ecf6e560 100644 --- a/cpukit/score/cpu/avr/cpu_asm.S +++ b/cpukit/score/cpu/avr/cpu_asm.S @@ -215,8 +215,8 @@ SYM(_CPU_Context_restore_fp): PUBLIC(_CPU_Context_switch) SYM(_CPU_Context_switch): - mov r26, r18 - mov r27, r19 + mov r26, r24 + mov r27, r25 st X+, r2 st X+, r3 st X+, r4 -- cgit v1.2.3