diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-04-19 20:37:51 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-04-21 20:48:14 +0200 |
commit | 5481c961b265ef5128ab67b24d0416df22d1f693 (patch) | |
tree | 1be924448edad0662da489319fa2405c14a3b03d /src/lib/coreboot_table.c | |
parent | d4afa938c3f8b72e2d3572dc74d60b731f4ddeb0 (diff) |
lib/coreboot_table: add architecture hooks for adding tables
Add a architecture specific function, arch_write_tables(), that
allows an architecture to add its required tables for booting.
This callback helps write_tables() to be de-duplicated.
Change-Id: I805c2f166b1e75942ad28b6e7e1982d64d2d5498
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/14435
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/lib/coreboot_table.c')
-rw-r--r-- | src/lib/coreboot_table.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index 6967217b6a..583f609a3e 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -19,6 +19,7 @@ #include <console/uart.h> #include <ip_checksum.h> #include <boot/coreboot_tables.h> +#include <boot/tables.h> #include <boot_device.h> #include <string.h> #include <version.h> @@ -464,6 +465,8 @@ unsigned long write_coreboot_table( { struct lb_header *head; + arch_write_tables(rom_table_end); + if (low_table_start || low_table_end) { printk(BIOS_DEBUG, "Writing table forward entry at 0x%08lx\n", low_table_end); |