git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@418 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
96ad8292f6
commit
465593d541
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue