diff options
Diffstat (limited to 'lib_blackfin/bootm.c')
-rw-r--r-- | lib_blackfin/bootm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib_blackfin/bootm.c b/lib_blackfin/bootm.c index d0afb21..195eb9c 100644 --- a/lib_blackfin/bootm.c +++ b/lib_blackfin/bootm.c @@ -36,6 +36,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) int (*appl) (char *cmdline); char *cmdline; + if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) + return 1; + #ifdef SHARED_RESOURCES swap_to(FLASH); #endif @@ -48,6 +51,6 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) dcache_disable(); (*appl) (cmdline); /* does not return */ -error: + return 1; } |