Fixed bug 2731578.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@868 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2009-04-04 16:55:10 +00:00
parent 5ddc68fed0
commit 0dd57cf51b
1 changed files with 4 additions and 4 deletions

View File

@ -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");