mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
1. Clean up DxeNt32OemHookStatusCodeLib.inf and PeiNt32OemHookStatusCodeLib.inf
2. Updated Dsc file git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2928 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
70c94b3b6d
commit
5520659643
@ -1,41 +0,0 @@
|
|||||||
/**@file
|
|
||||||
Common header file shared by all source files.
|
|
||||||
|
|
||||||
This file includes package header files, library classes and protocol, PPI & GUID definitions.
|
|
||||||
|
|
||||||
Copyright (c) 2007, Intel Corporation.
|
|
||||||
All rights reserved.
|
|
||||||
This software and associated documentation (if any) is furnished
|
|
||||||
under a license and may only be used or copied in accordance
|
|
||||||
with the terms of the license. Except as permitted by such
|
|
||||||
license, no part of this software or documentation may be
|
|
||||||
reproduced, stored in a retrieval system, or transmitted in any
|
|
||||||
form or by any means without the express written consent of
|
|
||||||
Intel Corporation.
|
|
||||||
**/
|
|
||||||
|
|
||||||
#ifndef __COMMON_HEADER_H_
|
|
||||||
#define __COMMON_HEADER_H_
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// The package level header files this module uses
|
|
||||||
//
|
|
||||||
#include <Dxe.h>
|
|
||||||
#include <EdkDxe.h>
|
|
||||||
#include <WinNtDxe.h>
|
|
||||||
//
|
|
||||||
// The protocols, PPI and GUID defintions for this module
|
|
||||||
//
|
|
||||||
#include <Guid/StatusCodeDataTypeId.h>
|
|
||||||
//
|
|
||||||
// The Library classes this module consumes
|
|
||||||
//
|
|
||||||
#include <Library/OemHookStatusCodeLib.h>
|
|
||||||
#include <Library/DebugLib.h>
|
|
||||||
#include <Library/HobLib.h>
|
|
||||||
#include <Library/PrintLib.h>
|
|
||||||
#include <Library/BaseMemoryLib.h>
|
|
||||||
#include <Library/ReportStatusCodeLib.h>
|
|
||||||
|
|
||||||
#endif
|
|
@ -27,7 +27,7 @@
|
|||||||
FILE_GUID = EF172A23-C7C5-47b7-B24E-D10DFE15540F
|
FILE_GUID = EF172A23-C7C5-47b7-B24E-D10DFE15540F
|
||||||
MODULE_TYPE = DXE_DRIVER
|
MODULE_TYPE = DXE_DRIVER
|
||||||
VERSION_STRING = 1.0
|
VERSION_STRING = 1.0
|
||||||
LIBRARY_CLASS = OemHookStatusCodeLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
|
LIBRARY_CLASS = OemHookStatusCodeLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
|
||||||
EDK_RELEASE_VERSION = 0x00020000
|
EDK_RELEASE_VERSION = 0x00020000
|
||||||
EFI_SPECIFICATION_VERSION = 0x00020000
|
EFI_SPECIFICATION_VERSION = 0x00020000
|
||||||
|
|
||||||
@ -48,7 +48,6 @@
|
|||||||
|
|
||||||
[Sources.common]
|
[Sources.common]
|
||||||
Nt32OemHookStatusCodeLib.c
|
Nt32OemHookStatusCodeLib.c
|
||||||
CommonHeader.h
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -61,6 +60,8 @@
|
|||||||
[Packages]
|
[Packages]
|
||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
Nt32Pkg/Nt32Pkg.dec
|
Nt32Pkg/Nt32Pkg.dec
|
||||||
|
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
||||||
|
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -87,3 +88,5 @@
|
|||||||
[Guids]
|
[Guids]
|
||||||
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
||||||
|
|
||||||
|
[Protocols]
|
||||||
|
gEfiWinNtThunkProtocolGuid # ALWAYS_CONSUMED
|
||||||
|
@ -51,11 +51,12 @@
|
|||||||
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>
|
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>
|
||||||
<Package PackageGuid="0fb2aa2d-10d5-40a5-a9dc-060c12a4a3f3"/>
|
<Package PackageGuid="0fb2aa2d-10d5-40a5-a9dc-060c12a4a3f3"/>
|
||||||
</PackageDependencies>
|
</PackageDependencies>
|
||||||
<Hobs>
|
<Protocols>
|
||||||
<HobTypes HobGuidCName="gEfiWinNtThunkProtocolGuid" Usage="ALWAYS_CONSUMED">
|
<Protocols>
|
||||||
<HobType>GUID_EXTENSION</HobType>
|
<Protocol Usage="ALWAYS_CONSUMED">
|
||||||
</HobTypes>
|
<ProtocolCName>gEfiWinNtThunkProtocolGuid</ProtocolCName>
|
||||||
</Hobs>
|
</Protocol>
|
||||||
|
</Protocols>
|
||||||
<Guids>
|
<Guids>
|
||||||
<GuidCNames Usage="ALWAYS_CONSUMED">
|
<GuidCNames Usage="ALWAYS_CONSUMED">
|
||||||
<GuidCName>gEfiStatusCodeSpecificDataGuid</GuidCName>
|
<GuidCName>gEfiStatusCodeSpecificDataGuid</GuidCName>
|
||||||
|
@ -15,18 +15,34 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
//
|
//
|
||||||
// Include common header file for this module.
|
// The package level header files this module uses
|
||||||
//
|
//
|
||||||
#include "CommonHeader.h"
|
#include <FrameWorkDxe.h>
|
||||||
|
#include <WinNtDxe.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cache of WinNtThunk protocol
|
// The protocols, PPI and GUID defintions for this module
|
||||||
|
//
|
||||||
|
#include <Protocol/WinNtThunk.h>
|
||||||
|
#include <Guid/StatusCodeDataTypeId.h>
|
||||||
|
//
|
||||||
|
// The Library classes this module consumes
|
||||||
|
//
|
||||||
|
#include <Library/OemHookStatusCodeLib.h>
|
||||||
|
#include <Library/DebugLib.h>
|
||||||
|
#include <Library/HobLib.h>
|
||||||
|
#include <Library/PrintLib.h>
|
||||||
|
#include <Library/BaseMemoryLib.h>
|
||||||
|
#include <Library/ReportStatusCodeLib.h>
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cache of WinNtThunk protocol
|
||||||
//
|
//
|
||||||
STATIC
|
STATIC
|
||||||
EFI_WIN_NT_THUNK_PROTOCOL *mWinNt;
|
EFI_WIN_NT_THUNK_PROTOCOL *mWinNt;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cache of standard output handle .
|
// Cache of standard output handle .
|
||||||
//
|
//
|
||||||
STATIC
|
STATIC
|
||||||
HANDLE mStdOut;
|
HANDLE mStdOut;
|
||||||
@ -64,29 +80,29 @@ OemHookStatusCodeInitialize (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Report status code to OEM device.
|
Report status code to OEM device.
|
||||||
|
|
||||||
@param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.
|
@param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.
|
||||||
|
|
||||||
@param Value Describes the current status of a hardware or software entity.
|
@param Value Describes the current status of a hardware or software entity.
|
||||||
This included information about the class and subclass that is used to classify the entity
|
This included information about the class and subclass that is used to classify the entity
|
||||||
as well as an operation. For progress codes, the operation is the current activity.
|
as well as an operation. For progress codes, the operation is the current activity.
|
||||||
For error codes, it is the exception. For debug codes, it is not defined at this time.
|
For error codes, it is the exception. For debug codes, it is not defined at this time.
|
||||||
Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.
|
Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.
|
||||||
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
|
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
|
||||||
|
|
||||||
@param Instance The enumeration of a hardware or software entity within the system.
|
@param Instance The enumeration of a hardware or software entity within the system.
|
||||||
A system may contain multiple entities that match a class/subclass pairing.
|
A system may contain multiple entities that match a class/subclass pairing.
|
||||||
The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
|
The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
|
||||||
not meaningful, or not relevant. Valid instance numbers start with 1.
|
not meaningful, or not relevant. Valid instance numbers start with 1.
|
||||||
|
|
||||||
|
|
||||||
@param CallerId This optional parameter may be used to identify the caller.
|
@param CallerId This optional parameter may be used to identify the caller.
|
||||||
This parameter allows the status code driver to apply different rules to different callers.
|
This parameter allows the status code driver to apply different rules to different callers.
|
||||||
Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
|
Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
|
||||||
|
|
||||||
|
|
||||||
@param Data This optional parameter may be used to pass additional data
|
@param Data This optional parameter may be used to pass additional data
|
||||||
|
|
||||||
@return The function always return EFI_SUCCESS.
|
@return The function always return EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -145,12 +161,12 @@ OemHookStatusCodeReport (
|
|||||||
// Print DEBUG() information into output buffer.
|
// Print DEBUG() information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiVSPrint (
|
CharCount = AsciiVSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
Format,
|
Format,
|
||||||
Marker
|
Marker
|
||||||
);
|
);
|
||||||
} else if (Data != NULL &&
|
} else if (Data != NULL &&
|
||||||
CompareGuid (&Data->Type, &gEfiStatusCodeSpecificDataGuid) &&
|
CompareGuid (&Data->Type, &gEfiStatusCodeSpecificDataGuid) &&
|
||||||
(CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) {
|
(CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) {
|
||||||
//
|
//
|
||||||
@ -166,18 +182,18 @@ OemHookStatusCodeReport (
|
|||||||
// Print ERROR information into output buffer.
|
// Print ERROR information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"ERROR: C%x:V%x I%x",
|
"ERROR: C%x:V%x I%x",
|
||||||
CodeType,
|
CodeType,
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make sure we don't try to print values that weren't intended to be printed, especially NULL GUID pointers.
|
// Make sure we don't try to print values that weren't intended to be printed, especially NULL GUID pointers.
|
||||||
//
|
//
|
||||||
|
|
||||||
if (CallerId != NULL) {
|
if (CallerId != NULL) {
|
||||||
CharCount += AsciiSPrint (
|
CharCount += AsciiSPrint (
|
||||||
&Buffer[CharCount - 1],
|
&Buffer[CharCount - 1],
|
||||||
@ -203,19 +219,19 @@ OemHookStatusCodeReport (
|
|||||||
);
|
);
|
||||||
} else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
} else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"PROGRESS CODE: V%x I%x\n\r",
|
"PROGRESS CODE: V%x I%x\n\r",
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"Undefined: C%x:V%x I%x\n\r",
|
"Undefined: C%x:V%x I%x\n\r",
|
||||||
CodeType,
|
CodeType,
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
/**@file
|
|
||||||
Common header file shared by all source files.
|
|
||||||
|
|
||||||
This file includes package header files, library classes and protocol, PPI & GUID definitions.
|
|
||||||
|
|
||||||
Copyright (c) 2007, Intel Corporation.
|
|
||||||
All rights reserved.
|
|
||||||
This software and associated documentation (if any) is furnished
|
|
||||||
under a license and may only be used or copied in accordance
|
|
||||||
with the terms of the license. Except as permitted by such
|
|
||||||
license, no part of this software or documentation may be
|
|
||||||
reproduced, stored in a retrieval system, or transmitted in any
|
|
||||||
form or by any means without the express written consent of
|
|
||||||
Intel Corporation.
|
|
||||||
**/
|
|
||||||
|
|
||||||
#ifndef __COMMON_HEADER_H_
|
|
||||||
#define __COMMON_HEADER_H_
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// The package level header files this module uses
|
|
||||||
//
|
|
||||||
#include <Peim.h>
|
|
||||||
#include <EdkPeim.h>
|
|
||||||
#include <WinNtPeim.h>
|
|
||||||
//
|
|
||||||
// The protocols, PPI and GUID defintions for this module
|
|
||||||
//
|
|
||||||
#include <Guid/StatusCodeDataTypeId.h>
|
|
||||||
#include <Ppi/NtThunk.h>
|
|
||||||
//
|
|
||||||
// The Library classes this module consumes
|
|
||||||
//
|
|
||||||
#include <Library/OemHookStatusCodeLib.h>
|
|
||||||
#include <Library/DebugLib.h>
|
|
||||||
#include <Library/PrintLib.h>
|
|
||||||
#include <Library/BaseMemoryLib.h>
|
|
||||||
#include <Library/ReportStatusCodeLib.h>
|
|
||||||
#include <Library/PeiServicesLib.h>
|
|
||||||
|
|
||||||
#endif
|
|
@ -15,18 +15,33 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
//
|
//
|
||||||
// Include common header file for this module.
|
// The package level header files this module uses
|
||||||
//
|
//
|
||||||
#include "CommonHeader.h"
|
#include <FrameworkPei.h>
|
||||||
|
#include <WinNtPeim.h>
|
||||||
|
//
|
||||||
|
// The protocols, PPI and GUID defintions for this module
|
||||||
|
//
|
||||||
|
#include <Guid/StatusCodeDataTypeId.h>
|
||||||
|
#include <Ppi/NtThunk.h>
|
||||||
|
//
|
||||||
|
// The Library classes this module consumes
|
||||||
|
//
|
||||||
|
#include <Library/OemHookStatusCodeLib.h>
|
||||||
|
#include <Library/DebugLib.h>
|
||||||
|
#include <Library/PrintLib.h>
|
||||||
|
#include <Library/BaseMemoryLib.h>
|
||||||
|
#include <Library/ReportStatusCodeLib.h>
|
||||||
|
#include <Library/PeiServicesLib.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cache of WinNtThunk protocol
|
// Cache of WinNtThunk protocol
|
||||||
//
|
//
|
||||||
STATIC
|
STATIC
|
||||||
EFI_WIN_NT_THUNK_PROTOCOL *mWinNt;
|
EFI_WIN_NT_THUNK_PROTOCOL *mWinNt;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cache of standard output handle .
|
// Cache of standard output handle .
|
||||||
//
|
//
|
||||||
STATIC
|
STATIC
|
||||||
HANDLE mStdOut;
|
HANDLE mStdOut;
|
||||||
@ -47,7 +62,7 @@ OemHookStatusCodeInitialize (
|
|||||||
PEI_NT_THUNK_PPI *NtThunkPpi;
|
PEI_NT_THUNK_PPI *NtThunkPpi;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Locate NtThunkPpi for retrieving standard output handle
|
// Locate NtThunkPpi for retrieving standard output handle
|
||||||
//
|
//
|
||||||
@ -61,7 +76,7 @@ OemHookStatusCodeInitialize (
|
|||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
mWinNt = (EFI_WIN_NT_THUNK_PROTOCOL *) NtThunkPpi->NtThunk ();
|
mWinNt = (EFI_WIN_NT_THUNK_PROTOCOL *) NtThunkPpi->NtThunk ();
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cache standard output handle.
|
// Cache standard output handle.
|
||||||
@ -73,29 +88,29 @@ OemHookStatusCodeInitialize (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Report status code to OEM device.
|
Report status code to OEM device.
|
||||||
|
|
||||||
@param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.
|
@param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.
|
||||||
|
|
||||||
@param Value Describes the current status of a hardware or software entity.
|
@param Value Describes the current status of a hardware or software entity.
|
||||||
This included information about the class and subclass that is used to classify the entity
|
This included information about the class and subclass that is used to classify the entity
|
||||||
as well as an operation. For progress codes, the operation is the current activity.
|
as well as an operation. For progress codes, the operation is the current activity.
|
||||||
For error codes, it is the exception. For debug codes, it is not defined at this time.
|
For error codes, it is the exception. For debug codes, it is not defined at this time.
|
||||||
Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.
|
Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.
|
||||||
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
|
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
|
||||||
|
|
||||||
@param Instance The enumeration of a hardware or software entity within the system.
|
@param Instance The enumeration of a hardware or software entity within the system.
|
||||||
A system may contain multiple entities that match a class/subclass pairing.
|
A system may contain multiple entities that match a class/subclass pairing.
|
||||||
The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
|
The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
|
||||||
not meaningful, or not relevant. Valid instance numbers start with 1.
|
not meaningful, or not relevant. Valid instance numbers start with 1.
|
||||||
|
|
||||||
|
|
||||||
@param CallerId This optional parameter may be used to identify the caller.
|
@param CallerId This optional parameter may be used to identify the caller.
|
||||||
This parameter allows the status code driver to apply different rules to different callers.
|
This parameter allows the status code driver to apply different rules to different callers.
|
||||||
Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
|
Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
|
||||||
|
|
||||||
|
|
||||||
@param Data This optional parameter may be used to pass additional data
|
@param Data This optional parameter may be used to pass additional data
|
||||||
|
|
||||||
@return The function always return EFI_SUCCESS.
|
@return The function always return EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -154,12 +169,12 @@ OemHookStatusCodeReport (
|
|||||||
// Print DEBUG() information into output buffer.
|
// Print DEBUG() information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiVSPrint (
|
CharCount = AsciiVSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
Format,
|
Format,
|
||||||
Marker
|
Marker
|
||||||
);
|
);
|
||||||
} else if (Data != NULL &&
|
} else if (Data != NULL &&
|
||||||
CompareGuid (&Data->Type, &gEfiStatusCodeSpecificDataGuid) &&
|
CompareGuid (&Data->Type, &gEfiStatusCodeSpecificDataGuid) &&
|
||||||
(CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) {
|
(CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) {
|
||||||
//
|
//
|
||||||
@ -175,18 +190,18 @@ OemHookStatusCodeReport (
|
|||||||
// Print ERROR information into output buffer.
|
// Print ERROR information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"ERROR: C%x:V%x I%x",
|
"ERROR: C%x:V%x I%x",
|
||||||
CodeType,
|
CodeType,
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make sure we don't try to print values that weren't intended to be printed, especially NULL GUID pointers.
|
// Make sure we don't try to print values that weren't intended to be printed, especially NULL GUID pointers.
|
||||||
//
|
//
|
||||||
|
|
||||||
if (CallerId != NULL) {
|
if (CallerId != NULL) {
|
||||||
CharCount += AsciiSPrint (
|
CharCount += AsciiSPrint (
|
||||||
&Buffer[CharCount - 1],
|
&Buffer[CharCount - 1],
|
||||||
@ -212,19 +227,19 @@ OemHookStatusCodeReport (
|
|||||||
);
|
);
|
||||||
} else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
} else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"PROGRESS CODE: V%x I%x\n\r",
|
"PROGRESS CODE: V%x I%x\n\r",
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
CharCount = AsciiSPrint (
|
CharCount = AsciiSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
"Undefined: C%x:V%x I%x\n\r",
|
"Undefined: C%x:V%x I%x\n\r",
|
||||||
CodeType,
|
CodeType,
|
||||||
Value,
|
Value,
|
||||||
Instance
|
Instance
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
FILE_GUID = 0C2070F9-02A7-4e8e-B584-84EA922363FB
|
FILE_GUID = 0C2070F9-02A7-4e8e-B584-84EA922363FB
|
||||||
MODULE_TYPE = PEIM
|
MODULE_TYPE = PEIM
|
||||||
VERSION_STRING = 1.0
|
VERSION_STRING = 1.0
|
||||||
LIBRARY_CLASS = OemHookStatusCodeLib|PEIM
|
LIBRARY_CLASS = OemHookStatusCodeLib|PEIM
|
||||||
EDK_RELEASE_VERSION = 0x00020000
|
EDK_RELEASE_VERSION = 0x00020000
|
||||||
EFI_SPECIFICATION_VERSION = 0x00020000
|
EFI_SPECIFICATION_VERSION = 0x00020000
|
||||||
|
|
||||||
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
[Sources.common]
|
[Sources.common]
|
||||||
Nt32OemHookStatusCodeLib.c
|
Nt32OemHookStatusCodeLib.c
|
||||||
CommonHeader.h
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -59,6 +58,8 @@
|
|||||||
[Packages]
|
[Packages]
|
||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
Nt32Pkg/Nt32Pkg.dec
|
Nt32Pkg/Nt32Pkg.dec
|
||||||
|
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
||||||
|
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
PcdLib|$(WORKSPACE)/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
PcdLib|$(WORKSPACE)/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
||||||
DebugLib|$(WORKSPACE)/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
DebugLib|$(WORKSPACE)/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
||||||
PeCoffGetEntryPointLib|$(WORKSPACE)/MdePkg/Library/GetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
PeCoffGetEntryPointLib|$(WORKSPACE)/MdePkg/Library/GetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
||||||
SerialPortLib|$(WORKSPACE)/MdeModulePkg/Library/EdkSerialPortLibNull/EdkSerialPortLibNull.inf
|
SerialPortLib|$(WORKSPACE)/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.inf
|
||||||
BaseMemoryLib|$(WORKSPACE)/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
BaseMemoryLib|$(WORKSPACE)/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||||
BaseLib|$(WORKSPACE)/MdePkg/Library/BaseLib/BaseLib.inf
|
BaseLib|$(WORKSPACE)/MdePkg/Library/BaseLib/BaseLib.inf
|
||||||
CustomDecompressLib|$(WORKSPACE)/MdeModulePkg/Library/BaseCustomDecompressLibNull/BaseCustomDecompressLibNull.inf
|
CustomDecompressLib|$(WORKSPACE)/MdeModulePkg/Library/BaseCustomDecompressLibNull/BaseCustomDecompressLibNull.inf
|
||||||
@ -174,7 +174,7 @@
|
|||||||
PeiServicesLib|$(WORKSPACE)/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
PeiServicesLib|$(WORKSPACE)/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
||||||
BaseMemoryLib|$(WORKSPACE)/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
BaseMemoryLib|$(WORKSPACE)/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||||
MemoryAllocationLib|$(WORKSPACE)/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
MemoryAllocationLib|$(WORKSPACE)/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
||||||
ReportStatusCodeLib|$(WORKSPACE)/MdePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
ReportStatusCodeLib|$(WORKSPACE)/IntelFrameworkPkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
||||||
|
|
||||||
[LibraryClasses.common.PEI_CORE]
|
[LibraryClasses.common.PEI_CORE]
|
||||||
HobLib|$(WORKSPACE)/MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
HobLib|$(WORKSPACE)/MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
||||||
@ -185,7 +185,7 @@
|
|||||||
PeiServicesLib|$(WORKSPACE)/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
PeiServicesLib|$(WORKSPACE)/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
||||||
MemoryAllocationLib|$(WORKSPACE)/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
MemoryAllocationLib|$(WORKSPACE)/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
||||||
PeiCoreEntryPoint|$(WORKSPACE)/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
|
PeiCoreEntryPoint|$(WORKSPACE)/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
|
||||||
ReportStatusCodeLib|$(WORKSPACE)/MdePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
ReportStatusCodeLib|$(WORKSPACE)/IntelFrameworkPkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
||||||
|
|
||||||
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
||||||
DebugLib|$(WORKSPACE)/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
DebugLib|$(WORKSPACE)/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
||||||
@ -298,8 +298,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
[PcdsPatchableInModule.IA32]
|
[PcdsPatchableInModule.IA32]
|
||||||
PcdStatusCodeMemorySize|gEfiMdeModulePkgTokenSpaceGuid|1
|
PcdStatusCodeMemorySize|gEfiIntelFrameworkModulePkgTokenSpaceGuid|1
|
||||||
PcdStatusCodeRuntimeMemorySize|gEfiMdeModulePkgTokenSpaceGuid|128
|
PcdStatusCodeRuntimeMemorySize|gEfiIntelFrameworkModulePkgTokenSpaceGuid|128
|
||||||
|
|
||||||
[PcdsFixedAtBuild.IA32]
|
[PcdsFixedAtBuild.IA32]
|
||||||
PcdWinNtMemorySizeForSecMain|gEfiNt32PkgTokenSpaceGuid|L"64!64"|VOID*|10
|
PcdWinNtMemorySizeForSecMain|gEfiNt32PkgTokenSpaceGuid|L"64!64"|VOID*|10
|
||||||
@ -329,24 +329,24 @@
|
|||||||
PcdPeiPcdDatabaseExEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdPeiPcdDatabaseExEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdPeiPcdDatabaseGetSizeEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdPeiPcdDatabaseGetSizeEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdPeiPcdDatabaseSetEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdPeiPcdDatabaseSetEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdStatusCodeUseSerial|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseSerial|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseMemory|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseMemory|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseOEM|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdStatusCodeUseOEM|gEfiIntelFrameworkModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdDxeIplSwitchToLongMode|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdDxeIplSwitchToLongMode|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdDxeIplSupportEfiDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdDxeIplSupportEfiDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdDxeIplSupportTianoDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdDxeIplSupportTianoDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdDxeIplSupportCustomDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdDxeIplSupportCustomDecompress|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdDxeIplBuildShareCodeHobs|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdDxeIplBuildShareCodeHobs|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdDxePcdDatabaseTraverseEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdDxePcdDatabaseTraverseEnabled|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdStatusCodeUseHardSerial|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseHardSerial|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseEfiSerial|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseEfiSerial|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseRuntimeMemory|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseRuntimeMemory|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseDataHub|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeUseDataHub|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeUseOEM|gEfiMdeModulePkgTokenSpaceGuid|TRUE
|
PcdStatusCodeUseOEM|gEfiIntelFrameworkModulePkgTokenSpaceGuid|TRUE
|
||||||
PcdStatusCodeReplayInSerial|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeReplayInSerial|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeReplayInDataHub|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeReplayInDataHub|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeReplayInRuntimeMemory|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeReplayInRuntimeMemory|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdStatusCodeReplayInOEM|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdStatusCodeReplayInOEM|gEfiIntelFrameworkModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdSupportUpdateCapsuleRest|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
PcdSupportUpdateCapsuleRest|gEfiMdeModulePkgTokenSpaceGuid|FALSE
|
||||||
PcdComponentNameDisable|gEfiMdePkgTokenSpaceGuid|FALSE
|
PcdComponentNameDisable|gEfiMdePkgTokenSpaceGuid|FALSE
|
||||||
PcdDriverDiagnosticsDisable|gEfiMdePkgTokenSpaceGuid|FALSE
|
PcdDriverDiagnosticsDisable|gEfiMdePkgTokenSpaceGuid|FALSE
|
||||||
@ -430,5 +430,7 @@
|
|||||||
$(WORKSPACE)/IntelFrameworkModulePkg/Bus/Pci/IdeBus/Dxe/IdeBus.inf
|
$(WORKSPACE)/IntelFrameworkModulePkg/Bus/Pci/IdeBus/Dxe/IdeBus.inf
|
||||||
$(WORKSPACE)/IntelFrameworkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.inf
|
$(WORKSPACE)/IntelFrameworkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.inf
|
||||||
$(WORKSPACE)/IntelFrameworkModulePkg/Universal/DataHub/DataHubStdErr/Dxe/DataHubStdErr.inf
|
$(WORKSPACE)/IntelFrameworkModulePkg/Universal/DataHub/DataHubStdErr/Dxe/DataHubStdErr.inf
|
||||||
|
#$(WORKSPACE)\IntelFrameworkModulePkg\Universal\StatusCode\Dxe\DxeStatusCode.inf
|
||||||
|
#$(WORKSPACE)\IntelFrameworkModulePkg\Universal\StatusCode\Pei\PeiStatusCode.inf
|
||||||
${WORKSPACE}/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.inf ##This driver follows UEFI specification definition
|
${WORKSPACE}/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.inf ##This driver follows UEFI specification definition
|
||||||
${WORKSPACE}/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.inf ##This driver follows UEFI specification definition
|
${WORKSPACE}/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.inf ##This driver follows UEFI specification definition
|
Loading…
x
Reference in New Issue
Block a user