From: Simon Glass Date: Mon, 16 Jan 2017 14:04:20 +0000 (-0700) Subject: x86: Move setjmp to the i386 directory X-Git-Tag: v2025.01-rc5-pxa1908~7533 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=4d3ac6c3268d39929488c14d913af30f8de0368b;p=u-boot.git x86: Move setjmp to the i386 directory This code is only used in 32-bit mode. Move it so that it does not get built with 64-bit U-Boot. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile index 2fda32d29f..45f95ab034 100644 --- a/arch/x86/cpu/Makefile +++ b/arch/x86/cpu/Makefile @@ -14,9 +14,6 @@ else extra-y = start.o endif extra-$(CONFIG_$(SPL_)X86_16BIT_INIT) += resetvec.o start16.o -ifndef CONFIG_$(SPL_)X86_64 -obj-y += setjmp.o -endif obj-y += cpu.o cpu_x86.o diff --git a/arch/x86/cpu/i386/Makefile b/arch/x86/cpu/i386/Makefile index 2547bbaa63..0c47252610 100644 --- a/arch/x86/cpu/i386/Makefile +++ b/arch/x86/cpu/i386/Makefile @@ -6,3 +6,4 @@ obj-y += call64.o obj-y += cpu.o obj-y += interrupt.o +obj-y += setjmp.o diff --git a/arch/x86/cpu/setjmp.S b/arch/x86/cpu/i386/setjmp.S similarity index 100% rename from arch/x86/cpu/setjmp.S rename to arch/x86/cpu/i386/setjmp.S