From ee2740b7f63a7266e218fb97b657a67a8d1fde50 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 4 Oct 2015 17:47:36 -0700 Subject: arch/x86/bootblock: Do not include non-code files in bootblock.S Since we now have more freedom in the bootblock linking step it no longer makes sense to use a monolithic bootblock.S. Code segments must still be included as the order in bootblock.S determines code flow. However, non-code flow related assembly stubs don't need to be directly included in bootblock.S Change-Id: I08e86e92d82bd2138194ed42652f268b0764aa54 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/11792 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand Reviewed-by: Aaron Durbin --- src/cpu/intel/Makefile.inc | 1 + src/cpu/intel/fit/Makefile.inc | 1 + src/cpu/intel/fit/fit.S | 30 ++++++++++++++++++++++++++++++ src/cpu/intel/fit/fit.inc | 30 ------------------------------ 4 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 src/cpu/intel/fit/Makefile.inc create mode 100644 src/cpu/intel/fit/fit.S delete mode 100644 src/cpu/intel/fit/fit.inc (limited to 'src/cpu') diff --git a/src/cpu/intel/Makefile.inc b/src/cpu/intel/Makefile.inc index 6f07e30b5e..904aa5d7b5 100644 --- a/src/cpu/intel/Makefile.inc +++ b/src/cpu/intel/Makefile.inc @@ -3,6 +3,7 @@ # # Therefore: ONLY include Makefile.inc from socket directories! +subdirs-$(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE) += fit subdirs-$(CONFIG_CPU_INTEL_SOCKET_441) += socket_441 subdirs-$(CONFIG_CPU_INTEL_SOCKET_BGA956) += socket_BGA956 subdirs-$(CONFIG_CPU_INTEL_EP80579) += ep80579 diff --git a/src/cpu/intel/fit/Makefile.inc b/src/cpu/intel/fit/Makefile.inc new file mode 100644 index 0000000000..4b540ba5df --- /dev/null +++ b/src/cpu/intel/fit/Makefile.inc @@ -0,0 +1 @@ +bootblock-y += fit.S diff --git a/src/cpu/intel/fit/fit.S b/src/cpu/intel/fit/fit.S new file mode 100644 index 0000000000..e4595c0d6d --- /dev/null +++ b/src/cpu/intel/fit/fit.S @@ -0,0 +1,30 @@ +.section ".fit_pointer", "a", @progbits + .code32 +.global fit_pointer +fit_pointer: +.long fit_table +.long 0 +.previous + +.section ".rom.data", "a", @progbits +.align 16 +.global fit_table +.global fit_table_end +fit_table: +/* Address for type 0 is '_FIT_ ' */ +.long 0x5449465f +.long 0x2020205f +/* + * There is 1 entry in the table. Other tools will have to update the size + * and checksum when adding entries. + */ +.long 0x00000001 +/* Version */ +.word 0x0100 +/* Type 0 with checksum valid. */ +.byte 0x80 +/* Checksum byte - must add to zero. */ +.byte 0x7d +.fill CONFIG_CPU_INTEL_NUM_FIT_ENTRIES*16 +fit_table_end: +.previous diff --git a/src/cpu/intel/fit/fit.inc b/src/cpu/intel/fit/fit.inc deleted file mode 100644 index e4595c0d6d..0000000000 --- a/src/cpu/intel/fit/fit.inc +++ /dev/null @@ -1,30 +0,0 @@ -.section ".fit_pointer", "a", @progbits - .code32 -.global fit_pointer -fit_pointer: -.long fit_table -.long 0 -.previous - -.section ".rom.data", "a", @progbits -.align 16 -.global fit_table -.global fit_table_end -fit_table: -/* Address for type 0 is '_FIT_ ' */ -.long 0x5449465f -.long 0x2020205f -/* - * There is 1 entry in the table. Other tools will have to update the size - * and checksum when adding entries. - */ -.long 0x00000001 -/* Version */ -.word 0x0100 -/* Type 0 with checksum valid. */ -.byte 0x80 -/* Checksum byte - must add to zero. */ -.byte 0x7d -.fill CONFIG_CPU_INTEL_NUM_FIT_ENTRIES*16 -fit_table_end: -.previous -- cgit v1.2.3