summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bsplibc.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 12:41:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 12:41:03 +0000
commitf3eaba9a0c6ec185afd565d8a155ee88f1413c06 (patch)
treebcbfde26988e57f5a307ffddecb44ee89ec04df8 /c/src/lib/libbsp/shared/bsplibc.c
parent2008-08-19 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-f3eaba9a0c6ec185afd565d8a155ee88f1413c06.tar.bz2
2008-08-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/bootcard.h, bootcard.c, bsplibc.c: Changed parameter types of bsp_libc_init() to match RTEMS_Malloc_Initialize(). * bsppost.c, bsppredriverhook.c: Include bootcard.h. * src/irq-generic.c: Fixed warnings.
Diffstat (limited to 'c/src/lib/libbsp/shared/bsplibc.c')
-rw-r--r--c/src/lib/libbsp/shared/bsplibc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/bsplibc.c b/c/src/lib/libbsp/shared/bsplibc.c
index 1bd0ac502c..11c0c49607 100644
--- a/c/src/lib/libbsp/shared/bsplibc.c
+++ b/c/src/lib/libbsp/shared/bsplibc.c
@@ -9,13 +9,15 @@
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
+#include <bsp/bootcard.h>
+
void bsp_libc_init(
- void *heap_start,
- uint32_t heap_size,
- int use_sbrk
+ void *heap_start,
+ size_t heap_size,
+ size_t sbrk_amount
)
{
- RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk );
+ RTEMS_Malloc_Initialize( heap_start, heap_size, sbrk_amount );
/*
* Init the RTEMS libio facility to provide UNIX-like system