]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: asm: uaccess: Add EVA support for str*_user operations
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 3 Jan 2014 14:55:02 +0000 (14:55 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:16 +0000 (23:09 +0100)
commitc0250ac92b9c14f66b65b4bd5620e0663a637859
tree3ffe0996be570d0767da8e73bf90628801e2ec53
parentb4580666026b313f3f1bf949775573d7804442a4
MIPS: asm: uaccess: Add EVA support for str*_user operations

The str*_user functions are used to securely access NULL terminated
strings from userland. Therefore, it's necessary to use the appropriate
EVA function. However, if the string is in kernel space, then the normal
instructions are being used to access it. The __str*_kernel_asm and
__str*_user_asm symbols are the same for non-EVA mode so there is no
functional change for the non-EVA kernels.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/uaccess.h