soc/mediatek/mt8196: Correct the region size for mcufw_reserved
[coreboot2.git] / src / soc / amd / common / block / acpi / bert.c
blobf20a4546b30263b40cefa71e9553ddb163942740
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <arch/bert_storage.h>
5 #include <console/console.h>
6 #include <types.h>
8 enum cb_err acpi_soc_get_bert_region(void **region, size_t *length)
11 * Skip the table if no errors are present. ACPI driver reports
12 * a table with a 0-length region:
13 * BERT: [Firmware Bug]: table invalid.
15 if (!bert_should_generate_acpi_table())
16 return CB_ERR;
18 bert_errors_region(region, length);
19 if (!*region) {
20 printk(BIOS_ERR, "Can't find BERT storage area\n");
21 return CB_ERR;
24 return CB_SUCCESS;