cmd_cpuerr.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Ereport-handling routines for CPU errors
*/
#include <cmd_cpu.h>
#include <cmd.h>
#include <strings.h>
#include <string.h>
#include <errno.h>
#include <sys/cheetahregs.h>
/*
* tag events so we can have one common routine into which each handler
* calls.
*/
/*ARGSUSED9*/
static cmd_evdisp_t
{
const char *uuid;
return (CMD_EVD_REDUND);
&uuid);
}
return (CMD_EVD_OK); /* serd engine hasn't fired yet */
return (CMD_EVD_OK);
}
{ \
\
return (CMD_EVD_UNUSED); \
\
}
/*ARGSUSED*/
{
const char *uuid;
return (CMD_EVD_UNUSED);
return (CMD_EVD_REDUND);
/*
* Create a new case for FPU errors, add the ereport and fault
* and solve the case.
*/
CMD_PTR_CPU_FPU, &uuid);
return (CMD_EVD_OK);
}
typedef struct errdata {
const char *ed_fltnm;
const cmd_ptrsubtype_t ed_pst;
} errdata_t;
/*ARGSUSED*/
static void
{
const char *uuid;
if (cpu->cpu_faulting) {
return;
}
return;
}
return;
}
return;
}
/*
* We didn't match in the UE cache. We don't need to sleep for UE
* arrival, as we've already slept once for the train match.
*/
&uuid);
}
&rsrc, 0) != 0) {
}
}
static void
{
const char *uuid;
return;
&uuid);
}
return; /* serd engine hasn't fired yet */
&rsrc, 0) != 0) {
}
}
/*
* We're back from the timeout. Check to see if this event was part of a train.
* If it was, make sure to only process the cause of the train. If not,
* process the event directly.
*/
static void
{
return;
}
goto done;
}
/*
* We didn't match in a train, so we're going to process each
* event individually.
*/
goto done;
}
/*
* We've got a train match. If this event is the cause of the train,
* process it.
*/
}
done:
}
void
{
}
void
{
}
static cmd_evdisp_t
{
cmd_case_t *cc;
return (CMD_EVD_UNUSED);
return (CMD_EVD_REDUND);
goto redeliver;
}
}
goto redeliver;
return (CMD_EVD_UNUSED);
}
return (CMD_EVD_BAD);
}
{
}
{
}
void
{
}