/*
* 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.
*/
/*
* various system states (boot, while running, while the debugger has control).
* Functions intended for use while the debugger has control may not grab any
* locks or perform any functions that assume the availability of other system
* services.
*/
#include <sys/x86_archext.h>
#include <sys/kdi_impl.h>
#include <sys/smp_impldefs.h>
#include <sys/psm_types.h>
#include <sys/segments.h>
#include <sys/archsystm.h>
#include <sys/controlregs.h>
#include <sys/kobj_impl.h>
#include <sys/clock_impl.h>
static void
kdi_system_claim(void)
{
}
static void
kdi_system_release(void)
{
}
static cpu_t *
{
return (NULL);
do {
return (cp);
return (NULL);
}
#if defined(__amd64)
{
}
#endif
static uintptr_t
kdi_get_userlimit(void)
{
return (_userlimit);
}
static int
{
/*
* Boot-loaded kmdb will call us well before then, so we have to
* find the current cpu_t the hard way.
*/
return (EAGAIN); /* cpuid isn't done yet */
return (0);
}
void
{
/*
* This rare case could happen if we entered kmdb whilst still on the
* fake CPU set up by boot_kdi_tmpinit(). We're trying to restore the
* kernel's IDT that we saved on entry, but it was from the fake cpu_t
* rather than the real IDT (which is still boot's). It's unpleasant,
* but we just encode knowledge that it's idt0 we want to restore.
*/
}
static void
{
platfn();
}
/*
* On Intel, most of these are shared between i86*, so this is really an
* arch_kdi_init().
*/
void
{
}
void
{
}