summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/picasso/memmap.c')
-rw-r--r--src/soc/amd/picasso/memmap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/memmap.c b/src/soc/amd/picasso/memmap.c
index 42a330726e..74a6c702c0 100644
--- a/src/soc/amd/picasso/memmap.c
+++ b/src/soc/amd/picasso/memmap.c
@@ -8,6 +8,7 @@
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <cpu/amd/msr.h>
+#include <arch/bert_storage.h>
#include <memrange.h>
#include <fsp/util.h>
#include <FspGuids.h>
@@ -60,6 +61,25 @@ void smm_region(uintptr_t *start, size_t *size)
}
}
+void bert_reserved_region(void **start, size_t *size)
+{
+ struct range_entry bert;
+ int status;
+
+ *start = NULL;
+ *size = 0;
+
+ status = fsp_find_range_hob(&bert, AMD_FSP_BERT_HOB_GUID.b);
+
+ if (status < 0) {
+ printk(BIOS_ERR, "Error: unable to find BERT HOB\n");
+ return;
+ }
+
+ *start = (void *)(uintptr_t)range_entry_base(&bert);
+ *size = range_entry_size(&bert);
+}
+
void memmap_stash_early_dram_usage(void)
{
struct memmap_early_dram *e;