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:
parent
9a34705b80
commit
4fc5b62ec3
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue