Skip to content

Commit

Permalink
MIPS: asm: uaccess: Disable unaligned access macros for EVA
Browse files Browse the repository at this point in the history
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 <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
  • Loading branch information
Leonid Yegoshin authored and Ralf Baechle committed Mar 26, 2014
1 parent ec56b1d commit 18e9001
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 18e9001

Please sign in to comment.