ARM pbl: Provide a dummy error function for the decompressor
We can't do anything useful in the error function, so we just hang. This has the advantage that at least when a JTAG debugger is connected we can see what happens. Otherwise the code just jumps to NULL in case of an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
93fbc1ce22
commit
a86824b5ac
|
@ -128,6 +128,11 @@ static void mmu_disable(void)
|
|||
__mmu_cache_off();
|
||||
}
|
||||
|
||||
void noinline errorfn(char *error)
|
||||
{
|
||||
while (1);
|
||||
}
|
||||
|
||||
static void barebox_uncompress(void *compressed_start, unsigned int len)
|
||||
{
|
||||
void (*barebox)(void);
|
||||
|
@ -154,7 +159,7 @@ static void barebox_uncompress(void *compressed_start, unsigned int len)
|
|||
decompress((void *)compressed_start,
|
||||
len,
|
||||
NULL, NULL,
|
||||
(void *)TEXT_BASE, NULL, NULL);
|
||||
(void *)TEXT_BASE, NULL, errorfn);
|
||||
|
||||
if (use_mmu)
|
||||
mmu_disable();
|
||||
|
|
Loading…
Reference in New Issue