From patchwork Sat Oct 15 02:35:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v2] bootvx: Disable interrupts before boot up vxWorks Date: Fri, 14 Oct 2011 16:35:39 -0000 From: Peter Pan X-Patchwork-Id: 119950 Message-Id: To: Wolfgang Denk Cc: u-boot@lists.denx.de bootvx : Disable interrupts before boot up vxWorks vxWorks needs all interrupts to be disabled before boot up. Signed-off-by: Ke Pan --- 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(-) puts ("## vxWorks terminated\n"); 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) ();