From d4afa938c3f8b72e2d3572dc74d60b731f4ddeb0 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 19 Apr 2016 17:25:59 -0500 Subject: lib/bootmem: allow architecture specific bootmem ranges A architecture-specific function, named bootmem_arch_add_ranges(), is added so that each architecture can add entries into the bootmem memory map. This allows for a common write_tables() implementation to avoid code duplication. Change-Id: I834c82eae212869cad8bb02c7abcd9254d120735 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/14434 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/arch/riscv/tables.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/riscv') diff --git a/src/arch/riscv/tables.c b/src/arch/riscv/tables.c index eb08e6e842..20891e8d67 100644 --- a/src/arch/riscv/tables.c +++ b/src/arch/riscv/tables.c @@ -17,12 +17,17 @@ #include #include +#include #include #include #include #include #include +void bootmem_arch_add_ranges(void) +{ +} + #define MAX_COREBOOT_TABLE_SIZE CONFIG_COREBOOT_TABLE_SIZE void write_tables(void) -- cgit v1.2.3