From 96756b3945ec3388986c7ebda8b924aeb42cd7fb Mon Sep 17 00:00:00 2001 From: Kamil Tomaszewski Date: Fri, 18 Oct 2019 11:00:09 +0200 Subject: Add functions to get top and limit stack --- supervisor/port.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'supervisor/port.h') diff --git a/supervisor/port.h b/supervisor/port.h index 1430c6a50..c8a011978 100644 --- a/supervisor/port.h +++ b/supervisor/port.h @@ -54,6 +54,12 @@ void reset_board(void); // Reset to the bootloader void reset_to_bootloader(void); +// Get stack limit address +uint32_t *port_stack_get_limit(void); + +// Get stack top address +uint32_t *port_stack_get_top(void); + // Save and retrieve a word from memory that is preserved over reset. Used for safe mode. void port_set_saved_word(uint32_t); uint32_t port_get_saved_word(void); -- cgit v1.2.3