Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread/arch/hppa Use RAS_{START,END}_ASM_HIDDEN



details:   https://anonhg.NetBSD.org/src/rev/2f4ad8aae184
branches:  trunk
changeset: 366225:2f4ad8aae184
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 19 07:10:15 2022 +0000

description:
Use RAS_{START,END}_ASM_HIDDEN

diffstat:

 lib/libpthread/arch/hppa/pthread_md.S |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r bd397981ed78 -r 2f4ad8aae184 lib/libpthread/arch/hppa/pthread_md.S
--- a/lib/libpthread/arch/hppa/pthread_md.S     Thu May 19 06:41:45 2022 +0000
+++ b/lib/libpthread/arch/hppa/pthread_md.S     Thu May 19 07:10:15 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_md.S,v 1.1 2009/05/16 22:20:40 ad Exp $        */
+/*     $NetBSD: pthread_md.S,v 1.2 2022/05/19 07:10:15 skrll Exp $     */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -29,6 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/ras.h>
 #include <machine/asm.h>
 
 LEAF_ENTRY(pthread__ras_simple_lock_init)
@@ -47,10 +48,10 @@
        ldo     15(%arg0),%arg0
        depi    0,31,4,%arg0
 
-pthread__lock_ras_start:
+RAS_START_ASM_HIDDEN(pthread__lock)
        ldw     0(%arg0),%ret0
        stw     %r0,0(%arg0)            /* 0 == locked */
-pthread__lock_ras_end:
+RAS_END_ASM_HIDDEN(pthread__lock)
 
        comiclr,= 0,%ret0,%ret0         /* if locked return 0 */
        ldi     1,%ret0                 /* else return 1 */



Home | Main Index | Thread Index | Old Index