diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-01 11:32:49 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-01 11:32:49 +0000 |
commit | ceb9059cda7f4c60938afc481935025ae921b556 (patch) | |
tree | 699239c51330c9978053a5533740099068f8cc64 | |
parent | 9ebae8aefad105d64619b2d8e39400f05ceb2fad (diff) | |
download | edk2-platforms-ceb9059cda7f4c60938afc481935025ae921b556.tar.xz |
clean up DxeCore to remove some dead code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5764 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Core/Dxe/DxeMain.h | 27 | ||||
-rw-r--r-- | MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 53 |
2 files changed, 0 insertions, 80 deletions
diff --git a/MdeModulePkg/Core/Dxe/DxeMain.h b/MdeModulePkg/Core/Dxe/DxeMain.h index a227ce5f8e..8904b8cff7 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.h +++ b/MdeModulePkg/Core/Dxe/DxeMain.h @@ -129,14 +129,6 @@ typedef struct { BOOLEAN Present;
} ARCHITECTURAL_PROTOCOL_ENTRY;
-typedef struct {
- EFI_STATUS_CODE_DATA DataHeader;
- EFI_HANDLE Handle;
-} EFI_DXE_DEVICE_HANDLE_EXTENDED_DATA;
-
-#define EFI_STATUS_CODE_DXE_CORE_GUID \
- { 0x335984bd, 0xe805, 0x409a, { 0xb8, 0xf8, 0xd2, 0x7e, 0xce, 0x5f, 0xf7, 0xa6 } }
-
//
// DXE Dispatcher Data structures
//
@@ -213,7 +205,6 @@ extern EFI_METRONOME_ARCH_PROTOCOL *gMetronome; extern EFI_TIMER_ARCH_PROTOCOL *gTimer;
extern EFI_SECURITY_ARCH_PROTOCOL *gSecurity;
extern EFI_BDS_ARCH_PROTOCOL *gBds;
-extern EFI_STATUS_CODE_PROTOCOL *gStatusCode;
extern EFI_TPL gEfiCurrentTpl;
@@ -2102,24 +2093,6 @@ CoreEfiNotAvailableYetArg5 ( /**
- Searches for a Protocol Interface passed from PEI through a HOB.
-
- @param ProtocolGuid The Protocol GUID to search for in the HOB List
- @param Interface A pointer to the interface for the Protocol GUID
-
- @retval EFI_SUCCESS The Protocol GUID was found and its interface is
- returned in Interface
- @retval EFI_NOT_FOUND The Protocol GUID was not found in the HOB List
-
-**/
-EFI_STATUS
-CoreGetPeiProtocol (
- IN EFI_GUID *ProtocolGuid,
- IN VOID **Interface
- );
-
-
-/**
Given a compressed source buffer, this function retrieves the size of the
uncompressed buffer and the size of the scratch buffer required to decompress
the compressed source buffer.
diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 1d04e38490..5916013a5c 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -36,18 +36,8 @@ EFI_GUID *gDxeCoreFileName; EFI_LOADED_IMAGE_PROTOCOL *gDxeCoreLoadedImage;
//
-// BugBug: I'n not runtime, but is the PPI?
-//
-EFI_STATUS_CODE_PROTOCOL gStatusCodeInstance = {
- NULL
-};
-
-EFI_STATUS_CODE_PROTOCOL *gStatusCode = &gStatusCodeInstance;
-
-//
// DXE Core Module Variables
//
-
EFI_BOOT_SERVICES mBootServices = {
{
EFI_BOOT_SERVICES_SIGNATURE, // Signature
@@ -296,11 +286,6 @@ DxeMain ( ASSERT_EFI_ERROR (Status);
//
- // Initialize the ReportStatusCode with PEI version, if available
- //
- CoreGetPeiProtocol (&gEfiStatusCodeRuntimeProtocolGuid, (VOID **) &gStatusCode->ReportStatusCode);
-
- //
// Report Status Code here for DXE_ENTRY_POINT once it is available
//
REPORT_STATUS_CODE (
@@ -592,42 +577,6 @@ CoreEfiNotAvailableYetArg5 ( }
-
-/**
- Searches for a Protocol Interface passed from PEI through a HOB.
-
- @param ProtocolGuid The Protocol GUID to search for in the HOB List
- @param Interface A pointer to the interface for the Protocol GUID
-
- @retval EFI_SUCCESS The Protocol GUID was found and its interface is
- returned in Interface
- @retval EFI_NOT_FOUND The Protocol GUID was not found in the HOB List
-
-**/
-EFI_STATUS
-CoreGetPeiProtocol (
- IN EFI_GUID *ProtocolGuid,
- IN VOID **Interface
- )
-{
- EFI_HOB_GUID_TYPE *GuidHob;
- VOID *Buffer;
-
- GuidHob = GetFirstGuidHob (ProtocolGuid);
- if (GuidHob == NULL) {
- return EFI_NOT_FOUND;
- }
-
- Buffer = GET_GUID_HOB_DATA (GuidHob);
- ASSERT (Buffer != NULL);
-
- *Interface = (VOID *)(*(UINTN *)(Buffer));
-
- return EFI_SUCCESS;
-}
-
-
-
/**
Calcualte the 32-bit CRC in a EFI table using the service provided by the
gRuntime service.
@@ -654,8 +603,6 @@ CalculateEfiHdrCrc ( }
-
-
/**
Terminates all boot services.
|