diff options
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r-- | c/src/lib/libbsp/shared/ChangeLog | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/bsplibc.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/bsppost.c | 6 |
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)(); } |