use of swp{b} is deprecated for ARMv6 and ARMv7

Change-Id: Ia3fffeb5d5c3a3cda6de85b2d905e3088897b1db