diff --git a/bsps/aarch64/xilinx-zynqmp/ecc/cache.c b/bsps/aarch64/xilinx-zynqmp/ecc/cache.c index 393983a5ed..1e93113b36 100644 --- a/bsps/aarch64/xilinx-zynqmp/ecc/cache.c +++ b/bsps/aarch64/xilinx-zynqmp/ecc/cache.c @@ -85,7 +85,7 @@ static void cache_handler(void *arg) if (l1val & AARCH64_CPUMERRSR_EL1_VALID) { /* parse L1 data */ - Cache_Error_Event cerr = {0, }; + Cache_Error_Info cerr = {0, }; cerr.abort = l1val & AARCH64_CPUMERRSR_EL1_FATAL; cerr.repeats = AARCH64_CPUMERRSR_EL1_REPEATERR_GET(l1val); cerr.other_errors = AARCH64_CPUMERRSR_EL1_OTHERERR_GET(l1val); @@ -98,7 +98,7 @@ static void cache_handler(void *arg) if (l2val & AARCH64_L2MERRSR_EL1_VALID) { /* parse L2 data */ - Cache_Error_Event cerr = {0, }; + Cache_Error_Info cerr = {0, }; cerr.abort = l2val & AARCH64_L2MERRSR_EL1_FATAL; cerr.repeats = AARCH64_L2MERRSR_EL1_REPEATERR_GET(l2val); cerr.other_errors = AARCH64_L2MERRSR_EL1_OTHERERR_GET(l2val); diff --git a/bsps/aarch64/xilinx-zynqmp/include/bsp/ecc.h b/bsps/aarch64/xilinx-zynqmp/include/bsp/ecc.h index a718549b2a..b3be3566fc 100644 --- a/bsps/aarch64/xilinx-zynqmp/include/bsp/ecc.h +++ b/bsps/aarch64/xilinx-zynqmp/include/bsp/ecc.h @@ -55,9 +55,9 @@ extern "C" { * @brief Enumeration describing the possible types of ECC events */ typedef enum { - /* L1 Cache event information is delivered via Cache_Error_Event struct. */ + /* L1 Cache event information is delivered via Cache_Error_Info struct. */ L1_CACHE, - /* L2 Cache event information is delivered via Cache_Error_Event struct. */ + /* L2 Cache event information is delivered via Cache_Error_Info struct. */ L2_CACHE, /* * L1 and L2 cache are on a combined interrupt on ZynqMP. They are enabled as @@ -66,7 +66,9 @@ typedef enum { * both. */ L1_L2_CACHE, + /* OCM RAM event information is delivered via OCM_Error_Info struct. */ OCM_RAM, + /* DDR RAM event information is delivered via DDR_Error_Info struct. */ DDR_RAM, } ECC_Event_Type; @@ -106,7 +108,7 @@ typedef struct { uint8_t other_errors; /* Whether any of the errors represented have caused a data abort */ bool abort; -} Cache_Error_Event; +} Cache_Error_Info; /** * @brief Typedef for ECC handlers