1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/atmega_common: Fix function attributes

Functions marked with __atribute__((naked)) may only use basic inline assembly
and must not use any c code. The functions __enter_thread_mode() and
cpu_switch_context_exit() are using C code, so they must not be marked as
naked.
This commit is contained in:
Marian Buschsieweke 2019-04-25 16:54:51 +02:00
parent 5be357750c
commit 20b9ef7c5b
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -196,7 +196,6 @@ void thread_stack_print(void)
printf("stack size: %u bytes\n", size);
}
void cpu_switch_context_exit(void) __attribute__((naked));
void cpu_switch_context_exit(void)
{
sched_run();
@ -212,7 +211,6 @@ extern char *__brkval;
/**
* @brief Set the MCU into Thread-Mode and load the initial task from the stack and run it
*/
void NORETURN __enter_thread_mode(void) __attribute__((naked));
void NORETURN __enter_thread_mode(void)
{
irq_enable();