NetBSD/acorn26 has been using APCS-32 for years, so unifdef -U__APCS_26__.

This commit is contained in:
bjh21 2003-04-05 23:08:50 +00:00
parent c74de80216
commit c18226d8a8
34 changed files with 40 additions and 240 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: SYS.h,v 1.6 2002/05/26 12:24:55 wiz Exp $ */
/* $NetBSD: SYS.h,v 1.7 2003/04/05 23:08:50 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -70,17 +70,6 @@
#define SYSCALL(x) \
_SYSCALL(x,x)
#ifdef __APCS_26__
#define PSEUDO_NOERROR(x,y) \
_SYSCALL_NOERROR(x,y); \
movs r15, r14
#define PSEUDO(x,y) \
_SYSCALL(x,y); \
movs r15, r14
#else /* !__APCS_26__ */
#define PSEUDO_NOERROR(x,y) \
_SYSCALL_NOERROR(x,y); \
@ -90,7 +79,6 @@
_SYSCALL(x,y); \
mov r15, r14
#endif /* !__APCS_26__ */
#define RSYSCALL_NOERROR(x) \
PSEUDO_NOERROR(x,x)

View File

@ -1,4 +1,4 @@
/* $NetBSD: __setjmp14.S,v 1.4 2002/08/17 19:54:30 thorpej Exp $ */
/* $NetBSD: __setjmp14.S,v 1.5 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe
@ -69,11 +69,7 @@ ENTRY(__setjmp14)
/* Store integer registers */
stmia r0, {r4-r14}
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
.Lsetjmp_magic:
.word _JB_MAGIC_SETJMP
@ -116,11 +112,7 @@ ENTRY(__longjmp14)
mov r0, r1
teq r0, #0x00000000
moveq r0, #0x00000001
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
/* validation failed, die die die. */
.Lbotch:

View File

@ -1,4 +1,4 @@
/* $NetBSD: _setjmp.S,v 1.4 2002/08/17 19:54:30 thorpej Exp $ */
/* $NetBSD: _setjmp.S,v 1.5 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe
@ -64,11 +64,7 @@ ENTRY(_setjmp)
stmia r0, {r4-r14}
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
.L_setjmp_magic:
.word _JB_MAGIC__SETJMP
@ -100,11 +96,7 @@ ENTRY(_longjmp)
mov r0, r1
teq r0, #0x00000000
moveq r0, #0x00000001
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
/* validation failed, die die die. */
botch:

View File

