Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/sh5/sys Compensate for an over-pedantic assemb...



details:   https://anonhg.NetBSD.org/src/rev/4003513b4f9d
branches:  trunk
changeset: 533866:4003513b4f9d
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Jul 10 11:45:51 2002 +0000

description:
Compensate for an over-pedantic assembler.

diffstat:

 lib/libc/arch/sh5/sys/sigprocmask.S |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 7f71b7f47374 -r 4003513b4f9d lib/libc/arch/sh5/sys/sigprocmask.S
--- a/lib/libc/arch/sh5/sys/sigprocmask.S       Wed Jul 10 11:43:16 2002 +0000
+++ b/lib/libc/arch/sh5/sys/sigprocmask.S       Wed Jul 10 11:45:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigprocmask.S,v 1.2 2002/07/10 11:43:16 scw Exp $      */
+/*     $NetBSD: sigprocmask.S,v 1.3 2002/07/10 11:45:51 scw Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -78,7 +78,7 @@
 #if 0
        RCSID("from: @(#)sigprocmask.s  5.2 (Berkeley) 6/6/90")
 #else
-       RCSID("$NetBSD: sigprocmask.S,v 1.2 2002/07/10 11:43:16 scw Exp $")
+       RCSID("$NetBSD: sigprocmask.S,v 1.3 2002/07/10 11:45:51 scw Exp $")
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -86,9 +86,10 @@
     "warning: reference to compatibility sigprocmask(); include <signal.h> for correct reference")
 
 ENTRY(sigprocmask)
-       ptb/u   1f, tr0                 /* These six instructions */
+       pta/u   1f, tr0                 /* These 7 instructions */
        gettr   tr0, r0                 /* work by magic. ;-) */
        movi    1, r1                   /* SIG_BLOCK */
+       andc    r0, r1, r0              /* But we can use it to clear r0.0 */
        cmveq   r3, r1, r2              /* r2 = SIG_BLOCK; iff set == NULL */
        cmveq   r3, r0, r3              /* r3 = &0; iff set == NULL */
        ld.l    r3, 0, r3               /* r3 = *r3; */



Home | Main Index | Thread Index | Old Index