All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] vxworks: Add CONFIG_VXWORKS_PREBOOT
@ 2009-09-23  6:22 Niklaus Giger
  2009-09-23 11:39 ` Tom
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Niklaus Giger @ 2009-09-23  6:22 UTC (permalink / raw)
  To: u-boot

The option CONFIG_VXWORKS_PREBOOT allows a board specific
vxworks_preboot to be run just before jumping into the
vxWorks images. This can be used to alter a register
which is used differently by U-boot and vxWorks.

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
---
 common/cmd_elf.c  |    4 ++++
 include/vxworks.h |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/common/cmd_elf.c b/common/cmd_elf.c
index bf7dd63..4e36680 100644
--- a/common/cmd_elf.c
+++ b/common/cmd_elf.c
@@ -213,6 +213,10 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 			(char *) bootaddr);
 	printf ("## Starting vxWorks at 0x%08lx ...\n", addr);
 
+#ifdef CONFIG_VXWORKS_PREBOOT
+    vxworks_preboot();
+#endif
+
 	((void (*)(void)) addr) ();
 
 	puts ("## vxWorks terminated\n");
diff --git a/include/vxworks.h b/include/vxworks.h
index 1633904..df2b580 100644
--- a/include/vxworks.h
+++ b/include/vxworks.h
@@ -50,4 +50,8 @@ int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
 #define CONFIG_SYS_VXWORKS_SERVERNAME	"srv"
 #endif
 
+#ifdef CONFIG_VXWORKS_PREBOOT
+    void vxworks_preboot(void);
+#endif
+
 #endif
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-23 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23  6:22 [U-Boot] [PATCH] vxworks: Add CONFIG_VXWORKS_PREBOOT Niklaus Giger
2009-09-23 11:39 ` Tom
2009-09-23 12:48   ` Niklaus Giger
2009-09-23 13:00     ` Tom
2009-09-23 12:56 ` Stefan Roese
2009-09-23 13:02 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.