summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-27 20:50:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-27 20:50:57 +0000
commit45544f0d016c4246d9556911afabf106fe6bd7f7 (patch)
tree21a47b5aa839ea552e16270fe310211d50e135f7 /c/src/lib/libbsp/i386/pc386/startup/bspstart.c
parentModified to properly descend into the dummy directory. (diff)
downloadrtems-45544f0d016c4246d9556911afabf106fe6bd7f7.tar.bz2
Patch from Aleksey (Quality Quorum <qqi@world.std.com>) to
increase ease of application configuration of the pc386 BSP. This patch allows switching the printk console to a serial port and overriding bsp_start by making it a weak alias.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/bspstart.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
index a14ff0521f..180dd24ab5 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
@@ -136,7 +136,7 @@ void bsp_pretasking_hook(void)
| Arguments: None.
| Returns: Nothing.
+--------------------------------------------------------------------------*/
-void bsp_start( void )
+void bsp_start_default( void )
{
/*
* Calibrate variable for 1ms-loop (see timer.c)
@@ -207,3 +207,10 @@ void bsp_start( void )
printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
#endif
} /* bsp_start */
+
+/*
+ * By making this a weak alias for bsp_start_default, a brave soul
+ * can override the actual bsp_start routine used.
+ */
+
+void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));