py: Add NLR support for xtensa CPU.

This commit is contained in:
Damien George
2014-11-27 20:29:33 +00:00
parent 92f1ed8f40
commit 2399aa03b8
3 changed files with 117 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ struct _nlr_buf_t {
#endif
#elif defined(__thumb2__) || defined(__thumb__) || defined(__arm__)
void *regs[10];
#elif defined(__xtensa__)
void *regs[10];
#else
#define MICROPY_NLR_SETJMP (1)
//#warning "No native NLR support for this arch, using setjmp implementation"