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.
This commit is contained in:
Richard Earnshaw
2020-03-02 13:33:11 +00:00
parent 002206dc7c
commit f973a7d8be
2 changed files with 19 additions and 7 deletions

View File

@@ -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