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

login
register
mail settings
Submitter Peter Pan
Date Oct. 15, 2011, 2:35 a.m.
Message ID <CAGQXtZGYbddvrRPDput6UvKTrY5mQiEuRhGuKW6-jw6=S11gmw@mail.gmail.com>
Download mbox | patch
Permalink /patch/119950/
State Not Applicable
Delegated to: Tom Rini
Headers show

Comments

Peter Pan - Oct. 15, 2011, 2:35 a.m.
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(-)

       puts ("## vxWorks terminated\n");

Patch

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) ();