• Mike Frysinger's avatar
    disable caches before booting an app for Blackfin apps · 1f1d88dd
    Mike Frysinger authored
    It isn't generally save to execute applications outside of U-Boot with caches
    enabled due to the way the Blackfin processor handles caches (requires
    software assistance).  This patch disables caches before booting an ELF or
    just booting raw code.  The previous discussion on the patch was that we
    wanted to use weaks instead, but that proved to not be feasible when multiple
    symbols are involved, which puts us back at the ifdef solution.  I've
    minimized the ugliness by moving the setup step outside of the main function.
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
cmd_elf.c 9.07 KB