diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:11:36 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:11:36 +0000 |
commit | dec63673056a1d02b871cb1750b7cbde185c3c1a (patch) | |
tree | 2de33e0cae79bfcf0274edd5ab40848d0acd617a /c | |
parent | * shared/clock/clock.c: Standard decrementer exception is now more (diff) | |
download | rtems-dec63673056a1d02b871cb1750b7cbde185c3c1a.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')
-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 68b6523315..1be34770e2 100644 --- a/c/src/lib/libbsp/shared/ChangeLog +++ b/c/src/lib/libbsp/shared/ChangeLog @@ -1,3 +1,9 @@ +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). + 2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com> * clockdrv_shell.c: The Shared Memory Driver no longer requires the diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c index 78b04ecde6..bebd42e71b 100644 --- a/c/src/lib/libbsp/shared/bootcard.c +++ b/c/src/lib/libbsp/shared/bootcard.c @@ -82,7 +82,7 @@ char *rtems_progname; * work area up to the work space start as heap area. */ heap_size_default = (size_t) ((char *) Configuration.work_space_start - - (char *) work_area_start); + - (char *) heap_start); /* Keep it as a multiple of 16 bytes */ heap_size_default &= ~((size_t) 0xf); |