summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-06-08 13:29:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-06-08 13:29:13 +0000
commit0eef948fc5d88c983192666e5e01b52017efd424 (patch)
treead9ab0a25e107fcf6311744a0f95447deaf6e697 /c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S
parentchanged version to ss-20010525 (diff)
downloadrtems-0eef948fc5d88c983192666e5e01b52017efd424.tar.bz2
2000-06-08 Eric Valette <valette@crf.canon.fr>
* 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.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/startup/start.S7
1 files changed, 6 insertions, 1 deletions
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 */