kmdb_promif_isadep.c revision febcc4a52c3ed7fe3a106da2c2ba52c56afd5111
/*
* 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"
/*
* PROM interface
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#define _KERNEL
#define _BOOT
#include <mdb/mdb_debug.h>
#include <kmdb/kmdb_promif_impl.h>
#include <kmdb/kmdb_kdi.h>
#include <mdb/mdb_string.h>
#ifndef sun4v
int kmdb_prom_preserve_kctx = 0;
#endif /* sun4v */
{
}
kmdb_prom_get_handle(char *name)
{
return (prom_stdin_ihandle());
return (prom_stdout_ihandle());
else
return (-1);
}
/*ARGSUSED*/
char *
{
char *val;
return (NULL);
return (NULL);
return (NULL);
}
return (val);
}
void
kmdb_prom_free_ddi_prop(char *val)
{
}
int
{
}
typedef struct walk_cpu_data {
void *wcd_arg;
static int
{
/*
* Sun4v doesn't support port_id on guest.
*/
#ifndef sun4v
int port_id;
#endif /* sun4v */
return (PROM_WALK_CONTINUE);
#ifndef sun4v
warn("cpu node %x has no identifying properties\n",
node);
return (PROM_WALK_CONTINUE);
}
#endif /* sun4v */
return (PROM_WALK_TERMINATE);
return (PROM_WALK_CONTINUE);
}
void
{
}
void
kmdb_prom_enter_mon(void)
{
}
#ifndef sun4v
{
int val;
char name[OBP_MAXPROPNAME];
/*
* Check for the CMT case where cpu nodes are "strand" nodes
* In this case, the "cpu node" properties are contained in
* its parent "core" node.
*/
return (pnode);
return (node);
}
#endif /* sun4v */
void
kmdb_prom_exit_to_mon(void)
{
}
void
kmdb_prom_interpret(const char *str)
{
prom_interpret((char *)str, 0, 0, 0, 0, 0);
}
/*ARGSUSED*/
int
{
return (set_errno(EMDB_NOMAP));
return (0);
}
/*ARGSUSED*/
int
{
return (prom_stdout_is_framebuffer());
}
#ifndef sun4v
#define PROM_KCTX_PRESERVED_PROPNAME "context0-page-size-preserved"
void
{
int val;
}
}
#endif /* sun4v */