rp2/mpconfigport: Leave callable pointers alone on RV32.
The port configuration file tagged callable pointers' LSB on both Arm and RISC-V variants. This is needed on Arm due to Thumb/Thumb2 code addresses having their LSB set, but on RISC-V this is not required. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
parent
324871f380
commit
6328958a39
@ -275,7 +275,9 @@ extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
|
||||
#define MICROPY_HW_BOOTSEL_DELAY_US 8
|
||||
#endif
|
||||
|
||||
#if PICO_ARM
|
||||
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p) | 1))
|
||||
#endif
|
||||
|
||||
#define MP_SSIZE_MAX (0x7fffffff)
|
||||
typedef intptr_t mp_int_t; // must be pointer size
|
||||
|
Loading…
Reference in New Issue
Block a user