[PATCH 9/9] ARM: Add SWP/SWPB emulation for ARMv7 processors (v5)
From: Olof Johansson <hidden>
Date: 2010-09-01 04:08:01
From: Olof Johansson <hidden>
Date: 2010-09-01 04:08:01
Hi, On Tue, Aug 31, 2010 at 02:58:56PM +0100, Catalin Marinas wrote:
From: Leif Lindholm <redacted> The SWP instruction was deprecated in the ARMv6 architecture, superseded by the LDREX/STREX family of instructions for load-linked/store-conditional operations. The ARMv7 multiprocessing extensions mandate that SWP/SWPB instructions are treated as undefined from reset, with the ability to enable them through the System Control Register SW bit. This patch adds the alternative solution to emulate the SWP and SWPB instructions using LDREX/STREX sequences, and log statistics to /proc/cpu/swp_emulation. To correctly deal with copy-on-write, it also
Sounds like debugfs would be a better place to export this through? That's what PPC does. -Olof