Replace __asm__ with asm
This commit is contained in:
parent
08e79c32e0
commit
d73b443ecc
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ static void uart_puts(const char *str) {
|
|||
|
||||
static inline uint32_t rdcycle(void) {
|
||||
uint32_t cycle;
|
||||
__asm__ volatile ("rdcycle %0" : "=r"(cycle));
|
||||
asm volatile ("rdcycle %0" : "=r"(cycle));
|
||||
return cycle;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue