Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libpthread/pthread_lock.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libpthread/pthread_lock.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- src/lib/libpthread/pthread_lock.c 2003/03/08 08:03:35 1.6 +++ src/lib/libpthread/pthread_lock.c 2003/05/16 23:37:47 1.7 @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_lock.c,v 1.6 2003/03/08 08:03:35 lukem Exp $ */ +/* $NetBSD: pthread_lock.c,v 1.7 2003/05/16 23:37:47 scw Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__RCSID("$NetBSD: pthread_lock.c,v 1.6 2003/03/08 08:03:35 lukem Exp $"); +__RCSID("$NetBSD: pthread_lock.c,v 1.7 2003/05/16 23:37:47 scw Exp $"); #include #include @@ -75,10 +75,10 @@ pthread__ras_simple_lock_try(__cpu_simpl __cpu_simple_lock_t old; /* This is the atomic sequence. */ - __asm __volatile("pthread__lock_ras_start:"); + __asm __volatile(".globl pthread__lock_ras_start; pthread__lock_ras_start:"); old = *alp; *alp = __SIMPLELOCK_LOCKED; - __asm __volatile("pthread__lock_ras_end:"); + __asm __volatile(".globl pthread__lock_ras_end; pthread__lock_ras_end:"); return (old == __SIMPLELOCK_UNLOCKED); }