mach_kdi.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* 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>
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)
static uintptr_t
{
}
#endif
static void
{
do {
}
static gate_desc_t *
curidt(void)
{
}
static void
int useboot)
{
#if defined(__amd64)
SDT_SYSIGT, dpl);
#else
SDT_SYSIGT, dpl);
#endif
}
static void
{
}
static void
{
}
static gate_desc_t *
{
}
void
kdi_flush_caches(void)
{
reload_cr3();
}
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);
}
static void
kdi_plat_call(void (*platfn)(void))
{
platfn();
}
void
{
#if defined(__amd64)
#endif
}
/*ARGSUSED*/
void
{
hat_kdi_fini();
}
void
{
}