void sysHwInit0 (void) { #ifdef INCLUDE_CACHE_SUPPORT /* * Install the appropriate cache library, no address translation * routines are required for this BSP, as the default memory map has * virtual and physical addresses the same. */ cacheCortexA9LibInstall (mmuPhysToVirt, mmuVirtToPhys); #ifdef INCLUDE_L2_CACHE if(*(u32 *)(SHM_MEM_CCORE_L2CACHE_ADDR)){ sysL2CacheInit(); } #endif /* INCLUDE_L2_CACHE */ #endif /* INCLUDE_CACHE_SUPPORT */ #ifdef INCLUDE_MMU /* Install the appropriate MMU library and translation routines */ mmuCortexA8LibInstall (mmuPhysToVirt, mmuVirtToPhys); #endif /* defined(INCLUDE_MMU) */ #ifdef FTP_REPLY_TIME_OUT ftpReplyTimeout = FTP_REPLY_TIME_OUT; #endif return; }
void sysHwInit0 (void) { #ifdef INCLUDE_CACHE_SUPPORT /* * Install the appropriate cache library, no address translation * routines are required for this BSP, as the default memory map has * virtual and physical addresses the same. */ cacheCortexA9LibInstall (mmuPhysToVirt, mmuVirtToPhys); #endif /* INCLUDE_CACHE_SUPPORT */ #ifdef INCLUDE_MMU /* Install the appropriate MMU library and translation routines */ mmuCortexA8LibInstall (mmuPhysToVirt, mmuVirtToPhys); #endif /* defined(INCLUDE_MMU) */ return; }