In my CW11.1 project, i have many codes like below:
static void ASIL_ALU_XOR_Test(void)
{
asm ("stwu sp,-0x020(sp)");
/* Save registers*/
asm ("stw r28,0x04(sp)");
asm ("stw r29,0x08(sp)");
so when i compile the code it will report the warning like below, whether this will influence the function, if yes, how should i modify?
Description Resource Path Location Type
inline asm instruction 'STWU', defines reserved register r1. Mixing assembler and C code depends on the inline assembler not modifying the reserved registers directly. Use function level assembler if you need to directly modify the reserved registers. ASIL_ALU_Check.c /S2LS/Sources line 484 C/C++ Problem