/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* SPARC-specific portions of the DPI
*/
#include <sys/machtrap.h>
#include <kmdb/kmdb_dpi_impl.h>
#include <kmdb/kmdb_asmutil.h>
#include <kmdb/kmdb_promif.h>
#include <kmdb/kmdb_fault.h>
#include <mdb/mdb_debug.h>
#include <mdb/mdb_kreg.h>
void
{
switch (tt) {
case FAST_PROT_TT:
break;
case T_DATA_ERROR:
break;
#ifdef sun4v
case T_DATA_MMU_MISS:
#endif /* sun4v */
case FAST_DMMU_MISS_TT:
default:
errno = EMDB_NOMAP;
}
if (kmdb_dpi_fault_pcb != NULL) {
/*NOTREACHED*/
}
/* Debugger fault */
}
int
{
}
int
{
}
int
{
}
int
{
}
void
{
}
/*
* 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 (tt) {
case T_PA_WATCHPOINT:
break;
case T_VA_WATCHPOINT:
break;
break;
case ST_KMDB_TRAP|T_SOFTWARE_TRAP:
break;
default:
break;
}
}
}