Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/lib/libc/arch/powerpc/sys Pull up revision 1.8 (request...
details: https://anonhg.NetBSD.org/src/rev/dcdfb736fd9c
branches: netbsd-1-6
changeset: 531439:dcdfb736fd9c
user: tron <tron%NetBSD.org@localhost>
date: Fri Jul 23 13:56:02 2004 +0000
description:
Pull up revision 1.8 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
diffstat:
lib/libc/arch/powerpc/sys/sigpending.S | 10 +++++-----
lib/libc/arch/powerpc/sys/sigprocmask.S | 20 ++++++++++----------
lib/libc/arch/powerpc/sys/sigsuspend.S | 6 +++---
3 files changed, 18 insertions(+), 18 deletions(-)
diffs (85 lines):
diff -r 96f14ed49cda -r dcdfb736fd9c lib/libc/arch/powerpc/sys/sigpending.S
--- a/lib/libc/arch/powerpc/sys/sigpending.S Fri Jul 23 13:55:41 2004 +0000
+++ b/lib/libc/arch/powerpc/sys/sigpending.S Fri Jul 23 13:56:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sigpending.S,v 1.7 1999/01/14 22:48:21 kleink Exp $ */
+/* $NetBSD: sigpending.S,v 1.7.14.1 2004/07/23 13:56:02 tron Exp $ */
#include "SYS.h"
@@ -6,12 +6,12 @@
"warning: reference to compatibility sigpending(); include <signal.h> for correct reference")
ENTRY(sigpending)
- mr 5,3 # save pointer
- li 0,SYS_compat_13_sigpending13
+ mr %r5,%r3 # save pointer
+ li %r0,SYS_compat_13_sigpending13
sc # sigpending()
bso 1f
- stw 3,0(5) # store return value
- li 3,0 # and return 0
+ stw %r3,0(%r5) # store return value
+ li %r3,0 # and return 0
blr
1:
b PIC_PLT(_C_LABEL(__cerror))
diff -r 96f14ed49cda -r dcdfb736fd9c lib/libc/arch/powerpc/sys/sigprocmask.S
--- a/lib/libc/arch/powerpc/sys/sigprocmask.S Fri Jul 23 13:55:41 2004 +0000
+++ b/lib/libc/arch/powerpc/sys/sigprocmask.S Fri Jul 23 13:56:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sigprocmask.S,v 1.7 1999/01/14 22:48:21 kleink Exp $ */
+/* $NetBSD: sigprocmask.S,v 1.7.14.1 2004/07/23 13:56:02 tron Exp $ */
#include "SYS.h"
@@ -9,21 +9,21 @@
* sigprocmask(int how, sigset_t *set, sigset_t *oset)
*/
ENTRY(sigprocmask)
- or. 4,4,4 # set == NULL?
- li 6,1 # how = SIG_BLOCK
+ or. %r4,%r4,%r4 # set == NULL?
+ li %r6,1 # how = SIG_BLOCK
beq 1f
- lwz 4,0(4) # if not, replace it in r4 with *set
- mr 6,3
+ lwz %r4,0(%r4) # if not, replace it in r4 with *set
+ mr %r6,%r3
1:
- mr 3,6 # ... using sigprocmask(SIG_BLOCK)
- li 0,SYS_compat_13_sigprocmask13
+ mr %r3,%r6 # ... using sigprocmask(SIG_BLOCK)
+ li %r0,SYS_compat_13_sigprocmask13
sc
bso 3f
- or. 5,5,5 # check to see of oset requested
+ or. %r5,%r5,%r5 # check to see of oset requested
beq 2f # if oset != NULL,
- stw 3,0(5) # *oset = oldmask
+ stw %r3,0(%r5) # *oset = oldmask
2:
- li 3,0
+ li %r3,0
blr # in any case, return 0
3:
b PIC_PLT(_C_LABEL(__cerror))
diff -r 96f14ed49cda -r dcdfb736fd9c lib/libc/arch/powerpc/sys/sigsuspend.S
--- a/lib/libc/arch/powerpc/sys/sigsuspend.S Fri Jul 23 13:55:41 2004 +0000
+++ b/lib/libc/arch/powerpc/sys/sigsuspend.S Fri Jul 23 13:56:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sigsuspend.S,v 1.7 1999/01/14 22:48:22 kleink Exp $ */
+/* $NetBSD: sigsuspend.S,v 1.7.14.1 2004/07/23 13:56:02 tron Exp $ */
#include "SYS.h"
@@ -6,7 +6,7 @@
"warning: reference to compatibility sigsuspend(); include <signal.h> for correct reference")
ENTRY(sigsuspend)
- lwz 3,0(3) # indirect to mask arg
- li 0,SYS_compat_13_sigsuspend13
+ lwz %r3,0(%r3) # indirect to mask arg
+ li %r0,SYS_compat_13_sigsuspend13
sc
b PIC_PLT(_C_LABEL(__cerror)) # always terminates with EINTR
Home |
Main Index |
Thread Index |
Old Index