Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Move instruction encoder/decoder under lib/

Aarch64 instruction set encoding and decoding logic can prove useful
for some features/tools both part of the kernel and outside the kernel.

Isolate the function dealing only with encoding/decoding instructions,
with minimal dependency on kernel utilities in order to be able to reuse
that code.

Code was only moved, no code should have been added, removed nor
modifier.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Link: https://lore.kernel.org/r/20210303170536.1838032-5-jthierry@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Julien Thierry and committed by
Will Deacon
72fd7236 633e5e93

+4 -4
+1 -1
arch/arm64/kernel/Makefile
··· 18 18 obj-y := debug-monitors.o entry.o irq.o fpsimd.o \ 19 19 entry-common.o entry-fpsimd.o process.o ptrace.o \ 20 20 setup.o signal.o sys.o stacktrace.o time.o traps.o \ 21 - io.o vdso.o hyp-stub.o psci.o cpu_ops.o insn.o \ 21 + io.o vdso.o hyp-stub.o psci.o cpu_ops.o \ 22 22 return_address.o cpuinfo.o cpu_errata.o \ 23 23 cpufeature.o alternative.o cacheinfo.o \ 24 24 smp.o smp_spin_table.o topology.o smccc-call.o \
arch/arm64/kernel/insn.c arch/arm64/lib/insn.c
+3 -3
arch/arm64/lib/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 lib-y := clear_user.o delay.o copy_from_user.o \ 3 3 copy_to_user.o copy_in_user.o copy_page.o \ 4 - clear_page.o csum.o memchr.o memcpy.o memmove.o \ 5 - memset.o memcmp.o strcmp.o strncmp.o strlen.o \ 6 - strnlen.o strchr.o strrchr.o tishift.o 4 + clear_page.o csum.o insn.o memchr.o memcpy.o \ 5 + memmove.o memset.o memcmp.o strcmp.o strncmp.o \ 6 + strlen.o strnlen.o strchr.o strrchr.o tishift.o 7 7 8 8 ifeq ($(CONFIG_KERNEL_MODE_NEON), y) 9 9 obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o