summaryrefslogtreecommitdiffstatshomepage
path: root/stm/malloc0.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-18 23:44:05 +0100
committerDamien <damien.p.george@gmail.com>2013-10-18 23:44:05 +0100
commit995b8aabb1ee786a4070d6d8392750ff878d53fa (patch)
tree94a997dc8a4e6e89d048786fb6812a12bc99f4b8 /stm/malloc0.c
parent5ac1b2efbd5dfb2a62fe984dc9dc8a7127fb5e82 (diff)
downloadmicropython-995b8aabb1ee786a4070d6d8392750ff878d53fa.tar.gz
micropython-995b8aabb1ee786a4070d6d8392750ff878d53fa.zip
Partially implement proper flash storage.
Diffstat (limited to 'stm/malloc0.c')
-rw-r--r--stm/malloc0.c2
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);