From 0dd57cf51b63b57e1ef8554c20290cad56670806 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 4 Apr 2009 16:55:10 +0000 Subject: Fixed bug 2731578. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@868 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/AVR/chcore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ports') diff --git a/ports/AVR/chcore.c b/ports/AVR/chcore.c index 2050360f8..7d39d12c3 100644 --- a/ports/AVR/chcore.c +++ b/ports/AVR/chcore.c @@ -61,14 +61,14 @@ void port_switch(Thread *otp, Thread *ntp) { asm volatile ("movw r30, r24"); asm volatile ("in r0, 0x3d"); - asm volatile ("std Z+8, r0"); + asm volatile ("std Z+7, r0"); asm volatile ("in r0, 0x3e"); - asm volatile ("std Z+9, r0"); + asm volatile ("std Z+8, r0"); asm volatile ("movw r30, r22"); - asm volatile ("ldd r0, Z+8"); + asm volatile ("ldd r0, Z+7"); asm volatile ("out 0x3d, r0"); - asm volatile ("ldd r0, Z+9"); + asm volatile ("ldd r0, Z+8"); asm volatile ("out 0x3e, r0"); asm volatile ("pop r29"); -- cgit v1.2.3