From: Leonid Yegoshin Date: Tue, 17 Dec 2013 15:20:24 +0000 (+0000) Subject: MIPS: asm: uaccess: Disable unaligned access macros for EVA X-Git-Tag: MMI-PSA29.97-13-9~12486^2~93 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18e900185b3ad75a04ee70ea291f71540e5f80e6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git MIPS: asm: uaccess: Disable unaligned access macros for EVA ulb, ulh, ulw are macros which emulate unaligned access for MIPS. However, no such macros exist for EVA mode, so the only way to do EVA unaligned accesses is in the ADE exception handler. As a result of which, disable these macros for EVA. Signed-off-by: Leonid Yegoshin Signed-off-by: Markos Chandras --- diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 0df57e783960..9c6f5cec3e82 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h @@ -401,6 +401,11 @@ do { \ extern void __put_user_unknown(void); +/* + * ul{b,h,w} are macros and there are no equivalent macros for EVA. + * EVA unaligned access is handled in the ADE exception handler. + */ +#ifndef CONFIG_EVA /* * put_user_unaligned: - Write a simple value into user space. * @x: Value to copy to user space. @@ -666,6 +671,7 @@ do { \ } extern void __put_user_unaligned_unknown(void); +#endif /* * We're generating jump to subroutines which will be outside the range of