/*
* 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 2004 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/machthread.h>
#include <sys/cheetahregs.h>
#include <sys/cheetahasm.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
{}
#else /* lint */
!
3:
#endif /* lint */
#if defined(lint)
/*ARGUSED*/
void
{}
/*ARGSUSED*/
{ return(0); }
{ return (0x0ull); }
{ return (0x0ull); }
#else /* lint */
!
!
!
!
!
!
!
!
!
#endif /* lint */
#if defined(lint)
/*
* Argument to sbdp_exec_script_il is a pointer to:
*
* typedef struct {
* uint64_t masr_addr;
* uint64_t masr;
* uint_t asi;
* uint_t _filler;
* } sbdp_rename_script_t;
*/
/*ARGUSED*/
void
{}
#else /* lint */
0: /* cache script */
b 2f /* cache it */
1:
b 3f
2:
b 4f /* cache it */
3:
b 1b
4:
b 1b /* caching done */
5:
#endif /* lint */