This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] add RL78/G10 support to setjmp
- From: DJ Delorie <dj at redhat dot com>
- To: newlib at sourceware dot org
- Date: Wed, 9 Apr 2014 17:35:46 -0400
- Subject: [patch] add RL78/G10 support to setjmp
- Authentication-results: sourceware.org; auth=none
Committed.
* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
Index: newlib/libc/machine/rl78/setjmp.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/rl78/setjmp.S,v
retrieving revision 1.2
diff -p -U 5 -r1.2 setjmp.S
--- newlib/libc/machine/rl78/setjmp.S 3 Oct 2012 20:24:50 -0000 1.2
+++ newlib/libc/machine/rl78/setjmp.S 9 Apr 2014 21:33:17 -0000
@@ -28,10 +28,30 @@ ON ANY THEORY OF LIABILITY, WHETHER IN C
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
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
r10 = 0xffef2
r11 = 0xffef3
@@ -46,10 +66,11 @@ r18 = 0xffeea
r19 = 0xffeeb
r20 = 0xffeec
r21 = 0xffeed
r22 = 0xffeee
r23 = 0xffeef
+#endif
/* The jump buffer has the following structure:
R0 .. R23 3*8 bytes
SP 2 bytes
ES 1 byte