diff options
| author | Kamil Tomaszewski <kamil.tomaszewski@sony.com> | 2019-10-18 11:00:09 +0200 |
|---|---|---|
| committer | Kamil Tomaszewski <kamil.tomaszewski@sony.com> | 2019-10-18 11:04:45 +0200 |
| commit | 96756b3945ec3388986c7ebda8b924aeb42cd7fb (patch) | |
| tree | 083576bf135db6af5b6f9a18541881b5b613f5e4 /ports/nrf/supervisor | |
| parent | 30c9ad2b2a8687f962847f73f2533ce26118ddca (diff) | |
Add functions to get top and limit stack
Diffstat (limited to 'ports/nrf/supervisor')
| -rw-r--r-- | ports/nrf/supervisor/port.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/nrf/supervisor/port.c b/ports/nrf/supervisor/port.c index c69101070..af858aa4a 100644 --- a/ports/nrf/supervisor/port.c +++ b/ports/nrf/supervisor/port.c @@ -146,6 +146,14 @@ void reset_cpu(void) { NVIC_SystemReset(); } +uint32_t *port_stack_get_limit(void) { + return &_ebss; +} + +uint32_t *port_stack_get_top(void) { + return &_estack; +} + extern uint32_t _ebss; // Place the word to save just after our BSS section that gets blanked. void port_set_saved_word(uint32_t value) { |