@ -1,4 +1,4 @@
/* $NetBSD: alloca.S,v 1.2 2001/11/13 20:03:38 chris Exp $ */
/* $NetBSD: alloca.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe
@ -41,8 +41,4 @@ ENTRY(alloca)
bic r0, r0, #0x00000007
sub sp, sp, r0 /* Adjust the stack pointer */
mov r0, sp /* r0 = base of new space */
#ifdef __APCS_26__
movs r15, r14 /* return */
#else
mov r15, r14 /* return */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_2.S,v 1.2 2002/07/01 19:07:18 bjh21 Exp $ */
/* $NetBSD: byte_swap_2.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -45,8 +45,4 @@ _PROF_PROLOGUE
and r1, r0, #0xff
mov r0, r0, lsr #8
orr r0, r0, r1, lsl #8
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_4.S,v 1.1 2000/12/29 20:13:47 bjh21 Exp $ */
/* $NetBSD: byte_swap_4.S,v 1.2 2003/04/05 23:08:51 bjh21 Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -46,8 +46,4 @@ _PROF_PROLOGUE
bic r1, r1, #0x00FF0000
mov r0, r0, ror #8
eor r0, r0, r1, lsr #8
#ifdef __APCS_26__
movs pc,lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: divsi3.S,v 1.4 2002/08/17 19:54:30 thorpej Exp $ */
/* $NetBSD: divsi3.S,v 1.5 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@ -27,11 +27,7 @@ ENTRY(__umodsi3)
bl .L_udivide
add sp, sp, #4 /* unalign stack */
mov r0, r1
#ifdef __APCS_26__
ldmfd sp!, {pc}^
#else /* APCS-32 */
ldmfd sp!, {pc}
#endif
ENTRY(__modsi3)
stmfd sp!, {lr}
@ -39,11 +35,7 @@ ENTRY(__modsi3)
bl .L_divide
add sp, sp, #4 /* unalign stack */
mov r0, r1
#ifdef __APCS_26__
ldmfd sp!, {pc}^
#else
ldmfd sp!, {pc}
#endif
.L_overflow:
#if !defined(_KERNEL) && !defined(_STANDALONE)
@ -54,11 +46,7 @@ ENTRY(__modsi3)
/* XXX should cause a fatal error */
mvn r0, #0
#endif
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
ENTRY(__udivsi3)
.L_udivide: /* r0 = r0 / r1; r1 = r0 % r1 */
@ -80,11 +68,7 @@ ENTRY(__udivsi3)
.L_divide_l0: /* r0 == 1 */
mov r0, r1
mov r1, #0
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
ENTRY(__divsi3)
.L_divide: /* r0 = r0 / r1; r1 = r0 % r1 */
@ -388,11 +372,7 @@ ENTRY(__divsi3)
movs ip, ip, lsl #1
bicmi r0, r0, #0x80000000 /* Fix incase we divided 0x80000000 */
rsbmi r0, r0, #0
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
.L_udivide_l1:
tst ip, #0x10000000
@ -403,8 +383,4 @@ ENTRY(__divsi3)
subhs r1, r1, r0
addhs r3, r3, r2
mov r0, r3
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: setjmp.S,v 1.4 2002/08/17 19:54:30 thorpej Exp $ */
/* $NetBSD: setjmp.S,v 1.5 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe
@ -73,11 +73,7 @@ ENTRY(setjmp)
/* Store integer registers */
stmia r0, {r4-r14}
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
.Lsetjmp_magic:
.word _JB_MAGIC_SETJMP

View File

