[U-Boot] [Patch v2] bootvx: Disable interrupts before boot up vxWorks

bootvx : Disable interrupts before boot up vxWorks
vxWorks needs all interrupts to be disabled before boot up.
Signed-off-by: Ke Pan pppeterpppan@gmail.com
--- Changes for v2: - Remove console outputs - Add a comment - Change the log message
common/cmd_elf.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/cmd_elf.c b/common/cmd_elf.c index bf32612..7a7a6bb 100644 --- a/common/cmd_elf.c +++ b/common/cmd_elf.c @@ -230,6 +230,8 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) (char *) bootaddr); printf ("## Starting vxWorks at 0x%08lx ...\n", addr);
+ /* Disable all interrupts before boot up vxWorks */ + disable_interrupts(); ((void (*)(void)) addr) ();
puts ("## vxWorks terminated\n");
participants (1)
-
Peter Pan