From 7ef4c6df4aba152a941ac3c25ae05fe4e74f445f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 14 Oct 2014 17:06:54 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7396 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../debug/RT-LPC214x-OLIMEX (OpenOCD, Flash and Run).launch | 2 +- os/rt/ports/ARM/compilers/GCC/chcoreasm.s | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/debug/RT-LPC214x-OLIMEX (OpenOCD, Flash and Run).launch b/demos/LPC21xx/RT-LPC214x-OLIMEX/debug/RT-LPC214x-OLIMEX (OpenOCD, Flash and Run).launch index 8705f705f..4f46da0a9 100644 --- a/demos/LPC21xx/RT-LPC214x-OLIMEX/debug/RT-LPC214x-OLIMEX (OpenOCD, Flash and Run).launch +++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/debug/RT-LPC214x-OLIMEX (OpenOCD, Flash and Run).launch @@ -33,7 +33,7 @@ - + diff --git a/os/rt/ports/ARM/compilers/GCC/chcoreasm.s b/os/rt/ports/ARM/compilers/GCC/chcoreasm.s index 18a0772e7..7ab661443 100644 --- a/os/rt/ports/ARM/compilers/GCC/chcoreasm.s +++ b/os/rt/ports/ARM/compilers/GCC/chcoreasm.s @@ -271,12 +271,12 @@ _port_thread_start: #endif #endif msr CPSR_c, #MODE_SYS -#if defined(THUMB_NO_INTERWORKING) +#if !defined(THUMB_NO_INTERWORKING) mov r0, r5 mov lr, pc bx r4 bl chThdExit -#else /* !defined(THUMB_NO_INTERWORKING) */ +#else /* defined(THUMB_NO_INTERWORKING) */ add r0, pc, #1 bx r0 .code 16 @@ -285,7 +285,7 @@ _port_thread_start: bl chThdExit jmpr4: bx r4 -#endif /* !defined(THUMB_NO_INTERWORKING) */ +#endif /* defined(THUMB_NO_INTERWORKING) */ #endif /* !defined(__DOXYGEN__) */