summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-03-05 21:10:07 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-03-05 21:10:07 +0000
commitb0d9310de7e5543aa442ecf2d50a79ac233e1a5b (patch)
treea7880b45e8137d69efab4fc52ce3d5fee59442e5 /c/src/lib/libbsp/shared/bootcard.c
parent2009-03-05 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-b0d9310de7e5543aa442ecf2d50a79ac233e1a5b.tar.bz2
2009-03-05 Till Straumann <strauman@slac.stanford.edu>
* bootcard.c: use aligned heap_start (instead of original heap_start) when calculating default heap size (to take into account loss due to alignment).
Diffstat (limited to 'c/src/lib/libbsp/shared/bootcard.c')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index a18eb7014a..f83c109b4f 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -87,7 +87,7 @@ static rtems_status_code bootcard_bsp_libc_helper(
* work area up to the work space start as heap area.
*/
heap_size_default = (intptr_t) ((char *) Configuration.work_space_start
- - (char *) work_area_start);
+ - (char *) heap_start);
/* Keep it as a multiple of 16 bytes */
heap_size_default &= ~((intptr_t) 0xf);