/** @file\r
CPU Exception Handler Library common functions.\r
\r
- Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
// 1 means an error code will be pushed, otherwise 0\r
//\r
-CONST UINT32 mErrorCodeFlag = 0x00027d00;\r
+CONST UINT32 mErrorCodeFlag = 0x00227d00;\r
\r
//\r
// Define the maximum message length\r
"#AC - Alignment Check",\r
"#MC - Machine-Check",\r
"#XM - SIMD floating-point",\r
- "#VE - Virtualization"\r
+ "#VE - Virtualization",\r
+ "#CP - Control Protection"\r
};\r
\r
#define EXCEPTION_KNOWN_NAME_NUM (sizeof (mExceptionNameStr) / sizeof (CHAR8 *))\r
/** @file\r
Common header file for CPU Exception Handler Library.\r
\r
- Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#define IA32_PF_EC_RSVD BIT3\r
#define IA32_PF_EC_ID BIT4\r
#define IA32_PF_EC_PK BIT5\r
+#define IA32_PF_EC_SS BIT6\r
#define IA32_PF_EC_SGX BIT15\r
\r
#include "ArchInterruptDefs.h"\r
/** @file\r
IA32 CPU Exception Handler functons.\r
\r
- Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
);\r
if (ExceptionType == EXCEPT_IA32_PAGE_FAULT) {\r
InternalPrintMessage (\r
- " I:%x R:%x U:%x W:%x P:%x PK:%x S:%x",\r
+ " I:%x R:%x U:%x W:%x P:%x PK:%x SS:%x SGX:%x",\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_ID) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_RSVD) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_US) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_WR) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_P) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_PK) != 0,\r
+ (SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_SS) != 0,\r
(SystemContext.SystemContextIa32->ExceptionData & IA32_PF_EC_SGX) != 0\r
);\r
}\r
/** @file\r
x64 CPU Exception Handler.\r
\r
- Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
);\r
if (ExceptionType == EXCEPT_IA32_PAGE_FAULT) {\r
InternalPrintMessage (\r
- " I:%x R:%x U:%x W:%x P:%x PK:%x S:%x",\r
+ " I:%x R:%x U:%x W:%x P:%x PK:%x SS:%x SGX:%x",\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_ID) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_RSVD) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_US) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_WR) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_P) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_PK) != 0,\r
+ (SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_SS) != 0,\r
(SystemContext.SystemContextX64->ExceptionData & IA32_PF_EC_SGX) != 0\r
);\r
}\r