]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
disable caches before booting an app for Blackfin apps
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jan 2008 23:21:05 +0000 (18:21 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 13 Apr 2008 20:53:45 +0000 (13:53 -0700)
commit1f1d88dd40815332df32982e739f2ddd2da6fe1a
tree84880cf65619d0b5d195804d73c1f7ba2739fe23
parente6dfed705efa44ebf00d21bb1588c6ccc8f3ad32
disable caches before booting an app for Blackfin apps

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: Mike Frysinger <vapier@gentoo.org>
common/cmd_boot.c
common/cmd_elf.c