NLR and Python exceptions work on the board.

This commit is contained in:
Damien
2013-10-16 00:46:39 +01:00
parent c9f91976e1
commit 152568bcb6
4 changed files with 182 additions and 28 deletions

View File

@@ -3,9 +3,9 @@
#include <limits.h>
#ifndef __WORDSIZE
#error __WORDSIZE needs to be defined
#endif
//#ifndef __WORDSIZE
//#error __WORDSIZE needs to be defined
//#endif
typedef struct _nlr_buf_t nlr_buf_t;
struct _nlr_buf_t {
@@ -17,7 +17,9 @@ struct _nlr_buf_t {
#elif __WORDSIZE == 64
void *regs[8];
#else
#error Unsupported __WORDSIZE
// hack for thumb
void *regs[10];
//#error Unsupported __WORDSIZE
#endif
};