]> git.proxmox.com Git - mirror_edk2.git/commitdiff
• BaseMemoryLib:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Jun 2006 10:18:28 +0000 (10:18 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Jun 2006 10:18:28 +0000 (10:18 +0000)
Modify some Aassert()s conditions to sync with MWG 0.56d
Modify some defects in function header.
• PostCodeLib:
Implement PeiDxePostCodeLibReportStatusCode.
• Misc
Rename BaseDebugLibReportStatusCode to PeiDxeDebugLibReportStatusCode
Remove tabs in all .c and .h files in MdePkg.
Rename PeiServicesReinstallPpi() to PeiServicesReInstallPpi()
Adjust some minor coding style in PeCoffLoaderGetEntryPointerLib()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@626 6f19259b-4bc3-4df7-8a09-765794883524

193 files changed:
EdkModulePkg/Bus/Pci/AtapiPassThru/Dxe/AtapiPassThru.mbd
EdkModulePkg/Bus/Pci/CirrusLogic/Dxe/CirrusLogic5430.mbd
EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.mbd
EdkModulePkg/Bus/Pci/PciBus/Dxe/LightPciBus.mbd
EdkModulePkg/Bus/Pci/PciBus/Dxe/PciBus.mbd
EdkModulePkg/Bus/Pci/PciBus/Dxe/PciBusLite.mbd
EdkModulePkg/Bus/Pci/Uhci/Dxe/Uhci.mbd
EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Undi.mbd
EdkModulePkg/Bus/Scsi/ScsiBus/Dxe/ScsiBus.mbd
EdkModulePkg/Bus/Scsi/ScsiDisk/Dxe/ScsiDisk.mbd
EdkModulePkg/Bus/Usb/UsbBot/Dxe/UsbBot.mbd
EdkModulePkg/Bus/Usb/UsbBus/Dxe/UsbBus.mbd
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi0/UsbCbi0.mbd
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi1/UsbCbi1.mbd
EdkModulePkg/Bus/Usb/UsbKb/Dxe/UsbKb.mbd
EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorage.mbd
EdkModulePkg/Bus/Usb/UsbMouse/Dxe/UsbMouse.mbd
EdkModulePkg/Core/Dxe/DxeMain.mbd
EdkModulePkg/Core/DxeIplPeim/DxeIpl.mbd
EdkModulePkg/Core/DxeIplPeim/DxeIplX64.mbd
EdkModulePkg/Core/Pei/PeiMain.mbd
EdkModulePkg/Universal/Console/ConSplitter/Dxe/ConSplitter.mbd
EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.mbd
EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.mbd
EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.mbd
EdkModulePkg/Universal/DataHub/DataHubStdErr/Dxe/DataHubStdErr.mbd
EdkModulePkg/Universal/DebugSupport/Dxe/DebugSupport.mbd
EdkModulePkg/Universal/Debugger/Debugport/Dxe/DebugPort.mbd
EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.mbd
EdkModulePkg/Universal/Disk/DiskIoPartition/Dxe/DiskIoPartition.mbd
EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.mbd
EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.mbd
EdkModulePkg/Universal/Ebc/Dxe/Ebc.mbd
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/EmuVariable.mbd
EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.mbd
EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.mbd
EdkModulePkg/Universal/GenericMemoryTest/Dxe/NullMemoryTest.mbd
EdkModulePkg/Universal/GenericMemoryTest/Pei/BaseMemoryTest.mbd
EdkModulePkg/Universal/MonotonicCounter/RuntimeDxe/MonotonicCounter.mbd
EdkModulePkg/Universal/Network/PxeBc/Dxe/BC.mbd
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/Dhcp4.mbd
EdkModulePkg/Universal/Network/Snp32_64/Dxe/SNP.mbd
EdkModulePkg/Universal/PCD/Dxe/Pcd.mbd
EdkModulePkg/Universal/PCD/Pei/Pcd.mbd
EdkModulePkg/Universal/Runtime/RuntimeDxe/Runtime.mbd
EdkModulePkg/Universal/Security/SecurityStub/Dxe/SecurityStub.mbd
EdkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCode.mbd
EdkModulePkg/Universal/UserInterface/HiiDataBase/Dxe/HiiDatabase.mbd
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/DriverSample/DriverSample.mbd
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/SetupBrowser.mbd
EdkModulePkg/Universal/Variable/Pei/Variable.mbd
EdkModulePkg/Universal/Variable/RuntimeDxe/Emu/EmuVariable.mbd
EdkModulePkg/Universal/Variable/RuntimeDxe/Variable.mbd
EdkModulePkg/Universal/WatchdogTimer/Dxe/WatchDogTimer.mbd
EdkNt32Pkg/Dxe/ConPlatform/ConPlatform.mbd
EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.mbd
EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Chipset/Metronome/Metronome.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Chipset/RealTimeClock/RealTimeClock.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Chipset/Reset/Reset.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Chipset/Timer/Timer.mbd
EdkNt32Pkg/Dxe/WinNtThunk/Cpu/Cpu.mbd
EdkNt32Pkg/Dxe/WinNtThunk/WinNtThunk/WinNtThunk.mbd
EdkNt32Pkg/Pei/Autoscan/WinNtAutoScan.mbd
EdkNt32Pkg/Pei/BootMode/BootMode.mbd
EdkNt32Pkg/Pei/FirmwareVolume/WinNtFwh.mbd
EdkNt32Pkg/Pei/FlashMap/FlashMap.mbd
EdkNt32Pkg/Pei/MonoStatusCode/Nt32/MonoStatusCode.mbd
EdkNt32Pkg/Pei/WinNtStuff/WinNtStuff.mbd
MdePkg/Include/Library/BaseLib.h
MdePkg/Include/Library/BaseMemoryLib.h
MdePkg/Include/Library/CacheMaintenanceLib.h
MdePkg/Include/Library/CpuLib.h
MdePkg/Include/Library/DevicePathLib.h
MdePkg/Include/Library/DxeRuntimeDriverLib.h
MdePkg/Include/Library/DxeServicesTableLib.h
MdePkg/Include/Library/HiiLib.h
MdePkg/Include/Library/HobLib.h
MdePkg/Include/Library/IoLib.h
MdePkg/Include/Library/MemoryAllocationLib.h
MdePkg/Include/Library/PciCf8Lib.h
MdePkg/Include/Library/PciExpressLib.h
MdePkg/Include/Library/PciLib.h
MdePkg/Include/Library/PeCoffGetEntryPointLib.h
MdePkg/Include/Library/PeCoffLib.h
MdePkg/Include/Library/PeiServicesLib.h
MdePkg/Include/Library/PeiServicesTablePointerLib.h
MdePkg/Include/Library/PrintLib.h
MdePkg/Include/Library/ResourcePublicationLib.h
MdePkg/Include/Library/SmbusLib.h
MdePkg/Include/Library/TimerLib.h
MdePkg/Include/Library/UefiBootServicesTableLib.h
MdePkg/Include/Library/UefiDecompressLib.h
MdePkg/Include/Library/UefiDriverModelLib.h
MdePkg/Include/Library/UefiRuntimeServicesTableLib.h
MdePkg/Library/BaseLib/Ia32/Non-existing.c
MdePkg/Library/BaseLib/LinkedList.c
MdePkg/Library/BaseLib/X64/Non-existing.c
MdePkg/Library/BaseMemoryLib/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLib/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLib/MemLibGeneric.c
MdePkg/Library/BaseMemoryLib/MemLibGuid.c
MdePkg/Library/BaseMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem.c
MdePkg/Library/BaseMemoryLib/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMemWrapper.c
MdePkg/Library/BaseMemoryLib/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/MemLibGuid.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/ZeroMemWrapper.c
MdePkg/Library/BasePeCoffLib/BasePeCoff.c
MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c
MdePkg/Library/BasePrintLib/PrintLib.c
MdePkg/Library/BasePrintLib/PrintLibInternal.c
MdePkg/Library/BasePrintLib/PrintLibInternal.h
MdePkg/Library/DxePcdLib/DxePcdLib.c
MdePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c [new file with mode: 0644]
MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.mbd [new file with mode: 0644]
MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.msa [new file with mode: 0644]
MdePkg/Library/PeiDxeDebugLibReportStatusCode/build.xml [new file with mode: 0644]
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.mbd [new file with mode: 0644]
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.msa [new file with mode: 0644]
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PostCode.c [new file with mode: 0644]
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/build.xml [new file with mode: 0644]
MdePkg/Library/PeiMemoryLib/CompareMemWrapper.c
MdePkg/Library/PeiMemoryLib/CopyMemWrapper.c
MdePkg/Library/PeiMemoryLib/MemLibGeneric.c
MdePkg/Library/PeiMemoryLib/MemLibGuid.c
MdePkg/Library/PeiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
MdePkg/Library/PeiMemoryLib/ZeroMemWrapper.c
MdePkg/Library/PeiServicesLib/PeiServicesLib.c
MdePkg/Library/UefiMemoryLib/CompareMemWrapper.c
MdePkg/Library/UefiMemoryLib/CopyMemWrapper.c
MdePkg/Library/UefiMemoryLib/MemLibGeneric.c
MdePkg/Library/UefiMemoryLib/MemLibGuid.c
MdePkg/Library/UefiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem16Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem32Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem64Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMemWrapper.c
MdePkg/Library/UefiMemoryLib/ZeroMemWrapper.c
MdePkg/MdePkg-All-Archs.fpd
MdePkg/MdePkg.fpd
MdePkg/MdePkg.spd

index 903a092439727d7c168ec36b5e19c0f1f39bb6d7..6de42bb9bbf9590289090af077f91f52a429ca04 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 16bc2891b6cbd27caeb27d00729622801027f7ec..a8757d7b7353b772f983e15de75c7fb74b4e9585 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index f6e3ba1c8a15e538112426d995017ada99d7f725..b9ad38fffab6c1e888b5f1a866b3733e9d949815 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index eea4971cbfb692fcd09b78ac3e5877afdeaffb10..2bed01a330778153919e60a900717c349645bdac 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
index 41543f7832fc370d011fd27569262b4844400c7f..d343fd581ad5e0c5ffe8755b0d817088c4b811bb 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index c02965265cc5b324124e6e1a94f66668be8e055a..3e2db59a4c0b9ab81cf38e8cc8e378a547f9afbc 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
index 76d35e7455113181fd68533b3f33a781e1cb8744..e0ea5838b77417227b0ed86640c381d589bce2d1 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index c4dfccb97ed1c840d958c77f95b090ce61499d87..8127eb091146056ee8660a8d5a1e60b0cd4f11b7 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>
     <Library>UefiDriverEntryPoint</Library>
     <Library>DxeReportStatusCodeLib</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>EdkDxeRuntimeDriverLib</Library>
     <Library>UefiDriverModelLib</Library>
     <Library>DxeHobLib</Library>
index 0254903cd16ed86b9b664011d6bddb422af255bf..1681a92a1e82561a95630a23ad001070779ab223 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkScsiLib</Library>\r
index ec19f9687225fc29aeb191c988845cf3776dc8d3..87b9331c244f912283c97bc56d8f00a4b81489b8 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkScsiLib</Library>\r
index 1d18c752667fab61679b0ae14e746fc812233aea..c853ed4dc51ad59a26286e8411bd70bdb34edbc9 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index 4e46c13f97fc428a46340c8043b203235004a31b..405aab5014e39102e06b426852a090ea2c173e9c 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index 17a63f9b210b02dde3094f0e262c6c4ab0888957..935e3b5c8dd7f19dfa0515c7da47d6f969ccc307 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index e48251eb074b8857aa468c1a1121044e3446a4af..416976a869014af035d589f0ca3229d797967e5a 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index ecb6af6c96a37254bcbe30676103540d92c81816..7a26566d95d60115f50b70c85365c657fa2e3c08 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index c9c9b5c73b718840e3798fc45a228b175cd08fcd..e77c35d60e3b675918cf05e4d50c12a97115b257 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index 88b3e47a978f3d56ae2c4675bce13ca6a339cf0c..026a9bf68ca593af45ae4cde68b98d81a34bafb3 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>EdkUsbLib</Library>\r
index 55967cacded23c0fe0de5f4937e8f3c968cbd71d..9b0d2b15503a3b28370232cac619eea11c5508f9 100644 (file)
@@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         <Library>BaseLib</Library>
         <Library>BaseCacheMaintenanceLib</Library>
         <Library>DxeReportStatusCodeLib</Library>
-        <Library>BaseDebugLibReportStatusCode</Library>
+        <Library>PeiDxeDebugLibReportStatusCode</Library>
         <Library OverrideID="1111">DxeCoreUefiDecompressLibFromHob</Library>
         <Library OverrideID="1111">DxeCoreTianoDecompressLibFromHob</Library>
         <Library OverrideID="3333">DxeCoreCustomDecompressLibFromHob</Library>
index 36219e68c384277f8740f2e603fb4e349c267dc3..cf9205a26cfffa843b5db00557cfce3419dcac23 100644 (file)
@@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>BaseUefiTianoDecompressLib</Library>
     <Library>BaseCustomDecompressLibNull</Library>
     <Library>PeiReportStatusCodeLib</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>BaseLib</Library>
     <Library>PeiMemoryAllocationLib</Library>
     <Arch ArchType="IA32">
index 460044147c0ffaefbf8e4275be07d623e190be35..3544ee0d55b3ca82816b882127056d71e6dc0dfc 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>BaseCacheMaintenanceLib</Library>
     <Library>BaseUefiTianoDecompressLib</Library>
     <Library>BaseCustomDecompressLibNull</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>BaseLib</Library>
     <Library>PeiMemoryAllocationLib</Library>
     <Library>PeiReportStatusCodeLib</Library>
index 4bf137aa9ff7c543c5d955d9adc0c3e53abff7be..5b6d2c20747fb0166003987a427b228b00ad61d2 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesLib</Library>
     <Library>PeiHobLib</Library>
     <Library>PeiReportStatusCodeLib</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>BasePerformanceLibNull</Library>
     <Arch ArchType="IA32">
       <Library OverrideID="6666">BasePeCoffGetEntryPointLib</Library>
index d4b36b6f8f8599d12d81116c8f7358e3f47f0c39..6da93681ff5ec2ac00082dd41eee272a6af9c57e 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 4b240ac60bb4e345c8b2f7f75a8c4edad11c6f82..b23fd9220c3219f1dab36f8bacec52ec9897a04e 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>HiiLib</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 7ec90ab781fa67eb415075731709835c00942f7d..230399e76e13f39123f0ee3bcff535e1d6311bd0 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 39b2c9393bceb63094c071c7a541f59b31e8cc05..d117880c4130b8eae426712316ef5acd74558c55 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 8d03e0cf3b53ca3baa4864d732d77769b9a89b7b..3df19f1dc0ea7a7eb2f963323a5dc437067c9a50 100644 (file)
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>    \r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index a38bf30903bee3ff7a8f5c243a535a1adcc96265..db485cb4451c89dee850cf4d2bbd4dda07b9d0e3 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>    \r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 62abeee2d6c37103997bdb5b626678d5d4dc686e..5a5f505ca565d2d353ea6642e7f22cc4be5186c4 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
index 087bedf5bbdd88904996cc91e3ddbfee18dc9fd4..5cddc5ae37d3308c10e5711727e3abacfbc61bc7 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index ed89f0716e297818c0785b6725d3615bd14b6502..160f4673d745a7e55db2da82a2cc06a0e428ca69 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
   </Libraries>\r
index 7be0d52c92a03d0d2264a80145f65fc75c57f4d8..628c2ff3de42e0e60397c94b037d26f1a6fbdd18 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>UefiDevicePathLib</Library>\r
   </Libraries>\r
 </ModuleBuildDescription>\r
index 46b51cffdd9b20f3fe6cc86e3a7cf71319b64159..4d6e50b1b91e9586d452730ea793b4d222ff7d82 100644 (file)
@@ -33,6 +33,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>    \r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
   </Libraries>\r
 </ModuleBuildDescription>\r
index 61073596f334eb629d336c4862d7e47e8303dde8..a8ac736d1a77750771ac807fcb4a90440de3c2e9 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 4cc2c2085d661d91e71d7fbf5e970f549d290c42..5bac48fd5580c9ca9bb873a696a66f8b6404b226 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>UefiBootServicesTableLib</Library>\r
     <Library>BaseMemoryLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index a56e9defc05e72f509eea029a7b11e56de2a0ded..fa4818868cc398cdfd7e4ff7696777bff7395d7f 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 67ea3cd4b9c823ed364717ffd3716d7f2f67e774..ba3ea42682e741884e259385bb545d6693fa2126 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
index 2b770fe63d4d689ae3b99c79bf3b7b6cda86a4a6..ff035c5900bf4423af273a840982dcddfcf22405 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeServicesTableLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>    \r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>    \r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index ac15f7b7e0312aded05c330b58cb4589282b052b..2a8595985d5c822cc9240c93ae3904d5dbb604e8 100644 (file)
@@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>    \r
     <Library>PeimEntryPoint</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiMemoryLib</Library>\r
     <Library>PeiServicesLib</Library>\r
index 6a5fa71a763b8636679573a75b644d1765e77d55..2c298e2dd0cdac3a7d852f23558df0892cf82b89 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
     <Arch ArchType="IPF">\r
index 2262fc64c79239741e6dd0c81a28c926b37e4b46..94e8e7cff4635f6d36c9f816a8aa24966aac8b68 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 090884a8a83e2b5a561ad9ca7d4ce852e6da63e2..eda3e289f8dbd7eba9a15b50dcdcd6278eebdde7 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 293812b304626887f4b50a90e45f26c9e2d6073f..5d4985bb6372efd887e122689a4ffc05adb2d114 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 162339574af8c02aa58e337f3d13ce909300a602..5306a8f9a284ba21ab4e3658a2da491e8bbe43ac 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
   </Libraries>\r
index 8509b16d73c4606d897e7799500f04635510f05c..e28c1b9c4dd238bb539854ffb4809db8f23beddc 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesLib</Library>\r
     <Library OverrideID="4444">PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>PeiMemoryLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
     <Library>PeiMemoryAllocationLib</Library>\r
index 19ac5953f94de24028e5b7b69eb463518ef3daf9..0eed93ea84acc6d11e25f54895d7cd8c4a67b735 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>BaseMemoryLib</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
     <Arch ArchType="IPF">\r
       <Library>EdkDxeSalLib</Library>\r
index 2dc6fe738d3483c618a37caa9e76a21c8c0725c8..facb62ce8f513196d926cf1d795dfc6cc0dc0742 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
   </Libraries>\r
 </ModuleBuildDescription>\r
index f4030f4f9e975f25c8728b44544bc539b9003c1d..b35051ba54bbcac532e1084cbf8e4df1745aa789 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>
     <Library>UefiLib</Library>
     <Library>BasePrintLib</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>DxeIoLibCpuIo</Library>
     <Library>BaseMemoryLib</Library>
     <Library>DxeReportStatusCodeLib</Library>
index 03f2ed9463319549c5fc23df335786509034ed59..b8d2589b62d2a9746f99ba6c5032ae3758edb2c1 100644 (file)
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiRuntimeServicesTableLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>BaseMemoryLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
index f9e28861c5f34a15a03b55e2c7693eea46e9fd6b..24ec052551df7d4c54dc7c60e512ffce036c448d 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BasePrintLib</Library>\r
     <Library>EdkGraphicsLib</Library>\r
     <Library>EdkIfrSupportLib</Library>\r
index 6dc2e361387dd0ab94af6bbbb14b5acb73a65588..ba9532a661fa3915a45d9b0bd6f3e3e12a6ed8da 100644 (file)
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiRuntimeServicesTableLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>UefiMemoryLib</Library>\r
     <Library>BasePrintLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
index 97bbde871a94e06967a7fa762c9357b92dc74fa6..d091ef64231dee6a16ded4ac04f01b3e11a3d4b6 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </MbdHeader>
   <Libraries>
     <Library>PeiReportStatusCodeLib</Library>
-    <Library>BaseDebugLibReportStatusCode</Library>
+    <Library>PeiDxeDebugLibReportStatusCode</Library>
     <Library>BaseLib</Library>
     <Library>PeiMemoryLib</Library>
     <Library>PeiServicesLib</Library>
index 4cc2c2085d661d91e71d7fbf5e970f549d290c42..5bac48fd5580c9ca9bb873a696a66f8b6404b226 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <Libraries>\r
     <Library>UefiBootServicesTableLib</Library>\r
     <Library>BaseMemoryLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 7f2ea440e8b089b91fca2bced042c43dd3ad31e1..4f7bf334bbc183e4ebf305a295939499a9a7535c 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
     <Library>DxeServicesTableLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxeRuntimeDriverLib</Library>\r
     <Library>DxeHobLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 17bd6ea24fbe59d3b7b20da233796bb7de025864..9a605c91fc30119855f2144275f58b6c9f3aa3f2 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 6aaa24512b817dcf7dea6a6ed8bf1b4d4b434196..57e0a8974d818b23a9489463c63d8e35620211d5 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkDxePrintLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
index 921c5c5e416763ea5eae5b796ee826f76d0968b7..a487dba9413f56986f5f3fa04946a3d5be21ea34 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
   </Libraries>\r
index cda7d5b7744984f80e333167a40a06cacccdb11c..486f16882f73cc8f62383e0ac231e113d4073f27 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeServicesTableLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>EdkGenericBdsLib</Library>\r
     <Library>BasePrintLib</Library>\r
     <Library>EdkGraphicsLib</Library>\r
index eb507719932516ab62b932afe5b852517467c623..ca1a8f35424f39976fa1d33ab3468194663763f6 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>UefiDriverModelLib</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxePcdLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
     <Library>UefiDevicePathLib</Library>\r
index f510b4250df6519d59a1c1116a12afd4a3635655..3ee5bf161fca46702545f1160623fcd6caf88fd4 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeWinNtLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 2eeac01ee91187b4821429df5b8e2db009670dfb..f76db8e9afc23458d900f5355e65dc3fdbfd1791 100644 (file)
@@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 817bc4ed183f25e7f87ad4d37371614c815ae200..ff6e2c9c3a009fc965523eb82c3147c6330e14e4 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeWinNtLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 3b8602d4f2067579e494a7cd24a23247cc25433a..aa850fbd2c02de0d52e4a478eee2a3f24e5bfb90 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </MbdHeader>\r
   <Libraries>\r
     <Library>UefiBootServicesTableLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeHobLib</Library>\r
     <Library>BaseLib</Library>\r
     <Library>UefiLib</Library>\r
index f2d25fecb01f3803572b38615d419bc22b5c9402..0e198b75243bcfb4ceaa7c544733cb0abf674c9d 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 01f9f6ddf8a27f38b3c234bf4a175a9406dc7c98..b58acbb65b93fe50c5856632867fe25fe1db97b5 100644 (file)
@@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>UefiMemoryLib</Library>\r
     <Library>UefiDriverEntryPoint</Library>\r
     <Library>DxeReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>DxeWinNtLib</Library>\r
     <Library>DxeMemoryAllocationLib</Library>\r
   </Libraries>\r
index 49bc8eb9b8de0d22626a134c5141e77762ac2188..b2575705590e8ede5c6de113095b83853d1377c5 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 12d95b11473721ed767ecedf7fcb956b2e291a16..3e01e9dfe413616df8b6442fe7649542a5bb14ea 100644 (file)
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 8a65521b483d77d2af0b7e9d4e86c244af6c87c0..73667cc5d01a51cf75902366b54249b5d44b9d61 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 351e86dffdd5249922d8d9eb6ef4c7732d589337..dcf185c806dca860b3bc9e9d42e0f952dfb58a6e 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 950b450647b92aa28e001faff7f2b1108ff939ac..0b685338be57dc63bdf019baaa0f0bd773176de1 100644 (file)
@@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </MbdHeader>\r
   <Libraries>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
     <Library>PeiMemoryLib</Library>\r
     <Library>PeiServicesTablePointerLib</Library>\r
index e931679d39e64af6e1f0e748f851e60aa26e679d..49465980dc0b900573f5c10faca50689bfbaa77c 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <Library>PeiServicesTablePointerLib</Library>\r
     <Library>PeiHobLib</Library>\r
     <Library>PeiReportStatusCodeLib</Library>\r
-    <Library>BaseDebugLibReportStatusCode</Library>\r
+    <Library>PeiDxeDebugLibReportStatusCode</Library>\r
     <Library>BaseLib</Library>\r
   </Libraries>\r
   <BuildOptions ToolChain="MSFT">\r
index 28d53bf712e88e3647b9e3f121b6e60877fe63c9..746d2ac940fe4d2f6cea0c27c84e03adc0cf91f6 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory-only library functions with no library constructor/destructor\r
+  Memory-only library functions with no library constructor/destructor\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    BaseLib.h\r
+  Module Name:  BaseLib.h\r
 \r
 **/\r
 \r
@@ -873,7 +873,7 @@ IsListEmpty (
   If Node is not a node in List and Node is not equal to List, then ASSERT().\r
 \r
   @param  List  A pointer to the head node of a doubly linked list.\r
-  @param  Node A pointer to a node in the doubly linked list.\r
+  @param  Node  A pointer to a node in the doubly linked list.\r
 \r
   @retval TRUE  Node is one of the nodes in the doubly linked list.\r
   @retval FALSE Node is not one of the nodes in the doubly linked list.\r
@@ -901,7 +901,7 @@ IsNull (
   If Node is not a node in List, then ASSERT().\r
 \r
   @param  List  A pointer to the head node of a doubly linked list.\r
-  @param  Node A pointer to a node in the doubly linked list.\r
+  @param  Node  A pointer to a node in the doubly linked list.\r
 \r
   @retval TRUE  Node is the last node in the linked list.\r
   @retval FALSE Node is not the last node in the linked list.\r
index 5994530b55c0faca11f9a9ec4156d245be67c565..38f6c489d5dca3937b0ccfdd8d7d96f13dcd13aa 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory-only library functions with no library constructor/destructor\r
+  Memory-only library functions with no library constructor/destructor\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    BaseMemoryLib.h\r
+  Module Name:  BaseMemoryLib.h\r
 \r
 **/\r
 \r
 #define __BASE_MEMORY_LIB__\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   );\r
 \r
 /**\r
-  Set Buffer to Value for Size bytes.\r
+  Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with Value, and returns Buffer.\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
-\r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-  @param  Value Value of the set operation.\r
+  @param  Buffer    Memory to set.\r
+  @param  Length    Number of bytes to set\r
+  @param  Value     Value of the set operation.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   );\r
 \r
 /**\r
@@ -72,7 +69,7 @@ SetMem (
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -81,15 +78,15 @@ SetMem (
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   );\r
 \r
 /**\r
@@ -99,7 +96,7 @@ SetMem16 (
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
@@ -108,15 +105,15 @@ SetMem16 (
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   );\r
 \r
 /**\r
@@ -126,7 +123,7 @@ SetMem32 (
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
@@ -135,232 +132,215 @@ SetMem32 (
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   );\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
-\r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   );\r
 \r
 /**\r
-  Compares two memory buffers of a given length.\r
+  Compares the contents of two buffers.\r
 \r
-  This function compares Length bytes of SourceBuffer to Length bytes of\r
-  DestinationBuffer. If all Length bytes of the two buffers are identical, then\r
-  0 is returned. Otherwise, the value returned is the first mismatched byte in\r
-  SourceBuffer subtracted from the first mismatched byte in DestinationBuffer.\r
+  This function compares Length bytes of SourceBuffer to Length bytes of DestinationBuffer.\r
+  If all Length bytes of the two buffers are identical, then 0 is returned.  Otherwise, the\r
+  value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
+  mismatched byte in DestinationBuffer.\r
+  If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If DestinationBuffer is NULL and Length > 0, then ASSERT().\r
-  If SourceBuffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
 \r
-  @param  DestinationBuffer First memory buffer\r
-  @param  SourceBuffer      Second memory buffer\r
-  @param  Length            Length of DestinationBuffer and SourceBuffer memory\r
-                            regions to compare\r
+  @param  DestinationBuffer Pointer to the destination buffer to compare.\r
+  @param  SourceBuffer      Pointer to the source buffer to compare.\r
+  @param  Length            Number of bytes to compare.\r
 \r
-  @retval 0         if DestinationBuffer == SourceBuffer\r
-  @retval Non-zero  if DestinationBuffer != SourceBuffer\r
+  @return 0                 All Length bytes of the two buffers are identical.\r
+  @retval Non-zero          The first mismatched byte in SourceBuffer subtracted from the first\r
+                            mismatched byte in DestinationBuffer.\r
 \r
 **/\r
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   );\r
 \r
 /**\r
-  Scans a target buffer for an 8-bit value, and returns a pointer to the\r
-  matching 8-bit value in the target buffer.\r
+  Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
+  in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address for an 8-bit value that matches\r
-  Value. If a match is found, then a pointer to the matching byte in the target\r
-  buffer is returned. If no match is found, then NULL is returned. If Length is\r
-  0, then NULL is returned.\r
+  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
+  then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
+  then NULL is returned.  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to scan.\r
+  @param  Length      Number of bytes in Buffer to scan.\r
+  @param  Value       Value to search for in the target buffer.\r
 \r
-  @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan.\r
-  @param  Value   Value to search for in the target buffer.\r
-\r
-  @return Pointer to the first occurrence or NULL if not found.\r
-  @retval NULL  if Length == 0 or Value was not found.\r
+  @return A pointer to the matching byte in the target buffer or NULL otherwise.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   );\r
 \r
 /**\r
-  Scans a target buffer for a 16-bit value, and returns a pointer to the\r
-  matching 16-bit value in the target buffer.\r
-\r
-  This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 16-bit increments for a 16-bit\r
-  value that matches Value. If a match is found, then a pointer to the matching\r
-  value in the target buffer is returned. If no match is found, then NULL is\r
-  returned. If Length is 0, then NULL is returned.\r
+  Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
+  in the target buffer.\r
 \r
-  If Buffer is NULL, then ASSERT().\r
+  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
+  then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
+  then NULL is returned.  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan.\r
-  @param  Value   Value to search for in the target buffer.\r
+  @param  Buffer      Pointer to the target buffer to scan.\r
+  @param  Length      Number of bytes in Buffer to scan.\r
+  @param  Value       Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Value was not found.\r
+  @return A pointer to the matching byte in the target buffer or NULL otherwise.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   );\r
 \r
 /**\r
-  Scans a target buffer for a 32-bit value, and returns a pointer to the\r
-  matching 32-bit value in the target buffer.\r
-\r
-  This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 32-bit increments for a 32-bit\r
-  value that matches Value. If a match is found, then a pointer to the matching\r
-  value in the target buffer is returned. If no match is found, then NULL is\r
-  returned. If Length is 0, then NULL is returned.\r
+  Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
+  in the target buffer.\r
 \r
-  If Buffer is NULL, then ASSERT().\r
+  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
+  then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
+  then NULL is returned.  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan.\r
-  @param  Value   Value to search for in the target buffer.\r
+  @param  Buffer      Pointer to the target buffer to scan.\r
+  @param  Length      Number of bytes in Buffer to scan.\r
+  @param  Value       Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence or NULL if not found.\r
-  @retval NULL  if Length == 0 or Value was not found.\r
+  @return A pointer to the matching byte in the target buffer or NULL otherwise.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   );\r
 \r
 /**\r
-  Scans a target buffer for a 64-bit value, and returns a pointer to the\r
-  matching 64-bit value in the target buffer.\r
-\r
-  This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 64-bit increments for a 64-bit\r
-  value that matches Value. If a match is found, then a pointer to the matching\r
-  value in the target buffer is returned. If no match is found, then NULL is\r
-  returned. If Length is 0, then NULL is returned.\r
+  Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
+  in the target buffer.\r
 \r
-  If Buffer is NULL, then ASSERT().\r
+  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
+  then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
+  then NULL is returned.  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan.\r
-  @param  Value   Value to search for in the target buffer.\r
+  @param  Buffer      Pointer to the target buffer to scan.\r
+  @param  Length      Number of bytes in Buffer to scan.\r
+  @param  Value       Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence or NULL if not found.\r
-  @retval NULL  if Length == 0 or Value was not found.\r
+  @return A pointer to the matching byte in the target buffer or NULL otherwise.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   );\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   );\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   );\r
 \r
 /**\r
@@ -368,28 +348,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   );\r
 \r
 #endif\r
index 205bc2af857133a8ff097f595638e31a5adc18fd..91e55cf14db0332043a1edddee1b03a57cf3d2b1 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Cache Maintenance Functions\r
+  Cache Maintenance Functions\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    CacheMaintenanceLib.h\r
+  Module Name:  CacheMaintenanceLib.h\r
 \r
 **/\r
 \r
index d79c002cc0d28c4f6aeb204912068939c6cb6fef..02eed1c13c5f657a6ec961c4d193903439dd3a57 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library that provides processor specific library services\r
+  Library that provides processor specific library services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    CpuLib.h\r
+  Module Name:  CpuLib.h\r
 \r
 **/\r
 \r
index b42a8fecfdec12b9cd1822e76a49126fdd04c1e8..299d6071187f861c0f8dd52a4428cbf874ee2166 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Entry point to a DXE Boot Services Driver\r
+  Entry point to a DXE Boot Services Driver\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    DevicePathLib.h\r
+  Module Name:  DevicePathLib.h\r
 \r
 **/\r
 \r
 #define __DEVICE_PATH_LIB_H__\r
 \r
 /**\r
-       This function returns the size, in bytes, \r
-       of the device path data structure specified by DevicePath.\r
-       If DevicePath is NULL, then 0 is returned.\r
+  This function returns the size, in bytes, \r
+  of the device path data structure specified by DevicePath.\r
+  If DevicePath is NULL, then 0 is returned.\r
 \r
-       @param  DevicePath A pointer to a device path data structure.\r
+  @param  DevicePath A pointer to a device path data structure.\r
 \r
-       @return The size of a device path in bytes.\r
+  @return The size of a device path in bytes.\r
 \r
 **/\r
 UINTN\r
@@ -35,12 +35,12 @@ GetDevicePathSize (
 ;\r
 \r
 /**\r
-       This function allocates space for a new copy of the device path\r
-       specified by DevicePath.\r
+  This function allocates space for a new copy of the device path\r
+  specified by DevicePath.\r
 \r
-       @param  DevicePath A pointer to a device path data structure.\r
+  @param  DevicePath A pointer to a device path data structure.\r
 \r
-       @return The duplicated device path.\r
+  @return The duplicated device path.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -51,18 +51,18 @@ DuplicateDevicePath (
 ;\r
 \r
 /**\r
-       This function appends the device path SecondDevicePath\r
-       to every device path instance in FirstDevicePath. \r
+  This function appends the device path SecondDevicePath\r
+  to every device path instance in FirstDevicePath. \r
 \r
-       @param  FirstDevicePath A pointer to a device path data structure.\r
-       \r
-       @param  SecondDevicePath A pointer to a device path data structure.\r
+  @param  FirstDevicePath A pointer to a device path data structure.\r
+  \r
+  @param  SecondDevicePath A pointer to a device path data structure.\r
 \r
-       @return\r
-       A pointer to the new device path is returned.\r
-       NULL is returned if space for the new device path could not be allocated from pool.\r
-       It is up to the caller to free the memory used by FirstDevicePath and SecondDevicePath\r
-       if they are no longer needed.\r
+  @return\r
+  A pointer to the new device path is returned.\r
+  NULL is returned if space for the new device path could not be allocated from pool.\r
+  It is up to the caller to free the memory used by FirstDevicePath and SecondDevicePath\r
+  if they are no longer needed.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -95,16 +95,16 @@ AppendDevicePathNode (
 ;\r
 \r
 /**\r
-       This function appends the device path instance Instance to the device path Source.\r
-       If Source is NULL, then a new device path with one instance is created.  \r
+  This function appends the device path instance Instance to the device path Source.\r
+  If Source is NULL, then a new device path with one instance is created.  \r
 \r
-       @param  Source A pointer to a device path data structure.\r
-       @param  Instance A pointer to a device path instance.\r
+  @param  Source A pointer to a device path data structure.\r
+  @param  Instance A pointer to a device path instance.\r
 \r
-       @return\r
-       A pointer to the new device path.\r
-       If there is not enough temporary pool memory available to complete this function,\r
-       then NULL is returned.\r
+  @return\r
+  A pointer to the new device path.\r
+  If there is not enough temporary pool memory available to complete this function,\r
+  then NULL is returned.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -116,17 +116,17 @@ AppendDevicePathInstance (
 ;\r
 \r
 /**\r
-       Function retrieves the next device path instance from a device path data structure.\r
+  Function retrieves the next device path instance from a device path data structure.\r
 \r
-       @param  DevicePath A pointer to a device path data structure.\r
-       \r
-       @param  Size A pointer to the size of a device path instance in bytes.\r
+  @param  DevicePath A pointer to a device path data structure.\r
+  \r
+  @param  Size A pointer to the size of a device path instance in bytes.\r
 \r
-       @return\r
-       This function returns a pointer to the current device path instance.\r
-       In addition, it returns the size in bytes of the current device path instance in Size,\r
-       and a pointer to the next device path instance in DevicePath.\r
-       If there are no more device path instances in DevicePath, then DevicePath will be set to NULL.\r
+  @return\r
+  This function returns a pointer to the current device path instance.\r
+  In addition, it returns the size in bytes of the current device path instance in Size,\r
+  and a pointer to the next device path instance in DevicePath.\r
+  If there are no more device path instances in DevicePath, then DevicePath will be set to NULL.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -138,12 +138,12 @@ GetNextDevicePathInstance (
 ;\r
 \r
 /**\r
-       Return TRUE is this is a multi instance device path.\r
+  Return TRUE is this is a multi instance device path.\r
 \r
-       @param  DevicePath A pointer to a device path data structure.\r
+  @param  DevicePath A pointer to a device path data structure.\r
 \r
-       @retval TRUE If DevicePath is multi-instance.\r
-       @retval FALSE If DevicePath is not multi-instance or DevicePath is NULL.\r
+  @retval  TRUE If DevicePath is multi-instance.\r
+  @retval  FALSE If DevicePath is not multi-instance or DevicePath is NULL.\r
 \r
 **/\r
 BOOLEAN\r
@@ -154,13 +154,13 @@ IsDevicePathMultiInstance (
 ;\r
 \r
 /**\r
-       This function retrieves the device path protocol from a handle.\r
+  This function retrieves the device path protocol from a handle.\r
 \r
-       @param  Handle The handle from which to retrieve the device path protocol.\r
+  @param  Handle The handle from which to retrieve the device path protocol.\r
 \r
-       @return\r
-       This function returns the device path protocol from the handle specified by Handle.\r
-       If Handle is NULL or Handle does not contain a device path protocol, then NULL is returned.\r
+  @return\r
+  This function returns the device path protocol from the handle specified by Handle.\r
+  If Handle is NULL or Handle does not contain a device path protocol, then NULL is returned.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -171,18 +171,18 @@ DevicePathFromHandle (
 ;\r
 \r
 /**\r
-       This function allocates a device path for a file and appends it to an existing device path.\r
-\r
-       @param  Device A pointer to a device handle.  This parameter is optional and may be NULL.\r
-       @param  FileName A pointer to a Null-terminated Unicode string.\r
-\r
-       @return\r
-       If Device is a valid device handle that contains a device path protocol,\r
-       then a device path for the file specified by FileName is allocated\r
-       and appended to the device path associated with the handle Device. The allocated device path is returned.\r
-       If Device is NULL or Device is a handle that does not support the device path protocol,\r
-       then a device path containing a single device path node for the file specified by FileName\r
-       is allocated and returned.\r
+  This function allocates a device path for a file and appends it to an existing device path.\r
+\r
+  @param  Device A pointer to a device handle.  This parameter is optional and may be NULL.\r
+  @param  FileName A pointer to a Null-terminated Unicode string.\r
+\r
+  @return\r
+  If Device is a valid device handle that contains a device path protocol,\r
+  then a device path for the file specified by FileName is allocated\r
+  and appended to the device path associated with the handle Device. The allocated device path is returned.\r
+  If Device is NULL or Device is a handle that does not support the device path protocol,\r
+  then a device path containing a single device path node for the file specified by FileName\r
+  is allocated and returned.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
index 7f6f0eb50d02db369b2fc479bc9b10737f24af14..247979c971a8205673a3f7e5bb9eb7f25217f72e 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library to abstract runtime services\r
+  Library to abstract runtime services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    DxeRuntimeDriverLib.h\r
+  Module Name:  DxeRuntimeDriverLib.h\r
 \r
 **/\r
 \r
index f473a1721c94c62df2d296845d9681e36d4cf5e1..b3aa42b127428cb712e293d5564540e91fddbfd8 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library that provides a global pointer to the DXE Services Table\r
+  Library that provides a global pointer to the DXE Services Table\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    DxeServicesTableLib.h\r
+  Module Name:  DxeServicesTableLib.h\r
 \r
 **/\r
 \r
index 05824a6e338786e93ef4d30f8c55cbae17ea53df..51fde1460d77dcc6a49aab027f1e6443a853cfe5 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Public include file for the HII Library\r
+  Public include file for the HII Library\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    HiiLib.h\r
+  Module Name:  HiiLib.h\r
 \r
 **/\r
 \r
 #define __HII_LIB_H__\r
 \r
 /**\r
-       This function allocates pool for an EFI_HII_PACKAGES structure\r
-       with enough space for the variable argument list of package pointers.\r
-       The allocated structure is initialized using NumberOfPackages, Guid, \r
-       and the variable length argument list of package pointers.\r
+  This function allocates pool for an EFI_HII_PACKAGES structure\r
+  with enough space for the variable argument list of package pointers.\r
+  The allocated structure is initialized using NumberOfPackages, Guid, \r
+  and the variable length argument list of package pointers.\r
 \r
-       @param  NumberOfPackages The number of HII packages to prepare.\r
-       @param  Guid Package GUID.\r
+  @param  NumberOfPackages The number of HII packages to prepare.\r
+  @param  Guid Package GUID.\r
 \r
-       @return\r
-       The allocated and initialized packages.\r
+  @return\r
+  The allocated and initialized packages.\r
 \r
 **/\r
 EFI_HII_PACKAGES *\r
index 0d9dc83ad99b6f1570d3fd6509982207a698864b..4b2745dcefa7fb2c99f774c4f42740af73187620 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Public include file for the HOB Library\r
+  Public include file for the HOB Library\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    HobLib.h\r
+  Module Name:  HobLib.h\r
 \r
 **/\r
 \r
index d82b23c11a675d1750cbeef65ffa9fac8f59cae1..4e9b7f5652efe434bc1ad72e1cf5fe9564378b4a 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       I/O and MMIO Library Services\r
+  I/O and MMIO Library Services\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    IoLib.h\r
+  Module Name:  IoLib.h\r
 \r
 **/\r
 \r
index 4e76684f7730338e55d37edb8533f80aa6fcf93a..bb2c7243799179c472422007c362f9bf5cac9101 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory Allocation Library Services\r
+  Memory Allocation Library Services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    MemoryAllocationLib.h\r
+  Module Name:  MemoryAllocationLib.h\r
 \r
 **/\r
 \r
 #define __MEMORY_ALLOCATION_LIB_H__\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
+  Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -36,14 +36,14 @@ AllocatePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
+  Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -54,14 +54,14 @@ AllocateRuntimePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
+  Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -72,13 +72,13 @@ AllocateReservedPages (
 ;\r
 \r
 /**\r
-       Frees one or more 4KB pages that were previously allocated with \r
-       one of the page allocation functions in the Memory Allocation Library.\r
+  Frees one or more 4KB pages that were previously allocated with \r
+  one of the page allocation functions in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer of pages to free.\r
-       @param  Pages The number of 4 KB pages to free.\r
+  @param  Buffer Pointer to the buffer of pages to free.\r
+  @param  Pages The number of 4 KB pages to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -90,15 +90,15 @@ FreePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment.   \r
+  Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment.   \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -110,15 +110,15 @@ AllocateAlignedPages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment.   \r
+  Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment.   \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -130,15 +130,15 @@ AllocateAlignedRuntimePages (
 ;\r
 \r
 /**\r
-       Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -150,13 +150,13 @@ AllocateAlignedReservedPages (
 ;\r
 \r
 /**\r
-       Frees one or more 4KB pages that were previously allocated with \r
-       one of the aligned page allocation functions in the Memory Allocation Library.\r
+  Frees one or more 4KB pages that were previously allocated with \r
+  one of the aligned page allocation functions in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer of pages to free.\r
-       @param  Pages The number of 4 KB pages to free.\r
+  @param  Buffer Pointer to the buffer of pages to free.\r
+  @param  Pages The number of 4 KB pages to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -168,13 +168,13 @@ FreeAlignedPages (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiBootServicesData.\r
+  Allocates a buffer of type EfiBootServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -185,13 +185,13 @@ AllocatePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiRuntimeServicesData.\r
+  Allocates a buffer of type EfiRuntimeServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -202,13 +202,13 @@ AllocateRuntimePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiReservedMemoryType.\r
+  Allocates a buffer of type EfiReservedMemoryType.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -219,13 +219,13 @@ AllocateReservedPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiBootServicesData.\r
+  Allocates and zeros a buffer of type EfiBootServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -236,13 +236,13 @@ AllocateZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
+  Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -253,13 +253,13 @@ AllocateRuntimeZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiReservedMemoryType.\r
+  Allocates and zeros a buffer of type EfiReservedMemoryType.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -270,14 +270,14 @@ AllocateReservedZeroPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
+  Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -289,14 +289,14 @@ AllocateCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
+  Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -308,14 +308,14 @@ AllocateRuntimeCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
+  Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -327,12 +327,12 @@ AllocateReservedCopyPool (
 ;\r
 \r
 /**\r
-       Frees a buffer that was previously allocated with one of the pool allocation functions \r
-       in the Memory Allocation Library.\r
+  Frees a buffer that was previously allocated with one of the pool allocation functions \r
+  in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer to free.\r
+  @param  Buffer Pointer to the buffer to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -343,15 +343,15 @@ FreePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
+  Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-               If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+    If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -363,15 +363,15 @@ AllocateAlignedPool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -383,15 +383,15 @@ AllocateAlignedRuntimePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -403,15 +403,15 @@ AllocateAlignedReservedPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -423,15 +423,15 @@ AllocateAlignedZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -443,15 +443,15 @@ AllocateAlignedRuntimeZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -463,16 +463,16 @@ AllocateAlignedReservedZeroPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -485,16 +485,16 @@ AllocateAlignedCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -507,16 +507,16 @@ AllocateAlignedRuntimeCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -529,12 +529,12 @@ AllocateAlignedReservedCopyPool (
 ;\r
 \r
 /**\r
-       Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
-       in the Memory Allocation Library.\r
+  Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
+  in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer to free.\r
+  @param  Buffer Pointer to the buffer to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
index 3898abe7cf88e2f023f4ffc0e55f987f56999fc4..e2ac1b2a0187637104cfeefb997eb4441ffbeb35 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       PCI CF8 Library Services for PCI Segment #0\r
+  PCI CF8 Library Services for PCI Segment #0\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    PciCf8Lib.h\r
+  Module Name:  PciCf8Lib.h\r
 \r
 **/\r
 \r
index 3c3fd18987c063473ab52ba4b4843bc4b7975050..c21a2795c15149a865061b8c73678eeee84cb57a 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Pci Express Library Services for PCI Segment #0\r
+  Pci Express Library Services for PCI Segment #0\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    PciExpressLib.h\r
+  Module Name:  PciExpressLib.h\r
 \r
 **/\r
 \r
index a80ceae97da12fb9df17999f6111714067f62252..4d21cb77089c6cf8e0a753fb45725a718c9a61a7 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       PCI Library Services for PCI Segment #0\r
+  PCI Library Services for PCI Segment #0\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    PciLib.h\r
+  Module Name:  PciLib.h\r
 \r
 **/\r
 \r
index f20562eef9deef430a4fe2b50dd441f7a57ed646..85e3e25c1e8499d9112f3baee3d902ed1e7bf0d1 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory Only PE COFF loader\r
+  Memory Only PE COFF loader\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PeCoffGetEntryPointLib.h\r
+  Module Name:  PeCoffGetEntryPointLib.h\r
 \r
 **/\r
 \r
 #define __PE_COFF_GET_ENTRY_POINT_LIB_H__\r
 \r
 /**\r
-       Loads a PE/COFF image into memory\r
+  Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded\r
+  into system memory with the PE/COFF Loader Library functions.\r
 \r
-       @param  Pe32Data Pointer to a PE/COFF Image\r
-       \r
-       @param  EntryPoint Pointer to the entry point of the PE/COFF image\r
+  Retrieves the entry point to the PE/COFF image specified by Pe32Data and returns this entry\r
+  point in EntryPoint.  If the entry point could not be retrieved from the PE/COFF image, then\r
+  return RETURN_INVALID_PARAMETER.  Otherwise return RETURN_SUCCESS.\r
+  If Pe32Data is NULL, then ASSERT().\r
+  If EntryPoint is NULL, then ASSERT().\r
 \r
-       @retval EFI_SUCCESS            if the EntryPoint was returned\r
-       @retval EFI_INVALID_PARAMETER  if the EntryPoint could not be found from Pe32Data\r
+  @param  Pe32Data                  Pointer to the PE/COFF image that is loaded in system memory.\r
+  @param  EntryPoint                Pointer to entry point to the PE/COFF image to return.\r
+\r
+  @retval RETURN_SUCCESS            EntryPoint was returned.\r
+  @retval RETURN_INVALID_PARAMETER  The entry point could not be found in the PE/COFF image.\r
 \r
 **/\r
 RETURN_STATUS\r
 EFIAPI\r
 PeCoffLoaderGetEntryPoint (\r
-  IN     VOID  *Pe32Data,\r
-  IN OUT VOID  **EntryPoint\r
-  )\r
-;\r
+  IN  VOID  *Pe32Data,\r
+  OUT VOID  **EntryPoint\r
+  );\r
 \r
 #endif\r
index 0a68ae640f146811d35bc6346730ee4d23214beb..df588b704da54399ecf6bd06f4c8ec2cd724b3cf 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory Only PE COFF loader\r
+  Memory Only PE COFF loader\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PeCoffLib.h\r
+  Module Name:  PeCoffLib.h\r
 \r
 **/\r
 \r
index 64bd253a72ceaa389a64d48440592d959e904b67..10eebb5bf0b877f34dd8bb00c73ab5262b84160d 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       PEI Core Library implementation\r
+  PEI Core Library implementation\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PeiServicesLib.h\r
+  Module Name:  PeiServicesLib.h\r
 \r
 **/\r
 \r
 #define __PEI_SERVICES_LIB_H__\r
 \r
 /**\r
-       This service enables a given PEIM to register an interface into the PEI Foundation. \r
+  This service enables a given PEIM to register an interface into the PEI Foundation. \r
 \r
-       @param  PpiList A pointer to the list of interfaces that the caller shall install.\r
+  @param  PpiList A pointer to the list of interfaces that the caller shall install.\r
 \r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The PpiList pointer is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -37,37 +37,37 @@ PeiServicesInstallPpi (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
+  This service enables PEIMs to replace an entry in the PPI database with an alternate entry.\r
 \r
-       @param  OldPpi Pointer to the old PEI PPI Descriptors.\r
-       @param  NewPpi Pointer to the new PEI PPI Descriptors.\r
+  @param  OldPpi Pointer to the old PEI PPI Descriptors.\r
+  @param  NewPpi Pointer to the new PEI PPI Descriptors.\r
 \r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
-       @retval EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The OldPpi or NewPpi is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI PPI descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+  @retval  EFI_NOT_FOUND The PPI for which the reinstallation was requested has not been installed.\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-PeiServicesReinstallPpi (\r
+PeiServicesReInstallPpi (\r
   IN EFI_PEI_PPI_DESCRIPTOR           *OldPpi,\r
   IN EFI_PEI_PPI_DESCRIPTOR           *NewPpi\r
   )\r
 ;\r
 \r
 /**\r
-       This service enables PEIMs to discover a given instance of an interface.\r
+  This service enables PEIMs to discover a given instance of an interface.\r
 \r
-       @param  Guid A pointer to the GUID whose corresponding interface needs to be found.\r
-       @param  Instance The N-th instance of the interface that is required.\r
-       @param  PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
-       @param  Ppi A pointer to the instance of the interface.\r
+  @param  Guid A pointer to the GUID whose corresponding interface needs to be found.\r
+  @param  Instance The N-th instance of the interface that is required.\r
+  @param  PpiDescriptor A pointer to instance of the EFI_PEI_PPI_DESCRIPTOR.\r
+  @param  Ppi A pointer to the instance of the interface.\r
 \r
-       @retval EFI_SUCCESS The interface was successfully returned.\r
-       @retval EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
+  @retval  EFI_SUCCESS The interface was successfully returned.\r
+  @retval  EFI_NOT_FOUND The PPI descriptor is not found in the database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -81,16 +81,16 @@ PeiServicesLocatePpi (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to register a given service to be invoked\r
-       when another service is installed or reinstalled.\r
+  This service enables PEIMs to register a given service to be invoked\r
+  when another service is installed or reinstalled.\r
 \r
-       @param  NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
+  @param  NotifyList A pointer to the list of notification interfaces that the caller shall install.\r
 \r
-       @retval EFI_SUCCESS The interface was successfully installed.\r
-       @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
-       @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
-       the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
+  @retval  EFI_SUCCESS The interface was successfully installed.\r
+  @retval  EFI_INVALID_PARAMETER The NotifyList pointer is NULL.\r
+  @retval  EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have\r
+  the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -101,12 +101,12 @@ PeiServicesNotifyPpi (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to ascertain the present value of the boot mode.  \r
+  This service enables PEIMs to ascertain the present value of the boot mode.  \r
 \r
-       @param  BootMode A pointer to contain the value of the boot mode.\r
+  @param  BootMode A pointer to contain the value of the boot mode.\r
 \r
-       @retval EFI_SUCCESS The boot mode was returned successfully.\r
-       @retval EFI_INVALID_PARAMETER BootMode is NULL.\r
+  @retval  EFI_SUCCESS The boot mode was returned successfully.\r
+  @retval  EFI_INVALID_PARAMETER BootMode is NULL.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -117,11 +117,11 @@ PeiServicesGetBootMode (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to update the boot mode variable.    \r
+  This service enables PEIMs to update the boot mode variable.    \r
 \r
-       @param  BootMode The value of the boot mode to set.\r
+  @param  BootMode The value of the boot mode to set.\r
 \r
-       @retval EFI_SUCCESS The value was successfully updated\r
+  @retval  EFI_SUCCESS The value was successfully updated\r
 \r
 **/\r
 EFI_STATUS\r
@@ -132,12 +132,12 @@ PeiServicesSetBootMode (
 ;\r
 \r
 /**\r
-       This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
+  This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
 \r
-       @param  HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
+  @param  HobList A pointer to the list of HOBs that the PEI Foundation will initialize.\r
 \r
-       @retval EFI_SUCCESS The list was successfully returned.\r
-       @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
+  @retval  EFI_SUCCESS The list was successfully returned.\r
+  @retval  EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -148,14 +148,14 @@ PeiServicesGetHobList (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to create various types of HOBs.\r
+  This service enables PEIMs to create various types of HOBs.\r
 \r
-       @param  Type The type of HOB to be installed.\r
-       @param  Length The length of the HOB to be added.\r
-       @param  Hob The address of a pointer that will contain the HOB header.\r
+  @param  Type The type of HOB to be installed.\r
+  @param  Length The length of the HOB to be added.\r
+  @param  Hob The address of a pointer that will contain the HOB header.\r
 \r
-       @retval EFI_SUCCESS The HOB was successfully created.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+  @retval  EFI_SUCCESS The HOB was successfully created.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -168,15 +168,15 @@ PeiServicesCreateHob (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to discover additional firmware volumes.\r
+  This service enables PEIMs to discover additional firmware volumes.\r
 \r
-       @param  Instance This instance of the firmware volume to find.\r
-       The value 0 is the Boot Firmware Volume (BFV).\r
-       @param  FwVolHeader Pointer to the firmware volume header of the volume to return.\r
+  @param  Instance This instance of the firmware volume to find.\r
+  The value 0 is the Boot Firmware Volume (BFV).\r
+  @param  FwVolHeader Pointer to the firmware volume header of the volume to return.\r
 \r
-       @retval EFI_SUCCESS The volume was found.\r
-       @retval EFI_NOT_FOUND The volume was not found.\r
-       @retval EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
+  @retval  EFI_SUCCESS The volume was found.\r
+  @retval  EFI_NOT_FOUND The volume was not found.\r
+  @retval  EFI_INVALID_PARAMETER FwVolHeader is NULL.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -188,16 +188,16 @@ PeiServicesFfsFindNextVolume (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to discover additional firmware files.\r
+  This service enables PEIMs to discover additional firmware files.\r
 \r
-       @param  SearchType A filter to find files only of this type.\r
-       @param  FwVolHeader Pointer to the firmware volume header of the volume to search.\r
-       This parameter must point to a valid FFS volume.\r
-       @param  FileHeader Pointer to the current file from which to begin searching.\r
+  @param  SearchType A filter to find files only of this type.\r
+  @param  FwVolHeader Pointer to the firmware volume header of the volume to search.\r
+  This parameter must point to a valid FFS volume.\r
+  @param  FileHeader Pointer to the current file from which to begin searching.\r
 \r
-       @retval EFI_SUCCESS The file was found.\r
-       @retval EFI_NOT_FOUND The file was not found.\r
-       @retval EFI_NOT_FOUND The header checksum was not zero.\r
+  @retval  EFI_SUCCESS The file was found.\r
+  @retval  EFI_NOT_FOUND The file was not found.\r
+  @retval  EFI_NOT_FOUND The header checksum was not zero.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -210,14 +210,14 @@ PeiServicesFfsFindNextFile (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
+  This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
 \r
-       @param  SearchType The value of the section type to find.\r
-       @param  FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
-       @param  SectionData A pointer to the discovered section, if successful.\r
+  @param  SearchType The value of the section type to find.\r
+  @param  FfsFileHeader A pointer to the file header that contains the set of sections to be searched.\r
+  @param  SectionData A pointer to the discovered section, if successful.\r
 \r
-       @retval EFI_SUCCESS The section was found.\r
-       @retval EFI_NOT_FOUND The section was not found.\r
+  @retval  EFI_SUCCESS The section was found.\r
+  @retval  EFI_NOT_FOUND The section was not found.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -230,15 +230,15 @@ PeiServicesFfsFindSectionData (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to register the permanent memory configuration\r
-       that has been initialized with the PEI Foundation.\r
+  This service enables PEIMs to register the permanent memory configuration\r
+  that has been initialized with the PEI Foundation.\r
 \r
-       @param  MemoryBegin The value of a region of installed memory.\r
-       @param  MemoryLength The corresponding length of a region of installed memory.\r
+  @param  MemoryBegin The value of a region of installed memory.\r
+  @param  MemoryLength The corresponding length of a region of installed memory.\r
 \r
-       @retval EFI_SUCCESS The region was successfully installed in a HOB.\r
-       @retval EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
-       @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
+  @retval  EFI_SUCCESS The region was successfully installed in a HOB.\r
+  @retval  EFI_INVALID_PARAMETER MemoryBegin and MemoryLength are illegal for this system.\r
+  @retval  EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -250,16 +250,16 @@ PeiServicesInstallPeiMemory (
 ;\r
 \r
 /**\r
-       This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
+  This service enables PEIMs to allocate memory after the permanent memory has been installed by a PEIM.\r
 \r
-       @param  MemoryType Type of memory to allocate.\r
-       @param  Pages Number of pages to allocate.\r
-       @param  Memory Pointer of memory allocated.\r
+  @param  MemoryType Type of memory to allocate.\r
+  @param  Pages Number of pages to allocate.\r
+  @param  Memory Pointer of memory allocated.\r
 \r
-       @retval EFI_SUCCESS The memory range was successfully allocated.\r
-       @retval EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
-       @retval EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
-       @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
+  @retval  EFI_SUCCESS The memory range was successfully allocated.\r
+  @retval  EFI_INVALID_PARAMETER Type is not equal to AllocateAnyPages.\r
+  @retval  EFI_NOT_AVAILABLE_YET Called with permanent memory not available.\r
+  @retval  EFI_OUT_OF_RESOURCES The pages could not be allocated.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -272,14 +272,14 @@ PeiServicesAllocatePages (
 ;\r
 \r
 /**\r
-       This service allocates memory from the Hand-Off Block (HOB) heap.\r
+  This service allocates memory from the Hand-Off Block (HOB) heap.\r
 \r
-       @param  Size The number of bytes to allocate from the pool.\r
-       @param  Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
-       undefined otherwise.\r
+  @param  Size The number of bytes to allocate from the pool.\r
+  @param  Buffer If the call succeeds, a pointer to a pointer to the allocated buffer;\r
+  undefined otherwise.\r
 \r
-       @retval EFI_SUCCESS The allocation was successful\r
-       @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
+  @retval  EFI_SUCCESS The allocation was successful\r
+  @retval  EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -291,9 +291,9 @@ PeiServicesAllocatePool (
 ;\r
 \r
 /**\r
-       This service resets the entire platform, including all processors and devices, and reboots the system. \r
+  This service resets the entire platform, including all processors and devices, and reboots the system. \r
 \r
-       @retval EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
+  @retval  EFI_NOT_AVAILABLE_YET The service has not been installed yet.\r
 \r
 **/\r
 EFI_STATUS\r
index 815e722b6c4f3de7c884a5c180f8a8593d870f98..2a346aa69f9d312280a9a623bba6ddc4f4cecb3b 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       PEI Services Table Pointer Library services\r
+  PEI Services Table Pointer Library services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PeiServicesTablePointerLib.h\r
+  Module Name:  PeiServicesTablePointerLib.h\r
 \r
 **/\r
 \r
index 22df74c65a575a44431c480b9db3db727f05d41c..bdab062638a3cd74009f61a0fc8fb9537c243fdf 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library that provides print services\r
+  Library that provides print services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PrintLib.h\r
+  Module Name:  PrintLib.h\r
 \r
 **/\r
 \r
@@ -362,7 +362,7 @@ AsciiSPrintUnicodeFormat (
                   Unicode string.\r
   @param  Flags   The bitmask of flags that specify left justification, zero pad, and commas.\r
   @param  Value   The 64-bit signed value to convert to a string.\r
-  @param  Width          The maximum number of Unicode characters to place in Buffer.\r
+  @param  Width    The maximum number of Unicode characters to place in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
 \r
@@ -406,7 +406,7 @@ UnicodeValueToString (
                   ASCII string.\r
   @param  Flags   The bitmask of flags that specify left justification, zero pad, and commas.\r
   @param  Value   The 64-bit signed value to convert to a string.\r
-  @param  Width          The maximum number of ASCII characters to place in Buffer.\r
+  @param  Width    The maximum number of ASCII characters to place in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
 \r
index 2aa0040bf766b3898711891dc70d83e448fa1dfc..ccd3eaed2583a9628eeb2b5ca6cfdc194eeffdd4 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Declare presence of resources in the platform\r
+  Declare presence of resources in the platform\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    ResourcePublicationLib.h\r
+  Module Name:  ResourcePublicationLib.h\r
 \r
 **/\r
 \r
index 6d214aaa8e6bf51f51af49e43519475d22b6b4cc..0520523bf1cde7ebb145183af53419d07aef9216 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       SMBUS Functions\r
+  SMBUS Functions\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    SmbusLib.h\r
+  Module Name:  SmbusLib.h\r
 \r
 **/\r
 \r
index 3d0f03eda0e0878ad7bd4df6483f60984f2af8db..4b12152e6bffe6f231c0997c2574807d3378cad2 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Timer Library Functions\r
+  Timer Library Functions\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    TimerLib.h\r
+  Module Name:  TimerLib.h\r
 \r
 **/\r
 \r
index 52b5e23692566a884b41970e6feac9eb4fb6e040..73a2e39a5ddcc858924bd11dd963a0bf9f4f5783 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library that provides a global pointer to the UEFI Boot Services Tables\r
+  Library that provides a global pointer to the UEFI Boot Services Tables\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    UefiBootServicesTableLib.h\r
+  Module Name:  UefiBootServicesTableLib.h\r
 \r
 **/\r
 \r
index d2a379310f64fefbaa3c28347818cb04fc91ffe8..d1cf2d7d08a0d4c67997c9b0978e85ca25406f31 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Return UEFI Decompress Protocol \r
+  Return UEFI Decompress Protocol \r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    UefiDecompressLib.h\r
+  Module Name:  UefiDecompressLib.h\r
 \r
 **/\r
 \r
index b6532f15c3839139bf57bd85ccdb86149f49e8c8..5d10e7532fe7416c22555ec662f1084c26028a71 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       UEFI Driver Model Library Services\r
+  UEFI Driver Model Library Services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    UefiDriverModelLib.h\r
+  Module Name:  UefiDriverModelLib.h\r
 \r
 **/\r
 \r
index c59851e43597cd44c6c96cbbc7ad1b6d7dd6e788..d1dfe43710c5095f725345abdf961e554ac38b93 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Library that provides a global pointer to the UEFI Runtime Services Tables\r
+  Library that provides a global pointer to the UEFI Runtime Services Tables\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    UefiRuntimeServicesTableLib.h\r
+  Module Name:  UefiRuntimeServicesTableLib.h\r
 \r
 **/\r
 \r
index 4132d30c3111a9c596ead95c2dd1fc38438881da..b4e50e9d7b83ea8dd30c4eaf5527a2f0a451098c 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Non-existing BaseLib functions on Ia32\r
+  Non-existing BaseLib functions on Ia32\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    Non-existing.c\r
+  Module Name:  Non-existing.c\r
 \r
 **/\r
 \r
index be7e0a64b762557a98acc8651ea5281bd35f546d..846a8132691dfd0bd4c4164b9f3ff0ba2f71bfb1 100644 (file)
@@ -278,7 +278,7 @@ IsListEmpty (
   If Node is not a node in List and Node is not equal to List, then ASSERT().\r
 \r
   @param  List  A pointer to the head node of a doubly linked list.\r
-  @param  Node A pointer to a node in the doubly linked list.\r
+  @param  Node  A pointer to a node in the doubly linked list.\r
 \r
   @retval TRUE  Node is one of the nodes in the doubly linked list.\r
   @retval FALSE Node is not one of the nodes in the doubly linked list.\r
@@ -314,7 +314,7 @@ IsNull (
   If Node is not a node in List, then ASSERT().\r
 \r
   @param  List  A pointer to the head node of a doubly linked list.\r
-  @param  Node A pointer to a node in the doubly linked list.\r
+  @param  Node  A pointer to a node in the doubly linked list.\r
 \r
   @retval TRUE  Node is the last node in the linked list.\r
   @retval FALSE Node is not the last node in the linked list.\r
index b2c737857d1512e5b6ec692bff64a292534bd385..fc4fd4389854f2c0befda831e03d94f844f62e0e 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Non-existing BaseLib functions on x64\r
+  Non-existing BaseLib functions on x64\r
 \r
-       Copyright (c) 2006, Intel Corporation\r
-       All rights reserved. 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
-       http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-       THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-       Module Name:    Non-existing.c\r
+  Module Name:  Non-existing.c\r
 \r
 **/\r
 \r
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index 53c4e4416b7ad289c6c71d8a02f144f81093792c..3fecfc9ff0d242b144556cfeaa1df45a64d1e5d4 100644 (file)
@@ -161,7 +161,6 @@ InternalMemScanMem8 (
 {\r
   CONST UINT8                       *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT8*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -192,7 +191,6 @@ InternalMemScanMem16 (
 {\r
   CONST UINT16                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT16*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -223,7 +221,6 @@ InternalMemScanMem32 (
 {\r
   CONST UINT32                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT32*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -254,7 +251,6 @@ InternalMemScanMem64 (
 {\r
   CONST UINT64                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT64*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index bd7fee014db558cfe1b639ce75a159eebc07c6f2..07acc6fbfee9c0092a0912e8387f283e430f0ab5 100644 (file)
@@ -13,7 +13,7 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  Module Name:  EfiSetMem.c\r
+  Module Name:  SetMem.c\r
 \r
 **/\r
 \r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index 32a70c00c46d1fec385a294b01bbf4a96d406309..6b8adc1fd63006ff021f862fa927a575a8c40c74 100644 (file)
@@ -560,11 +560,11 @@ PeCoffLoaderRelocateImage (
     //\r
     RelocDir = &TeHdr->DataDirectory[0];\r
     RelocBase = (EFI_IMAGE_BASE_RELOCATION *)(UINTN)(\r
-                                               ImageContext->ImageAddress + \r
-                                               RelocDir->VirtualAddress +\r
-                                               sizeof(EFI_TE_IMAGE_HEADER) - \r
-                                               TeHdr->StrippedSize\r
-                                               );\r
+                                    ImageContext->ImageAddress + \r
+                                    RelocDir->VirtualAddress +\r
+                                    sizeof(EFI_TE_IMAGE_HEADER) - \r
+                                    TeHdr->StrippedSize\r
+                                    );\r
     RelocBaseEnd = (EFI_IMAGE_BASE_RELOCATION *) ((UINTN) RelocBase + (UINTN) RelocDir->Size - 1);\r
   }\r
   \r
@@ -580,10 +580,10 @@ PeCoffLoaderRelocateImage (
       FixupBase = PeCoffLoaderImageAddress (ImageContext, RelocBase->VirtualAddress);\r
     } else {\r
       FixupBase = (CHAR8 *)(UINTN)(ImageContext->ImageAddress +\r
-                             RelocBase->VirtualAddress +\r
-                             sizeof(EFI_TE_IMAGE_HEADER) - \r
-                             TeHdr->StrippedSize\r
-                             );\r
+                    RelocBase->VirtualAddress +\r
+                    sizeof(EFI_TE_IMAGE_HEADER) - \r
+                    TeHdr->StrippedSize\r
+                    );\r
     }\r
 \r
     if ((CHAR8 *) RelocEnd < (CHAR8 *) ((UINTN) ImageContext->ImageAddress) ||\r
@@ -808,9 +808,9 @@ PeCoffLoaderLoadImage (
     TeHdr             = (EFI_TE_IMAGE_HEADER *) (UINTN) (ImageContext->ImageAddress);\r
 \r
     FirstSection = (EFI_IMAGE_SECTION_HEADER *) (\r
-                     (UINTN)ImageContext->ImageAddress +\r
-                     sizeof(EFI_TE_IMAGE_HEADER)\r
-                     );\r
+          (UINTN)ImageContext->ImageAddress +\r
+          sizeof(EFI_TE_IMAGE_HEADER)\r
+          );\r
     NumberOfSections  = (UINTN) (TeHdr->NumberOfSections);\r
 \r
   }\r
@@ -905,9 +905,9 @@ PeCoffLoaderLoadImage (
                                                                 );\r
   } else {\r
     ImageContext->EntryPoint =  (PHYSICAL_ADDRESS) (\r
-                                  (UINTN)ImageContext->ImageAddress +\r
-                                  (UINTN)TeHdr->AddressOfEntryPoint +\r
-                                  (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -\r
+                       (UINTN)ImageContext->ImageAddress +\r
+                       (UINTN)TeHdr->AddressOfEntryPoint +\r
+                       (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -\r
           (UINTN) TeHdr->StrippedSize\r
       );\r
   }\r
@@ -948,11 +948,11 @@ PeCoffLoaderLoadImage (
                     );\r
     } else {\r
       DebugEntry = (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY *)(UINTN)(\r
-                                                        ImageContext->ImageAddress +\r
-                                                        ImageContext->DebugDirectoryEntryRva +\r
-                                                        sizeof(EFI_TE_IMAGE_HEADER) -\r
-                                                        TeHdr->StrippedSize\r
-                                                        );\r
+                                               ImageContext->ImageAddress +\r
+                                               ImageContext->DebugDirectoryEntryRva +\r
+                                               sizeof(EFI_TE_IMAGE_HEADER) -\r
+                                               TeHdr->StrippedSize\r
+                                               );\r
     }\r
 \r
     if (DebugEntry != NULL) {\r
@@ -971,9 +971,9 @@ PeCoffLoaderLoadImage (
           ImageContext->CodeView = PeCoffLoaderImageAddress (ImageContext, TempDebugEntryRva);\r
         } else {\r
           ImageContext->CodeView = (VOID *)(\r
-                                     (UINTN)ImageContext->ImageAddress +\r
-                                     (UINTN)TempDebugEntryRva +\r
-                                     (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -\r
+                      (UINTN)ImageContext->ImageAddress +\r
+                      (UINTN)TempDebugEntryRva +\r
+                      (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -\r
                 (UINTN) TeHdr->StrippedSize\r
             );\r
         }\r
index ec88d848ae3c0dbd827375c295b444be1010a593..406acb5ca07522c43a587ebc12313a3e03a30707 100644 (file)
   If TimeStamp is zero, then this function reads the current time stamp\r
   and adds that time stamp value to the record as the start time.\r
 \r
-       @param  Handle                  Pointer to environment specific context used\r
+  @param  Handle                  Pointer to environment specific context used\r
                                   to identify the component being measured.\r
-       @param  Token                   Pointer to a Null-terminated ASCII string\r
+  @param  Token                   Pointer to a Null-terminated ASCII string\r
                                   that identifies the component being measured.\r
-       @param  Module                  Pointer to a Null-terminated ASCII string\r
+  @param  Module                  Pointer to a Null-terminated ASCII string\r
                                   that identifies the module being measured.\r
-       @param  TimeStamp               64-bit time stamp.\r
+  @param  TimeStamp               64-bit time stamp.\r
 \r
   @retval RETURN_SUCCESS          The start of the measurement was recorded.\r
-       @retval RETURN_OUT_OF_RESOURCES There are not enough resources to record the measurement.\r
+  @retval RETURN_OUT_OF_RESOURCES There are not enough resources to record the measurement.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -57,16 +57,16 @@ StartPerformanceMeasurement (
   the current time stamp and adds that time stamp value to the record as the end time.\r
   If this function is called multiple times for the same record, then the end time is overwritten.\r
 \r
-       @param  Handle                  Pointer to environment specific context used\r
+  @param  Handle                  Pointer to environment specific context used\r
                                   to identify the component being measured.\r
-       @param  Token                   Pointer to a Null-terminated ASCII string\r
+  @param  Token                   Pointer to a Null-terminated ASCII string\r
                                   that identifies the component being measured.\r
-       @param  Module                  Pointer to a Null-terminated ASCII string\r
+  @param  Module                  Pointer to a Null-terminated ASCII string\r
                                   that identifies the module being measured.\r
-       @param  TimeStamp               64-bit time stamp.\r
+  @param  TimeStamp               64-bit time stamp.\r
 \r
   @retval RETURN_SUCCESS          The end of  the measurement was recorded.\r
-       @retval RETURN_NOT_FOUND        The specified measurement record could not be found.\r
+  @retval RETURN_NOT_FOUND        The specified measurement record could not be found.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -146,7 +146,7 @@ GetPerformanceMeasurement (
 \r
   @retval TRUE                    The PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED bit of\r
                                   PcdPerformanceLibraryPropertyMask is set.\r
-       @retval FALSE                   The PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED bit of\r
+  @retval FALSE                   The PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED bit of\r
                                   PcdPerformanceLibraryPropertyMask is clear.\r
 \r
 **/\r
index 0a8c22ed16dc4679b96709eeb243711e9c12d1b7..bbafeeaec53d54f42b89b7bc599d1bd6dc8dba86 100644 (file)
@@ -946,7 +946,7 @@ AsciiSPrintUnicodeFormat (
                   Unicode string.\r
   @param  Flags   The bitmask of flags that specify left justification, zero pad, and commas.\r
   @param  Value   The 64-bit signed value to convert to a string.\r
-  @param  Width          The maximum number of Unicode characters to place in Buffer.\r
+  @param  Width    The maximum number of Unicode characters to place in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
 \r
@@ -993,7 +993,7 @@ UnicodeValueToString (
                   ASCII string.\r
   @param  Flags   The bitmask of flags that specify left justification, zero pad, and commas.\r
   @param  Value   The 64-bit signed value to convert to a string.\r
-  @param  Width          The maximum number of ASCII characters to place in Buffer.\r
+  @param  Width    The maximum number of ASCII characters to place in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
 \r
index 06c220692e1ea6d88b147352a6128abca1948987..9314b609119626be20906b5a00325b4a65eab4a1 100644 (file)
@@ -117,7 +117,7 @@ BasePrintLibValueToString (
   @param  Flags     The bitmask of flags that specify left justification, zero pad,\r
                     and commas.\r
   @param  Value     The 64-bit signed value to convert to a string.\r
-  @param  Width            The maximum number of characters to place in Buffer.\r
+  @param  Width      The maximum number of characters to place in Buffer.\r
   @param  Increment Character increment in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
index f395bb795622d97ee02df45275404703d0bffe2d..5e650b012326a670b420dbac6d338f7f878c370f 100644 (file)
@@ -148,7 +148,7 @@ BasePrintLibValueToString (
   @param  Flags     The bitmask of flags that specify left justification, zero pad,\r
                     and commas.\r
   @param  Value     The 64-bit signed value to convert to a string.\r
-  @param  Width            The maximum number of characters to place in Buffer.\r
+  @param  Width      The maximum number of characters to place in Buffer.\r
   @param  Increment Character increment in Buffer.\r
   \r
   @return Total number of characters required to perform the conversion.\r
index ee517715f552b68744d410e929b16a73f92deb05..fe7ae4247c9045334e3ffc984526fbb4be2170ea 100644 (file)
@@ -20,7 +20,7 @@ static PCD_PROTOCOL  *mPcd;
 /**\r
   The constructor function caches the PCD_PROTOCOL pointer.\r
 \r
-  @param[in] ImageHandle The firmware allocated handle for the EFI image.      \r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.  \r
   @param[in] SystemTable A pointer to the EFI System Table.\r
   \r
   @retval EFI_SUCCESS The constructor always return EFI_SUCCESS.\r
diff --git a/MdePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c b/MdePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
new file mode 100644 (file)
index 0000000..b06a756
--- /dev/null
@@ -0,0 +1,283 @@
+/** @file\r
+  Debug Library that fowards all messages to ReportStatusCode()\r
+\r
+  Copyright (c) 2006, Intel Corporation<BR>\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+\r
+/**\r
+\r
+  Prints a debug message to the debug output device if the specified error level is enabled.\r
+\r
+  If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r
+  the message specified by Format and the associated variable argument list to \r
+  the debug output device.\r
+\r
+  If Format is NULL, then ASSERT().\r
+\r
+  @param  ErrorLevel  The error level of the debug message.\r
+  @param  Format      Format string for the debug message to print.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+DebugPrint (\r
+  IN  UINTN        ErrorLevel,\r
+  IN  CONST CHAR8  *Format,\r
+  ...\r
+  )\r
+{\r
+  UINT64          Buffer[EFI_STATUS_CODE_DATA_MAX_SIZE / sizeof (UINT64)];\r
+  EFI_DEBUG_INFO  *DebugInfo;\r
+  UINTN           TotalSize;\r
+  UINTN           Index;\r
+  VA_LIST         Marker;\r
+  UINT64          *ArgumentPointer;\r
+\r
+  //\r
+  // If Format is NULL, then ASSERT().\r
+  //\r
+  ASSERT (Format != NULL);\r
+\r
+  //\r
+  // Check driver Debug Level value and global debug level\r
+  //\r
+  if ((ErrorLevel & PcdGet32(PcdDebugPrintErrorLevel)) == 0) {\r
+    return;\r
+  }\r
+\r
+  TotalSize = sizeof (EFI_DEBUG_INFO) + 12 * sizeof (UINT64) + AsciiStrLen (Format) + 1;\r
+  if (TotalSize > EFI_STATUS_CODE_DATA_MAX_SIZE) {\r
+    return;\r
+  }\r
+\r
+  //\r
+  // Then EFI_DEBUG_INFO\r
+  //\r
+  DebugInfo = (EFI_DEBUG_INFO *)Buffer;\r
+  DebugInfo->ErrorLevel = (UINT32)ErrorLevel;\r
+\r
+  //\r
+  // 256 byte mini Var Arg stack. That is followed by the format string.\r
+  //\r
+  VA_START (Marker, Format);\r
+  for (Index = 0, ArgumentPointer = (UINT64 *)(DebugInfo + 1); Index < 12; Index++, ArgumentPointer++) {\r
+    *ArgumentPointer = VA_ARG (Marker, UINT64);\r
+  }\r
+  VA_END (Marker);\r
+  AsciiStrCpy ((CHAR8 *)ArgumentPointer, Format);\r
+\r
+  //\r
+  //\r
+  //\r
+  REPORT_STATUS_CODE_WITH_EXTENDED_DATA (\r
+    EFI_DEBUG_CODE,\r
+    (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_DC_UNSPECIFIED),\r
+    DebugInfo,\r
+    TotalSize\r
+    );\r
+}\r
+\r
+\r
+/**\r
+\r
+  Prints an assert message containing a filename, line number, and description.  \r
+  This may be followed by a breakpoint or a dead loop.\r
+\r
+  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" \r
+  to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
+  PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
+  DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
+  CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
+  returns immediately after the message is printed to the debug output device.\r
+  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  processing another DebugAssert(), then DebugAssert() must return immediately.\r
+\r
+  If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
+\r
+  If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
+\r
+  @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
+  @param  LineNumber   The line number in the source file that generated the assert condition\r
+  @param  Description  Pointer to the description of the assert condition.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+DebugAssert (\r
+  IN CONST CHAR8  *FileName,\r
+  IN UINTN        LineNumber,\r
+  IN CONST CHAR8  *Description\r
+  )\r
+{\r
+  UINT64                 Buffer[EFI_STATUS_CODE_DATA_MAX_SIZE / sizeof(UINT64)];\r
+  EFI_DEBUG_ASSERT_DATA  *AssertData;\r
+  UINTN                  TotalSize;\r
+  CHAR8                  *Temp;\r
+\r
+  //\r
+  // Make sure it will all fit in the passed in buffer\r
+  //\r
+  TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA) + AsciiStrLen (FileName) + 1 + AsciiStrLen (Description) + 1;\r
+  if (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE) {\r
+    //\r
+    // Fill in EFI_DEBUG_ASSERT_DATA\r
+    //\r
+    AssertData = (EFI_DEBUG_ASSERT_DATA *)Buffer;\r
+    AssertData->LineNumber = (UINT32)LineNumber;\r
+\r
+    //\r
+    // Copy Ascii FileName including NULL.\r
+    //\r
+    Temp = AsciiStrCpy ((CHAR8 *)(AssertData + 1), FileName);\r
+\r
+    //\r
+    // Copy Ascii Description \r
+    //\r
+    AsciiStrCpy (Temp + AsciiStrLen(FileName) + 1, Description);\r
+\r
+    REPORT_STATUS_CODE_WITH_EXTENDED_DATA (\r
+      (EFI_ERROR_CODE | EFI_ERROR_UNRECOVERED),\r
+      (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_EC_ILLEGAL_SOFTWARE_STATE),\r
+      AssertData,\r
+      TotalSize\r
+      );\r
+  }\r
+\r
+  //\r
+  // Generate a Breakpoint, DeadLoop, or NOP based on PCD settings\r
+  //\r
+  if ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED) != 0) {\r
+    CpuBreakpoint ();\r
+  } else if ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED) != 0) {\r
+    CpuDeadLoop ();\r
+  }\r
+}\r
+\r
+\r
+/**\r
+\r
+  Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer.\r
+\r
+  This function fills Length bytes of Buffer with the value specified by \r
+  PcdDebugClearMemoryValue, and returns Buffer.\r
+\r
+  If Buffer is NULL, then ASSERT().\r
+\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
+\r
+  @param   Buffer  Pointer to the target buffer to fill with PcdDebugClearMemoryValue.\r
+  @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
+\r
+  @return  Buffer\r
+\r
+**/\r
+VOID *\r
+EFIAPI\r
+DebugClearMemory (\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
+  )\r
+{\r
+  //\r
+  // If Buffer is NULL, then ASSERT().\r
+  //\r
+  ASSERT (Buffer != NULL);\r
+\r
+  //\r
+  // SetMem() checks for the the ASSERT() condition on Length and returns Buffer\r
+  //\r
+  return SetMem (Buffer, Length, PcdGet8(PcdDebugClearMemoryValue));\r
+}\r
+\r
+\r
+/**\r
+  \r
+  Returns TRUE if ASSERT() macros are enabled.\r
+\r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of \r
+  PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE    The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set.\r
+  @retval  FALSE   The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+DebugAssertEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED) != 0);\r
+}\r
+\r
+\r
+/**\r
+  \r
+  Returns TRUE if DEBUG()macros are enabled.\r
+\r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
+  PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE    The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is set.\r
+  @retval  FALSE   The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+DebugPrintEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_PRINT_ENABLED) != 0);\r
+}\r
+\r
+\r
+/**\r
+  \r
+  Returns TRUE if DEBUG_CODE()macros are enabled.\r
+\r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
+  PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE    The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set.\r
+  @retval  FALSE   The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+DebugCodeEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_CODE_ENABLED) != 0);\r
+}\r
+\r
+\r
+/**\r
+  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled.\r
+\r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of \r
+  PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE    The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set.\r
+  @retval  FALSE   The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+DebugClearMemoryEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdDebugPropertyMask) & DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED) != 0);\r
+}\r
diff --git a/MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.mbd b/MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.mbd
new file mode 100644 (file)
index 0000000..b8ee6a4
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleBuildDescription xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MbdLibHeader>\r
+    <BaseName>PeiDxeDebugLibReportStatusCode</BaseName>\r
+    <Guid>bda39d3a-451b-4350-8266-81ab10fa0523</Guid>\r
+    <Version>0</Version>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\r
+      All rights reserved. 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
+      http://opensource.org/licenses/bsd-license.php\r
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+      WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+    </License>\r
+    <Created>2006-03-09 23:16</Created>\r
+    <Modified>2006-03-19 15:17</Modified>\r
+  </MbdLibHeader>\r
+</LibraryModuleBuildDescription>\r
diff --git a/MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.msa b/MdePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.msa
new file mode 100644 (file)
index 0000000..a9a965f
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MsaLibHeader>\r
+    <BaseName>PeiDxeDebugLibReportStatusCode</BaseName>\r
+    <ModuleType>PEIM</ModuleType>\r
+    <ComponentType>LIBRARY</ComponentType>\r
+    <Guid>bda39d3a-451b-4350-8266-81ab10fa0523</Guid>\r
+    <Version>0</Version>\r
+    <Abstract>Debug Library for PEIMs that send debug messages to ReportStatusCode</Abstract>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\r
+      All rights reserved. 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
+      http://opensource.org/licenses/bsd-license.php\r
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+      WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+    </License>\r
+    <Created>2006-03-09 23:16</Created>\r
+    <Updated>2006-03-19 15:17</Updated>\r
+    <Specification>0</Specification>\r
+  </MsaLibHeader>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_PRODUCED">DebugLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename>DebugLib.c</Filename>\r
+  </SourceFiles>\r
+  <Includes>\r
+    <PackageName>MdePkg</PackageName>\r
+  </Includes>\r
+  <PcdCoded>\r
+    <PcdEntry PcdItemType="FIXED_AT_BUILD">\r
+      <C_Name>PcdDebugPropertyMask</C_Name>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FIXED_AT_BUILD">\r
+      <C_Name>PcdDebugClearMemoryValue</C_Name>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="PATCHABLE_IN_MODULE">\r
+      <C_Name>PcdDebugPrintErrorLevel</C_Name>\r
+    </PcdEntry>\r
+  </PcdCoded>\r
+</LibraryModuleSurfaceArea>\r
diff --git a/MdePkg/Library/PeiDxeDebugLibReportStatusCode/build.xml b/MdePkg/Library/PeiDxeDebugLibReportStatusCode/build.xml
new file mode 100644 (file)
index 0000000..348a447
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?><!-- Copyright (c) 2006, Intel Corporation \r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php \r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
+<project basedir="." default="PeiDxeDebugLibReportStatusCode"><!--Apply external ANT tasks-->\r
+   <taskdef resource="GenBuild.tasks"/>\r
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
+   <property environment="env"/>\r
+   <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>\r
+   <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->\r
+   <property name="MODULE_RELATIVE_PATH" value="Library/PeiDxeDebugLibReportStatusCode"/>\r
+   <property name="MODULE_DIR" value="${PACKAGE_DIR}/${MODULE_RELATIVE_PATH}"/>\r
+   <property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml"/>\r
+   <target name="PeiDxeDebugLibReportStatusCode">\r
+      <GenBuild baseName="PeiDxeDebugLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.msa"/>\r
+   </target>\r
+   <target depends="PeiDxeDebugLibReportStatusCode_clean" name="clean"/>\r
+   <target depends="PeiDxeDebugLibReportStatusCode_cleanall" name="cleanall"/>\r
+   <target name="PeiDxeDebugLibReportStatusCode_clean">\r
+      <OutputDirSetup baseName="PeiDxeDebugLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiDxeDebugLibReportStatusCode_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiDxeDebugLibReportStatusCode_build.xml" target="clean"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>\r
+   </target>\r
+   <target name="PeiDxeDebugLibReportStatusCode_cleanall">\r
+      <OutputDirSetup baseName="PeiDxeDebugLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxeDebugLibReportStatusCode.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiDxeDebugLibReportStatusCode_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiDxeDebugLibReportStatusCode_build.xml" target="cleanall"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}"/>\r
+      <delete dir="${DEST_DIR_DEBUG}"/>\r
+      <delete>\r
+         <fileset dir="${BIN_DIR}" includes="**PeiDxeDebugLibReportStatusCode*"/>\r
+      </delete>\r
+   </target>\r
+</project>
\ No newline at end of file
diff --git a/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.mbd b/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.mbd
new file mode 100644 (file)
index 0000000..ec8007d
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleBuildDescription xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MbdLibHeader>\r
+    <BaseName>PeiDxePostCodeLibReportStatusCode</BaseName>\r
+    <Guid>55c61087-7367-4546-bc32-4937c5e6aff3</Guid>\r
+    <Version>0</Version>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\r
+      All rights reserved. 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
+      http://opensource.org/licenses/bsd-license.php\r
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+      WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+    </License>\r
+    <Created>2006-03-09 23:16</Created>\r
+    <Modified>2006-03-19 15:17</Modified>\r
+  </MbdLibHeader>\r
+</LibraryModuleBuildDescription>\r
diff --git a/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.msa b/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.msa
new file mode 100644 (file)
index 0000000..6f3e0ae
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+-->\r
+<LibraryModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0  http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">\r
+  <MsaLibHeader>\r
+    <BaseName>PeiDxePostCodeLibReportStatusCode</BaseName>\r
+    <ModuleType>PEIM</ModuleType>\r
+    <ComponentType>LIBRARY</ComponentType>\r
+    <Guid>55c61087-7367-4546-bc32-4937c5e6aff3</Guid>\r
+    <Version>0</Version>\r
+    <Abstract>Component description file for the entry point to a EFIDXE Drivers</Abstract>\r
+    <Description>FIX ME!</Description>\r
+    <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>\r
+    <License>\r
+      All rights reserved. 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
+      http://opensource.org/licenses/bsd-license.php\r
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+      WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+    </License>\r
+    <Created>2006-03-09 23:16</Created>\r
+    <Updated>2006-03-19 15:17</Updated>\r
+    <Specification>0</Specification>\r
+  </MsaLibHeader>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_PRODUCED">PostCodeLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">ReportStatusCodeLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">PcdLib</LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename>PostCode.c</Filename>\r
+  </SourceFiles>\r
+  <Includes>\r
+    <PackageName>MdePkg</PackageName>\r
+  </Includes>\r
+  <PcdCoded>\r
+    <PcdEntry PcdItemType="FIXED_AT_BUILD">\r
+      <C_Name>PcdPostCodePropertyMask</C_Name>\r
+    </PcdEntry>\r
+  </PcdCoded>\r
+</LibraryModuleSurfaceArea>\r
diff --git a/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PostCode.c b/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PostCode.c
new file mode 100644 (file)
index 0000000..c57489d
--- /dev/null
@@ -0,0 +1,150 @@
+/** @file\r
+  Report Status Code Library Post Code functions for DXE Phase.\r
+\r
+  Copyright (c) 2006, Intel Corporation<BR>\r
+  All rights reserved. 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
+  http://opensource.org/licenses/bsd-license.php                                            \r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+**/\r
+\r
+/**\r
+  Converts POST code value to status code value.\r
+\r
+  This macro converts the post code to status code value. Bits 0..4 of PostCode \r
+  are mapped to bits 16..20 of status code value, and bits 5..7 of PostCode are mapped to bits \r
+  24..26 of status code value.  \r
+\r
+  @param  PostCode  POST code value. \r
+\r
+  @return The converted status code value.\r
+\r
+**/\r
+#define POST_CODE_TO_STATUS_CODE_VALUE(PostCode)  \\r
+  ((EFI_STATUS_CODE_VALUE) (((PostCode & 0x1f) << 16) | ((PostCode & 0x3) << 19)))\r
+\r
+/**\r
+  Sends an 32-bit value to a POST card.\r
+\r
+  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
+  Some implementations of this library function may perform I/O operations \r
+  directly to a POST card device.  Other implementations may send Value to \r
+  ReportStatusCode(), and the status code reporting mechanism will eventually \r
+  display the 32-bit value on the status reporting device.\r
+  \r
+  PostCode() must actively prevent recursion.  If PostCode() is called while \r
+  processing another any other Report Status Code Library function, then \r
+  PostCode() must return Value immediately.\r
+\r
+  @param  Value  The 32-bit value to write to the POST card.\r
+\r
+  @return  Value\r
+\r
+**/\r
+UINT32\r
+EFIAPI\r
+PostCode (\r
+  IN UINT32  Value\r
+  )\r
+{\r
+  REPORT_STATUS_CODE (EFI_PROGRESS_CODE, POST_CODE_TO_STATUS_CODE_VALUE (Value));\r
+  return Value;\r
+}\r
+\r
+\r
+/**\r
+  Sends an 32-bit value to a POST and associated ASCII string.\r
+\r
+  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
+  If Description is not NULL, then the ASCII string specified by Description is \r
+  also passed to the handler that displays the POST card value.  Some \r
+  implementations of this library function may perform I/O operations directly \r
+  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
+  and the status code reporting mechanism will eventually display the 32-bit \r
+  value on the status reporting device.  \r
+\r
+  PostCodeWithDescription()must actively prevent recursion.  If \r
+  PostCodeWithDescription() is called while processing another any other Report \r
+  Status Code Library function, then PostCodeWithDescription() must return Value \r
+  immediately.\r
+\r
+  @param  Value        The 32-bit value to write to the POST card.\r
+  @param  Description  Pointer to an ASCII string that is a description of the \r
+                       POST code value.  This is an optional parameter that may \r
+                       be NULL.\r
+\r
+  @return  Value\r
+\r
+**/\r
+UINT32\r
+EFIAPI\r
+PostCodeWithDescription (\r
+  IN UINT32       Value,\r
+  IN CONST CHAR8  *Description  OPTIONAL\r
+  )\r
+{\r
+  if (Description == NULL) { \r
+    REPORT_STATUS_CODE (\r
+      EFI_PROGRESS_CODE,\r
+      POST_CODE_TO_STATUS_CODE_VALUE (Value)\r
+      );\r
+  } else {\r
+    REPORT_STATUS_CODE_WITH_EXTENDED_DATA (\r
+      EFI_PROGRESS_CODE,\r
+      POST_CODE_TO_STATUS_CODE_VALUE (Value),\r
+      Description,\r
+      AsciiStrSize (Description)\r
+      );\r
+  }\r
+\r
+  return Value;\r
+}\r
+\r
+\r
+/**\r
+  Returns TRUE if POST Codes are enabled.\r
+\r
+  This function returns TRUE if the POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+  bit of PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+                  PcdPostCodeProperyMask is set.\r
+  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+                  PcdPostCodeProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+PostCodeEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
+}\r
+\r
+\r
+/**\r
+  Returns TRUE if POST code descriptions are enabled.\r
+\r
+  This function returns TRUE if the \r
+  POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+  PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
+\r
+  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+                  bit of PcdPostCodeProperyMask is set.\r
+  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+                  bit of PcdPostCodeProperyMask is clear.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+PostCodeDescriptionEnabled (\r
+  VOID\r
+  )\r
+{\r
+  return ((PcdGet8(PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);\r
+}\r
diff --git a/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/build.xml b/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/build.xml
new file mode 100644 (file)
index 0000000..3303727
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?><!-- Copyright (c) 2006, Intel Corporation \r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php \r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
+<project basedir="." default="PeiDxePostCodeLibReportStatusCode"><!--Apply external ANT tasks-->\r
+   <taskdef resource="GenBuild.tasks"/>\r
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
+   <property environment="env"/>\r
+   <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>\r
+   <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->\r
+   <property name="MODULE_RELATIVE_PATH" value="Library/PeiDxePostCodeLibReportStatusCode"/>\r
+   <property name="MODULE_DIR" value="${PACKAGE_DIR}/${MODULE_RELATIVE_PATH}"/>\r
+   <property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml"/>\r
+   <target name="PeiDxePostCodeLibReportStatusCode">\r
+      <GenBuild baseName="PeiDxePostCodeLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.msa"/>\r
+   </target>\r
+   <target depends="PeiDxePostCodeLibReportStatusCode_clean" name="clean"/>\r
+   <target depends="PeiDxePostCodeLibReportStatusCode_cleanall" name="cleanall"/>\r
+   <target name="PeiDxePostCodeLibReportStatusCode_clean">\r
+      <OutputDirSetup baseName="PeiDxePostCodeLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiDxePostCodeLibReportStatusCode_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiDxePostCodeLibReportStatusCode_build.xml" target="clean"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>\r
+   </target>\r
+   <target name="PeiDxePostCodeLibReportStatusCode_cleanall">\r
+      <OutputDirSetup baseName="PeiDxePostCodeLibReportStatusCode" mbdFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.mbd" msaFilename="${MODULE_DIR}/PeiDxePostCodeLibReportStatusCode.msa"/>\r
+      <if>\r
+         <available file="${DEST_DIR_OUTPUT}/PeiDxePostCodeLibReportStatusCode_build.xml"/>\r
+         <then>\r
+            <ant antfile="${DEST_DIR_OUTPUT}/PeiDxePostCodeLibReportStatusCode_build.xml" target="cleanall"/>\r
+         </then>\r
+      </if>\r
+      <delete dir="${DEST_DIR_OUTPUT}"/>\r
+      <delete dir="${DEST_DIR_DEBUG}"/>\r
+      <delete>\r
+         <fileset dir="${BIN_DIR}" includes="**PeiDxePostCodeLibReportStatusCode*"/>\r
+      </delete>\r
+   </target>\r
+</project>
\ No newline at end of file
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index 53c4e4416b7ad289c6c71d8a02f144f81093792c..3fecfc9ff0d242b144556cfeaa1df45a64d1e5d4 100644 (file)
@@ -161,7 +161,6 @@ InternalMemScanMem8 (
 {\r
   CONST UINT8                       *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT8*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -192,7 +191,6 @@ InternalMemScanMem16 (
 {\r
   CONST UINT16                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT16*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -223,7 +221,6 @@ InternalMemScanMem32 (
 {\r
   CONST UINT32                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT32*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -254,7 +251,6 @@ InternalMemScanMem64 (
 {\r
   CONST UINT64                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT64*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index ef1606403eed1c070c65738d5a578f41623a67ee..2f666a6963adae9ed1a607b7c19b8a7a6ae4563a 100644 (file)
@@ -54,7 +54,7 @@ PeiServicesInstallPpi (
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-PeiServicesReinstallPpi (\r
+PeiServicesReInstallPpi (\r
   IN EFI_PEI_PPI_DESCRIPTOR           *OldPpi,\r
   IN EFI_PEI_PPI_DESCRIPTOR           *NewPpi\r
   )\r
index 6081bbe1b7b804bf55fc2c27b678ac8f4586e7a3..e3b0fe3fd6c38b2a4f74cbd307d4a74cf1eba745 100644 (file)
@@ -50,9 +50,9 @@
 INTN\r
 EFIAPI\r
 CompareMem (\r
-  IN      CONST VOID                *DestinationBuffer,\r
-  IN      CONST VOID                *SourceBuffer,\r
-  IN      UINTN                     Length\r
+  IN CONST VOID  *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
   if (Length == 0) {\r
index 5ca62f50478428426398688c405bb399231eaa7b..1fd00acabd531e5f82bedd49f8cc042bf8f58557 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Copy Length bytes from Source to Destination.\r
+  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and\r
-  returns DestinationBuffer. The implementation must be reentrant, and it must\r
-  handle the case where SourceBuffer overlaps DestinationBuffer.\r
+  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
+  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
+  where SourceBuffer overlaps DestinationBuffer.\r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then\r
-  ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
+  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
+  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
+  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
 \r
-  @param  Destination Target of copy\r
-  @param  Source Place to copy from\r
-  @param  Length Number of bytes to copy\r
-\r
-  @return Destination\r
+  @return DestinationBuffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 CopyMem (\r
-  OUT     VOID                      *Destination,\r
-  IN      CONST VOID                *Source,\r
-  IN      UINTN                     Length\r
+  OUT VOID       *DestinationBuffer,\r
+  IN CONST VOID  *SourceBuffer,\r
+  IN UINTN       Length\r
   )\r
 {\r
-  ASSERT (\r
-    Destination == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Destination + 1\r
-    );\r
-  ASSERT (\r
-    Source == NULL ||\r
-    Length <= MAX_ADDRESS - (UINTN)Source + 1\r
-    );\r
-  if (Destination == Source || Length == 0) {\r
-    return Destination;\r
+  if (Length == 0) {\r
+    return DestinationBuffer;\r
+  }\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
+  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
+\r
+  if (DestinationBuffer == SourceBuffer) {\r
+    return DestinationBuffer;\r
   }\r
-  return InternalMemCopyMem (Destination, Source, Length);\r
+  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
 }\r
index 53c4e4416b7ad289c6c71d8a02f144f81093792c..3fecfc9ff0d242b144556cfeaa1df45a64d1e5d4 100644 (file)
@@ -161,7 +161,6 @@ InternalMemScanMem8 (
 {\r
   CONST UINT8                       *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT8*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -192,7 +191,6 @@ InternalMemScanMem16 (
 {\r
   CONST UINT16                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT16*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -223,7 +221,6 @@ InternalMemScanMem32 (
 {\r
   CONST UINT32                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT32*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -254,7 +251,6 @@ InternalMemScanMem64 (
 {\r
   CONST UINT64                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT64*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
index c54983c77b5436f21f95faf458bb3d8bb09aba7c..351e370c2cc8d63e028ad4a9fcffe7373bff7b76 100644 (file)
 **/\r
 \r
 /**\r
-  This function copies a source GUID to a destination GUID.\r
-\r
-  This function copies the contents of the 128-bit GUID specified by SourceGuid\r
-  to DestinationGuid, and returns DestinationGuid.\r
+  Copies a source GUID to a destination GUID.\r
 \r
+  This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
+  DestinationGuid, and returns DestinationGuid.\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
-  @param  DestinationGuid Pointer to the destination GUID.\r
-  @param  SourceGuid Pointer to the source GUID.\r
+  @param  DestinationGuid   Pointer to the destination GUID.\r
+  @param  SourceGuid        Pointer to the source GUID.\r
 \r
-  @return DestinationGuid\r
+  @return DestinationGuid.\r
 \r
 **/\r
 GUID *\r
 EFIAPI\r
 CopyGuid (\r
-  OUT     GUID                      *DestinationGuid,\r
-  IN      CONST GUID                *SourceGuid\r
+  OUT GUID       *DestinationGuid,\r
+  IN CONST GUID  *SourceGuid\r
   )\r
 {\r
   WriteUnaligned64 (\r
@@ -57,27 +56,25 @@ CopyGuid (
 }\r
 \r
 /**\r
-  Compares two GUIDs\r
-\r
-  This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE\r
-  is returned. If there are any bit differences in the two GUIDs, then FALSE is\r
-  returned.\r
+  Compares two GUIDs.\r
 \r
+  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
+  If there are any bit differences in the two GUIDs, then FALSE is returned.\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
-  @param  Guid1 guid to compare\r
-  @param  Guid2 guid to compare\r
+  @param  Guid1       A pointer to a 128 bit GUID.\r
+  @param  Guid2       A pointer to a 128 bit GUID.\r
 \r
-  @retval TRUE  if Guid1 == Guid2\r
-  @retval FALSE if Guid1 != Guid2\r
+  @retval TRUE        Guid1 and Guid2 are identical.\r
+  @retval FALSE       Guid1 and Guid2 are not identical.\r
 \r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 CompareGuid (\r
-  IN      CONST GUID                *Guid1,\r
-  IN      CONST GUID                *Guid2\r
+  IN CONST GUID  *Guid1,\r
+  IN CONST GUID  *Guid2\r
   )\r
 {\r
   return (BOOLEAN)(\r
@@ -93,28 +90,27 @@ CompareGuid (
   in the target buffer.\r
 \r
   This function searches target the buffer specified by Buffer and Length from\r
-  the lowest address to the highest address at 128-bit increments for the\r
-  128-bit GUID value that matches Guid. If a match is found, then a pointer to\r
-  the matching GUID in the target buffer is returned. If no match is found,\r
-  then NULL is returned. If Length is 0, then NULL is returned.\r
-\r
-  If Buffer is NULL, then ASSERT().\r
+  the lowest address to the highest address at 128-bit increments for the 128-bit\r
+  GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
+  GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
+  If Length is 0, then NULL is returned.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
   @param  Guid    Value to search for in the target buffer.\r
 \r
-  @return Pointer to the first occurrence.\r
-  @retval NULL  if Length == 0 or Guid was not found.\r
+  @return A pointer to the matching Guid in the target buffer or NULL otherwise.\r
+\r
 **/\r
 VOID *\r
 EFIAPI\r
 ScanGuid (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      CONST GUID                *Guid\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN CONST GUID  *Guid\r
   )\r
 {\r
   CONST GUID                        *GuidPtr;\r
index d336d596417296689b28788b30121c72805e729d..9ffc2cf159e758b64671a3ef7d4a245f110bda49 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem16 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT16      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem16 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);\r
 }\r
index 8de55945ce148e193b42a754fbf1199053d07262..6b0beee63223330addb361917e6bd2d7d7775692 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem32 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem32 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);\r
 }\r
index 228c864b04e69f8f9299868c2cb695f5c4dc9319..589d45c1a126175d4aa389593856fc15317dc4aa 100644 (file)
 VOID *\r
 EFIAPI\r
 ScanMem64 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT64      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  UINTN     Stride;\r
+  \r
+  Stride = Length / sizeof (Value);\r
+  if (Stride == 0) {\r
     return NULL;\r
   }\r
 \r
@@ -60,5 +63,5 @@ ScanMem64 (
   ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
 \r
-  return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);\r
 }\r
index 72a8078b8134bdce4b7de76b0fa681886a26e7e4..4dc8bac073f8e26ad073611c951ff35cb6601f77 100644 (file)
@@ -46,9 +46,9 @@
 VOID *\r
 EFIAPI\r
 ScanMem8 (\r
-  IN      CONST VOID                *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  IN CONST VOID  *Buffer,\r
+  IN UINTN       Length,\r
+  IN UINT8       Value\r
   )\r
 {\r
   if (Length == 0) {\r
@@ -57,5 +57,5 @@ ScanMem8 (
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
  \r
-  return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);\r
+  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index fd3720cd51e17d41f384d476c9b326b8cfef5d41..41467a9cb0e1b58559e1a97020535b046dcd15d5 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 16-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem16 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT16                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT16  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 77f1abda04d86a8a16a1703a8a45753ad1e3f6f0..425840682d2ca589f0a0997be54e938073c1ac60 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 32-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem32 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT32                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT32  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index f95b97ff87281c58a454824ce2c1569a02aec5d4..4a1eda80e8af733764e9ea0de18a41600eb91408 100644 (file)
@@ -32,7 +32,7 @@
   Value, and returns Buffer. Value is repeated every 64-bits in for Length\r
   bytes of Buffer.\r
 \r
-  If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   @param  Length  Number of bytes in Buffer to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 SetMem64 (\r
-  OUT     VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT64                    Value\r
+  OUT VOID   *Buffer,\r
+  IN UINTN   Length,\r
+  IN UINT64  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index d0e8760ff62337f5e63fc6c3a80623a5db17cbb1..3965be759a20ab868938c534fb63531252f53deb 100644 (file)
@@ -41,9 +41,9 @@
 VOID *\r
 EFIAPI\r
 SetMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length,\r
-  IN      UINT8                     Value\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length,\r
+  IN UINT8  Value\r
   )\r
 {\r
   if (Length == 0) {\r
index 4a3d615ce50839c44ce64259ee4f2314193c74cc..56dbe5d8be900a6a8b9102cc3c7d111e940149b3 100644 (file)
 #include "MemLibInternals.h"\r
 \r
 /**\r
-  Set Buffer to 0 for Size bytes.\r
+  Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
+  If Length > 0 and Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
 \r
-  If Buffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
+  @param  Buffer      Pointer to the target buffer to fill with zeros.\r
+  @param  Length      Number of bytes in Buffer to fill with zeros.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
-\r
-  @return Buffer\r
+  @return Buffer.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
 ZeroMem (\r
-  IN      VOID                      *Buffer,\r
-  IN      UINTN                     Length\r
+  OUT VOID  *Buffer,\r
+  IN UINTN  Length\r
   )\r
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
index a363b6a665e7e7269fea2f685d51d7efacec97d0..2c7ed069f50bdd1ec800a05bed6e7298127b3f09 100644 (file)
@@ -71,7 +71,7 @@
       \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLibMm7" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiReportStatusCodeLib" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreEntryPoint" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeimEntryPoint" />\r
       \r
@@ -88,7 +88,7 @@
 \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibPort80" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibDebug" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" />\r
 \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="UefiDriverEntryPoint" />\r
   \r
       \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiServicesTablePointerLibMm7" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiReportStatusCodeLib" />\r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" />\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiCoreEntryPoint" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeimEntryPoint" />\r
       \r
   \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BasePostCodeLibPort80" />\r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BasePostCodeLibDebug" />\r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" />\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" />\r
 \r
       <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="DxeSmmDriverEntryPoint" />\r
   \r
       \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiServicesTablePointerLibMm7" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiReportStatusCodeLib" />\r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" />\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiCoreEntryPoint" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeimEntryPoint" />\r
       \r
 \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BasePostCodeLibPort80" />\r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BasePostCodeLibDebug" />\r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" />\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" />\r
   \r
       <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="UefiDriverEntryPoint" />\r
   \r
       \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiServicesTablePointerLibMm7" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiReportStatusCodeLib" />\r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" />\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiCoreEntryPoint" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeimEntryPoint" />\r
       \r
 \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BasePostCodeLibPort80" />\r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BasePostCodeLibDebug" />\r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" />\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" />\r
   \r
       <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="DxeSmmDriverEntryPoint" />\r
   \r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdDebugPropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdPostCodePropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" >\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdDebugPropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>\r
-      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" >\r
+      <ModuleSA Arch="IPF" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdPostCodePropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>        \r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" >\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdDebugPropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>\r
-      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" >\r
+      <ModuleSA Arch="X64" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdPostCodePropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>        \r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" >\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdDebugPropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>\r
-      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" >\r
+      <ModuleSA Arch="EBC" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdPostCodePropertyMask</C_Name>\r
index 35de27df9b8a73df9243756ac07b8e3b40caed7f..33fc12d023adb3101b27f40b50d51cb2046a0d85 100644 (file)
@@ -68,7 +68,7 @@
 \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiServicesTablePointerLibMm7" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiReportStatusCodeLib" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiCoreEntryPoint" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeimEntryPoint" />\r
 \r
@@ -84,7 +84,7 @@
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseReportStatusCodeLibNull" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibPort80" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibDebug" />\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" />\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" />\r
 \r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="UefiDriverEntryPoint" />\r
       <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="DxeSmmDriverEntryPoint" />\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>        \r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BaseDebugLibReportStatusCode" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxeDebugLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdDebugPropertyMask</C_Name>\r
           </PcdData>\r
         </PcdBuildDefinition>\r
       </ModuleSA>\r
-      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="BasePostCodeLibReportStatusCode" >\r
+      <ModuleSA Arch="IA32" FvBinding="NULL" ModuleName="PeiDxePostCodeLibReportStatusCode" >\r
         <PcdBuildDefinition>\r
           <PcdData ItemType="FIXED_AT_BUILD">\r
             <C_Name>PcdPostCodePropertyMask</C_Name>\r
index e2756b8ac9330ea577217771250b6ca125721f62..31dc13489f7b0a432c0129ab5d05ccfea55d22e0 100644 (file)
       <Filename>Library/BaseDebugLibNull/BaseDebugLibNull.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
-      <Filename>Library/BaseDebugLibReportStatusCode/BaseDebugLibReportStatusCode.msa</Filename>\r
+      <Filename>Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
       <Filename>Library/BasePerformanceLibNull/BasePerformanceLibNull.msa</Filename>\r
       <Filename>Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
-      <Filename>Library/BasePostCodeLibReportStatusCode/BasePostCodeLibReportStatusCode.msa</Filename>\r
+      <Filename>Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.msa</Filename>\r
     </MsaFile>\r
     <MsaFile>\r
       <Filename>Library/BaseSmbusLib/BaseSmbusLib.msa</Filename>\r