x86: Move setjmp to the i386 directory
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:04:20 +0000 (07:04 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 7 Feb 2017 05:07:36 +0000 (13:07 +0800)
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/Makefile
arch/x86/cpu/i386/Makefile
arch/x86/cpu/i386/setjmp.S [moved from arch/x86/cpu/setjmp.S with 100% similarity]

index 2fda32d..45f95ab 100644 (file)
@@ -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
 
index 2547bba..0c47252 100644 (file)
@@ -6,3 +6,4 @@
 obj-y += call64.o
 obj-y += cpu.o
 obj-y += interrupt.o
+obj-y += setjmp.o