summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.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/bootcard.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/bootcard.c')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index d7539c75ed..2853097d2f 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -81,8 +81,8 @@ char *rtems_progname;
* For the default heap size use the free space from the start of the
* work area up to the work space start as heap area.
*/
- heap_size_default = (char *) Configuration.work_space_start
- - (char *) work_area_start;
+ heap_size_default = (size_t) ((char *) Configuration.work_space_start
+ - (char *) work_area_start);
/* Keep it as a multiple of 16 bytes */
heap_size_default &= ~((size_t) 0xf);
@@ -98,7 +98,7 @@ char *rtems_progname;
}
}
- bsp_libc_init( heap_start, (uint32_t) heap_size, 0);
+ bsp_libc_init( heap_start, heap_size, 0);
return RTEMS_SUCCESSFUL;
}