From 995eab8b5b580b67394312b1621c60a71042cd18 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 19 Jan 2017 10:23:56 +0100 Subject: 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 --- cmd/elf.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'cmd/elf.c') diff --git a/cmd/elf.c b/cmd/elf.c index 5190cc6c0f..e4c6535111 100644 --- a/cmd/elf.c +++ b/cmd/elf.c @@ -109,23 +109,12 @@ 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; } -- cgit v1.2.3