1*6b87cd26Schristos /* $NetBSD: atomic_init_cas.c,v 1.5 2024/01/19 19:33:49 christos Exp $ */
2d418b9feSad
3d418b9feSad /*-
4d418b9feSad * Copyright (c) 2008 The NetBSD Foundation, Inc.
5d418b9feSad * All rights reserved.
6d418b9feSad *
7d418b9feSad * Redistribution and use in source and binary forms, with or without
8d418b9feSad * modification, are permitted provided that the following conditions
9d418b9feSad * are met:
10d418b9feSad * 1. Redistributions of source code must retain the above copyright
11d418b9feSad * notice, this list of conditions and the following disclaimer.
12d418b9feSad * 2. Redistributions in binary form must reproduce the above copyright
13d418b9feSad * notice, this list of conditions and the following disclaimer in the
14d418b9feSad * documentation and/or other materials provided with the distribution.
15d418b9feSad *
16d418b9feSad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17d418b9feSad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18d418b9feSad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19d418b9feSad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20d418b9feSad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21d418b9feSad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22d418b9feSad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23d418b9feSad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24d418b9feSad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25d418b9feSad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26d418b9feSad * POSSIBILITY OF SUCH DAMAGE.
27d418b9feSad */
28d418b9feSad
29d418b9feSad /*
30d418b9feSad * libc glue for atomic operations where the hardware _does_ provide
31d418b9feSad * compare-and-swap.
32d418b9feSad */
33d418b9feSad
34d418b9feSad #include <sys/cdefs.h>
35*6b87cd26Schristos __RCSID("$NetBSD: atomic_init_cas.c,v 1.5 2024/01/19 19:33:49 christos Exp $");
36*6b87cd26Schristos #include "extern.h"
37d418b9feSad
38*6b87cd26Schristos void __section(".text.startup") __attribute__ ((__visibility__("hidden")))
__libc_atomic_init(void)3912190eeeSad __libc_atomic_init(void)
40d418b9feSad {
41d418b9feSad
42d418b9feSad /* nothing to do */
43d418b9feSad }
44