19-08-2019, 04:21 AM
Not sure why this content was deledted and cannot be seen any longer, i just re-posted it here.
Could anyone help clarify it? thanks
static inline uint32_t test(void) {
uint32_t tmp;
__asm__ __volatile__( "mrc p15, 0, %0, c1, c0, 2\n\t" : "=r" (tmp) );
return tmp;
}
i wonder if we could take the above case as compliant, as we cannot have variable declaration and return value in assembly.
Could anyone help clarify it? thanks
static inline uint32_t test(void) {
uint32_t tmp;
__asm__ __volatile__( "mrc p15, 0, %0, c1, c0, 2\n\t" : "=r" (tmp) );
return tmp;
}
i wonder if we could take the above case as compliant, as we cannot have variable declaration and return value in assembly.
<t></t>