Skip to content

Commit

Permalink
arch: arc: fake exception should set not clrear AE bit
Browse files Browse the repository at this point in the history
To make a fake exception, we should set not clear AE bit

Signed-off-by: Wayne Ren <[email protected]>
  • Loading branch information
Wayne Ren committed Mar 12, 2020
1 parent 2b70bc8 commit 10fc793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arc/core/userspace.S
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ _arc_go_to_user_space:

/* fake exception return */
lr r0, [_ARC_V2_STATUS32]
bclr r0, r0, _ARC_V2_STATUS32_AE_BIT
bset r0, r0, _ARC_V2_STATUS32_AE_BIT
kflag r0

/* when exception returns from kernel to user, sp and _ARC_V2_USER_SP
Expand Down

0 comments on commit 10fc793

Please sign in to comment.