/*
* 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 (c) 2012 Gary Mills
*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <kmdb/kmdb_auxv.h>
#include <sys/bootconf.h>
#include <sys/kobj_impl.h>
#include <sys/kdi_impl.h>
#include <sys/x86_archext.h>
#include <sys/controlregs.h>
#include <sys/archsystm.h>
static int
{
int len;
return (1);
}
return (0);
}
static int
{
char *val;
int ret = 0;
return (0);
ret = 1;
}
return (ret);
}
/*
* We don't have any property-walking routines, so we have to specifically
* query and thus have guilty knowledge of the properties that the
* debugger wants to see.
*
* Here actually we only support six console properties:
* input-device, output-device, tty[a-d]-mode.
*/
static kmdb_auxv_nv_t *
{
int (*preader)(char *, char *, int);
int i;
if (kctl.kctl_boot_loaded) {
} else {
}
/* Set the property names. */
for (i = 0; i < KCTL_PROPNV_NTTYMD; i++) {
ttymode);
}
/*
* console is defined by "console" property, with
* fallback on the old "input-device" property.
*/
} else {
}
/* Set tty modes or defaults. */
for (i = KCTL_PROPNV_NIODEV; i < KCTL_PROPNV_NENT; i++) {
}
return (pnv);
}
static void
{
}
void
{
}
void
{
}
int
kctl_preactivate_isadep(void)
{
return (0);
}
/*ARGSUSED*/
void
{
if (!kctl.kctl_boot_loaded)
hat_kdi_init();
}
void
{
}
/*
* Many common kernel functions assume that %gs can be deferenced, and
* fail horribly if it cannot. Ask the kernel to set up a temporary
* mapping to a fake cpu_t so that we can call such functions during
* initialization.
*/
void *
kctl_boot_tmpinit(void)
{
return (boot_kdi_tmpinit());
}
void
{
}