Hi, I am also a newbie of asm. Can any one help to explain below GCC function codes, what are the meaning of the :"cc"? Thanks in advance!-----------------------------------static inline unsigned int read_cpuid(void){ unsigned int val; /* Main ID register (MIDR) */ asm("mrc p15, 0, %0, c0, c0, 0" : "=r" (val) : : "cc"); //What's this means? return val;}--------------------------------
Hi,I'm trying to store the value of integer b into the address pointed to by c. Could you please check the Macro definition of STORE_REG and tell me if its correct?Thanks a lot...
#define STORE_REG(src, dest) asm("str %[source], [%[result]]" : : [result] "r"(dest), [source] "r"(src))