ARM: signal: sigreturn_codes should be endian neutral to work in BE8
In case of BE8 kernel data is in BE order whereas code stays in LE order. Move sigreturn_codes to separate .S file and use proper assembler mnemonics for these code snippets. In this case compiler will take care of proper instructions byteswaps for BE8 case. Change assumes that sufficiently Thumb-capable tools are used to build kernel. 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. Signed-off-by: NVictor Kamensky <victor.kamensky@linaro.org> Reviewed-by: NDave Martin <Dave.Martin@arm.com> Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
Showing
arch/arm/kernel/sigreturn_codes.S
0 → 100644
想要评论请 注册 或 登录