diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:10:07 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:10:07 +0000 |
commit | b0d9310de7e5543aa442ecf2d50a79ac233e1a5b (patch) | |
tree | a7880b45e8137d69efab4fc52ce3d5fee59442e5 /c/src | |
parent | 2009-03-05 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-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')
-rw-r--r-- | c/src/lib/libbsp/shared/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/bootcard.c | 2 |
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); |