subr_asm.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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* General machine architecture & implementation specific
* assembly language routines.
*/
#if defined(lint)
#include <sys/machsystm.h>
#else /* lint */
#include "assym.h"
#endif /* lint */
#include <sys/asm_linkage.h>
#include <sys/machthread.h>
#if defined(lint)
set_trap_table(void)
{
return ((caddr_t)0);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/*ARGSUSED*/
void
{}
/*ARGSUSED*/
int
{ return (0); }
/*ARGSUSED*/
void
{}
/*ARGSUSED*/
{ return (0x0ull); }
/* ARGSUSED */
void
{}
/* ARGSUSED */
{ return(0); }
/* ARGSUSED */
void
{}
/* ARGSUSED */
{ return(0); }
/* ARGSUSED */
void
{}
/* ARGSUSED */
{ return(0); }
/*ARGSUSED*/
void
{}
/*ARGSUSED*/
{ return (0ull); }
#else
!
!
/*
* disable interrupts, clear Address Mask to access 64 bit physaddr
*/
!
!
/*
* disable interrupts, clear Address Mask to access 64 bit physaddr
*/
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
#endif /* lint */
/*
* save_gsr(kfpu_t *fp)
* Store the graphics status register
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* uint64_t
* get_phys_gsr()
* Get the graphics status register info from fp and return it
*/
/* ARGSUSED */
{ return 0; }
#else /* lint */
#endif /* lint */
/*
* uint64_t
* get_gsr(kfpu_t *fp)
* Get the graphics status register info from fp and return it
*/
/* ARGSUSED */
{ return 0; }
#else /* lint */
#endif
/*
* set_phys_gsr(uint64_t *buf, kfpu_t *fp)
* Set the graphics status register info to fp from buf
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* set_gsr(uint64_t buf, kfpu_t *fp)
* Set the graphics status register info to fp from buf
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* Routine to get the pstate reg - used by vis emulation code
* to test whether the AM bit for 32 bit instructions
* has been set.
*/
/* ARGSUSED */
get_pstate(void)
{ return 0; }
#else /* lint */
#endif /* lint */
/*
* Routine to get the ccr bits - used by vis emulation code
* to get the ccr bits before an edge instruction is performed
*
*/
/* ARGSUSED */
get_ccr()
{ return 0; }
#else /* lint */
#endif
/*
* Routine to set the ccr bits - used by vis emulation code
* to set the ccr bits after an edge instruction is performed
*
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
void
kdi_cpu_index(void)
{
}
#else /* lint */
#endif /* lint */