forked from Imagelibrary/rtems
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user