diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/machine/setjmp.h | 4 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h index c88ba6bc6..9f32c234c 100644 --- a/newlib/libc/include/machine/setjmp.h +++ b/newlib/libc/include/machine/setjmp.h @@ -9,6 +9,10 @@ _BEGIN_STD_C #define _JBLEN 23 #endif +#if defined(__AVR__) +#define _JBLEN 24 +#endif + #ifdef __sparc__ /* * onsstack,sigmask,sp,pc,npc,psr,g1,o0,wbcnt (sigcontext). diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index 2e9522134..e40a8fc03 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -122,3 +122,11 @@ asm (".equ V_FILL, 65" ); asm (".equ V_BSD_OS, 66" ); asm (".equ V_EPI_OS, 69" ); #endif + +#if defined(__AVR__) +/* + * Initial stack pointer address "__stack" + * hard coded into GCC instead of providing it through ldscripts + */ +const char* __stack ; +#endif |