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:
@@ -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
|
||||
|
Reference in New Issue
Block a user