/*
* 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"
#include <sys/sysmacros.h>
#include <sys/archsystm.h>
#include <sys/contract_impl.h>
#include <sys/ucontext.h>
#include <sys/privregs.h>
#include <vm/seg_kmem.h>
#include <sys/tuneable.h>
#include <sys/bootconf.h>
#include <sys/systeminfo.h>
/*
* Compare the version of boot that boot says it is against
* the version of boot the kernel expects.
*
* XXX There should be no need to use promif routines here.
*/
int
{
if (boots_version == BO_VERSION)
return (0);
prom_printf("Wrong boot interface - kernel needs v%d found v%d\n",
prom_panic("halting");
/*NOTREACHED*/
}
/*
* Kernel setup code, called from startup().
*/
void
kern_setup1(void)
{
proc_sched = pp;
/*
* Initialize process 0 data structures
*/
/*
* We assume that the u-area is zeroed out.
*/
thread_init(); /* init thread_free list */
pid_init(); /* initialize pid (proc) table */
contract_init(); /* initialize contracts */
}
/*
* Load a procedure into a thread.
*/
void
{
extern void thread_start();
/*
* Push a "c" call frame onto the stack to represent
* the caller of "start".
*/
if (len != 0) {
/*
* the object that arg points at is copied into the
* caller's frame.
*/
}
/*
* store arg and len into the frames input register save area.
* these are then transfered to the first 2 output registers by
* thread_start() in swtch.s.
*/
/*
* initialize thread to resume at thread_start().
*/
}
#if !defined(lwp_getdatamodel)
/*
* Return the datamodel of the given lwp.
*/
{
}
#endif /* !lwp_getdatamodel */
#if !defined(get_udatamodel)
get_udatamodel(void)
{
}
#endif /* !get_udatamodel */