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).
This commit is contained in:
Till Straumann
2009-03-05 21:10:07 +00:00
parent 6987eeccf1
commit b0d9310de7
2 changed files with 7 additions and 1 deletions

View File

@@ -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);