From 54ad9eb26a7e98d8ac80e8bbdea1c793934ee1ff Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 17 Dec 2025 09:03:29 +0100 Subject: [PATCH] x86: move mem{cpy,set}.S to arch-specific library If not these, what else are library functions. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- xen/arch/x86/Makefile | 2 -- xen/arch/x86/lib/Makefile | 2 ++ xen/arch/x86/{ => lib}/memcpy.S | 0 xen/arch/x86/{ => lib}/memset.S | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename xen/arch/x86/{ => lib}/memcpy.S (100%) rename xen/arch/x86/{ => lib}/memset.S (100%) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index dfb258d7ac..43117c88e5 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -48,8 +48,6 @@ obj-$(CONFIG_RETURN_THUNK) += indirect-thunk.o obj-$(CONFIG_PV) += ioport_emulate.o obj-y += irq.o obj-$(CONFIG_KEXEC) += machine_kexec.o -obj-y += memcpy.o -obj-y += memset.o obj-y += mm.o x86_64/mm.o obj-$(CONFIG_VM_EVENT) += monitor.o obj-y += mpparse.o diff --git a/xen/arch/x86/lib/Makefile b/xen/arch/x86/lib/Makefile index 8fe2dfd885..a5169f5e19 100644 --- a/xen/arch/x86/lib/Makefile +++ b/xen/arch/x86/lib/Makefile @@ -1,3 +1,5 @@ lib-y += copy-guest.o lib-y += copy-unsafe.o lib-y += generic-hweightl.o +lib-y += memcpy.o +lib-y += memset.o diff --git a/xen/arch/x86/memcpy.S b/xen/arch/x86/lib/memcpy.S similarity index 100% rename from xen/arch/x86/memcpy.S rename to xen/arch/x86/lib/memcpy.S diff --git a/xen/arch/x86/memset.S b/xen/arch/x86/lib/memset.S similarity index 100% rename from xen/arch/x86/memset.S rename to xen/arch/x86/lib/memset.S