summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-01-28 18:15:00 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-05 13:41:45 +0000
commitdff29e0c65462258776b8fb821516faad3ec1394 (patch)
treea711cd01310f677a54f6497be8f8f071b96be54c /src/lib
parent4929f4361936bcc994044dea5c79619746384d5e (diff)
bootmem: add new memory type for BL31
After CL:31122, we can finally define a memory type specific for BL31, to make sure BL31 is not loaded on other reserved area. Change-Id: Idbd9a7fe4b12af23de1519892936d8d88a000e2c Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://review.coreboot.org/c/31123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/bootmem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/bootmem.c b/src/lib/bootmem.c
index c804df5973..7cc8fff2e4 100644
--- a/src/lib/bootmem.c
+++ b/src/lib/bootmem.c
@@ -59,6 +59,8 @@ static uint32_t bootmem_to_lb_tag(const enum bootmem_type tag)
return LB_MEM_UNUSABLE;
case BM_MEM_VENDOR_RSVD:
return LB_MEM_VENDOR_RSVD;
+ case BM_MEM_BL31:
+ return LB_MEM_RESERVED;
case BM_MEM_TABLE:
return LB_MEM_TABLE;
default:
@@ -142,6 +144,7 @@ static const struct range_strings type_strings[] = {
{ BM_MEM_NVS, "NVS" },
{ BM_MEM_UNUSABLE, "UNUSABLE" },
{ BM_MEM_VENDOR_RSVD, "VENDOR RESERVED" },
+ { BM_MEM_BL31, "BL31" },
{ BM_MEM_TABLE, "CONFIGURATION TABLES" },
{ BM_MEM_RAMSTAGE, "RAMSTAGE" },
{ BM_MEM_PAYLOAD, "PAYLOAD" },