From 4c0f5769f033b907946d0c307a088f49561bb30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 20 Nov 2020 07:33:21 +0200 Subject: arch/ppc64: Remove .id section in bootblock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The strings in .id are expected to match the build for the purpose of identifying the binary image. There is no identified use for the offsets. The files id.ld and prologue.inc were unused. Change-Id: Ida332671e0ace3f6afd11020474ffda04614bad5 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/47966 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/arch/ppc64/Kconfig | 4 ---- src/arch/ppc64/bootblock.S | 23 ----------------------- src/arch/ppc64/id.ld | 8 -------- src/arch/ppc64/prologue.inc | 4 ---- 4 files changed, 39 deletions(-) delete mode 100644 src/arch/ppc64/id.ld delete mode 100644 src/arch/ppc64/prologue.inc (limited to 'src') diff --git a/src/arch/ppc64/Kconfig b/src/arch/ppc64/Kconfig index 546dbc82e0..44dbb1d778 100644 --- a/src/arch/ppc64/Kconfig +++ b/src/arch/ppc64/Kconfig @@ -17,7 +17,3 @@ config ARCH_ROMSTAGE_PPC64 config ARCH_RAMSTAGE_PPC64 bool select ARCH_PPC64 - -config ID_SECTION_OFFSET - hex - default 0x80 diff --git a/src/arch/ppc64/bootblock.S b/src/arch/ppc64/bootblock.S index 8b66fcdfbd..b443f056d1 100644 --- a/src/arch/ppc64/bootblock.S +++ b/src/arch/ppc64/bootblock.S @@ -8,26 +8,3 @@ .org 0x100, 0xff _start: b _start - .section ".id", "a", %progbits - - .section ".id", "a", @progbits - - .globl __id_start -__id_start: -ver: - .asciz "4" //COREBOOT_VERSION -vendor: - .asciz "qemu" //CONFIG_MAINBOARD_VENDOR -part: - .asciz "1" //CONFIG_MAINBOARD_PART_NUMBER - /* Reverse offset to the vendor id */ -.long __id_end + CONFIG_ID_SECTION_OFFSET - ver - /* Reverse offset to the vendor id */ -.long __id_end + CONFIG_ID_SECTION_OFFSET - vendor - /* Reverse offset to the part number */ -.long __id_end + CONFIG_ID_SECTION_OFFSET - part - /* of this romimage */ -.long CONFIG_ROM_SIZE - .globl __id_end - -__id_end: diff --git a/src/arch/ppc64/id.ld b/src/arch/ppc64/id.ld deleted file mode 100644 index 74497408b2..0000000000 --- a/src/arch/ppc64/id.ld +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -SECTIONS { - . = (0xffffffff - CONFIG_ID_SECTION_OFFSET) - (__id_end - __id_start) + 1; - .id (.): { - *(.id) - } -} diff --git a/src/arch/ppc64/prologue.inc b/src/arch/ppc64/prologue.inc deleted file mode 100644 index 21f7d49ac3..0000000000 --- a/src/arch/ppc64/prologue.inc +++ /dev/null @@ -1,4 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -.section ".rom.data", "a", @progbits -.section ".rom.text", "ax", @progbits -- cgit v1.2.3