From 24796fd364176ce8bb4f4eb727e0ba2ece188c08 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 4 Oct 2009 18:55:40 +0000 Subject: This does away with CONFIG_ROM_PAYLOAD_START and CONFIG_PAYLOAD_SIZE. Both were only really used in pre-cbfs, as the payload's size isn't relevant for the build process anymore. Various calculations in {no,}failovercalculation.lb are adapted accordingly. Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4720 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/lib/failover.lds | 2 +- src/arch/i386/lib/failover_failover.lds | 4 ++-- src/arch/i386/lib/id.inc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch/i386') diff --git a/src/arch/i386/lib/failover.lds b/src/arch/i386/lib/failover.lds index 94c3e097fb..25f3200911 100644 --- a/src/arch/i386/lib/failover.lds +++ b/src/arch/i386/lib/failover.lds @@ -1 +1 @@ - __normal_image = (CONFIG_ROM_PAYLOAD_START & 0xfffffff0) - 8; + __normal_image = (CONFIG_ROMBASE & 0xfffffff0) - 8; diff --git a/src/arch/i386/lib/failover_failover.lds b/src/arch/i386/lib/failover_failover.lds index ec8c12a9e4..19e6edfaaa 100644 --- a/src/arch/i386/lib/failover_failover.lds +++ b/src/arch/i386/lib/failover_failover.lds @@ -1,2 +1,2 @@ - __fallback_image = (CONFIG_ROM_PAYLOAD_START & 0xfffffff0) - 8; - __normal_image = ((CONFIG_ROM_PAYLOAD_START - CONFIG_FALLBACK_SIZE) & 0xfffffff0) - 8; + __fallback_image = (CONFIG_ROMBASE & 0xfffffff0) - 8; + __normal_image = ((CONFIG_ROMBASE - CONFIG_FALLBACK_SIZE) & 0xfffffff0) - 8; diff --git a/src/arch/i386/lib/id.inc b/src/arch/i386/lib/id.inc index c2f634ea00..181ab63d28 100644 --- a/src/arch/i386/lib/id.inc +++ b/src/arch/i386/lib/id.inc @@ -8,7 +8,7 @@ part: .asciz CONFIG_MAINBOARD_PART_NUMBER .long __id_end + 0x10 - vendor /* Reverse offset to the vendor id */ .long __id_end + 0x10 - part /* Reverse offset to the part number */ -.long CONFIG_PAYLOAD_SIZE + CONFIG_ROM_IMAGE_SIZE /* Size of this romimage */ +.long CONFIG_ROM_SIZE /* Size of this romimage */ .globl __id_end __id_end: -- cgit v1.2.3