• BaseMemoryLib:
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
This commit is contained in:
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeHobLib</Library>
|
<Library>DxeHobLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkScsiLib</Library>
|
<Library>EdkScsiLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkScsiLib</Library>
|
<Library>EdkScsiLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>EdkUsbLib</Library>
|
<Library>EdkUsbLib</Library>
|
||||||
|
@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>BaseCacheMaintenanceLib</Library>
|
<Library>BaseCacheMaintenanceLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library OverrideID="1111">DxeCoreUefiDecompressLibFromHob</Library>
|
<Library OverrideID="1111">DxeCoreUefiDecompressLibFromHob</Library>
|
||||||
<Library OverrideID="1111">DxeCoreTianoDecompressLibFromHob</Library>
|
<Library OverrideID="1111">DxeCoreTianoDecompressLibFromHob</Library>
|
||||||
<Library OverrideID="3333">DxeCoreCustomDecompressLibFromHob</Library>
|
<Library OverrideID="3333">DxeCoreCustomDecompressLibFromHob</Library>
|
||||||
|
@ -37,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>BaseUefiTianoDecompressLib</Library>
|
<Library>BaseUefiTianoDecompressLib</Library>
|
||||||
<Library>BaseCustomDecompressLibNull</Library>
|
<Library>BaseCustomDecompressLibNull</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>PeiMemoryAllocationLib</Library>
|
<Library>PeiMemoryAllocationLib</Library>
|
||||||
<Arch ArchType="IA32">
|
<Arch ArchType="IA32">
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>BaseCacheMaintenanceLib</Library>
|
<Library>BaseCacheMaintenanceLib</Library>
|
||||||
<Library>BaseUefiTianoDecompressLib</Library>
|
<Library>BaseUefiTianoDecompressLib</Library>
|
||||||
<Library>BaseCustomDecompressLibNull</Library>
|
<Library>BaseCustomDecompressLibNull</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>PeiMemoryAllocationLib</Library>
|
<Library>PeiMemoryAllocationLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesLib</Library>
|
<Library>PeiServicesLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BasePerformanceLibNull</Library>
|
<Library>BasePerformanceLibNull</Library>
|
||||||
<Arch ArchType="IA32">
|
<Arch ArchType="IA32">
|
||||||
<Library OverrideID="6666">BasePeCoffGetEntryPointLib</Library>
|
<Library OverrideID="6666">BasePeCoffGetEntryPointLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>HiiLib</Library>
|
<Library>HiiLib</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
</ModuleBuildDescription>
|
</ModuleBuildDescription>
|
||||||
|
@ -33,6 +33,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
</ModuleBuildDescription>
|
</ModuleBuildDescription>
|
||||||
|
@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>UefiBootServicesTableLib</Library>
|
<Library>UefiBootServicesTableLib</Library>
|
||||||
<Library>BaseMemoryLib</Library>
|
<Library>BaseMemoryLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeServicesTableLib</Library>
|
<Library>DxeServicesTableLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>PeimEntryPoint</Library>
|
<Library>PeimEntryPoint</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiMemoryLib</Library>
|
<Library>PeiMemoryLib</Library>
|
||||||
<Library>PeiServicesLib</Library>
|
<Library>PeiServicesLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Arch ArchType="IPF">
|
<Arch ArchType="IPF">
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesLib</Library>
|
<Library>PeiServicesLib</Library>
|
||||||
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
|
<Library OverrideID="4444">PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>PeiMemoryLib</Library>
|
<Library>PeiMemoryLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>PeiMemoryAllocationLib</Library>
|
<Library>PeiMemoryAllocationLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>BaseMemoryLib</Library>
|
<Library>BaseMemoryLib</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Arch ArchType="IPF">
|
<Arch ArchType="IPF">
|
||||||
<Library>EdkDxeSalLib</Library>
|
<Library>EdkDxeSalLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
</ModuleBuildDescription>
|
</ModuleBuildDescription>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>BasePrintLib</Library>
|
<Library>BasePrintLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeIoLibCpuIo</Library>
|
<Library>DxeIoLibCpuIo</Library>
|
||||||
<Library>BaseMemoryLib</Library>
|
<Library>BaseMemoryLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
|
@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiRuntimeServicesTableLib</Library>
|
<Library>UefiRuntimeServicesTableLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>BaseMemoryLib</Library>
|
<Library>BaseMemoryLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BasePrintLib</Library>
|
<Library>BasePrintLib</Library>
|
||||||
<Library>EdkGraphicsLib</Library>
|
<Library>EdkGraphicsLib</Library>
|
||||||
<Library>EdkIfrSupportLib</Library>
|
<Library>EdkIfrSupportLib</Library>
|
||||||
|
@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiRuntimeServicesTableLib</Library>
|
<Library>UefiRuntimeServicesTableLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>BasePrintLib</Library>
|
<Library>BasePrintLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
|
@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</MbdHeader>
|
</MbdHeader>
|
||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>PeiMemoryLib</Library>
|
<Library>PeiMemoryLib</Library>
|
||||||
<Library>PeiServicesLib</Library>
|
<Library>PeiServicesLib</Library>
|
||||||
|
@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>UefiBootServicesTableLib</Library>
|
<Library>UefiBootServicesTableLib</Library>
|
||||||
<Library>BaseMemoryLib</Library>
|
<Library>BaseMemoryLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>DxeServicesTableLib</Library>
|
<Library>DxeServicesTableLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxeRuntimeDriverLib</Library>
|
<Library>EdkDxeRuntimeDriverLib</Library>
|
||||||
<Library>DxeHobLib</Library>
|
<Library>DxeHobLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkDxePrintLib</Library>
|
<Library>EdkDxePrintLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeServicesTableLib</Library>
|
<Library>DxeServicesTableLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>EdkGenericBdsLib</Library>
|
<Library>EdkGenericBdsLib</Library>
|
||||||
<Library>BasePrintLib</Library>
|
<Library>BasePrintLib</Library>
|
||||||
<Library>EdkGraphicsLib</Library>
|
<Library>EdkGraphicsLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>UefiDriverModelLib</Library>
|
<Library>UefiDriverModelLib</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxePcdLib</Library>
|
<Library>DxePcdLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
<Library>UefiDevicePathLib</Library>
|
<Library>UefiDevicePathLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeWinNtLib</Library>
|
<Library>DxeWinNtLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -36,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeWinNtLib</Library>
|
<Library>DxeWinNtLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</MbdHeader>
|
</MbdHeader>
|
||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>UefiBootServicesTableLib</Library>
|
<Library>UefiBootServicesTableLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeHobLib</Library>
|
<Library>DxeHobLib</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>UefiLib</Library>
|
<Library>UefiLib</Library>
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -35,7 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>UefiMemoryLib</Library>
|
<Library>UefiMemoryLib</Library>
|
||||||
<Library>UefiDriverEntryPoint</Library>
|
<Library>UefiDriverEntryPoint</Library>
|
||||||
<Library>DxeReportStatusCodeLib</Library>
|
<Library>DxeReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>DxeWinNtLib</Library>
|
<Library>DxeWinNtLib</Library>
|
||||||
<Library>DxeMemoryAllocationLib</Library>
|
<Library>DxeMemoryAllocationLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesLib</Library>
|
<Library>PeiServicesLib</Library>
|
||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</MbdHeader>
|
</MbdHeader>
|
||||||
<Libraries>
|
<Libraries>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
<Library>PeiMemoryLib</Library>
|
<Library>PeiMemoryLib</Library>
|
||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<Library>PeiServicesTablePointerLib</Library>
|
<Library>PeiServicesTablePointerLib</Library>
|
||||||
<Library>PeiHobLib</Library>
|
<Library>PeiHobLib</Library>
|
||||||
<Library>PeiReportStatusCodeLib</Library>
|
<Library>PeiReportStatusCodeLib</Library>
|
||||||
<Library>BaseDebugLibReportStatusCode</Library>
|
<Library>PeiDxeDebugLibReportStatusCode</Library>
|
||||||
<Library>BaseLib</Library>
|
<Library>BaseLib</Library>
|
||||||
</Libraries>
|
</Libraries>
|
||||||
<BuildOptions ToolChain="MSFT">
|
<BuildOptions ToolChain="MSFT">
|
||||||
|
@ -18,21 +18,19 @@
|
|||||||
#define __BASE_MEMORY_LIB__
|
#define __BASE_MEMORY_LIB__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy Length bytes from Source to Destination.
|
Copies a source buffer to a destination buffer, and returns the destination buffer.
|
||||||
|
|
||||||
This function copies Length bytes from SourceBuffer to DestinationBuffer, and
|
This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns
|
||||||
returns DestinationBuffer. The implementation must be reentrant, and it must
|
DestinationBuffer. The implementation must be reentrant, and it must handle the case
|
||||||
handle the case where SourceBuffer overlaps DestinationBuffer.
|
where SourceBuffer overlaps DestinationBuffer.
|
||||||
|
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then
|
|
||||||
ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Destination Target of copy
|
@param DestinationBuffer Pointer to the destination buffer of the memory copy.
|
||||||
@param Source Place to copy from
|
@param SourceBuffer Pointer to the source buffer of the memory copy.
|
||||||
@param Length Number of bytes to copy
|
@param Length Number of bytes to copy from SourceBuffer to DestinationBuffer.
|
||||||
|
|
||||||
@return Destination
|
@return DestinationBuffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -44,17 +42,16 @@ CopyMem (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to Value for Size bytes.
|
Fills a target buffer with a byte value, and returns the target buffer.
|
||||||
|
|
||||||
This function fills Length bytes of Buffer with Value, and returns Buffer.
|
This function fills Length bytes of Buffer with Value, and returns Buffer.
|
||||||
|
If Length is greater than (MAX_ADDRESS <20> Buffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
|
||||||
|
|
||||||
@param Buffer Memory to set.
|
@param Buffer Memory to set.
|
||||||
@param Size Number of bytes to set
|
@param Length Number of bytes to set
|
||||||
@param Value Value of the set operation.
|
@param Value Value of the set operation.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -72,7 +69,7 @@ SetMem (
|
|||||||
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
@ -81,7 +78,7 @@ SetMem (
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -99,7 +96,7 @@ SetMem16 (
|
|||||||
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
@ -108,7 +105,7 @@ SetMem16 (
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -126,7 +123,7 @@ SetMem32 (
|
|||||||
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
@ -135,7 +132,7 @@ SetMem32 (
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -147,17 +144,16 @@ SetMem64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to 0 for Size bytes.
|
Fills a target buffer with zeros, and returns the target buffer.
|
||||||
|
|
||||||
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
If Length is greater than (MAX_ADDRESS <20> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
@param Buffer Pointer to the target buffer to fill with zeros.
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
@param Length Number of bytes in Buffer to fill with zeros.
|
||||||
|
|
||||||
@param Buffer Memory to set.
|
@return Buffer.
|
||||||
@param Size Number of bytes to set
|
|
||||||
|
|
||||||
@return Buffer
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -168,26 +164,25 @@ ZeroMem (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compares two memory buffers of a given length.
|
Compares the contents of two buffers.
|
||||||
|
|
||||||
This function compares Length bytes of SourceBuffer to Length bytes of
|
This function compares Length bytes of SourceBuffer to Length bytes of DestinationBuffer.
|
||||||
DestinationBuffer. If all Length bytes of the two buffers are identical, then
|
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the
|
||||||
0 is returned. Otherwise, the value returned is the first mismatched byte in
|
value returned is the first mismatched byte in SourceBuffer subtracted from the first
|
||||||
SourceBuffer subtracted from the first mismatched byte in DestinationBuffer.
|
mismatched byte in DestinationBuffer.
|
||||||
|
If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().
|
||||||
If DestinationBuffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().
|
||||||
If SourceBuffer is NULL and Length > 0, then ASSERT().
|
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then
|
|
||||||
ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param DestinationBuffer First memory buffer
|
|
||||||
@param SourceBuffer Second memory buffer
|
|
||||||
@param Length Length of DestinationBuffer and SourceBuffer memory
|
|
||||||
regions to compare
|
|
||||||
|
|
||||||
@retval 0 if DestinationBuffer == SourceBuffer
|
@param DestinationBuffer Pointer to the destination buffer to compare.
|
||||||
@retval Non-zero if DestinationBuffer != SourceBuffer
|
@param SourceBuffer Pointer to the source buffer to compare.
|
||||||
|
@param Length Number of bytes to compare.
|
||||||
|
|
||||||
|
@return 0 All Length bytes of the two buffers are identical.
|
||||||
|
@retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first
|
||||||
|
mismatched byte in DestinationBuffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
INTN
|
INTN
|
||||||
@ -199,24 +194,21 @@ CompareMem (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
matching 8-bit value in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from the lowest
|
||||||
the lowest address to the highest address for an 8-bit value that matches
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
Value. If a match is found, then a pointer to the matching byte in the target
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
buffer is returned. If no match is found, then NULL is returned. If Length is
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
0, then NULL is returned.
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
If Length is greater than (MAX_ADDRESS <20> Buffer + 1), then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Value Value to search for in the target buffer.
|
@param Value Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence or NULL if not found.
|
@return A pointer to the matching byte in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Value was not found.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -228,25 +220,22 @@ ScanMem8 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
matching 16-bit value in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from the lowest
|
||||||
the lowest address to the highest address at 16-bit increments for a 16-bit
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
value that matches Value. If a match is found, then a pointer to the matching
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
value in the target buffer is returned. If no match is found, then NULL is
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
returned. If Length is 0, then NULL is returned.
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Value Value to search for in the target buffer.
|
@param Value Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence.
|
@return A pointer to the matching byte in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Value was not found.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -258,25 +247,22 @@ ScanMem16 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
matching 32-bit value in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from the lowest
|
||||||
the lowest address to the highest address at 32-bit increments for a 32-bit
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
value that matches Value. If a match is found, then a pointer to the matching
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
value in the target buffer is returned. If no match is found, then NULL is
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
returned. If Length is 0, then NULL is returned.
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Value Value to search for in the target buffer.
|
@param Value Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence or NULL if not found.
|
@return A pointer to the matching byte in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Value was not found.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -288,25 +274,22 @@ ScanMem32 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
matching 64-bit value in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from the lowest
|
||||||
the lowest address to the highest address at 64-bit increments for a 64-bit
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
value that matches Value. If a match is found, then a pointer to the matching
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
value in the target buffer is returned. If no match is found, then NULL is
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
returned. If Length is 0, then NULL is returned.
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Value Value to search for in the target buffer.
|
@param Value Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence or NULL if not found.
|
@return A pointer to the matching byte in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Value was not found.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
@ -318,18 +301,17 @@ ScanMem64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function copies a source GUID to a destination GUID.
|
Copies a source GUID to a destination GUID.
|
||||||
|
|
||||||
This function copies the contents of the 128-bit GUID specified by SourceGuid
|
|
||||||
to DestinationGuid, and returns DestinationGuid.
|
|
||||||
|
|
||||||
|
This function copies the contents of the 128-bit GUID specified by SourceGuid to
|
||||||
|
DestinationGuid, and returns DestinationGuid.
|
||||||
If DestinationGuid is NULL, then ASSERT().
|
If DestinationGuid is NULL, then ASSERT().
|
||||||
If SourceGuid is NULL, then ASSERT().
|
If SourceGuid is NULL, then ASSERT().
|
||||||
|
|
||||||
@param DestinationGuid Pointer to the destination GUID.
|
@param DestinationGuid Pointer to the destination GUID.
|
||||||
@param SourceGuid Pointer to the source GUID.
|
@param SourceGuid Pointer to the source GUID.
|
||||||
|
|
||||||
@return DestinationGuid
|
@return DestinationGuid.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
GUID *
|
GUID *
|
||||||
@ -340,20 +322,18 @@ CopyGuid (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compares two GUIDs
|
Compares two GUIDs.
|
||||||
|
|
||||||
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE
|
|
||||||
is returned. If there are any bit differences in the two GUIDs, then FALSE is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
|
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned.
|
||||||
|
If there are any bit differences in the two GUIDs, then FALSE is returned.
|
||||||
If Guid1 is NULL, then ASSERT().
|
If Guid1 is NULL, then ASSERT().
|
||||||
If Guid2 is NULL, then ASSERT().
|
If Guid2 is NULL, then ASSERT().
|
||||||
|
|
||||||
@param Guid1 guid to compare
|
@param Guid1 A pointer to a 128 bit GUID.
|
||||||
@param Guid2 guid to compare
|
@param Guid2 A pointer to a 128 bit GUID.
|
||||||
|
|
||||||
@retval TRUE if Guid1 == Guid2
|
@retval TRUE Guid1 and Guid2 are identical.
|
||||||
@retval FALSE if Guid1 != Guid2
|
@retval FALSE Guid1 and Guid2 are not identical.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
@ -368,21 +348,20 @@ CompareGuid (
|
|||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
128-bit GUID value that matches Guid. If a match is found, then a pointer to
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
the matching GUID in the target buffer is returned. If no match is found,
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
If Length is 0, then NULL is returned.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Guid Value to search for in the target buffer.
|
@param Guid Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence.
|
@return A pointer to the matching Guid in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Guid was not found.
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -18,22 +18,27 @@
|
|||||||
#define __PE_COFF_GET_ENTRY_POINT_LIB_H__
|
#define __PE_COFF_GET_ENTRY_POINT_LIB_H__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Loads a PE/COFF image into memory
|
Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded
|
||||||
|
into system memory with the PE/COFF Loader Library functions.
|
||||||
|
|
||||||
@param Pe32Data Pointer to a PE/COFF Image
|
Retrieves the entry point to the PE/COFF image specified by Pe32Data and returns this entry
|
||||||
|
point in EntryPoint. If the entry point could not be retrieved from the PE/COFF image, then
|
||||||
|
return RETURN_INVALID_PARAMETER. Otherwise return RETURN_SUCCESS.
|
||||||
|
If Pe32Data is NULL, then ASSERT().
|
||||||
|
If EntryPoint is NULL, then ASSERT().
|
||||||
|
|
||||||
@param EntryPoint Pointer to the entry point of the PE/COFF image
|
@param Pe32Data Pointer to the PE/COFF image that is loaded in system memory.
|
||||||
|
@param EntryPoint Pointer to entry point to the PE/COFF image to return.
|
||||||
|
|
||||||
@retval EFI_SUCCESS if the EntryPoint was returned
|
@retval RETURN_SUCCESS EntryPoint was returned.
|
||||||
@retval EFI_INVALID_PARAMETER if the EntryPoint could not be found from Pe32Data
|
@retval RETURN_INVALID_PARAMETER The entry point could not be found in the PE/COFF image.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
RETURN_STATUS
|
RETURN_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeCoffLoaderGetEntryPoint (
|
PeCoffLoaderGetEntryPoint (
|
||||||
IN VOID *Pe32Data,
|
IN VOID *Pe32Data,
|
||||||
IN OUT VOID **EntryPoint
|
OUT VOID **EntryPoint
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -52,7 +52,7 @@ PeiServicesInstallPpi (
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeiServicesReinstallPpi (
|
PeiServicesReInstallPpi (
|
||||||
IN EFI_PEI_PPI_DESCRIPTOR *OldPpi,
|
IN EFI_PEI_PPI_DESCRIPTOR *OldPpi,
|
||||||
IN EFI_PEI_PPI_DESCRIPTOR *NewPpi
|
IN EFI_PEI_PPI_DESCRIPTOR *NewPpi
|
||||||
)
|
)
|
||||||
|
@ -26,41 +26,37 @@
|
|||||||
#include "MemLibInternals.h"
|
#include "MemLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy Length bytes from Source to Destination.
|
Copies a source buffer to a destination buffer, and returns the destination buffer.
|
||||||
|
|
||||||
This function copies Length bytes from SourceBuffer to DestinationBuffer, and
|
This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns
|
||||||
returns DestinationBuffer. The implementation must be reentrant, and it must
|
DestinationBuffer. The implementation must be reentrant, and it must handle the case
|
||||||
handle the case where SourceBuffer overlaps DestinationBuffer.
|
where SourceBuffer overlaps DestinationBuffer.
|
||||||
|
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then
|
|
||||||
ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Destination Target of copy
|
@param DestinationBuffer Pointer to the destination buffer of the memory copy.
|
||||||
@param Source Place to copy from
|
@param SourceBuffer Pointer to the source buffer of the memory copy.
|
||||||
@param Length Number of bytes to copy
|
@param Length Number of bytes to copy from SourceBuffer to DestinationBuffer.
|
||||||
|
|
||||||
@return Destination
|
@return DestinationBuffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CopyMem (
|
CopyMem (
|
||||||
OUT VOID *Destination,
|
OUT VOID *DestinationBuffer,
|
||||||
IN CONST VOID *Source,
|
IN CONST VOID *SourceBuffer,
|
||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (
|
if (Length == 0) {
|
||||||
Destination == NULL ||
|
return DestinationBuffer;
|
||||||
Length <= MAX_ADDRESS - (UINTN)Destination + 1
|
|
||||||
);
|
|
||||||
ASSERT (
|
|
||||||
Source == NULL ||
|
|
||||||
Length <= MAX_ADDRESS - (UINTN)Source + 1
|
|
||||||
);
|
|
||||||
if (Destination == Source || Length == 0) {
|
|
||||||
return Destination;
|
|
||||||
}
|
}
|
||||||
return InternalMemCopyMem (Destination, Source, Length);
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));
|
||||||
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));
|
||||||
|
|
||||||
|
if (DestinationBuffer == SourceBuffer) {
|
||||||
|
return DestinationBuffer;
|
||||||
|
}
|
||||||
|
return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,6 @@ InternalMemScanMem8 (
|
|||||||
{
|
{
|
||||||
CONST UINT8 *Pointer;
|
CONST UINT8 *Pointer;
|
||||||
|
|
||||||
ASSERT (Length > 0);
|
|
||||||
Pointer = (CONST UINT8*)Buffer;
|
Pointer = (CONST UINT8*)Buffer;
|
||||||
do {
|
do {
|
||||||
if (*(Pointer++) == Value) {
|
if (*(Pointer++) == Value) {
|
||||||
@ -192,7 +191,6 @@ InternalMemScanMem16 (
|
|||||||
{
|
{
|
||||||
CONST UINT16 *Pointer;
|
CONST UINT16 *Pointer;
|
||||||
|
|
||||||
ASSERT (Length > 0);
|
|
||||||
Pointer = (CONST UINT16*)Buffer;
|
Pointer = (CONST UINT16*)Buffer;
|
||||||
do {
|
do {
|
||||||
if (*(Pointer++) == Value) {
|
if (*(Pointer++) == Value) {
|
||||||
@ -223,7 +221,6 @@ InternalMemScanMem32 (
|
|||||||
{
|
{
|
||||||
CONST UINT32 *Pointer;
|
CONST UINT32 *Pointer;
|
||||||
|
|
||||||
ASSERT (Length > 0);
|
|
||||||
Pointer = (CONST UINT32*)Buffer;
|
Pointer = (CONST UINT32*)Buffer;
|
||||||
do {
|
do {
|
||||||
if (*(Pointer++) == Value) {
|
if (*(Pointer++) == Value) {
|
||||||
@ -254,7 +251,6 @@ InternalMemScanMem64 (
|
|||||||
{
|
{
|
||||||
CONST UINT64 *Pointer;
|
CONST UINT64 *Pointer;
|
||||||
|
|
||||||
ASSERT (Length > 0);
|
|
||||||
Pointer = (CONST UINT64*)Buffer;
|
Pointer = (CONST UINT64*)Buffer;
|
||||||
do {
|
do {
|
||||||
if (*(Pointer++) == Value) {
|
if (*(Pointer++) == Value) {
|
||||||
|
@ -24,18 +24,17 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function copies a source GUID to a destination GUID.
|
Copies a source GUID to a destination GUID.
|
||||||
|
|
||||||
This function copies the contents of the 128-bit GUID specified by SourceGuid
|
|
||||||
to DestinationGuid, and returns DestinationGuid.
|
|
||||||
|
|
||||||
|
This function copies the contents of the 128-bit GUID specified by SourceGuid to
|
||||||
|
DestinationGuid, and returns DestinationGuid.
|
||||||
If DestinationGuid is NULL, then ASSERT().
|
If DestinationGuid is NULL, then ASSERT().
|
||||||
If SourceGuid is NULL, then ASSERT().
|
If SourceGuid is NULL, then ASSERT().
|
||||||
|
|
||||||
@param DestinationGuid Pointer to the destination GUID.
|
@param DestinationGuid Pointer to the destination GUID.
|
||||||
@param SourceGuid Pointer to the source GUID.
|
@param SourceGuid Pointer to the source GUID.
|
||||||
|
|
||||||
@return DestinationGuid
|
@return DestinationGuid.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
GUID *
|
GUID *
|
||||||
@ -57,20 +56,18 @@ CopyGuid (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compares two GUIDs
|
Compares two GUIDs.
|
||||||
|
|
||||||
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE
|
|
||||||
is returned. If there are any bit differences in the two GUIDs, then FALSE is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
|
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned.
|
||||||
|
If there are any bit differences in the two GUIDs, then FALSE is returned.
|
||||||
If Guid1 is NULL, then ASSERT().
|
If Guid1 is NULL, then ASSERT().
|
||||||
If Guid2 is NULL, then ASSERT().
|
If Guid2 is NULL, then ASSERT().
|
||||||
|
|
||||||
@param Guid1 guid to compare
|
@param Guid1 A pointer to a 128 bit GUID.
|
||||||
@param Guid2 guid to compare
|
@param Guid2 A pointer to a 128 bit GUID.
|
||||||
|
|
||||||
@retval TRUE if Guid1 == Guid2
|
@retval TRUE Guid1 and Guid2 are identical.
|
||||||
@retval FALSE if Guid1 != Guid2
|
@retval FALSE Guid1 and Guid2 are not identical.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
@ -93,21 +90,20 @@ CompareGuid (
|
|||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
128-bit GUID value that matches Guid. If a match is found, then a pointer to
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
the matching GUID in the target buffer is returned. If no match is found,
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
If Length is 0, then NULL is returned.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Guid Value to search for in the target buffer.
|
@param Guid Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence.
|
@return A pointer to the matching Guid in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Guid was not found.
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -52,7 +52,10 @@ ScanMem16 (
|
|||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem16 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,10 @@ ScanMem32 (
|
|||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem32 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,10 @@ ScanMem64 (
|
|||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem64 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -57,5 +57,5 @@ ScanMem8 (
|
|||||||
ASSERT (Buffer != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: EfiSetMem.c
|
Module Name: SetMem.c
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetMem (
|
SetMem (
|
||||||
IN VOID *Buffer,
|
OUT VOID *Buffer,
|
||||||
IN UINTN Length,
|
IN UINTN Length,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
)
|
||||||
|
@ -26,23 +26,22 @@
|
|||||||
#include "MemLibInternals.h"
|
#include "MemLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to 0 for Size bytes.
|
Fills a target buffer with zeros, and returns the target buffer.
|
||||||
|
|
||||||
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
If Length is greater than (MAX_ADDRESS <20> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
@param Buffer Pointer to the target buffer to fill with zeros.
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
@param Length Number of bytes in Buffer to fill with zeros.
|
||||||
|
|
||||||
@param Buffer Memory to set.
|
@return Buffer.
|
||||||
@param Size Number of bytes to set
|
|
||||||
|
|
||||||
@return Buffer
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ZeroMem (
|
ZeroMem (
|
||||||
IN VOID *Buffer,
|
OUT VOID *Buffer,
|
||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -26,41 +26,37 @@
|
|||||||
#include "MemLibInternals.h"
|
#include "MemLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy Length bytes from Source to Destination.
|
Copies a source buffer to a destination buffer, and returns the destination buffer.
|
||||||
|
|
||||||
This function copies Length bytes from SourceBuffer to DestinationBuffer, and
|
This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns
|
||||||
returns DestinationBuffer. The implementation must be reentrant, and it must
|
DestinationBuffer. The implementation must be reentrant, and it must handle the case
|
||||||
handle the case where SourceBuffer overlaps DestinationBuffer.
|
where SourceBuffer overlaps DestinationBuffer.
|
||||||
|
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then
|
|
||||||
ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Destination Target of copy
|
@param DestinationBuffer Pointer to the destination buffer of the memory copy.
|
||||||
@param Source Place to copy from
|
@param SourceBuffer Pointer to the source buffer of the memory copy.
|
||||||
@param Length Number of bytes to copy
|
@param Length Number of bytes to copy from SourceBuffer to DestinationBuffer.
|
||||||
|
|
||||||
@return Destination
|
@return DestinationBuffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CopyMem (
|
CopyMem (
|
||||||
OUT VOID *Destination,
|
OUT VOID *DestinationBuffer,
|
||||||
IN CONST VOID *Source,
|
IN CONST VOID *SourceBuffer,
|
||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (
|
if (Length == 0) {
|
||||||
Destination == NULL ||
|
return DestinationBuffer;
|
||||||
Length <= MAX_ADDRESS - (UINTN)Destination + 1
|
|
||||||
);
|
|
||||||
ASSERT (
|
|
||||||
Source == NULL ||
|
|
||||||
Length <= MAX_ADDRESS - (UINTN)Source + 1
|
|
||||||
);
|
|
||||||
if (Destination == Source || Length == 0) {
|
|
||||||
return Destination;
|
|
||||||
}
|
}
|
||||||
return InternalMemCopyMem (Destination, Source, Length);
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));
|
||||||
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));
|
||||||
|
|
||||||
|
if (DestinationBuffer == SourceBuffer) {
|
||||||
|
return DestinationBuffer;
|
||||||
|
}
|
||||||
|
return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);
|
||||||
}
|
}
|
||||||
|
@ -24,18 +24,17 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function copies a source GUID to a destination GUID.
|
Copies a source GUID to a destination GUID.
|
||||||
|
|
||||||
This function copies the contents of the 128-bit GUID specified by SourceGuid
|
|
||||||
to DestinationGuid, and returns DestinationGuid.
|
|
||||||
|
|
||||||
|
This function copies the contents of the 128-bit GUID specified by SourceGuid to
|
||||||
|
DestinationGuid, and returns DestinationGuid.
|
||||||
If DestinationGuid is NULL, then ASSERT().
|
If DestinationGuid is NULL, then ASSERT().
|
||||||
If SourceGuid is NULL, then ASSERT().
|
If SourceGuid is NULL, then ASSERT().
|
||||||
|
|
||||||
@param DestinationGuid Pointer to the destination GUID.
|
@param DestinationGuid Pointer to the destination GUID.
|
||||||
@param SourceGuid Pointer to the source GUID.
|
@param SourceGuid Pointer to the source GUID.
|
||||||
|
|
||||||
@return DestinationGuid
|
@return DestinationGuid.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
GUID *
|
GUID *
|
||||||
@ -57,20 +56,18 @@ CopyGuid (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compares two GUIDs
|
Compares two GUIDs.
|
||||||
|
|
||||||
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE
|
|
||||||
is returned. If there are any bit differences in the two GUIDs, then FALSE is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
|
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned.
|
||||||
|
If there are any bit differences in the two GUIDs, then FALSE is returned.
|
||||||
If Guid1 is NULL, then ASSERT().
|
If Guid1 is NULL, then ASSERT().
|
||||||
If Guid2 is NULL, then ASSERT().
|
If Guid2 is NULL, then ASSERT().
|
||||||
|
|
||||||
@param Guid1 guid to compare
|
@param Guid1 A pointer to a 128 bit GUID.
|
||||||
@param Guid2 guid to compare
|
@param Guid2 A pointer to a 128 bit GUID.
|
||||||
|
|
||||||
@retval TRUE if Guid1 == Guid2
|
@retval TRUE Guid1 and Guid2 are identical.
|
||||||
@retval FALSE if Guid1 != Guid2
|
@retval FALSE Guid1 and Guid2 are not identical.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
@ -93,21 +90,20 @@ CompareGuid (
|
|||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
128-bit GUID value that matches Guid. If a match is found, then a pointer to
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
the matching GUID in the target buffer is returned. If no match is found,
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
If Length is 0, then NULL is returned.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Guid Value to search for in the target buffer.
|
@param Guid Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence.
|
@return A pointer to the matching Guid in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Guid was not found.
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -52,7 +52,10 @@ ScanMem16 (
|
|||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem16 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,10 @@ ScanMem32 (
|
|||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem32 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem32 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,10 @@ ScanMem64 (
|
|||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem64 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem64 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
@ -57,5 +57,5 @@ ScanMem8 (
|
|||||||
ASSERT (Buffer != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem8 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
Value, and returns Buffer. Value is repeated every 16-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
If Length is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
Value, and returns Buffer. Value is repeated every 32-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
If Length is not aligned on a 32-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
Value, and returns Buffer. Value is repeated every 64-bits in for Length
|
||||||
bytes of Buffer.
|
bytes of Buffer.
|
||||||
|
|
||||||
If Length > 0 and Buffer is NULL and Length > 0, then ASSERT().
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
If Length is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
@ -41,7 +41,7 @@
|
|||||||
@param Length Number of bytes in Buffer to fill.
|
@param Length Number of bytes in Buffer to fill.
|
||||||
@param Value Value with which to fill Length bytes of Buffer.
|
@param Value Value with which to fill Length bytes of Buffer.
|
||||||
|
|
||||||
@return Buffer
|
@return Buffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetMem (
|
SetMem (
|
||||||
IN VOID *Buffer,
|
OUT VOID *Buffer,
|
||||||
IN UINTN Length,
|
IN UINTN Length,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
)
|
||||||
|
@ -26,23 +26,22 @@
|
|||||||
#include "MemLibInternals.h"
|
#include "MemLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to 0 for Size bytes.
|
Fills a target buffer with zeros, and returns the target buffer.
|
||||||
|
|
||||||
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
This function fills Length bytes of Buffer with zeros, and returns Buffer.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
|
If Length is greater than (MAX_ADDRESS <20> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL and Length > 0, then ASSERT().
|
@param Buffer Pointer to the target buffer to fill with zeros.
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
@param Length Number of bytes in Buffer to fill with zeros.
|
||||||
|
|
||||||
@param Buffer Memory to set.
|
@return Buffer.
|
||||||
@param Size Number of bytes to set
|
|
||||||
|
|
||||||
@return Buffer
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ZeroMem (
|
ZeroMem (
|
||||||
IN VOID *Buffer,
|
OUT VOID *Buffer,
|
||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -26,41 +26,37 @@
|
|||||||
#include "MemLibInternals.h"
|
#include "MemLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy Length bytes from Source to Destination.
|
Copies a source buffer to a destination buffer, and returns the destination buffer.
|
||||||
|
|
||||||
This function copies Length bytes from SourceBuffer to DestinationBuffer, and
|
This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns
|
||||||
returns DestinationBuffer. The implementation must be reentrant, and it must
|
DestinationBuffer. The implementation must be reentrant, and it must handle the case
|
||||||
handle the case where SourceBuffer overlaps DestinationBuffer.
|
where SourceBuffer overlaps DestinationBuffer.
|
||||||
|
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then
|
|
||||||
ASSERT().
|
|
||||||
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Destination Target of copy
|
@param DestinationBuffer Pointer to the destination buffer of the memory copy.
|
||||||
@param Source Place to copy from
|
@param SourceBuffer Pointer to the source buffer of the memory copy.
|
||||||
@param Length Number of bytes to copy
|
@param Length Number of bytes to copy from SourceBuffer to DestinationBuffer.
|
||||||
|
|
||||||
@return Destination
|
@return DestinationBuffer.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CopyMem (
|
CopyMem (
|
||||||
OUT VOID *Destination,
|
OUT VOID *DestinationBuffer,
|
||||||
IN CONST VOID *Source,
|
IN CONST VOID *SourceBuffer,
|
||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (
|
if (Length == 0) {
|
||||||
Destination == NULL ||
|
return DestinationBuffer;
|
||||||
Length <= MAX_ADDRESS - (UINTN)Destination + 1
|
|
||||||
);
|
|
||||||
ASSERT (
|
|
||||||
Source == NULL ||
|
|
||||||
Length <= MAX_ADDRESS - (UINTN)Source + 1
|
|
||||||
);
|
|
||||||
if (Destination == Source || Length == 0) {
|
|
||||||
return Destination;
|
|
||||||
}
|
}
|
||||||
return InternalMemCopyMem (Destination, Source, Length);
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));
|
||||||
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));
|
||||||
|
|
||||||
|
if (DestinationBuffer == SourceBuffer) {
|
||||||
|
return DestinationBuffer;
|
||||||
|
}
|
||||||
|
return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);
|
||||||
}
|
}
|
||||||
|
@ -24,18 +24,17 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function copies a source GUID to a destination GUID.
|
Copies a source GUID to a destination GUID.
|
||||||
|
|
||||||
This function copies the contents of the 128-bit GUID specified by SourceGuid
|
|
||||||
to DestinationGuid, and returns DestinationGuid.
|
|
||||||
|
|
||||||
|
This function copies the contents of the 128-bit GUID specified by SourceGuid to
|
||||||
|
DestinationGuid, and returns DestinationGuid.
|
||||||
If DestinationGuid is NULL, then ASSERT().
|
If DestinationGuid is NULL, then ASSERT().
|
||||||
If SourceGuid is NULL, then ASSERT().
|
If SourceGuid is NULL, then ASSERT().
|
||||||
|
|
||||||
@param DestinationGuid Pointer to the destination GUID.
|
@param DestinationGuid Pointer to the destination GUID.
|
||||||
@param SourceGuid Pointer to the source GUID.
|
@param SourceGuid Pointer to the source GUID.
|
||||||
|
|
||||||
@return DestinationGuid
|
@return DestinationGuid.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
GUID *
|
GUID *
|
||||||
@ -57,20 +56,18 @@ CopyGuid (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compares two GUIDs
|
Compares two GUIDs.
|
||||||
|
|
||||||
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE
|
|
||||||
is returned. If there are any bit differences in the two GUIDs, then FALSE is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
|
This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned.
|
||||||
|
If there are any bit differences in the two GUIDs, then FALSE is returned.
|
||||||
If Guid1 is NULL, then ASSERT().
|
If Guid1 is NULL, then ASSERT().
|
||||||
If Guid2 is NULL, then ASSERT().
|
If Guid2 is NULL, then ASSERT().
|
||||||
|
|
||||||
@param Guid1 guid to compare
|
@param Guid1 A pointer to a 128 bit GUID.
|
||||||
@param Guid2 guid to compare
|
@param Guid2 A pointer to a 128 bit GUID.
|
||||||
|
|
||||||
@retval TRUE if Guid1 == Guid2
|
@retval TRUE Guid1 and Guid2 are identical.
|
||||||
@retval FALSE if Guid1 != Guid2
|
@retval FALSE Guid1 and Guid2 are not identical.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
@ -93,21 +90,20 @@ CompareGuid (
|
|||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches target the buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
128-bit GUID value that matches Guid. If a match is found, then a pointer to
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
the matching GUID in the target buffer is returned. If no match is found,
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
If Length is 0, then NULL is returned.
|
||||||
|
If Length > 0 and Buffer is NULL, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
|
||||||
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 64-bit boundary, then ASSERT().
|
||||||
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
|
If Length is greater than (MAX_ADDRESS <EFBFBD> Buffer + 1), then ASSERT().
|
||||||
|
|
||||||
@param Buffer Pointer to the target buffer to scan.
|
@param Buffer Pointer to the target buffer to scan.
|
||||||
@param Length Number of bytes in Buffer to scan.
|
@param Length Number of bytes in Buffer to scan.
|
||||||
@param Guid Value to search for in the target buffer.
|
@param Guid Value to search for in the target buffer.
|
||||||
|
|
||||||
@return Pointer to the first occurrence.
|
@return A pointer to the matching Guid in the target buffer or NULL otherwise.
|
||||||
@retval NULL if Length == 0 or Guid was not found.
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -52,7 +52,10 @@ ScanMem16 (
|
|||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Length == 0) {
|
UINTN Stride;
|
||||||
|
|
||||||
|
Stride = Length / sizeof (Value);
|
||||||
|
if (Stride == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,5 +63,5 @@ ScanMem16 (
|
|||||||
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
|
||||||
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
|
||||||
|
|
||||||
return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);
|
return (VOID*)InternalMemScanMem16 (Buffer, Stride, Value);
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user