summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bsppretaskinghook.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:46 +0000
commitec3007cafd392f6cf75d236b49ab21ae6af61ac4 (patch)
treed4d45b1a09c5ab4c5f02c9c88612f59de7a827f7 /c/src/lib/libbsp/shared/bsppretaskinghook.c
parent2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ec3007cafd392f6cf75d236b49ab21ae6af61ac4.tar.bz2
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed. * bsppretaskinghook.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/shared/bsppretaskinghook.c')
-rw-r--r--c/src/lib/libbsp/shared/bsppretaskinghook.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/bsppretaskinghook.c b/c/src/lib/libbsp/shared/bsppretaskinghook.c
new file mode 100644
index 0000000000..6a28bfdac3
--- /dev/null
+++ b/c/src/lib/libbsp/shared/bsppretaskinghook.c
@@ -0,0 +1,22 @@
+/*
+ * This is a shared BSP pretasking hook which does nothing.
+ * If all the BSP needs to do is initialize the C library,
+ * then it can rely on bootcard.c and provide bsp_get_workarea().
+ *
+ * COPYRIGHT (c) 1989-2008.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <rtems.h>
+#include <rtems/libio.h>
+#include <fcntl.h>
+
+void bsp_pretasking_hook(void)
+{
+}