[PATCH] ARM: Add SWP/SWPB emulation for ARMv7 processors (v3)

Leif Lindholm leif.lindholm at arm.com
Thu Jan 14 08:08:08 EST 2010


> From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
> Sent: 06 January 2010 19:37
>
> > It's to ensure it would work (without console warnings) even if
> > someone decides to disable ALIGNMENT_TRAP. An alternative would be to
> > strip the creation of /proc/cpu out from mm/alignment.c and put it
> > somewhere else (or move the stats file somewhere else - but it seemed
> > logical to group with /proc/alignment).
> 
> As I said when you previously posted this patch, that's definitely on
> the cards.  In fact, I'm about to commit the following patch for doing
> exactly this.

Excellent, thanks. I'm just about to submit the next version, which relies
on that patch, and no longer checks ALIGNMENT_TRAP for anything.

Other changes:
- Code restructured a bit, from Jamie's comments. It did end up quite a bit
  cleaner because of this.
- Comments added for memory barriers, as pointed out by Jamie.
- Added description in Documentation/arm/swp_emulation.

/
	Leif







More information about the linux-arm-kernel mailing list