mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
11
cmd/elf.c
11
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user