[U-Boot] the d-cache is not unlocked

Baidu Boy liucai.lfn at gmail.com
Wed Nov 17 12:47:49 CET 2010


Dear buddies:

For the e300 core, we can see the d-cache is locked as SRAM for the stack in
start.S file by calling the function  lock_ram_in_cache:
-----------
arch/powerpc/cpu/mpc83xx/start.S
#ifdef CONFIG_SYS_INIT_RAM_LOCK
        bl      lock_ram_in_cache
        sync
#endif
-----------
But we do not unlock the 4-KB d-cache which we locked in start.S for e300
-----------
arch/powerpc/lib/board.c
#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
        unlock_ram_in_cache();  /* it's time to unlock D-cache in e500 */
#endif
-----------
-- 
Best Regards
Leo Liu


More information about the U-Boot mailing list