wrsmlib.s revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2001,2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* TL1 trap handler for DMV interrupts generated by WCIs
*/
#if defined(lint)
#else
#include <sys/asm_linkage.h>
#endif /* lint */
/*
* Zero the parts of the fpreg file that we actually use
* ( 1 or 3 sets of 8 registers )
*/
#define FZERO1 \
#define FZERO3 \
/*
* Size of each block being stored
*/
#define VIS_BLOCKSIZE 64
/*
* Size of stack frame in order to accomodate 64-byte aligned
* floating-point register save area and a 64-bit temp locations.
*/
#if defined(lint)
/* ARGSUSED */
void
{}
#else /* !lint */
!
!
! %i2 = num_blocks
!
#ifndef BCOPY_BUG_FIXED
#endif
bz,a 1f
1:
#ifdef WRSM_NOCHEETAH
#endif
2:
ba 4f
3:
4:
#endif /* lint */
/*
* Number of bytes needed to "break even" using VIS-accelerated
* memory operations.
*/
#define HW_THRESHOLD 256
/*
* Number of outstanding prefetches.
*/
#define CHEETAH_PREFETCH 7
#if defined(lint)
/* ARGSUSED */
void
{}
#else /* !lint */
!
!
! %i2 = num_blocks
#ifndef BCOPY_BUG_FIXED
#endif
bz,a .do_blkcopy
#if CHEETAH_PREFETCH >= 4
#endif
#if CHEETAH_PREFETCH >= 5
#endif
#if CHEETAH_PREFETCH >= 6
#endif
#if CHEETAH_PREFETCH >= 7
#endif
.align 32
2:
3:
ba 5f
4:
ba 5f
5:
ba 7f
6:
7:
ba 8b
ba 9b
#endif /* lint */