diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c index df2b60e207c94..54384528a59a4 100644 --- a/shared/runtime/pyexec.c +++ b/shared/runtime/pyexec.c @@ -91,9 +91,8 @@ static int parse_compile_execute(const void *source, mp_parse_input_kind_t input nlr_buf_t nlr; nlr.ret_val = NULL; if (nlr_push(&nlr) == 0) { - // CIRCUITPY-CHANGE: Made volatile to prevent gcc from re-ordering store of function pointer into stack frame - // after call to gc_collect. For RISC-V this was causing free of the compiled function before execution. - volatile mp_obj_t module_fun = mp_const_none; + // CIRCUITPY-CHANGE + mp_obj_t module_fun = mp_const_none; // CIRCUITPY-CHANGE #if CIRCUITPY_ATEXIT if (!(exec_flags & EXEC_FLAG_SOURCE_IS_ATEXIT)) diff --git a/supervisor/shared/cpu_regs.h b/supervisor/shared/cpu_regs.h index aff0b69ebab0c..335201fe94231 100644 --- a/supervisor/shared/cpu_regs.h +++ b/supervisor/shared/cpu_regs.h @@ -20,6 +20,13 @@ #endif #endif +#ifdef __riscv +#define INTEGER_REGS 12 +#ifdef __riscv_vector +#define FLOATING_POINT_REGS 12 +#endif +#endif + #ifndef INTEGER_REGS #define INTEGER_REGS 0 #endif pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy