Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about Dir 4.3 when a static function contains only variable declaration, asm and return statement
#1
Hi,
Given the following case:
Code:
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. Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)