]>
Commit | Line | Data |
---|---|---|
b15cb495 | 1 | /* PA-RISC specific definitions for spinlock initializers. |
f9b9f291 | 2 | Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
b15cb495 UD |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
cc7375ce RM |
6 | modify it under the terms of the GNU Lesser General Public License as |
7 | published by the Free Software Foundation; either version 2.1 of the | |
b15cb495 UD |
8 | License, or (at your option) any later version. |
9 | ||
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
cc7375ce | 13 | Lesser General Public License for more details. |
b15cb495 | 14 | |
cc7375ce | 15 | You should have received a copy of the GNU Lesser General Public |
b15cb495 UD |
16 | License along with the GNU C Library; see the file COPYING.LIB. If not, |
17 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
18 | Boston, MA 02111-1307, USA. */ | |
19 | ||
20 | /* Initial value of a spinlock. PA-RISC only implements atomic load | |
21 | and clear so this must be non-zero. */ | |
f9b9f291 | 22 | #define __LT_SPINLOCK_INIT 1 |
b15cb495 UD |
23 | |
24 | /* Macros for lock initializers, using the above definition. */ | |
f9b9f291 UD |
25 | #define __LOCK_INITIALIZER { 0, __LT_SPINLOCK_INIT } |
26 | #define __ALT_LOCK_INITIALIZER { 0, __LT_SPINLOCK_INIT } | |
27 | #define __ATOMIC_INITIALIZER { 0, __LT_SPINLOCK_INIT } |