From 0eef948fc5d88c983192666e5e01b52017efd424 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 Jun 2001 13:29:13 +0000 Subject: 2000-06-08 Eric Valette * console/console.c, include/commproc.h, startup/start.S: The printk/printf did not work when loaded by EPPCBUG. They did work when loaded with the BDM debugger. I suspected EPPBUG made some nasty things like patching Communication processor microcode... Anyway, the attached patch: 1) Enables to have printk nearly immediately after boot, 2) Make printf work automagically (I do not know why except I make a different initialization for printk that should be overwritten by console init later ?) I let the default to be using EPPCBUG embedded firmware to boot and using this printk early enabler code (LOADED_BY_EPPCBUG and EARLY_CONSOLE) are on. --- c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S') diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S b/c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S index 7b8dfde7f9..14c6803228 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S @@ -242,6 +242,8 @@ spin: /* * #define LOADED_BY_EPPCBUG */ +#define LOADED_BY_EPPCBUG +#define EARLY_CONSOLE /* * Initialization code */ @@ -275,7 +277,10 @@ spin: /* Clear the bss section. */ bl bssclr nop - +#if defined(EARLY_CONSOLE) && defined(LOADED_BY_EPPCBUG) + EXTERN_PROC (serial_init) + bl PROC (serial_init) +#endif lis r5,environ@ha la r5,environ@l(r5) /* environp */ /* clear argc and argv */ -- cgit v1.2.3