membar_ops_nop.c revision 1.2
1206084Srdivacky/* $NetBSD: membar_ops_nop.c,v 1.2 2007/11/28 16:55:12 ad Exp $ */ 2206084Srdivacky 3206084Srdivacky/*- 4206084Srdivacky * Copyright (c) 2007 The NetBSD Foundation, Inc. 5206084Srdivacky * All rights reserved. 6206084Srdivacky * 7206084Srdivacky * This code is derived from software contributed to The NetBSD Foundation 8206084Srdivacky * by Jason R. Thorpe. 9206084Srdivacky * 10206084Srdivacky * Redistribution and use in source and binary forms, with or without 11206084Srdivacky * modification, are permitted provided that the following conditions 12206084Srdivacky * are met: 13226890Sdim * 1. Redistributions of source code must retain the above copyright 14226890Sdim * notice, this list of conditions and the following disclaimer. 15226890Sdim * 2. Redistributions in binary form must reproduce the above copyright 16206084Srdivacky * notice, this list of conditions and the following disclaimer in the 17252723Sdim * documentation and/or other materials provided with the distribution. 18226890Sdim * 3. All advertising materials mentioning features or use of this software 19206084Srdivacky * must display the following acknowledgement: 20218893Sdim * This product includes software developed by the NetBSD 21206084Srdivacky * Foundation, Inc. and its contributors. 22206084Srdivacky * 4. Neither the name of The NetBSD Foundation nor the names of its 23206084Srdivacky * contributors may be used to endorse or promote products derived 24206084Srdivacky * from this software without specific prior written permission. 25206084Srdivacky * 26252723Sdim * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27207619Srdivacky * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28252723Sdim * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29252723Sdim * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30252723Sdim * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31252723Sdim * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32252723Sdim * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33252723Sdim * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34252723Sdim * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35252723Sdim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36252723Sdim * POSSIBILITY OF SUCH DAMAGE. 37252723Sdim */ 38252723Sdim 39252723Sdim#include "atomic_op_namespace.h" 40252723Sdim 41252723Sdim#include <sys/atomic.h> 42252723Sdim 43252723Sdimvoid 44252723Sdimmembar_sync(void) 45252723Sdim{ 46252723Sdim 47252723Sdim /* nothing */ 48252723Sdim} 49252723Sdim 50252723Sdim#undef membar_enter 51252723Sdimatomic_op_alias(membar_enter,_membar_sync) 52252723Sdim__strong_alias(_membar_enter,_membar_sync) 53252723Sdim#undef membar_exit 54252723Sdimatomic_op_alias(membar_exit,_membar_sync) 55252723Sdim__strong_alias(_membar_exit,_membar_sync) 56252723Sdim#undef membar_producer 57252723Sdimatomic_op_alias(membar_producer,_membar_sync) 58252723Sdim__strong_alias(_membar_producer,_membar_sync) 59252723Sdim#undef membar_consumer 60252723Sdimatomic_op_alias(membar_consumer,_membar_sync) 61252723Sdim__strong_alias(_membar_consumer,_membar_sync) 62252723Sdim#undef membar_sync 63252723Sdimatomic_op_alias(membar_sync,_membar_sync) 64252723Sdim__strong_alias(_membar_sync,_membar_sync) 65252723Sdim#undef membar_write 66252723Sdimatomic_op_alias(membar_write,_membar_sync) 67252723Sdim__strong_alias(_membar_write,_membar_sync) 68252723Sdim#undef membar_read 69252723Sdimatomic_op_alias(membar_read,_membar_sync) 70206275Srdivacky__strong_alias(_membar_read,_membar_sync) 71207619Srdivacky