The store-release-exclusive is missing the "L" that makes it a
release rather than a normal store-exclusive.
Remove a variable that is not used and causes a compiler warning.
Change-Id: I91633a352b805ed9af450b632c9ee394235637c4
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/369076
Reviewed-by: Richard Wiley <rwiley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
*/
static int swp_handler(struct pt_regs *regs, unsigned int instr)
{
- u32 address_reg, destreg, data, type;
+ u32 destreg, data, type;
uintptr_t address;
unsigned int res = 0;
u32 temp32;
if (type == TYPE_SWPB) {
do {
temp8 = ldax8((u8 *) address);
- } while (stx8((u8 *) address, (u8) data));
+ } while (stlx8((u8 *) address, (u8) data));
regs->regs[destreg] = temp8;
regs->pc += 4;
swpb_count++;