1 | // Xtensa-Windowed specific stuff |
2 | |
3 | #include "py/mpconfig.h" |
4 | |
5 | #if MICROPY_EMIT_XTENSAWIN |
6 | |
7 | // this is defined so that the assembler exports generic assembler API macros |
8 | #define GENERIC_ASM_API (1) |
9 | #define GENERIC_ASM_API_WIN (1) |
10 | #include "py/asmxtensa.h" |
11 | |
12 | // Word indices of REG_LOCAL_x in nlr_buf_t |
13 | #define NLR_BUF_IDX_LOCAL_1 (2 + 4) // a4 |
14 | #define NLR_BUF_IDX_LOCAL_2 (2 + 5) // a5 |
15 | #define NLR_BUF_IDX_LOCAL_3 (2 + 6) // a6 |
16 | |
17 | #define N_NLR_SETJMP (1) |
18 | #define N_PRELUDE_AS_BYTES_OBJ (1) |
19 | #define N_XTENSAWIN (1) |
20 | #define EXPORT_FUN(name) emit_native_xtensawin_##name |
21 | #include "py/emitnative.c" |
22 | |
23 | #endif |
24 | |