diff --git a/arch/xtensa/include/irq.h b/arch/xtensa/include/irq.h index d4622a8ed9..08b009b576 100644 --- a/arch/xtensa/include/irq.h +++ b/arch/xtensa/include/irq.h @@ -238,7 +238,7 @@ static inline uint32_t up_irq_save(void) __asm__ __volatile__ ( - "rsil %0, %1" : "=r"(ps) : "I"(XCHAL_EXCM_LEVEL) + "rsil %0, %1" : "=r"(ps) : "i"(XCHAL_EXCM_LEVEL) ); /* Return the previous PS value so that it can be restored with diff --git a/arch/xtensa/src/common/xtensa_counter.h b/arch/xtensa/src/common/xtensa_counter.h index 3228459cb6..a4ca36bcfb 100644 --- a/arch/xtensa/src/common/xtensa_counter.h +++ b/arch/xtensa/src/common/xtensa_counter.h @@ -87,7 +87,7 @@ static inline uint32_t xtensa_getcompare(void) __asm__ __volatile__ ( - "rsr %0, %1" : "=r"(compare) : "I"(XT_CCOMPARE) + "rsr %0, %1" : "=r"(compare) : "i"(XT_CCOMPARE) ); return compare; @@ -105,7 +105,7 @@ static inline void xtensa_setcompare(uint32_t compare) { __asm__ __volatile__ ( - "wsr %0, %1" : : "r"(compare), "I"(XT_CCOMPARE) + "wsr %0, %1" : : "r"(compare), "i"(XT_CCOMPARE) ); } diff --git a/arch/xtensa/src/esp32s2/esp32s2_timerisr.c b/arch/xtensa/src/esp32s2/esp32s2_timerisr.c index fd61e42595..070842b654 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_timerisr.c +++ b/arch/xtensa/src/esp32s2/esp32s2_timerisr.c @@ -76,7 +76,7 @@ static inline uint32_t xtensa_getcompare(void) __asm__ __volatile__ ( - "rsr %0, %1" : "=r"(compare) : "I"(XT_CCOMPARE) + "rsr %0, %1" : "=r"(compare) : "i"(XT_CCOMPARE) ); return compare; @@ -88,7 +88,7 @@ static inline void xtensa_setcompare(uint32_t compare) { __asm__ __volatile__ ( - "wsr %0, %1" : : "r"(compare), "I"(XT_CCOMPARE) + "wsr %0, %1" : : "r"(compare), "i"(XT_CCOMPARE) ); }