From 163b3562c0074af606b95d608ac4b56ccbab054c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 11 Jan 2017 09:52:53 +0000 Subject: Worked around GCC-AVR strange behavior in AVR port. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10023 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/ports/AVR/chcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/common/ports/AVR/chcore.c') diff --git a/os/common/ports/AVR/chcore.c b/os/common/ports/AVR/chcore.c index 36fa01bf0..8ecb47b00 100644 --- a/os/common/ports/AVR/chcore.c +++ b/os/common/ports/AVR/chcore.c @@ -69,7 +69,7 @@ bool __avr_in_isr; #if !defined(__DOXYGEN__) __attribute__((naked, weak)) #endif -void port_switch(thread_t *ntp, thread_t *otp) { +void _port_switch(thread_t *ntp, thread_t *otp) { asm volatile ("push r2"); asm volatile ("push r3"); -- cgit v1.2.3