audk/MdePkg/Library
ajfish 2ce311322c Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class.
Added PeCoffLoaderGetMachineType to the PeCoffGetEntryPointLibrary Class. Document to be updated.

Added the PeCoffLoaderImageReadFromMemory() and PeCoffLoaderRelocateImageForRuntime () to the PcCoffLib. 

Updated EfiImage.h and removed EFI_IMAGE_OPTIONAL_HEADER and EFI_IMAGE_NT_HEADERS as they were replaced with checking the MachineType.

PeCoffLib – Added checks for MachineType so the PeCoff lib can load any PE32 or PE32+ image. The relocations are still limited to IA32, X64, IPF, and EBC. I also added a re-relocator function to remove PeLoader Code from Runtime Lib. Even though there is only one instance of the re-relocator I wanted to get all the PeCoff loader code together.

Replaced DEBUG_CODE() macro with DEBUG_CODE_START() and DEBUG_CODE_END() so you can debug through the DEBUG_CODE() macros. Also removed PE/COFF code and replaced with library usage.

I also updated the IO Instrinsic lib to use _ReadWriteBarrior() to help with sync problems

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1103 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 15:23:35 +00:00
..
BaseCacheMaintenanceLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseDebugLibNull Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseIoLibIntrinsic Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class. 2006-07-26 15:23:35 +00:00
BaseLib Added a 64-bit version of EnablePaging64() on X64. AsmEnablePaging64() is the transition code to switch the processor from 32-bit into 64-bit long mode and thus is typically linked with 32-bit images only. However, it's desired to link the transition code into a 64-bit image in some special cases. CPU driver is a good example among those. 2006-07-25 08:30:02 +00:00
BaseMemoryLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseMemoryLibMmx Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseMemoryLibRepStr Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseMemoryLibSse2 Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePcdLibNull Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePciCf8Lib Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class. 2006-07-26 15:23:35 +00:00
BasePciExpressLib Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class. 2006-07-26 15:23:35 +00:00
BasePciLibCf8 Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePciLibPciExpress Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePeCoffGetEntryPointLib Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class. 2006-07-26 15:23:35 +00:00
BasePeCoffLib Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class. 2006-07-26 15:23:35 +00:00
BasePerformanceLibNull Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePostCodeLibDebug Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePostCodeLibPort80 Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BasePrintLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseReportStatusCodeLibNull Added license & copyright declaration 2006-07-13 08:24:50 +00:00
BaseTimerLibLocalApic Updated function headers according to latest MWG. 2006-07-25 07:37:25 +00:00
BaseUefiDecompressLib 1. added functions header for BaseUefiDecompressLi 2006-07-19 17:37:07 +00:00
DxeCoreEntryPoint Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeCoreHobLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeHobLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeIoLibCpuIo Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeMemoryAllocationLib Adjust coding style for MemoryAllocationLib. 2006-07-23 12:55:05 +00:00
DxeMemoryLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxePcdLib Add [in,out] in the @param for PCD header and c file. 2006-07-19 05:18:47 +00:00
DxeReportStatusCodeLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeServicesTableLib Modified comment for gDs 2006-07-20 07:27:57 +00:00
DxeSmbusLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
DxeSmmDriverEntryPoint Added license & copyright declaration 2006-07-13 08:24:50 +00:00
HiiLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiCoreEntryPoint Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiDxeDebugLibReportStatusCode Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiDxePostCodeLibReportStatusCode Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiHobLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiIoLibCpuIo Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiMemoryAllocationLib Adjust coding style for MemoryAllocationLib. 2006-07-23 12:55:05 +00:00
PeiMemoryLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiPcdLib Add [in,out] in the @param for PCD header and c file. 2006-07-19 05:18:47 +00:00
PeiReportStatusCodeLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiResourcePublicationLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiServicesLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiServicesTablePointerLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiServicesTablePointerLibMm7 Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeiSmbusLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
PeimEntryPoint Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiBootServicesTableLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiDebugLibConOut Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiDebugLibStdErr Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiDevicePathLib Fix a bug in UefiDevicePathLib 2006-07-24 10:15:33 +00:00
UefiDevicePathLibDevicePathProtocol Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiDriverEntryPoint Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiDriverModelLib Added license & copyright declaration 2006-07-13 08:24:50 +00:00
UefiLib Adjust coding style for MemoryAllocationLib. 2006-07-23 12:55:05 +00:00
UefiRuntimeServicesTableLib added some comments in BaseLib 2006-07-20 04:00:59 +00:00