lib: add common write_tables() implementation

Hardware / Coreboot - Aaron Durbin [chromium.org] - 21 April 2016 13:49 UTC

In order to de-duplicate common patterns implement one write_tables() function. The new write_tables() replaces all the architecture-specific ones that were largely copied. The callbacks are put in place to handle any per-architecture requirements.

Change-Id: Id3d7abdce5b30f5557ccfe1dacff3c58c59f5e2b

a4db050 lib: add common write_tables() implementation
src/arch/arm/tables.c | 34 -------------------
src/arch/arm64/tables.c | 34 -------------------
src/arch/mips/tables.c | 34 -------------------
src/arch/power8/tables.c | 35 -------------------
src/arch/riscv/tables.c | 34 -------------------
src/arch/x86/tables.c | 65 +++++++++---------------------------
src/include/boot/coreboot_tables.h | 4 ---
src/lib/coreboot_table.c | 63 ++++++++++++++++++----------------
8 files changed, 50 insertions(+), 253 deletions(-)

Upstream: review.coreboot.org


  • Share