summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 2cc5c7ccbf..288ef28424 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,5 +1,11 @@
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).
+
+2009-03-05 Till Straumann <strauman@slac.stanford.edu>
+
* vmeUniverse/vmeTsi148.h, vmeUniverse/vmeTsi148.c:
fixed function declarations to silence compiler
warnings.
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);