diff options
-rw-r--r-- | common/cmd_bootm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 33f1012..618579e 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -595,17 +595,18 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return do_bootm_subcommand(cmdtp, flag, argc, argv); } - if (bootm_start(cmdtp, flag, argc, argv)) - return 1; - #ifdef CONFIG_SECURE_BOOT - extern uint32_t authenticate_image(ulong start); - if (authenticate_image(images.os.start) == 0) { + extern uint32_t authenticate_image(void); + if (authenticate_image() == 0) { printf("Authenticate UImage Fail, Please check\n"); return 1; } + #endif + if (bootm_start(cmdtp, flag, argc, argv)) + return 1; + /* * We have reached the point of no return: we are going to * overwrite all exception vector code, so we cannot easily |