]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nds32: Fix the unaligned access handler
authorNickhu <nickhu@andestech.com>
Thu, 3 May 2018 02:15:56 +0000 (10:15 +0800)
committerGreentime Hu <greentime@andestech.com>
Wed, 23 May 2018 05:26:22 +0000 (13:26 +0800)
commit1613de8a785d21b3aac73d2a2e640b66d514393b
tree0fcdfcff3e72c84871b202c5ef4a132a5ae5cbe7
parentb3a75846a5cfbea137e2810b2bf9407141e70feb
nds32: Fix the unaligned access handler

If the kernel config 'CONFIG_ALIGNMENT_TRAP' and the file
'/proc/sys/nds32/unaligned_access/enable' are set, the kernel
unaligned access handler does not handle correctly when the
value of immediate field is negative. This commit fixes the
unaligned access handler in kernel.

Signed-off-by: Nickhu <nickhu@andestech.com>
Reviewed-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/mm/alignment.c