diff options
| author | kleink <kleink@NetBSD.org> | 2004-01-19 16:18:33 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 2004-01-19 16:18:33 +0000 |
| commit | 9f0429b6cc04ff730a54ba7a91380f2c33ed3289 (patch) | |
| tree | 5a0800aa1248054d582c1f35713b7c62d7dec189 /lib/libpthread/pthread_lock.c | |
| parent | b81e36a90787218db4f0e867a811eeac4d19920f (diff) | |
; may be a comment character in assembly, use \n as a separator instead.
This instance spotted by Martin Husemann.
Diffstat (limited to 'lib/libpthread/pthread_lock.c')
| -rw-r--r-- | lib/libpthread/pthread_lock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libpthread/pthread_lock.c b/lib/libpthread/pthread_lock.c index 4d148ed011d..725e3644e50 100644 --- a/lib/libpthread/pthread_lock.c +++ b/lib/libpthread/pthread_lock.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_lock.c,v 1.7 2003/05/16 23:37:47 scw Exp $ */ +/* $NetBSD: pthread_lock.c,v 1.8 2004/01/19 16:18:33 kleink Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_lock.c,v 1.7 2003/05/16 23:37:47 scw Exp $"); +__RCSID("$NetBSD: pthread_lock.c,v 1.8 2004/01/19 16:18:33 kleink Exp $"); #include <sys/param.h> #include <sys/ras.h> @@ -75,10 +75,12 @@ pthread__ras_simple_lock_try(__cpu_simple_lock_t *alp) __cpu_simple_lock_t old; /* This is the atomic sequence. */ - __asm __volatile(".globl pthread__lock_ras_start; pthread__lock_ras_start:"); + __asm __volatile(".globl pthread__lock_ras_start \n" + "pthread__lock_ras_start:"); old = *alp; *alp = __SIMPLELOCK_LOCKED; - __asm __volatile(".globl pthread__lock_ras_end; pthread__lock_ras_end:"); + __asm __volatile(".globl pthread__lock_ras_end \n" + "pthread__lock_ras_end:"); return (old == __SIMPLELOCK_UNLOCKED); } |
