sparc_ddi.s revision 88b44bf4e73233af70877930178dbff7f1c2992b
/*
* 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.
*/
/*
* Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
*/
/*
* Assembler routines to make some DDI routines go faster.
* These routines should ONLY be ISA-dependent.
*/
#if defined(lint)
#else /* lint */
#include <sys/asm_linkage.h>
#include "assym.h" /* for FKIOCTL etc. */
#endif /* lint */
/*
* Layered driver routines.
*
* At the time of writing, the compiler converts
*
* a() { return (b()); }
*
* into
* save, call b, restore
*
* Though this is sort of ok, if the called routine is leaf routine,
* then we just burnt a register window.
*
* When the compiler understands this optimization, many
* of these routines can go back to C again.
*/
#ifdef lint
int
{
}
#else /* lint */
/*NOTREACHED*/
.do_kcopy:
bne,a 1f
1: ret
#endif /* lint */
#ifdef lint
int
{
}
#else /* lint */
/*NOTREACHED*/
#endif /* lint */
/*
* DDI spine wrapper routines - here so as to not have to
* buy register windows when climbing the device tree (which cost!)
*/
#if defined(lint)
/*ARGSUSED*/
int
{
return (DDI_SUCCESS);
}
#else /* lint */
2: retl
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
bne 1f
#endif /* lint */
#if defined(lint)
/* ARGSUSED */
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */
#if defined(lint)
/*ARGSUSED*/
int
{
return (DDI_SUCCESS);
}
#else /* lint */
#endif /* lint */