aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-26 13:43:07 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-26 13:43:07 +0000
commit1d00697fe4f8bbe42e0c0d59f76879bd1e575883 (patch)
tree074f1eff033ab92d0ef21b3b49526e223e4f6cfa /os/kernel
parenta7ce64bb324a4d56808a806070de42adbef9a215 (diff)
downloadChibiOS-1d00697fe4f8bbe42e0c0d59f76879bd1e575883.tar.gz
ChibiOS-1d00697fe4f8bbe42e0c0d59f76879bd1e575883.tar.bz2
ChibiOS-1d00697fe4f8bbe42e0c0d59f76879bd1e575883.zip
Fixed bug 3193062 (RVCT).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2766 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r--os/kernel/src/chmemcore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/kernel/src/chmemcore.c b/os/kernel/src/chmemcore.c
index 1fed481c5..c28d150fa 100644
--- a/os/kernel/src/chmemcore.c
+++ b/os/kernel/src/chmemcore.c
@@ -57,10 +57,10 @@ static uint8_t *endmem;
*/
void core_init(void) {
#if CH_MEMCORE_SIZE == 0
- extern uint8_t __heap_base__;
- extern uint8_t __heap_end__;
- nextmem = (uint8_t *)MEM_ALIGN_NEXT(&__heap_base__);
- endmem = (uint8_t *)MEM_ALIGN_PREV(&__heap_end__);
+ extern uint8_t __heap_base__[];
+ extern uint8_t __heap_end__[];
+ nextmem = (uint8_t *)MEM_ALIGN_NEXT(__heap_base__);
+ endmem = (uint8_t *)MEM_ALIGN_PREV(__heap_end__);
#else
static stkalign_t buffer[MEM_ALIGN_NEXT(CH_MEMCORE_SIZE)/MEM_ALIGN_SIZE];
nextmem = (uint8_t *)&buffer[0];