Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2020-03-02 16:33:11 +0300
committerRichard Earnshaw <rearnsha@arm.com>2020-03-02 16:33:11 +0300
commitf973a7d8bea03ad840bdcbc7eae032516e75174b (patch)
treefbf0911b7ebca1f0a1c7d4148a510cc007afd63c /libgloss/arm
parent002206dc7cac5f3cc4d1282439c7a0c619a37b7f (diff)
arm: Finish moving newlib to unified syntax for Thumb1
Most code in newlib already uses unified syntax, but just a couple of laggards remain. This patch removes these and means the the entire code base has now been converted.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/linux-syscalls0.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgloss/arm/linux-syscalls0.S b/libgloss/arm/linux-syscalls0.S
index b16648fc3..17d246e1c 100644
--- a/libgloss/arm/linux-syscalls0.S
+++ b/libgloss/arm/linux-syscalls0.S
@@ -6,6 +6,8 @@
* is freely granted, provided that this notice is preserved.
*/
+ .syntax unified
+
#include "linux-syscall.h"
#if __thumb__
@@ -146,12 +148,21 @@ ALIAS(utime)
ALIAS(vfork)
ALIAS(wait4)
+#if defined (__thumb__) && !defined (__thumb2__)
+# define SOCKETCALL(name, NAME) \
+ GLOBAL(name); \
+ push { r0 - r3 }; \
+ movs r0, #SYS_ ## NAME; \
+ b _socketcall_tail; \
+ SIZE(name)
+#else
# define SOCKETCALL(name, NAME) \
GLOBAL(name); \
push { r0 - r3 }; \
mov r0, #SYS_ ## NAME; \
b _socketcall_tail; \
SIZE(name)
+#endif
FUNC(_socketcall_tail)
mov r1, sp