summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@bidouilliste.com>2017-01-19 10:23:56 +0100
committerTom Rini <trini@konsulko.com>2017-01-20 15:38:05 -0500
commit995eab8b5b580b67394312b1621c60a71042cd18 (patch)
treeed4713d36ca41a2b03815763b39a43bb8c773e64 /cmd
parentb4e923a8056c29ae978c2086b65be0cbc84cef4e (diff)
downloadu-boot-995eab8b5b580b67394312b1621c60a71042cd18.tar.gz
u-boot-995eab8b5b580b67394312b1621c60a71042cd18.tar.bz2
u-boot-995eab8b5b580b67394312b1621c60a71042cd18.zip
bootm: qnx: Disable data cache before booting QNX image
Instead of disabling the data cache in the bootelf command, disabling it in the do_bootm_qnxelf function. Some ELF binary might want the cache enabled. Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/elf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/cmd/elf.c b/cmd/elf.c
index 5190cc6c0f..e4c6535111 100644
--- a/cmd/elf.c
+++ b/cmd/elf.c
@@ -110,22 +110,11 @@ static unsigned long do_bootelf_exec(ulong (*entry)(int, char * const[]),
unsigned long ret;
/*
- * QNX images require the data cache is disabled.
- * Data cache is already flushed, so just turn it off.
- */
- int dcache = dcache_status();
- if (dcache)
- dcache_disable();
-
- /*
* pass address parameter as argv[0] (aka command name),
* and all remaining args
*/
ret = entry(argc, argv);
- if (dcache)
- dcache_enable();
-
return ret;
}