summaryrefslogtreecommitdiff
path: root/supervisor/port.h
diff options
context:
space:
mode:
authorKamil Tomaszewski <kamil.tomaszewski@sony.com>2019-10-18 11:00:09 +0200
committerKamil Tomaszewski <kamil.tomaszewski@sony.com>2019-10-18 11:04:45 +0200
commit96756b3945ec3388986c7ebda8b924aeb42cd7fb (patch)
tree083576bf135db6af5b6f9a18541881b5b613f5e4 /supervisor/port.h
parent30c9ad2b2a8687f962847f73f2533ce26118ddca (diff)
Add functions to get top and limit stack
Diffstat (limited to 'supervisor/port.h')
-rw-r--r--supervisor/port.h6
1 files changed, 6 insertions, 0 deletions
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);