Revert "Update params in calls to LDREXW/STREXW to uint32_t"

This reverts commit 334b2d64b0.

This commit is not required any more as changes for this are already part
of master branch
pull/9863/head
Deepika 2019-02-26 11:09:25 -06:00
parent f33fc3ae7b
commit e0b4b51d92
5 changed files with 20 additions and 20 deletions

View File

@ -130,9 +130,9 @@ static inline void atomic_set_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) | mask;
newValue = (uint32_t)__LDREXW(ptr) | mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
@ -140,9 +140,9 @@ static inline void atomic_clr_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) &~mask;
newValue = (uint32_t)__LDREXW(ptr) &~mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
#if defined ( __GNUC__ ) && !defined ( __CC_ARM )

View File

@ -133,9 +133,9 @@ static inline void atomic_set_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) | mask;
newValue = (uint32_t)__LDREXW(ptr) | mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
// MBED patch
@ -143,9 +143,9 @@ static inline void atomic_clr_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) &~mask;
newValue = (uint32_t)__LDREXW(ptr) &~mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
// MBED patch

View File

@ -131,9 +131,9 @@ static inline void atomic_set_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) | mask;
newValue = (uint32_t)__LDREXW(ptr) | mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
@ -141,9 +141,9 @@ static inline void atomic_clr_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) &~mask;
newValue = (uint32_t)__LDREXW(ptr) &~mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
/* MBED */

View File

@ -130,9 +130,9 @@ static inline void atomic_set_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) | mask;
newValue = (uint32_t)__LDREXW(ptr) | mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
@ -140,9 +140,9 @@ static inline void atomic_clr_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) &~mask;
newValue = (uint32_t)__LDREXW(ptr) &~mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
#if defined ( __GNUC__ ) && !defined ( __CC_ARM )

View File

@ -133,9 +133,9 @@ static inline void atomic_set_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) | mask;
newValue = (uint32_t)__LDREXW(ptr) | mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
// Added for MBED PR #3062
@ -143,9 +143,9 @@ static inline void atomic_clr_u32(volatile uint32_t *ptr, uint32_t mask)
{
uint32_t newValue;
do {
newValue = (uint32_t)__LDREXW((volatile uint32_t *)ptr) &~mask;
newValue = (uint32_t)__LDREXW(ptr) &~mask;
} while (__STREXW(newValue,(volatile uint32_t *) ptr));
} while (__STREXW(newValue, ptr));
}
#if defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */