summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-04-19 17:25:59 -0500
committerAaron Durbin <adurbin@chromium.org>2016-04-21 20:46:45 +0200
commitd4afa938c3f8b72e2d3572dc74d60b731f4ddeb0 (patch)
tree1af5e48c6633a8d82a6a673bc55ec15fce0efe8c /src/include
parent8984af89b85034ad0456bb3a63a78cd63c618934 (diff)
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 <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14434 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/bootmem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/bootmem.h b/src/include/bootmem.h
index 0665058d14..10c8d51b77 100644
--- a/src/include/bootmem.h
+++ b/src/include/bootmem.h
@@ -26,6 +26,9 @@
*/
void bootmem_init(void);
+/* Architecture hook to add bootmem areas the architecture controls. */
+void bootmem_arch_add_ranges(void);
+
/* Add a range of a given type to the bootmem address space. */
void bootmem_add_range(uint64_t start, uint64_t size, uint32_t type);