summaryrefslogtreecommitdiff
path: root/lib_blackfin/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_blackfin/boot.c')
-rw-r--r--lib_blackfin/boot.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib_blackfin/boot.c b/lib_blackfin/boot.c
index 47e27de..537be2b 100644
--- a/lib_blackfin/boot.c
+++ b/lib_blackfin/boot.c
@@ -31,6 +31,8 @@ static char *make_command_line(void)
return dest;
}
+extern ulong bfin_poweron_retx;
+
int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
{
int (*appl) (char *cmdline);
@@ -49,7 +51,12 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
cmdline = make_command_line();
icache_disable();
dcache_disable();
- (*appl) (cmdline);
+ asm __volatile__(
+ "RETX = %[retx];"
+ "CALL (%0);"
+ :
+ : "p"(appl), "q0"(cmdline), [retx] "d"(bfin_poweron_retx)
+ );
/* does not return */
return 1;