Skip to content

Top and limit stack addresses.#2227

Closed
kamtom480 wants to merge 5 commits into
adafruit:masterfrom
kamtom480:circuitpython-stack
Closed

Top and limit stack addresses.#2227
kamtom480 wants to merge 5 commits into
adafruit:masterfrom
kamtom480:circuitpython-stack

Conversation

@kamtom480
Copy link
Copy Markdown

This PR changes the way to get stack addresses. Now instead of using only values from the linker file, you can define the top and limit address of the stack in the code.

Two new functions have been added: port_stack_get_limit and port_stack_get_top.

For atmel-samd, nrf and stm32f4 stack addresses are returned using values from the linker file. For cxd56, the stack addresses have been taken from the task where CircuitPython is running.

@kamtom480 kamtom480 closed this Oct 18, 2019
@kamtom480 kamtom480 reopened this Oct 18, 2019
@kamtom480 kamtom480 closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant