[PATCH] ARM: signal: sigreturn_codes should be endian neutral to work in BE8

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Aug 13 08:12:45 EDT 2013


On Tue, Aug 13, 2013 at 12:12:11AM -0700, Victor Kamensky wrote:
> In case of BE8 kernel data is in BE order whereas code stays in LE
> order. sigreturn_codes array initializer need to use macros from
> <asm/opcodes.h> to setup instructions code in endian neutral way.
> 
> Problem was discovered during ltp testing of BE system: all rt_sig*
> tests failed. Tested against the same tests in both BE and LE modes.

It might make more sense to move these into a .S file actually.



More information about the linux-arm-kernel mailing list