MIPS: Move unaligned load/store helpers to inst.h
authorHuacai Chen <chenhc@lemote.com>
Fri, 24 Apr 2020 10:56:45 +0000 (18:56 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 24 Apr 2020 16:18:06 +0000 (18:18 +0200)
commitd339cd02b888eb8c4508fd772120782eac59a9fa
tree0bc6051bb591c23942b7393ee2cc9305f68d5658
parentc05b5940d94019383dadb77ba614248d5a2323e1
MIPS: Move unaligned load/store helpers to inst.h

Move unaligned load/store helpers from unaligned.c to inst.h, then
other parts of the kernel can use these helpers.

Use __ASSEMBLY__ to guard the definition of "LONG" in asm.h to avoid
build error on IPxx platforms.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Pei Huang <huangpei@loongson.cn>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/asm.h
arch/mips/include/asm/inst.h
arch/mips/kernel/unaligned.c