summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-06-03 12:19:20 -0700
committerGitHub <noreply@github.com>2020-06-03 12:19:20 -0700
commit547beb5d4740f8e5b5db5d57a7544a4b765ef0c5 (patch)
tree5b445330d04a03f517dc490b53c87f9c5a5e7516 /py/stackctrl.c
parent01e294536c3ca36a8c9ad0e3b2c14adb5c2b85b5 (diff)
parent79cd86445ee352861a68d395114a15c3cd4edee5 (diff)
Merge pull request #2981 from Flameeyes/master
Set up basic integration with pre-commit.
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;
}