summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/cezanne/mca.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-07-14 00:05:39 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-07-14 23:10:46 +0000
commit1e1d490ff885206dfb30dbd7a3dfeffa818afdb6 (patch)
tree24f9036e33f77983c2089bbfc3f5c64736bf9aa4 /src/soc/amd/cezanne/mca.c
parentdc970fc0399b96e42671770fad6a7da5a40de461 (diff)
downloadcoreboot-1e1d490ff885206dfb30dbd7a3dfeffa818afdb6.tar.gz
coreboot-1e1d490ff885206dfb30dbd7a3dfeffa818afdb6.tar.bz2
coreboot-1e1d490ff885206dfb30dbd7a3dfeffa818afdb6.zip
soc/amd: factor out check_mca to common code
Change-Id: I139d1fe41bad5213da8890c2867f275b6847e3e1 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56281 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/cezanne/mca.c')
-rw-r--r--src/soc/amd/cezanne/mca.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/soc/amd/cezanne/mca.c b/src/soc/amd/cezanne/mca.c
index a8d97029f180..68fae29204f1 100644
--- a/src/soc/amd/cezanne/mca.c
+++ b/src/soc/amd/cezanne/mca.c
@@ -1,18 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/mca.h>
-#include <cpu/x86/msr.h>
-static void mca_check_all_banks(void)
+void mca_check_all_banks(void)
{
/* TODO: Implement MCAX register checking and BERT table generation. */
}
-
-/* Check the Machine Check Architecture Extension registers */
-void check_mca(void)
-{
- mca_check_all_banks();
- /* mca_clear_status uses the MCA registers and not the MCAX ones. Since they are
- aliases, we can use either set of registers. */
- mca_clear_status();
-}