aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/tables.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-10-26 20:31:41 +0200
committerArthur Heymans <arthur@aheymans.xyz>2019-11-10 15:38:45 +0000
commit8b7cd43d5d5af1d192b0bbe34e6aff776df90a0f (patch)
tree71ec6dc46b938175c3fa8a2ead1985667f730424 /src/arch/x86/tables.c
parent005e25de0fe79d3aa72062279b9642d21cc9916c (diff)
arch/x86: Remove EARLY_EBDA_INIT support
This is unused now. Change-Id: Ie8bc1d6761d66c5e1dda40c34c940cdba90646d2 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36363 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/arch/x86/tables.c')
-rw-r--r--src/arch/x86/tables.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/arch/x86/tables.c b/src/arch/x86/tables.c
index ddb0710c8a..8ecf86dc3f 100644
--- a/src/arch/x86/tables.c
+++ b/src/arch/x86/tables.c
@@ -194,41 +194,6 @@ static unsigned long write_smbios_table(unsigned long rom_table_end)
#define FORWARDING_TABLE_ADDR ((uintptr_t)0x500)
static uintptr_t forwarding_table = FORWARDING_TABLE_ADDR;
-/*
- * For EARLY_EBDA_INIT the BDA area will be wiped on the resume path which
- * has the forwarding table entry. Therefore, when tables are written an
- * entry is placed in cbmem that can be restored on OS resume to the proper
- * location.
- */
-static void stash_forwarding_table(uintptr_t addr, size_t sz)
-{
- void *cbmem_addr = cbmem_add(CBMEM_ID_CBTABLE_FWD, sz);
-
- if (cbmem_addr == NULL) {
- printk(BIOS_ERR, "Unable to allocate CBMEM forwarding entry.\n");
- return;
- }
-
- memcpy(cbmem_addr, (void *)addr, sz);
-}
-
-static void restore_forwarding_table(void *dest)
-{
- const struct cbmem_entry *fwd_entry;
-
- fwd_entry = cbmem_entry_find(CBMEM_ID_CBTABLE_FWD);
-
- if (fwd_entry == NULL) {
- printk(BIOS_ERR, "Unable to restore CBMEM forwarding entry.\n");
- return;
- }
-
- memcpy(dest, cbmem_entry_start(fwd_entry), cbmem_entry_size(fwd_entry));
-}
-
-BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY,
- restore_forwarding_table, (void *)FORWARDING_TABLE_ADDR);
-
void arch_write_tables(uintptr_t coreboot_table)
{
size_t sz;
@@ -250,8 +215,6 @@ void arch_write_tables(uintptr_t coreboot_table)
sz = write_coreboot_forwarding_table(forwarding_table, coreboot_table);
- stash_forwarding_table(forwarding_table, sz);
-
forwarding_table += sz;
/* Align up to page boundary for historical consistency. */
forwarding_table = ALIGN_UP(forwarding_table, 4*KiB);