aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/systemagent/memmap.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-04 21:24:28 +0100
committerArthur Heymans <arthur@aheymans.xyz>2019-11-10 15:38:17 +0000
commitcf5af24a94b614bbc3f3fb531eb5cccf2d8e00c6 (patch)
treed36c9eb1fff6ae07fdc3d10b0cc638d435d40630 /src/soc/intel/common/block/systemagent/memmap.c
parentc4c5d85c220b6bd594c1c32f0aa74117c3b68a09 (diff)
soc/intel/common/sa: Remove EBDA dependency
Saving cbmem_top across stages is not needed anymore so EBDA should not be used. The guard to cbmem_top_chipset implementation was inappropriate. Change-Id: Ibbb3534b88de4f7b6fc39675a77461265605e56e Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36614 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner
Diffstat (limited to 'src/soc/intel/common/block/systemagent/memmap.c')
-rw-r--r--src/soc/intel/common/block/systemagent/memmap.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/soc/intel/common/block/systemagent/memmap.c b/src/soc/intel/common/block/systemagent/memmap.c
index 809c13a1ff..2b0fdc4e14 100644
--- a/src/soc/intel/common/block/systemagent/memmap.c
+++ b/src/soc/intel/common/block/systemagent/memmap.c
@@ -19,8 +19,6 @@
#include <console/console.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h>
-#include <fsp/util.h>
-#include <intelblocks/ebda.h>
#include <intelblocks/systemagent.h>
#include <stdlib.h>
@@ -70,31 +68,6 @@ void smm_region(uintptr_t *start, size_t *size)
*size = sa_get_tseg_size();
}
-#if CONFIG(SOC_INTEL_COMMON_BLOCK_EBDA)
-void fill_memmap_ebda(struct ebda_config *cfg)
-{
- struct range_entry tolum;
-
- fsp_find_bootloader_tolum(&tolum);
- cfg->cbmem_top = range_entry_end(&tolum);
-}
-
-void cbmem_top_init(void)
-{
- /* Initialize EBDA area */
- initialize_ebda_area();
-}
-
-void *cbmem_top_chipset(void)
-{
- struct ebda_config ebda_cfg;
-
- retrieve_ebda_object(&ebda_cfg);
-
- return (void *)(uintptr_t)ebda_cfg.cbmem_top;
-}
-#endif
-
void fill_postcar_frame(struct postcar_frame *pcf)
{
uintptr_t top_of_ram;