summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-07-11 17:32:01 +1000
committerDamien George <damien.p.george@gmail.com>2019-07-11 17:32:01 +1000
commitfd49fcb229b6694d69d8f7646c7940e40b67a0cb (patch)
treeca9e1becbd2d865cb1b110cdf83ef3364037b270 /py
parenta73859d5af7bc08356f69cb0ee677a0e80047148 (diff)
stm32/gccollect: Always use MP_STATE_THREAD(stack_top) to get stack top.
In a non-thread build, using &_ram_end as the top-of-stack is no longer correct because the stack is not always at the very top end of RAM. See eg 04c7cdb668cc7ee391ef5fe000f825389197f7e2 and 378659209778a1bde24e9b15793087023b02bbd9. The correct value to use is &_estack, which is the value stored in MP_STATE_THREAD(stack_top), and using the same code for both thread and non-thread builds makes the code cleaner.
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions