/*
* 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"
#include <sys/sysmacros.h>
#include <ctype.h>
#include <sys/mdb_modapi.h>
#include <sys/machcpuvar.h>
/*ARGSUSED*/
int
{
if (flags & DCMD_ADDRSPEC)
return (DCMD_USAGE);
return (DCMD_USAGE);
mdb_warn("failed to read 'cpu_list'");
return (DCMD_ERR);
}
if (verbose)
mdb_printf("CPUID ADDRESS\n");
do {
return (DCMD_ERR);
}
if (verbose) {
else
return (DCMD_OK);
}
/*ARGSUSED*/
int
{
if (flags & DCMD_ADDRSPEC)
return (DCMD_USAGE);
return (DCMD_USAGE);
mdb_warn("failed to read 'cpu_list'");
return (DCMD_ERR);
}
if (verbose)
mdb_printf("CPUID ADDRESS\n");
do {
return (DCMD_ERR);
}
if (verbose) {
else
return (DCMD_OK);
}
/*ARGSUSED*/
int
{
if (!(flags & DCMD_ADDRSPEC))
return (DCMD_USAGE);
return (DCMD_USAGE);
return (DCMD_ERR);
}
if (verbose)
mdb_printf("empty\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
/*ARGSUSED*/
int
{
if (!(flags & DCMD_ADDRSPEC))
return (DCMD_USAGE);
return (DCMD_USAGE);
return (DCMD_ERR);
}
if (verbose)
mdb_printf("empty\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
/*ARGSUSED*/
int
{
return (WALK_NEXT);
}
/*ARGSUSED*/
int
{
mdb_warn("address of struct cpu_t is required\n");
return (WALK_ERR);
}
return (WALK_ERR);
}
lower += 1;
upper += 2;
return (WALK_DONE);
}
return (WALK_NEXT);
}
/*ARGSUSED*/
int
{
mdb_warn("address of struct cpu_t is required\n");
return (WALK_ERR);
}
return (WALK_ERR);
}
lower += 1;
upper += 2;
return (WALK_DONE);
}
return (WALK_NEXT);
}
/*ARGSUSED*/
int
{
int status;
return (WALK_DONE);
wsp->walk_cbdata);
lower += 1;
upper += 2;
return (WALK_DONE); /* end of loop */
return (status);
}
void
{
}
/*
* MDB module linkage information:
*
* Declare a list of structures describing dcmds, and a function
* named _mdb_init to return a pointer to module information.
*/
{ "errhre", "[-v]", "addr of sun4v resumable error element",
resumable },
{ "errhnre", "[-v]", "addr of sun4v nonresumable error element",
nonresumable },
{ NULL }
};
{ "errhrq", "walk a cpu-specific sun4v resumble error queue",
{ "errhnrq", "walk a cpu-specific sun4v nonresumble error queue",
{ NULL }
};
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}