arch:xtensa: use letter 'i' in inline assemble constraint instead of I

Some toolchain such as xtensa-xcc is unrecognize with constraint letter 'I',
letter 'i' is more common in GNU assembler.

Change-Id: I00f6a33fd7a5f2b95508c683e9954d402b68755f
This commit is contained in:
zhuyanlin 2021-08-04 16:04:49 +08:00 committed by Abdelatif Guettouche
parent 9a34705b80
commit 4fc5b62ec3
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)
);
}

View File

@ -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)
);
}