diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-16 13:43:26 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-16 13:43:26 +0000 |
commit | 9c8eefab050f79eb8a0af62a2f6cf2aa3122cf65 (patch) | |
tree | 36f05af378ce83238970752dcfbc28753786655a | |
parent | 835e5a5f653b14b79d75571dd5a0f6c5157b96d8 (diff) | |
download | edk2-platforms-9c8eefab050f79eb8a0af62a2f6cf2aa3122cf65.tar.xz |
Temporarily remove the immature "CONST" modifier.
Use FUNCTION_ENTRY_POINT macro to print the entry point of DXE core.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5505 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index 3b8245d9d7..fff08b33a0 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -25,19 +25,19 @@ BOOLEAN gInMemory = FALSE; // Module Globals used in the DXE to PEI handoff
// These must be module globals, so the stack can be switched
//
-CONST EFI_DXE_IPL_PPI mDxeIplPpi = {
+EFI_DXE_IPL_PPI mDxeIplPpi = {
DxeLoadCore
};
-CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI mCustomGuidedSectionExtractionPpi = {
+EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI mCustomGuidedSectionExtractionPpi = {
CustomGuidedSectionExtract
};
-CONST EFI_PEI_DECOMPRESS_PPI mDecompressPpi = {
+EFI_PEI_DECOMPRESS_PPI mDecompressPpi = {
Decompress
};
-CONST EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {
+EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {
{
EFI_PEI_PPI_DESCRIPTOR_PPI,
&gEfiDxeIplPpiGuid,
@@ -50,7 +50,7 @@ CONST EFI_PEI_PPI_DESCRIPTOR mPpiList[] = { }
};
-CONST EFI_PEI_PPI_DESCRIPTOR mPpiSignal = {
+EFI_PEI_PPI_DESCRIPTOR mPpiSignal = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiEndOfPeiSignalPpiGuid,
NULL
@@ -238,15 +238,8 @@ DxeLoadCore ( PcdGet32(PcdStatusCodeValuePeiHandoffToDxe)
);
- DEBUG_CODE_BEGIN ();
+ DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint)));
- EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION PtrPeImage;
- PtrPeImage.Pe32 = (EFI_IMAGE_NT_HEADERS32 *) ((UINTN) DxeCoreAddress + ((EFI_IMAGE_DOS_HEADER *) (UINTN) DxeCoreAddress)->e_lfanew);
-
- DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint)));
-
-
- DEBUG_CODE_END ();
//
// Transfer control to the DXE Core
// The handoff state is simply a pointer to the HOB list
|