/* SPDX-License-Identifier: GPL-2.0-only */ #include #include #include #include #include #include #include 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); }