summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorjgillick <j_gillick@yahoo.com>2020-11-17 00:02:24 -0800
committerjgillick <j_gillick@yahoo.com>2020-11-17 00:02:24 -0800
commit5f0a372a2206c14e4ae206ec7cb879265aa7a38a (patch)
tree7d0e5fd15aedbf28c5fd5a8d685928ed23146b7d /py/stackctrl.c
parent119e9d38202cb26f7f04d1050263e27e1083865a (diff)
parent42ca57ff8f19368dff97bebd9ca0ac061b219084 (diff)
Merge tag '6.0.0' into thunderpack1.2
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c
index 46cbefc8c..26fc065b7 100644
--- a/py/stackctrl.c
+++ b/py/stackctrl.c
@@ -77,7 +77,7 @@ void mp_stack_set_bottom(void* stack_bottom) {
//
// The stack_dummy approach used elsewhere in this file is not safe in
// all cases. That value may be below the actual top of the stack.
-static void* approx_stack_pointer(void){
+static void* approx_stack_pointer(void){
__asm volatile ("");
return __builtin_frame_address(0);
}
@@ -90,7 +90,7 @@ void mp_stack_fill_with_sentinel(void) {
// Continue until we've hit the bottom of the stack (lowest address,
// logical "ceiling" of stack).
char* p = (char *) approx_stack_pointer() - 1;
-
+
while(p >= MP_STATE_THREAD(stack_bottom)) {
*p-- = MP_MAX_STACK_USAGE_SENTINEL_BYTE;
}