AnsweredAssumed Answered

is it necessary to use kregs asm extension in portINCREMENT_CRITICAL_NESTING/portDECREMENT_CRITICAL_NESTING function of FreeRTOS porting

Question asked by wesley xie on Feb 3, 2018
Latest reply on Feb 6, 2018 by Alexander Fedotov

Hi, NXP

 

I tried to compiling the FreeRTOS in GHS MULTI IDE.

with GNU C mode enabled (to accept GNU __asm__ statement), most of the asm compile errors disappeared.

but still one error described as "unknown asm constraint letter 'k'".

I searched the internet, and someone said it's for EABI standard, instruct the compiler to place the variable in GPR8 or GPR9.

how to fix the kregs error for both of functions in GHS MULTI compiler ?

 

Outcomes