/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This file is through cpp before being used as
* an inline. It contains support routines used
* only by DR for the copy-rename sequence.
*/
#if defined(lint)
#endif /* lint */
#ifndef INLINE
#include <sys/asm_linkage.h>
#else /* INLINE */
#define ENTRY_NP(x) .inline x,0
#endif /* INLINE */
#include <sys/privregs.h>
#include <sys/machparam.h>
#include <sys/opl_olympus_regs.h>
/*
* Bcopy routine used by DR to copy
* between physical addresses.
* Borrowed from Starfire DR 2.6.
*/
#if defined(lint)
/*ARGSUSED*/
void
{}
#else /* lint */
#endif /* lint */
#if defined(lint)
/*ARGSUSED*/
void
flush_cache_il(void)
{}
#else /* lint */
! retl
#endif /* lint */
#if defined(lint)
/* ARGUSED */
drmach_get_stick_il(void)
{}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGUSED */
void
membar_sync_il(void)
{}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
void
{}
#else /* lint */
/*
* flush_instr_mem:
* Flush 1 page of the I-$ starting at vaddr
* %o0 vaddr
*
* SPARC64-VI maintains consistency of the on-chip Instruction Cache with
* the stores from all processors so that a FLUSH instruction is only needed
* to ensure pipeline is consistent. This means a single flush is sufficient at
* the end of a sequence of stores that updates the instruction stream to
* ensure correct operation.
*/
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
void
drmach_sleep_il(void)
{}
#else /* lint */
/*
* drmach-sleep_il:
*
* busy loop wait can affect performance of the sibling strand
* the sleep instruction can be used to avoid that.
*/
.word 0x81b01060
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
void
flush_windows_il(void)
{}
#else /* lint */
/*
* flush_windows_il:
*
*/
#endif /* lint */