mirror of
https://github.com/micropython/micropython.git
synced 2025-12-13 08:20:13 +01:00
powerpc/main: Replace mp_stack calls wih mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
#include "py/repl.h"
|
||||
#include "py/gc.h"
|
||||
#include "py/mperrno.h"
|
||||
#include "py/stackctrl.h"
|
||||
#include "shared/runtime/pyexec.h"
|
||||
|
||||
void __stack_chk_fail(void);
|
||||
@@ -73,10 +72,7 @@ int main(int argc, char **argv) {
|
||||
mp_pystack_init(pystack, &pystack[1024]);
|
||||
#endif
|
||||
|
||||
#if MICROPY_STACK_CHECK
|
||||
mp_stack_ctrl_init();
|
||||
mp_stack_set_limit(48 * 1024);
|
||||
#endif
|
||||
mp_cstack_init_with_sp_here(48 * 1024);
|
||||
|
||||
#if MICROPY_ENABLE_GC
|
||||
gc_init(heap, heap + sizeof(heap));
|
||||
|
||||
Reference in New Issue
Block a user