s10_crt.s revision e71ca95ca6de23d33b54cb55cefdef30bc7c969b
/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/asm_linkage.h>
#if defined(lint)
void
_start(void)
{
}
#else /* lint */
.section ".text"
/*
* Initial entry point for the brand emulation library.
*
* This platform specific assembly entry point exists just to invoke
* the common brand library startup routine. That routine expects to
* be called with the following arguments:
* s10_init(int argc, char *argv[], char *envp[])
*
* There are no arguments explicitly passed to this entry point,
* routine, but we do know how our initial stack has been setup by
* the kernel. The stack format is documented in:
*
* So this routine will troll through the stack to setup the argument
* values for the common brand library startup routine and then invoke
* it.
*/
#if defined (__sparcv9)
#else /* !__sparcv9 */
#endif /* !__sparcv9 */
/* get argc */
/* get argv */
/* get envp */
/*NOTREACHED*/
#endif /* lint */