summaryrefslogtreecommitdiffstatshomepage
path: root/qemu-arm
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-22 22:44:56 +0000
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:09:31 +0100
commit330165a2cc9a0d4d5d00f13f851412c25d5f4ed2 (patch)
tree51e3fb1500e57441899d914f85e69a8436bfe81b /qemu-arm
parent3545ef8bb49d9ad02e85bd13f478072f8059c582 (diff)
downloadmicropython-330165a2cc9a0d4d5d00f13f851412c25d5f4ed2.tar.gz
micropython-330165a2cc9a0d4d5d00f13f851412c25d5f4ed2.zip
py: Add MP_STATE_THREAD to hold state specific to a given thread.
Diffstat (limited to 'qemu-arm')
-rw-r--r--qemu-arm/test_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c
index 6b935bbab0..ae2beabcd0 100644
--- a/qemu-arm/test_main.c
+++ b/qemu-arm/test_main.c
@@ -73,7 +73,7 @@ void gc_collect(void) {
void *sp = (void*)&dummy;
// trace the stack, including the registers (since they live on the stack in this function)
- gc_collect_root((void**)sp, ((uint32_t)MP_STATE_VM(stack_top) - (uint32_t)sp) / sizeof(uint32_t));
+ gc_collect_root((void**)sp, ((uint32_t)MP_STATE_THREAD(stack_top) - (uint32_t)sp) / sizeof(uint32_t));
gc_collect_end();
}