Mercurial > illumos > illumos-gate
changeset 3313:7b0474dce42a
FWARC 2006/201 sun4v error handling update
6472072 Solaris must correctly message panic by user request
author | iskreen |
---|---|
date | Thu, 21 Dec 2006 14:22:52 -0800 |
parents | d9c746daf22f |
children | 74df96a339e8 |
files | usr/src/uts/sun4v/os/error.c usr/src/uts/sun4v/sys/error.h |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/sun4v/os/error.c Thu Dec 21 12:29:59 2006 -0800 +++ b/usr/src/uts/sun4v/os/error.c Thu Dec 21 14:22:52 2006 -0800 @@ -310,6 +310,17 @@ break; + case ERRH_DESC_USER_DCORE: + /* + * User generated panic. Call panic directly + * since there are no FMA e-reports to + * display. + */ + + panic("Panic - Generated at user request"); + + break; + default: cmn_err(CE_WARN, "Panic - Error Descriptor 0x%llx " " invalid in non-resumable error handler",
--- a/usr/src/uts/sun4v/sys/error.h Thu Dec 21 12:29:59 2006 -0800 +++ b/usr/src/uts/sun4v/sys/error.h Thu Dec 21 14:22:52 2006 -0800 @@ -54,6 +54,7 @@ #define ERRH_DESC_PR_NRE 2 /* Precise non-resumable error */ #define ERRH_DESC_DEF_NRE 3 /* Deferred non-resumalbe error */ #define ERRH_DESC_WARN_RE 4 /* Power-off for vBSC HostShutdown() */ +#define ERRH_DESC_USER_DCORE 5 /* User initiated panic */ /* * Sun4v Error Report Error Attributes specifies the attributes of the error