/*
* 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"
/*
* 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
* _fp_read_pgsr()
* 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
/*
* _fp_write_pgsr(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 */
void
kdi_cpu_index(void)
{
}
#else /* lint */
#endif /* lint */
void
kmdb_enter(void)
{
}
#else /* lint */
#endif /* lint */
/*
* The Spitfire floating point code has been changed not to use install/
* routines, which will lose too much performance if they have to go
* through the fp_disabled trap (which used to call installctx()). So
* now fp_save/fp_restore are called from resume, and they don't care
* whether floating point was enabled from the user program via the
* fp_enabled trap or from the memcpy library, which just turns on floating
* point in the fprs register itself. The new routine lwp_freeregs is
* called everywhere freectx is called, and code was added to the sun4u-
* specific version of lwp_forkregs (which is called everywhere forkctx
* is called) to handle forking the floating point registers.
*
* because the #instructions to determine if we need to use them is probably
* greater than the #insructions just using them. This is a possible future
* optimization, only do it with very careful benchmarking!
*
* The fp_fksave and and fp_load were split into two routines for the
* sake of efficiency between the getfpregs/xregs_getfpregs and
* setfpregs/xregs_setfpregs. But note that for saving and restoring
* context, both *must* happen. For prmachdep, aka access from [k]adb,
* it's OK if only one part happens.
*/
/*
* fp_save(kfpu_t *fp)
* fp_fksave(kfpu_t *fp)
* Store the floating point registers.
*/
/* ARGSUSED */
void
{}
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* fp_v8_fksave(kfpu_t *fp)
*
* This is like the above routine but only saves the lower half.
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* fp_v8p_fksave(kfpu_t *fp)
*
* This is like the above routine but only saves the upper half.
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* fp_restore(kfpu_t *fp)
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* fp_v8_load(kfpu_t *fp)
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */
/*
* fp_v8p_load(kfpu_t *fp)
*/
/* ARGSUSED */
void
{}
#else /* lint */
#endif /* lint */