From 48557c6550adecf39e1e8e140b1736275d070dfb Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 23 Dec 2008 16:20:43 +0000 Subject: Code scrub DxeIpl, Runtime, DevicePath, FvbServicesLib, DiskIo, Partition, English, EBC. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7105 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c | 6 +++--- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 9 ++------- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h | 16 ++++------------ 3 files changed, 9 insertions(+), 22 deletions(-) (limited to 'MdeModulePkg/Core/DxeIplPeim/X64') diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c b/MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c index 05c5203d82..6fca4e496a 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c @@ -22,9 +22,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. This function performs a CPU architecture specific operations to execute the entry point of DxeCore with the parameters of HobList. - It also intalls EFI_END_OF_PEI_PPI to signal the end of PEI phase. + It also installs EFI_END_OF_PEI_PPI to signal the end of PEI phase. - @param DxeCoreEntryPoint The entrypoint of DxeCore. + @param DxeCoreEntryPoint The entry point of DxeCore. @param HobList The start of HobList passed to DxeCore. **/ @@ -58,7 +58,7 @@ HandOffToDxeCore ( PageTables = CreateIdentityMappingPageTables (); // - // End of PEI phase singal + // End of PEI phase signal // Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi); ASSERT_EFI_ERROR (Status); diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c index 35e92c641a..e58351c2ee 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -29,11 +29,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "DxeIpl.h" #include "VirtualMemory.h" - - - - - /** Allocates and fills in the Page Directory and Page Table Entries to establish a 1:1 Virtual to Physical mapping. @@ -43,7 +38,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. table entries to the physical address space. - @return EFI_SUCCESS The 1:1 Virtual to Physical identity mapping was created + @return The address of 4 level page map. **/ UINTN @@ -73,7 +68,7 @@ CreateIdentityMappingPageTables ( Hob = GetFirstHob (EFI_HOB_TYPE_CPU); if (Hob != NULL) { - PhysicalAddressBits = ((EFI_HOB_CPU *) Hob)->SizeOfMemorySpace; + PhysicalAddressBits = ((EFI_HOB_CPU *) Hob)->SizeOfMemorySpace; } // diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h index be9a7391b6..83d0e9bddb 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h @@ -2,9 +2,9 @@ x64 Long Mode Virtual Memory Management Definitions References: - 1) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 1:Basic Architecture, Intel - 2) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 2:Instruction Set Reference, Intel - 3) IA-32 Intel(R) Atchitecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel + 1) IA-32 Intel(R) Architecture Software Developer's Manual Volume 1:Basic Architecture, Intel + 2) IA-32 Intel(R) Architecture Software Developer's Manual Volume 2:Instruction Set Reference, Intel + 3) IA-32 Intel(R) Architecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel 4) AMD64 Architecture Programmer's Manual Volume 2: System Programming Copyright (c) 2006 - 2008, Intel Corporation.
@@ -100,7 +100,6 @@ typedef union { #pragma pack() - /** Allocates and fills in the Page Directory and Page Table Entries to establish a 1:1 Virtual to Physical mapping. @@ -110,7 +109,7 @@ typedef union { table entries to the physical address space. - @return EFI_SUCCESS The 1:1 Virtual to Physical identity mapping was created + @return The address of 4 level page map. **/ UINTN @@ -119,15 +118,11 @@ CreateIdentityMappingPageTables ( ); - - - /** Fix up the vector number in the vector code. @param VectorBase Base address of the vector handler. - @param VectorNum Index of vector. **/ @@ -139,9 +134,6 @@ AsmVectorFixup ( ); - - - /** Get the information of vector template. -- cgit v1.2.3