aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-15 17:19:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-15 17:19:01 +0000
commit0970c44b086287eac3c6c147a390fddb0f9de552 (patch)
treec3a6fd6544e491ae6bf767675db1fabc3fbd1577 /os/ports
parenta544f87a38e6f0b4b60113dbec8352d5f6c04104 (diff)
downloadChibiOS-0970c44b086287eac3c6c147a390fddb0f9de552.tar.gz
ChibiOS-0970c44b086287eac3c6c147a390fddb0f9de552.tar.bz2
ChibiOS-0970c44b086287eac3c6c147a390fddb0f9de552.zip
Fixed bug 3016619.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2021 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/GCC/AVR/chcore.c8
1 files changed, 4 insertions, 4 deletions
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");