diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2018-04-05 09:14:51 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-30 09:33:49 +0000 |
commit | 9ab9db0bc5a1bf8bb35980068a840691d54aa5dd (patch) | |
tree | f9b0e0f5999a8a7d24760178a3fafebc59bf807c /src/arch/x86 | |
parent | 666c172d385823eefdfeb99ae3a4c20fd1b711f9 (diff) |
lib/bootmem: Introduce custom bootmem tags
Introduce bootmem custom memory tags and use them instead of reusing
LB_MEM tags.
Use asserts in bootmem_add_range to verify parameters.
Tested with uImage payload on Cavium SoC.
Change-Id: I7be8fa792fc7933ca218ecd43d250d3a9c55caa6
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/25633
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/tables.c b/src/arch/x86/tables.c index 057f6654d4..0a9a3d59b4 100644 --- a/src/arch/x86/tables.c +++ b/src/arch/x86/tables.c @@ -266,5 +266,5 @@ void bootmem_arch_add_ranges(void) /* Memory from 0 through the forwarding_table is reserved. */ const uintptr_t base = 0; - bootmem_add_range(base, forwarding_table - base, LB_MEM_TABLE); + bootmem_add_range(base, forwarding_table - base, BM_MEM_TABLE); } |