atomic_init_cas.c revision 1.2
11.2Sad/*	$NetBSD: atomic_init_cas.c,v 1.2 2008/02/10 13:41:02 ad Exp $	*/
21.1Sad
31.1Sad/*-
41.1Sad * Copyright (c) 2008 The NetBSD Foundation, Inc.
51.1Sad * All rights reserved.
61.1Sad *
71.1Sad * Redistribution and use in source and binary forms, with or without
81.1Sad * modification, are permitted provided that the following conditions
91.1Sad * are met:
101.1Sad * 1. Redistributions of source code must retain the above copyright
111.1Sad *    notice, this list of conditions and the following disclaimer.
121.1Sad * 2. Redistributions in binary form must reproduce the above copyright
131.1Sad *    notice, this list of conditions and the following disclaimer in the
141.1Sad *    documentation and/or other materials provided with the distribution.
151.1Sad * 3. All advertising materials mentioning features or use of this software
161.1Sad *    must display the following acknowledgement:
171.1Sad *        This product includes software developed by the NetBSD
181.1Sad *        Foundation, Inc. and its contributors.
191.1Sad * 4. Neither the name of The NetBSD Foundation nor the names of its
201.1Sad *    contributors may be used to endorse or promote products derived
211.1Sad *    from this software without specific prior written permission.
221.1Sad *
231.1Sad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
241.1Sad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
251.1Sad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
261.1Sad * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
271.1Sad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
281.1Sad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
291.1Sad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
301.1Sad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
311.1Sad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
321.1Sad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
331.1Sad * POSSIBILITY OF SUCH DAMAGE.
341.1Sad */
351.1Sad
361.1Sad/*
371.1Sad * libc glue for atomic operations where the hardware _does_ provide
381.1Sad * compare-and-swap.
391.1Sad */
401.1Sad
411.1Sad#include <sys/cdefs.h>
421.2Sad__RCSID("$NetBSD: atomic_init_cas.c,v 1.2 2008/02/10 13:41:02 ad Exp $");
431.1Sad
441.2Sadvoid	__libc_atomic_init(void) __attribute__ ((visibility("hidden")));
451.1Sad
461.1Sadvoid
471.2Sad__libc_atomic_init(void)
481.1Sad{
491.1Sad
501.1Sad	/* nothing to do */
511.1Sad}
52