Skip to content

Commit 73d6a09

Browse files
committed
powerpc/main: Replace mp_stack calls wih mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <[email protected]>
1 parent 8160743 commit 73d6a09

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ports/powerpc/main.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "py/repl.h"
3333
#include "py/gc.h"
3434
#include "py/mperrno.h"
35-
#include "py/stackctrl.h"
3635
#include "shared/runtime/pyexec.h"
3736

3837
void __stack_chk_fail(void);
@@ -73,10 +72,7 @@ int main(int argc, char **argv) {
7372
mp_pystack_init(pystack, &pystack[1024]);
7473
#endif
7574

76-
#if MICROPY_STACK_CHECK
77-
mp_stack_ctrl_init();
78-
mp_stack_set_limit(48 * 1024);
79-
#endif
75+
mp_cstack_init_with_sp_here(48 * 1024);
8076

8177
#if MICROPY_ENABLE_GC
8278
gc_init(heap, heap + sizeof(heap));

0 commit comments

Comments
 (0)