Patchwork [U-Boot,3/5,v3] microblaze: Initialize jumptable and console

login
register
mail settings
Submitter Michal Simek
Date Oct. 7, 2011, 7:38 a.m.
Message ID <1317973139-24315-3-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/118244/
State Accepted
Headers show

Comments

Michal Simek - Oct. 7, 2011, 7:38 a.m.
This changes were done to get support for netconsole.

Signed-off-by: Michal Simek <monstr@monstr.eu>

---
v2: Fix commit message

v3: Fix coding style
---
 arch/microblaze/lib/board.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index df27c1c..d677329 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -166,6 +166,12 @@  void board_init (void)
 	/* Initialize stdio devices */
 	stdio_init ();
 
+	/* Initialize the jump table for applications */
+	jumptable_init();
+
+	/* Initialize the console (after the relocation and devices init) */
+	console_init_r();
+
 	if ((s = getenv ("loadaddr")) != NULL) {
 		load_addr = simple_strtoul (s, NULL, 16);
 	}