summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/cpu/mca/mca.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/cpu/mca/mca.c b/src/soc/amd/common/block/cpu/mca/mca.c
index b5fd6a29df..1c3a30cf56 100644
--- a/src/soc/amd/common/block/cpu/mca/mca.c
+++ b/src/soc/amd/common/block/cpu/mca/mca.c
@@ -9,6 +9,11 @@
#include <types.h>
#include "mca_common_defs.h"
+static bool mca_skip_check(void)
+{
+ return !is_warm_reset();
+}
+
static void mca_print_error(unsigned int bank)
{
msr_t msr;
@@ -36,7 +41,7 @@ void mca_check_all_banks(void)
if (!mca_has_expected_bank_count())
printk(BIOS_WARNING, "CPU has an unexpected number of MCA banks!\n");
- if (!is_warm_reset())
+ if (mca_skip_check())
return;
for (unsigned int i = 0 ; i < num_banks ; i++) {