From 0970c44b086287eac3c6c147a390fddb0f9de552 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 15 Jun 2010 17:19:01 +0000 Subject: Fixed bug 3016619. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2021 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/AVR/chcore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os') diff --git a/os/ports/GCC/AVR/chcore.c b/os/ports/GCC/AVR/chcore.c index f84e6aed1..32e48ce52 100644 --- a/os/ports/GCC/AVR/chcore.c +++ b/os/ports/GCC/AVR/chcore.c @@ -67,14 +67,14 @@ void port_switch(Thread *ntp, Thread *otp) { asm volatile ("movw r30, r22"); asm volatile ("in r0, 0x3d"); - asm volatile ("std Z+6, r0"); + asm volatile ("std Z+5, r0"); asm volatile ("in r0, 0x3e"); - asm volatile ("std Z+7, r0"); + asm volatile ("std Z+6, r0"); asm volatile ("movw r30, r24"); - asm volatile ("ldd r0, Z+6"); + asm volatile ("ldd r0, Z+5"); asm volatile ("out 0x3d, r0"); - asm volatile ("ldd r0, Z+7"); + asm volatile ("ldd r0, Z+6"); asm volatile ("out 0x3e, r0"); asm volatile ("pop r29"); -- cgit v1.2.3