I'm tryting to insert an assembly instruction "isync" in my function using GHS compiler as below
inline void my_asm(void)
{
__inline__ asm volatile("isync");
}
But I'm getting an compiler error from the above sample. Any help on this would be really appreciated.
Thank you!
1)
inline void my_asm(void)
{
asm volatile("isync");
}
error: from the above sample ghs compiler is expecting "(" at volatile.
2)
inline void my_asm(void)
{
__inle asm ("isync");
}
error: "asm" in not allowed
- only working code is
inline void my_asm(void)
{
asm ("isync");
}
Any solution and any reference documents would be really appreciated.