/*
* 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
*/
/*
*/
#include <sys/asm_linkage.h>
#if defined(lint)
void
_start(void)
{
}
#else /* lint */
/*
* 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:
* brand_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. This routine is modeled after the default crt1.s`_start()
* routines.
*/
/* Make stack traces look pretty, build a fake stack frame. */
/*
* Calculate the location of the envp array by adding the size of
* the argv array to the start of the argv array.
*/
/*NOTREACHED*/
#endif /* lint */