summaryrefslogtreecommitdiff
path: root/newlib/libc/machine/mn10300/setjmp.S
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-01-03 17:39:24 -0700
committerPikalaxALT <pikalaxalt@gmail.com>2018-01-03 17:39:24 -0700
commita6c1ed4716cf02626ea035beb6dd4a921642ba80 (patch)
treeef582c1b52819e27bdd16097ec03b69799d04ede /newlib/libc/machine/mn10300/setjmp.S
parentf6c9a624fa8a6878a7fb2b02f55e4990a20feb59 (diff)
Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gbalibc
Diffstat (limited to 'newlib/libc/machine/mn10300/setjmp.S')
-rw-r--r--newlib/libc/machine/mn10300/setjmp.S50
1 files changed, 0 insertions, 50 deletions
diff --git a/newlib/libc/machine/mn10300/setjmp.S b/newlib/libc/machine/mn10300/setjmp.S
deleted file mode 100644
index e3fe086..0000000
--- a/newlib/libc/machine/mn10300/setjmp.S
+++ /dev/null
@@ -1,50 +0,0 @@
- .file "setjmp.S"
-
- .section .text
- .align 1
- .global _setjmp
-#ifdef __AM33__
- .am33
-#endif
-_setjmp:
- mov d0,a0
- mov d2,(0,a0)
- mov d3,(4,a0)
- mov mdr,d1
- mov d1,(8,a0)
- mov a2,(12,a0)
- mov a3,(16,a0)
- mov sp,a1
- mov a1,(20,a0)
-#ifdef __AM33__
- mov r4,(24,a0)
- mov r5,(28,a0)
- mov r6,(32,a0)
- mov r7,(36,a0)
-#endif
- sub d0,d0
- rets
-
- .global _longjmp
-_longjmp:
- mov d0,a0
- mov (8,a0),d2
- mov d2,mdr
- mov (0,a0),d2
- mov (4,a0),d3
- mov (12,a0),a2
- mov (16,a0),a3
- mov (20,a0),a1
- mov a1,sp
-#ifdef __AM33__
- mov (24,a0),r4
- mov (28,a0),r5
- mov (32,a0),r6
- mov (36,a0),r7
-#endif
- cmp 0,d1
- bne L1
- mov 1,d1
-L1:
- mov d1,d0
- retf [],0