xtensa: fix unaligned usermode access
- correct use of .config #define name; CONFIG_UNALIGNED_USER ---> CONFIG_XTENSA_UNALIGNED_USER Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Pete Delaney <piet@tensilica.com> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
committed by
Chris Zankel
parent
bc5378fcba
commit
4ded6282ca
@@ -97,7 +97,7 @@ static dispatch_init_table_t __initdata dispatch_init_table[] = {
|
|||||||
/* EXCCAUSE_INTEGER_DIVIDE_BY_ZERO unhandled */
|
/* EXCCAUSE_INTEGER_DIVIDE_BY_ZERO unhandled */
|
||||||
/* EXCCAUSE_PRIVILEGED unhandled */
|
/* EXCCAUSE_PRIVILEGED unhandled */
|
||||||
#if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION
|
#if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION
|
||||||
#ifdef CONFIG_UNALIGNED_USER
|
#ifdef CONFIG_XTENSA_UNALIGNED_USER
|
||||||
{ EXCCAUSE_UNALIGNED, USER, fast_unaligned },
|
{ EXCCAUSE_UNALIGNED, USER, fast_unaligned },
|
||||||
#else
|
#else
|
||||||
{ EXCCAUSE_UNALIGNED, 0, do_unaligned_user },
|
{ EXCCAUSE_UNALIGNED, 0, do_unaligned_user },
|
||||||
@@ -244,7 +244,7 @@ do_illegal_instruction(struct pt_regs *regs)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION
|
#if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION
|
||||||
#ifndef CONFIG_UNALIGNED_USER
|
#ifndef CONFIG_XTENSA_UNALIGNED_USER
|
||||||
void
|
void
|
||||||
do_unaligned_user (struct pt_regs *regs)
|
do_unaligned_user (struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user