summaryrefslogtreecommitdiff
path: root/supervisor/shared/stack.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-11-30 16:00:55 -0800
committerGitHub <noreply@github.com>2020-11-30 16:00:55 -0800
commita975ef497162297fa80658170481f6d3fcfc25bc (patch)
tree6d07bde669a9245c784cc9826ecc80ebd29c41af /supervisor/shared/stack.h
parent299b6efd846e47cc705d2962cefffb5b0af7324c (diff)
parentd6f8a43f6cc755b90376a66b75818744fbe63320 (diff)
Merge pull request #3695 from cwalther/movable
Add movable supervisor allocations
Diffstat (limited to 'supervisor/shared/stack.h')
-rwxr-xr-xsupervisor/shared/stack.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/supervisor/shared/stack.h b/supervisor/shared/stack.h
index 7096f0b3e..1c75de5f7 100755
--- a/supervisor/shared/stack.h
+++ b/supervisor/shared/stack.h
@@ -31,10 +31,12 @@
#include "supervisor/memory.h"
-extern supervisor_allocation* stack_alloc;
-
void stack_init(void);
void stack_resize(void);
+// Actual stack location and size, may be larger than requested.
+uint32_t* stack_get_bottom(void);
+size_t stack_get_length(void);
+// Next/current requested stack size.
void set_next_stack_size(uint32_t size);
uint32_t get_current_stack_size(void);
bool stack_ok(void);