From a4b39697ea2a05928ee3292154456fc7c4602367 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Sep 2008 16:16:31 +0000 Subject: 2008-09-17 Miao Yan * 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. --- c/src/lib/libbsp/shared/ChangeLog | 8 ++++++++ c/src/lib/libbsp/shared/bsplibc.c | 4 ++-- c/src/lib/libbsp/shared/bsppost.c | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libbsp') 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 + + * 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 * 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 #include +#include #include #include void bsp_postdriver_hook(void) { - open_dev_console(); + if (rtems_libio_supp_helper) + (*rtems_libio_supp_helper)(); } -- cgit v1.2.3