[U-Boot] Interrupt issue about bootvx command

Peter Pan pppeterpppan at gmail.com
Fri Oct 14 08:18:36 CEST 2011


Hi Wolfgang,

I've installed the git-email packet now, but I can not make it work.
The "Unable to initialize SMTP properly" always pop up. T_T
This is the first time I send any patch to the community, sorry for
the incontinence.

This is tested on our board, and I think at least for any Freescale
E500v2 core based board, this patch is needed. The TCR[DIE] is set in
function interrupt_init_cpu of mpc85xx/interrupts.c, which enables
decrementer interrupts.

The following is my patch. I've changed the printf to a comment.

Subject: [PATCH] common/cmd_elf : Disable interrupts before bootup vxWorks

vxWorks needs all interrupts to be disabled before bootup.
Signed-off-by: Ke Pan <pppeterpppan at gmail.com>
---
 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");
-- 

Regards,
Peter


More information about the U-Boot mailing list