git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2160 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
c9667b5b4b
commit
14cbeefe5a
|
@ -245,7 +245,7 @@ struct context {
|
||||||
*/
|
*/
|
||||||
#ifdef THUMB
|
#ifdef THUMB
|
||||||
#define port_lock() { \
|
#define port_lock() { \
|
||||||
asm volatile ("bl _port_lock_thumb" : : : "r3", "lr", "memory" \
|
asm volatile ("bl _port_lock_thumb" : : : "r3", "lr", "memory"); \
|
||||||
}
|
}
|
||||||
#else /* !THUMB */
|
#else /* !THUMB */
|
||||||
#define port_lock() asm volatile ("msr CPSR_c, #0x9F" : : : "memory")
|
#define port_lock() asm volatile ("msr CPSR_c, #0x9F" : : : "memory")
|
||||||
|
|
Loading…
Reference in New Issue