ESP32: Use __asm__ __volatile__ for inline assembly

This commit is contained in:
YAMAMOTO Takashi 2020-03-11 16:34:29 +09:00 committed by patacongo
parent 3a03a307b9
commit 23db3b2a48
3 changed files with 3 additions and 3 deletions

View File

@ -98,5 +98,5 @@ void up_idle(void)
* sleep in a reduced power mode until an interrupt occurs to save power
*/
asm("waiti 0");
__asm__ __volatile__ ("waiti 0");
}

View File

@ -195,7 +195,7 @@ void xtensa_appcpu_start(void)
/* Move CPU0 exception vectors to IRAM */
asm volatile ("wsr %0, vecbase\n"::"r" (&_init_start));
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (&_init_start));
/* Make page 0 access raise an exception */

View File

@ -124,7 +124,7 @@ void IRAM_ATTR __start(void)
/* Move CPU0 exception vectors to IRAM */
asm volatile ("wsr %0, vecbase\n"::"r" (&_init_start));
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (&_init_start));
/* Set .bss to zero */