/*
* 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 2005 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)
#include <sys/sbd_ioctl.h>
#include <sys/sbdp_priv.h>
#else
#include "assym.h"
#endif /* lint */
#include <sys/asm_linkage.h>
#include <sys/privregs.h>
#include <sys/machthread.h>
#include <sys/cheetahregs.h>
#include <sys/cheetahasm.h>
#ifndef lint
/*
* Invalidating the E$ tags is only needed on Cheetah following
* the manual displacement flush. The internal flush ASI used by
* Cheetahplus, Jaguar, and Panther will invalidate the cache lines.
*
* arg1 = ecache_size
* arg2 = ecache_linesize
*/
GET_CPU_IMPL(tmp1) ;\
bne 1f ;\
nop ;\
0: ;\
1:
flushw ;\
/*
* Returns icache size and linesize in reg1 and reg2, respectively.
* Panther has a larger icache compared to Cheetahplus and Jaguar.
*/
GET_CPU_IMPL(reg1) ;\
nop ;\
ba 2f ;\
nop ;\
1: ;\
2:
#endif /* !lint */
#if defined(lint)
/*ARGSUSED*/
void
{}
#else /* lint */
!
! struct sbdp_shutdown {
! } sbdp_shutdown_t;
!
!
!
!
!
!
!
!
! Flush E$
!
!
!
!
!
!
! Flush D$
!
!
! Flush I$
!
!
!
sir 0
.skip 2048
#endif /* lint */
#if defined(lint)
#else /* lint */
#include "assym.h"
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
void
{}
void
{
}
#else /* !lint */
!
!
!
bz,a 1f
1:
2:
bz,a 3f
3:
!
!
/*
* disable interrupts, clear Address Mask to access 64 bit physaddr
*/
#endif /* lint */