]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blobdiff - packages/ti/diag/sdr/src/sdr_ecc.c
[Build Fix]
[processor-sdk/pdk.git] / packages / ti / diag / sdr / src / sdr_ecc.c
index 6b82b63ae6a04e8fd0289bb8ba8fee9104fc0e61..45b8a9d32908ab2172947457581392cac1c30dcf 100644 (file)
@@ -133,7 +133,6 @@ static SDR_Result SDR_ECC_searchMemEntryTable(SDR_ECC_MemSubType memSubType,
                                               SDR_MemConfig_t *pMemConfig);
 
 #ifdef SOC_J721E
-#pragma DATA_SECTION(mappedEccRegs, ".my_aggr_reg");
 /* Note that this example provide a single instance of mappedEccRegs (which is RAT-mapped
  * ECC aggregator configuration registers that lie in larger address space than the 32-bit
  * address space on the MCU.  If more ECC aggregator registers need to be mapped, additional
@@ -142,7 +141,7 @@ static SDR_Result SDR_ECC_searchMemEntryTable(SDR_ECC_MemSubType memSubType,
  * The expectation is that this mapping will be retained in perpetuity because in order to obtain
  * information about the ECC errors, the ECC Aggregator configuration registers require to be
  * visible from the MCU. */
-CSL_ecc_aggrRegs mappedEccRegs;
+__attribute((section(".my_aggr_reg"))) CSL_ecc_aggrRegs mappedEccRegs;
 #endif
 
 /** ============================================================================*