Clean up ARM assembler files to use ENTRY/END.
We also don't need legacy syscall support (non-"swi 0").
Change-Id: Id1012e8ca18bf13f3f4e42200f39ba0e2e632cbf
diff --git a/libc/arch-arm/bionic/clone.S b/libc/arch-arm/bionic/clone.S
index 7ff3d0d..c91186c 100644
--- a/libc/arch-arm/bionic/clone.S
+++ b/libc/arch-arm/bionic/clone.S
@@ -25,8 +25,9 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#include <sys/linux-syscalls.h>
+
#include <machine/asm.h>
+#include <sys/linux-syscalls.h>
ENTRY(__pthread_clone)
@ insert the args onto the new stack
@@ -39,18 +40,12 @@
@ new sp is already in r1
-#if __ARM_EABI__
stmfd sp!, {r4, r7}
ldr r7, =__NR_clone
swi #0
-#else
- swi #__NR_clone
-#endif
movs r0, r0
-#if __ARM_EABI__
ldmnefd sp!, {r4, r7}
-#endif
blt __error
bxne lr