2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows/*
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * CDDL HEADER START
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows *
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * The contents of this file are subject to the terms of the
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * Common Development and Distribution License (the "License").
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * You may not use this file except in compliance with the License.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows *
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * or http://www.opensolaris.org/os/licensing.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * See the License for the specific language governing permissions
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * and limitations under the License.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows *
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * When distributing Covered Code, include this CDDL HEADER in each
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * If applicable, add the following below this CDDL HEADER, with the
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * fields enclosed by brackets "[]" replaced with your own identifying
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * information: Portions Copyright [yyyy] [name of copyright owner]
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows *
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * CDDL HEADER END
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows */
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows/*
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows * Use is subject to license terms.
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows */
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#ifndef _ASM_SUNDDI_H
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#define _ASM_SUNDDI_H
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Lowe#include <sys/ccompile.h>
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#include <sys/types.h>
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#ifdef __cplusplus
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolowsextern "C" {
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#endif
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#if !defined(__lint) && defined(__GNUC__)
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#if defined(_BOOT)
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Loweextern __GNU_INLINE void
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolowssync_instruction_memory(caddr_t v, size_t len)
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows{
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows __asm__ __volatile__("nop");
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows}
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#endif /* _BOOT */
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#endif /* !__lint && __GNUC__ */
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#ifdef __cplusplus
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows}
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#endif
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows
2b616c6c748ccca60ec7bdc3c781d84203c97b2bwesolows#endif /* _ASM_SUNDDI_H */