diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-18 23:44:05 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-18 23:44:05 +0100 |
commit | 995b8aabb1ee786a4070d6d8392750ff878d53fa (patch) | |
tree | 94a997dc8a4e6e89d048786fb6812a12bc99f4b8 /stm/malloc0.c | |
parent | 5ac1b2efbd5dfb2a62fe984dc9dc8a7127fb5e82 (diff) | |
download | micropython-995b8aabb1ee786a4070d6d8392750ff878d53fa.tar.gz micropython-995b8aabb1ee786a4070d6d8392750ff878d53fa.zip |
Partially implement proper flash storage.
Diffstat (limited to 'stm/malloc0.c')
-rw-r--r-- | stm/malloc0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/malloc0.c b/stm/malloc0.c index 1b45846e6f..fc0267911d 100644 --- a/stm/malloc0.c +++ b/stm/malloc0.c @@ -6,7 +6,7 @@ static uint32_t mem = 0; void *malloc(size_t n) { if (mem == 0) { extern uint32_t _heap_start; - mem = &_heap_start; // need to use big ram block so we can execute code from it (is it true that we can't execute from CCM?) + mem = (uint32_t)&_heap_start; // need to use big ram block so we can execute code from it (is it true that we can't execute from CCM?) } void *ptr = (void*)mem; mem = (mem + n + 3) & (~3); |