@ -1,4 +1,4 @@
/* $NetBSD: swapcontext.S,v 1.2 2003/01/18 11:06:25 thorpej Exp $ */
/* $NetBSD: swapcontext.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include "SYS.h"
#if defined(LIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: swapcontext.S,v 1.2 2003/01/18 11:06:25 thorpej Exp $")
RCSID("$NetBSD: swapcontext.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $")
#endif /* LIBC_SCCS && !lint */
ENTRY(swapcontext)
@ -47,19 +47,11 @@ ENTRY(swapcontext)
bl PIC_SYM(_C_LABEL(_getcontext), PLT) /* getcontext(oucp) */
cmp r0, #0
ldmfd sp!, {r0-r1, lr}
#ifdef __APCS_26__
movnes pc, lr
#else
movne pc, lr
#endif
str lr, [r0, #(36 + 15*4)] /* Adjust saved PC. */
#ifdef SOFTFLOAT
/* Ahem. */
#endif
mov r0, r1
bl PIC_SYM(_C_LABEL(setcontext), PLT)
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetmask.S,v 1.2 2002/01/13 21:45:41 thorpej Exp $ */
/* $NetBSD: fpgetmask.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -48,8 +48,4 @@ ENTRY(fpgetmask)
rfs r0
mov r0, r0, lsr #16
and r0, r0, #0x1f
#ifdef __APCS_26__
movs r15, r14 /* return */
#else
mov r15, r14 /* return */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetsticky.S,v 1.2 2002/01/13 21:45:42 thorpej Exp $ */
/* $NetBSD: fpgetsticky.S,v 1.3 2003/04/05 23:08:51 bjh21 Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -47,8 +47,4 @@ ENTRY(fpgetsticky)
#endif
rfs r0
and r0, r0, #0x1f
#ifdef __APCS_26__
movs r15, r14 /* return */
#else
mov r15, r14 /* return */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpsetmask.S,v 1.2 2002/01/13 21:45:42 thorpej Exp $ */
/* $NetBSD: fpsetmask.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -51,8 +51,4 @@ ENTRY(fpsetmask)
orr r0, r1, r0, lsl #16
wfs r0
mov r0, r1, lsr #16 /* Return old mask */
#ifdef __APCS_26__
movs r15, r14 /* return */
#else
mov r15, r14 /* return */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpsetsticky.S,v 1.2 2002/01/13 21:45:42 thorpej Exp $ */
/* $NetBSD: fpsetsticky.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -51,8 +51,4 @@ ENTRY(fpsetsticky)
orr r0, r1, r0
wfs r0
mov r0, r1 /* Return old mask */
#ifdef __APCS_26__
movs r15, r14 /* return */
#else
mov r15, r14 /* return */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: _memcpy.S,v 1.3 2002/08/17 19:54:31 thorpej Exp $ */
/* $NetBSD: _memcpy.S,v 1.4 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -75,11 +75,7 @@ ENTRY(_memcpy)
bcc .Lmemcpy_backwards
moveq r0, #0 /* Quick abort for len=0 */
#ifdef __APCS_26__
moveqs pc, lr
#else
moveq pc, lr
#endif
stmdb sp!, {r0, lr} /* memcpy() returns dest addr */
subs r2, r2, #4
@ -147,11 +143,7 @@ ENTRY(_memcpy)
strgeb r3, [r0], #1
ldrgtb r3, [r1], #1
strgtb r3, [r0], #1
#ifdef __APCS_26__
ldmia sp!, {r0, pc}^
#else
ldmia sp!, {r0, pc}
#endif
/* erg - unaligned destination */
.Lmemcpy_fdestul:
@ -345,11 +337,7 @@ ENTRY(_memcpy)
strgeb r3, [r0, #-1]!
ldrgtb r3, [r1, #-1]!
strgtb r3, [r0, #-1]!
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
/* erg - unaligned destination */
.Lmemcpy_bdestul:

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs.S,v 1.4 2002/08/17 19:54:31 thorpej Exp $ */
/* $NetBSD: ffs.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2001 Christopher Gilbert
* All rights reserved.
@ -30,7 +30,7 @@
#include <machine/asm.h>
RCSID("$NetBSD: ffs.S,v 1.4 2002/08/17 19:54:31 thorpej Exp $")
RCSID("$NetBSD: ffs.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $")
/*
* ffs - find first set bit, this algorithm isolates the first set
@ -61,11 +61,7 @@ ENTRY(ffs)
/* now lookup in table indexed on top 6 bits of r0 */
ldrneb r0, [ r2, r0, lsr #26 ]
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
.text;
.type .L_ffs_table, _ASM_TYPE_OBJECT;
.L_ffs_table:

View File

@ -1,4 +1,4 @@
/* $NetBSD: memcmp.S,v 1.1 2002/11/23 14:26:04 chris Exp $ */
/* $NetBSD: memcmp.S,v 1.2 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2002 ARM Ltd
@ -30,17 +30,13 @@
#include <machine/asm.h>
RCSID("$NetBSD: memcmp.S,v 1.1 2002/11/23 14:26:04 chris Exp $")
RCSID("$NetBSD: memcmp.S,v 1.2 2003/04/05 23:08:52 bjh21 Exp $")
ENTRY(memcmp)
/* if ((len - 1) < 0) return 0 */
subs r2, r2, #1
movmi r0, #0
#ifdef __APCS_26__
movmis pc, lr
#else
movmi pc, lr
#endif
/* ip == last src address to compare */
add ip, r0, r2
@ -51,8 +47,4 @@ ENTRY(memcmp)
cmpcs r2, r3
beq 1b
sub r0, r2, r3
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: memcpy.S,v 1.2 2001/07/16 05:50:06 matt Exp $ */
/* $NetBSD: memcpy.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -41,8 +41,4 @@
ENTRY(memcpy)
stmfd sp!, {r0, lr}
bl PIC_SYM(_C_LABEL(_memcpy), PLT)
#ifdef __APCS_26__
ldmfd sp!, {r0, pc}^
#else
ldmfd sp!, {r0, pc}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: memmove.S,v 1.2 2001/07/16 05:50:06 matt Exp $ */
/* $NetBSD: memmove.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -41,8 +41,4 @@
ENTRY(memmove)
stmfd sp!, {r0, lr}
bl PIC_SYM(_C_LABEL(_memcpy), PLT)
#ifdef __APCS_26__
ldmfd sp!, {r0, pc}^
#else
ldmfd sp!, {r0, pc}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: memset.S,v 1.2 2002/08/17 19:54:31 thorpej Exp $ */
/* $NetBSD: memset.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe.
@ -115,11 +115,7 @@ ENTRY(memset)
.Lmemset_lessthanfour:
cmp r2, #0x00000000
ldmeqfd sp!, {r0}
#ifdef __APCS_26__
moveqs pc, lr /* Zero length so exit */
#else
moveq pc, lr /* Zero length so exit */
#endif
cmp r2, #0x00000002
strb r1, [r0], #0x0001 /* Set 1 byte */
@ -127,8 +123,4 @@ ENTRY(memset)
strgtb r1, [r0], #0x0001 /* and a third */
ldmfd sp!, {r0}
#ifdef __APCS_26__
movs pc, lr /* Exit */
#else
mov pc, lr /* Exit */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: strcmp.S,v 1.2 2002/11/23 03:10:27 chris Exp $ */
/* $NetBSD: strcmp.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2002 ARM Ltd
@ -30,7 +30,7 @@
#include <machine/asm.h>
RCSID("$NetBSD: strcmp.S,v 1.2 2002/11/23 03:10:27 chris Exp $")
RCSID("$NetBSD: strcmp.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $")
ENTRY(strcmp)
1:
@ -40,8 +40,4 @@ ENTRY(strcmp)
cmpcs r2, r3
beq 1b
sub r0, r2, r3
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: strncmp.S,v 1.1 2002/11/23 03:10:27 chris Exp $ */
/* $NetBSD: strncmp.S,v 1.2 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2002 ARM Ltd
@ -30,17 +30,13 @@
#include <machine/asm.h>
RCSID("$NetBSD: strncmp.S,v 1.1 2002/11/23 03:10:27 chris Exp $")
RCSID("$NetBSD: strncmp.S,v 1.2 2003/04/05 23:08:52 bjh21 Exp $")
ENTRY(strncmp)
/* if ((len - 1) < 0) return 0 */
subs r2, r2, #1
movmi r0, #0
#ifdef __APCS_26__
movmis pc, lr
#else
movmi pc, lr
#endif
/* ip == last src address to compare */
add ip, r0, r2
@ -52,8 +48,4 @@ ENTRY(strncmp)
cmpcs r2, r3
beq 1b
sub r0, r2, r3
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: Ovfork.S,v 1.4 2001/07/16 05:50:06 matt Exp $ */
/* $NetBSD: Ovfork.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -56,8 +56,4 @@ ENTRY(vfork)
bcs PIC_SYM(CERROR, PLT)
sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
#ifdef __APCS_26__
movs r15, r2
#else
mov r15, r2
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: __clone.S,v 1.3 2002/08/27 21:38:20 mycroft Exp $ */
/* $NetBSD: __clone.S,v 1.4 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2001 Christopher Gilbert
@ -61,11 +61,7 @@ ENTRY(__clone)
teq r1, #0x00
/* if this is the parent then just return the pid */
#ifdef __APCS_26__
moveqs r15, r14
#else
moveq r15, r14
#endif
/*
* This is the child
* load the function and arg off the stack

View File

@ -1,4 +1,4 @@
/* $NetBSD: __vfork14.S,v 1.4 2001/07/16 05:50:06 matt Exp $ */
/* $NetBSD: __vfork14.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -53,8 +53,4 @@ ENTRY(__vfork14)
bcs PIC_SYM(CERROR, PLT)
sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
#ifdef __APCS_26__
movs r15, r2
#else
mov r15, r2
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: brk.S,v 1.4 2002/08/17 19:54:31 thorpej Exp $ */
/* $NetBSD: brk.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -89,11 +89,7 @@ ENTRY(_brk)
/* Return 0 for success */
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
.align 2
#ifdef PIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: cerror.S,v 1.3 2002/08/17 19:54:31 thorpej Exp $ */
/* $NetBSD: cerror.S,v 1.4 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -45,11 +45,7 @@ ASENTRY(CERROR)
str r4, [r0]
mvn r0, #0x00000000
mvn r1, #0x00000000
#ifdef __APCS_26__
ldmfd sp!, {r4, pc}^
#else
ldmfd sp!, {r4, pc}
#endif
#else
#ifdef PIC
/* Setup the GOT */
@ -64,11 +60,7 @@ ASENTRY(CERROR)
str r0, [r1]
mvn r0, #0x00000000
mvn r1, #0x00000000
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
#ifdef PIC
.align 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: fork.S,v 1.3 2003/02/13 02:50:48 nathanw Exp $ */
/* $NetBSD: fork.S,v 1.4 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -48,8 +48,4 @@
_SYSCALL(__fork,fork)
sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: getcontext.S,v 1.2 2003/01/18 11:06:25 thorpej Exp $ */
/* $NetBSD: getcontext.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include "SYS.h"
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: getcontext.S,v 1.2 2003/01/18 11:06:25 thorpej Exp $")
RCSID("$NetBSD: getcontext.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $")
#endif /* SYSLIBC_SCCS && !lint */
#ifdef WEAK_ALIAS
@ -58,8 +58,4 @@ ENTRY(_getcontext)
#endif
mov r0, #0
str r0, [r2, #(36 + 0*4)] /* Return 0. */
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pipe.S,v 1.3 2001/07/16 05:50:06 matt Exp $ */
/* $NetBSD: pipe.S,v 1.4 2003/04/05 23:08:52 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -48,8 +48,4 @@ ENTRY(_pipe)
str r0, [r2, #0x0000]
str r1, [r2, #0x0004]
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.S,v 1.5 2002/08/17 19:54:32 thorpej Exp $ */
/* $NetBSD: ptrace.S,v 1.6 2003/04/05 23:08:53 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -65,11 +65,7 @@ ENTRY(ptrace)
SYSTRAP(ptrace)
bcs PIC_SYM(CERROR, PLT)
#ifdef __APCS_26__
movs pc, lr
#else
mov pc, lr
#endif
#ifndef _REENTRANT
#ifdef PIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbrk.S,v 1.5 2002/08/17 19:54:32 thorpej Exp $ */
/* $NetBSD: sbrk.S,v 1.6 2003/04/05 23:08:53 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -79,11 +79,7 @@ ENTRY(_sbrk)
str r1, [r2]
/* Return old curbrk value */
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif
.align 0
#ifdef PIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigpending.S,v 1.3 2001/07/16 05:50:07 matt Exp $ */
/* $NetBSD: sigpending.S,v 1.4 2003/04/05 23:08:53 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -46,8 +46,4 @@ ENTRY(sigpending)
bcs PIC_SYM(CERROR, PLT)
str r0, [r2]
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigprocmask.S,v 1.3 2001/07/16 05:50:07 matt Exp $ */
/* $NetBSD: sigprocmask.S,v 1.4 2003/04/05 23:08:53 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -50,8 +50,4 @@ ENTRY(sigprocmask)
teq r2, #0x00000000
strne r0, [r2]
mov r0, #0x00000000
#ifdef __APCS_26__
movs r15, r14
#else
mov r15, r14
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigsuspend.S,v 1.3 2001/07/16 05:50:07 matt Exp $ */
/* $NetBSD: sigsuspend.S,v 1.4 2003/04/05 23:08:53 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -45,8 +45,4 @@ ENTRY(sigsuspend)
SYSTRAP(compat_13_sigsuspend13)
bcs PIC_SYM(CERROR, PLT)
mov r0, #0x00000000
#ifdef __APCS_26__
mov r15, r14
#else
movs r15, r14
#endif