git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@418 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2008-08-30 08:33:53 +00:00
parent 96ad8292f6
commit 465593d541
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ void chHeapInit(void) {
hp = (void *)&__heap_base__;
hp->h_size = &__heap_end__ - &__heap_base__ - sizeof(struct header);
#else
hp = (void *)&heap;
hp = (void *)&heap.buffer[0];
hp->h_size = (&heap.buffer[ALIGN_SIZE(CH_HEAP_SIZE)] - &heap.buffer[0]) -
sizeof(struct header);
#endif