Skip to content

Commit 60bbbf1

Browse files
committed
Fixed type parameter to the function defnition
Once the function is always_inline it need not be noreturn not naked.
1 parent 5750007 commit 60bbbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino.DuinOS/DuinOS/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ extern volatile tskTCB * volatile pxCurrentTCB;
125125
* The interrupts will have been disabled during the call to portSAVE_CONTEXT()
126126
* so we need not worry about reading/writing to the stack pointer.
127127
*/
128-
inline void portSAVE_CONTEXT() __attribute__((__always_inline__,__noreturn__));
128+
inline void portSAVE_CONTEXT() __attribute__((__always_inline__));
129129
inline void portSAVE_CONTEXT(){
130130
asm volatile ( "push r0 \n\t"
131131
"in r0, __SREG__ \n\t"
@@ -190,7 +190,7 @@ inline void portSAVE_CONTEXT(){
190190
* Opposite to portSAVE_CONTEXT(). Interrupts will have been disabled during
191191
* the context save so we can write to the stack pointer.
192192
*/
193-
inline void portRESTORE_CONTEXT() __attribute__((__always_inline__,__noreturn__));
193+
inline void portRESTORE_CONTEXT() __attribute__((__always_inline__));
194194
inline void portRESTORE_CONTEXT(){
195195
asm volatile ( "lds r26, pxCurrentTCB \n\t"
196196
"lds r27, pxCurrentTCB + 1 \n\t"

0 commit comments

Comments
 (0)