/*
* 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"
/*
* Intel-specific portions of the DPI
*/
#include <kmdb/kmdb_dpi_impl.h>
#include <kmdb/kmdb_fault.h>
#include <kmdb/kmdb_kdi.h>
#include <mdb/mdb_debug.h>
#include <mdb/mdb_kreg.h>
void
{
switch (trapno) {
case T_GPFLT:
default:
errno = EMDB_NOMAP;
}
if (kmdb_dpi_fault_pcb != NULL) {
/*NOTREACHED*/
}
/* Debugger fault */
}
/*ARGSUSED*/
int
{
}
/*ARGSUSED*/
int
{
}
/*
* expects that the world will be resumed, and that the call will return
* when the world has stopped again.
*
* For support, we have resume_return(), which is called from main() when
* the continuation has completed (when the world has stopped again).
* set_resume_exit() tells where to jump to actually restart the world.
*
* CAUTION: This routine may be called *after* mdb_destroy.
*/
void
{
ASSERT(kmdb_dpi_resume_requested == 0);
if (setjmp(kmdb_dpi_resume_pcb) == 0) {
(void *)pc);
if (cmd != KMDB_DPI_CMD_RESUME_UNLOAD)
/*NOTREACHED*/
} else {
switch (trapno) {
case T_BPTFLT:
break;
case T_DBGENTR:
break;
default:
break;
}
}
}
void
kmdb_dpi_reboot(void)
{
/*
* We're going to skip all of the niceties we employ in resume_common,
* as we don't plan to ever return.
*/
}
void
{
}
{
}
{
}