diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 8ce013309..257d1e5d4 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2014-04-09 DJ Delorie + + * libc/machine/rl78/setjmp.S: Add RL78/G10 support. + 2014-04-04 Ashish Kapania * configure.host (sys_dir, newlib_cflags): Set sys_dir to tirtos and use diff --git a/newlib/libc/machine/rl78/setjmp.S b/newlib/libc/machine/rl78/setjmp.S index ddc60218d..552f8e18e 100644 --- a/newlib/libc/machine/rl78/setjmp.S +++ b/newlib/libc/machine/rl78/setjmp.S @@ -30,6 +30,26 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifdef __RL78_G10__ +; clobberable +r8 = 0xffec8 +r9 = 0xffec9 +r10 = 0xffeca +r11 = 0xffecb +r12 = 0xffecc +r13 = 0xffecd +r14 = 0xffece +r15 = 0xffecf +; preserved +r16 = 0xffed0 +r17 = 0xffed1 +r18 = 0xffed2 +r19 = 0xffed3 +r20 = 0xffed4 +r21 = 0xffed5 +r22 = 0xffed6 +r23 = 0xffed7 +#else ; clobberable r8 = 0xffef0 r9 = 0xffef1 @@ -48,6 +68,7 @@ r20 = 0xffeec r21 = 0xffeed r22 = 0xffeee r23 = 0xffeef +#endif /* The jump buffer has the following structure: R0 .. R23 3*8 bytes