summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-17 16:16:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-17 16:16:31 +0000
commita4b39697ea2a05928ee3292154456fc7c4602367 (patch)
tree054216e6b4e2263513c2efe22bdcc2cbd104cd23 /c/src/lib/libbsp
parent2008-09-17 Miao Yan <yanmiaobest@gmail.com> (diff)
downloadrtems-a4b39697ea2a05928ee3292154456fc7c4602367.tar.bz2
2008-09-17 Miao Yan <yanmiaobest@gmail.com>
* bsplibc.c, bsppost.c: Merge GSOC project code to add simple device only filesystem (devfs), optionally completely drop out filesystem, and to clean up disabling newlib reentrancy support. This dropped 17K from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K code space.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog8
-rw-r--r--c/src/lib/libbsp/shared/bsplibc.c4
-rw-r--r--c/src/lib/libbsp/shared/bsppost.c6
3 files changed, 14 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 2ccc6d339c..0d2c86ee02 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-17 Miao Yan <yanmiaobest@gmail.com>
+
+ * bsplibc.c, bsppost.c: Merge GSOC project code to add simple device
+ only filesystem (devfs), optionally completely drop out filesystem,
+ and to clean up disabling newlib reentrancy support. This dropped 17K
+ from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K
+ code space.
+
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* bspgetworkarea.c: New file. This implementation should be useable
diff --git a/c/src/lib/libbsp/shared/bsplibc.c b/c/src/lib/libbsp/shared/bsplibc.c
index 11c0c49607..d2030efbc4 100644
--- a/c/src/lib/libbsp/shared/bsplibc.c
+++ b/c/src/lib/libbsp/shared/bsplibc.c
@@ -24,8 +24,8 @@ void bsp_libc_init(
* calls for use by newlib (ie: provide open, close, etc)
* Uses malloc() to get area for the iops, so must be after malloc init
*/
-
- rtems_libio_init();
+ if (rtems_libio_init_helper)
+ (*rtems_libio_init_helper)();
/*
* Set up for the libc handling.
diff --git a/c/src/lib/libbsp/shared/bsppost.c b/c/src/lib/libbsp/shared/bsppost.c
index 273ef3baf0..0794a9d52b 100644
--- a/c/src/lib/libbsp/shared/bsppost.c
+++ b/c/src/lib/libbsp/shared/bsppost.c
@@ -4,7 +4,7 @@
* Newlib will automatically associate the file descriptors
* with the first thress files opened.
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,11 +17,13 @@
#include <fcntl.h>
#include <rtems.h>
+#include <rtems/libio.h>
#include <rtems/libcsupport.h>
#include <bsp/bootcard.h>
void bsp_postdriver_hook(void)
{
- open_dev_console();
+ if (rtems_libio_supp_helper)
+ (*rtems_libio_supp_helper)();
}