Commit Graph

207 Commits

Author SHA1 Message Date
qwang12 0f77dfb622 Enhance the string formatting function to take "%p" to print pointer.
'p' - arugment is VOID *; printed as hex number

Example is :

  ASPrint (Buffer, 1024, "This is a %p\n", SystemTable);

  ASPrint (Buffer, 1024, "This is a %10p\n", SystemTable);


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5554 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-23 07:07:07 +00:00
qwang12 c69a09d928 Add in .S file for GCC tool-chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5542 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-22 01:55:31 +00:00
qwang12 34a6b78805 Inline ASM in .c file is specific to MS tool-chain. Other tool-chain (such as Intel compiler) may not support it. Add in .asm files to make these function to be built by Assembler so that they are avaliable too for other tool-chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5540 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 14:01:55 +00:00
qwang12 b962b6b54d Add in .S file for GCC tool-chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5537 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 10:03:20 +00:00
qwang12 a1cb16bd83 clean up for GCC tool-chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5536 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 09:57:43 +00:00
qwang12 0fb90682e7 Use ebp as frame buffer in DivU64x32. Fix a typo in GetPowerOfTwo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5532 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 05:57:04 +00:00
qwang12 478db76bbe Inline ASM in .c file is specific to MS tool-chain. Other tool-chain (such as Intel compiler) may not support it. Add in .asm files to make these function to be built by Assembler so that they are avaliable too for other tool-chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5529 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 01:49:04 +00:00
qwang12 22353b17c0 Fix a bug in Power10U64. Power10U64 should clean up the stack after calling MultU64x32. It also should load eax and edx with the initial value just in case it return directly when "Power" is zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5528 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 01:42:14 +00:00
vanjeff dee6b58df6 case UINTN to UINT32.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5457 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-14 02:26:07 +00:00
qhuang8 216cadbbd8 Add protocol several UEFI 2.1 protocol definitions so that some EDK 1.05 drivers can be built.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5439 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 10:24:16 +00:00
qhuang8 2419660827 Add change log since Edk r5418-5419 is somewhat not backward-compatible.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5420 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 07:21:46 +00:00
qhuang8 91b66c164a Some adjustment in ECP to make it compatible with EDK1.01(EDK1117) foundation in UEFI2.0+Framework0.9x build mode for silicon modules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5419 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 07:19:27 +00:00
qhuang8 d850121ecd Some adjustment in ECP to make it compatible with EDK1.01(EDK1117) foundation in UEFI2.0+Framework0.9x build mode for silicon modules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5418 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 07:08:54 +00:00
qhuang8 03284334ae Add protocol defintions for DriverConfiguration2, DriverDiagnostic2 & Unicode Collcation 2 definitions so that some EDK 1.05 drivers can be built.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5417 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 07:04:59 +00:00
qhuang8 4521252741 Remove unrecognized chars in comment in source file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5356 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-19 11:44:04 +00:00
qhuang8 ab496b4695 Remove unrecognized chars in comment in assembly file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5355 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-19 11:20:33 +00:00
qhuang8 fd0d281b3c Remove unrecognized chars in comment for all source C/h files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5354 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-19 11:15:44 +00:00
qwang12 d33ef4e7c6 1) Add in EBC build support.
2) Add FvInfoToFvHobThunk in the DSC file.
3) Remove EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf from [Components.Common] as it only support IA32, X64 and IPF for now.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5353 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-19 07:05:44 +00:00
qwang12 456f6922d3 Name the module based on the rule below
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5349 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 08:03:36 +00:00
qwang12 79c144086a Name the module based on the rule below
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5348 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 07:00:08 +00:00
qwang12 d00d0b12ac Rename the module based on the naming rule
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5347 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:56:36 +00:00
qwang12 b6b2bb74df add a comment about why gEfiPeiMemoryDiscoveredPpiGuid is used as dpx.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5346 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:15:06 +00:00
qwang12 b1a025efdb Add FvHobToFvInfoThunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5345 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:13:38 +00:00
qwang12 9161f07ce2 Remove unused include file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5344 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:12:19 +00:00
qwang12 07567c3c32 Add more comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5343 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-12 08:56:55 +00:00
qwang12 da3ce3d0ae remove reference to the obsolete EFI_LIGHT_ISA_IO_PROTOCOL. This protocol is introduced for size reduction. But later this method is obsoleted as EDK II use feature flags to conditional mask off some code. As EDK II core code does not produce this protocol so we remove all reference to this protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5340 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-11 05:26:24 +00:00
qwang12 f21c37708d install mReadOnlyVariableThunkPresent PPI to insure that only one ReadOnlyVariable thunk driver can be present in the platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5337 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 07:21:00 +00:00
qwang12 185be2e02b Change notification function to the correct protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5336 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 06:11:27 +00:00
qwang12 cd28997564 fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5335 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 06:09:26 +00:00
qwang12 008a518953 change >> to RShiftU64 function call to avoid compiler to insert __aullshr intrinsic.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5332 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-05 06:31:24 +00:00
qwang12 137c54acda Install a Framework SetupBrowser protocol interface. But this interface will return EFI_UNSUPPORTED. This is to satisfy that some platform/chipset code may located this protocol but never invoke either of these two interfaces in the protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5331 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-05 06:19:12 +00:00
qwang12 2be3c94664 Update to doxygen comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5310 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 09:02:49 +00:00
qwang12 001d920c76 1) Add in FvFileLoaderToLoadFileThunk.
2) Update some doxygen comments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5309 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 08:50:42 +00:00
qwang12 67ef3cad3b 1) add in DeviceIoToPciRootBridgeIoThunk
2) Change BaseMemoryLib instance to BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf so that we can verify the IPF build for Compatibility modules.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5308 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 07:12:06 +00:00
qwang12 6ea838c360 Layer AllocateBuffer and FreeBuffer on the PciRootBridgeIo too.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5307 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 06:22:28 +00:00
qwang12 fd4ae73375 add in DeviceIoToPciRootBridgeIoThunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5306 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-28 09:11:50 +00:00
jljusten b233cbe5cc edk2/EdkCompatibilityPkg/Foundation/Protocol/Performance/Performance.h:
Change type for PdbFileName to CHAR8 from UINT8 since it is a string.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5301 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-27 03:18:10 +00:00
jljusten b562e7f509 edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/IfrOpCodeCreation.c
Match casting for LocalBuffer with the same type that it was declared with.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5300 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-27 03:15:43 +00:00
jljusten ff8dd84a08 edk2/EdkCompatibilityPkg/Foundation/Efi/Include/EfiTypes.h:
Merge from edk2/MdePkg/Include/*/ProcessorBind.h.
  Needed for better compatibility with GCC.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5299 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-27 02:56:24 +00:00
jljusten 10d315bc80 edk2/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib
Include/EdkIIGlueDxe.h
 Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c
 Library/EdkDxeRuntimeDriverLib/Common/RuntimeService.c
  Fix include filenames for GCC/Linux.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5298 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-27 02:24:49 +00:00
jljusten 8ad319e5c1 edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/(Ia32|X64)/*.S:
Fix to support building with GCC and ECP's EdkIIGlueLib.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5294 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-26 21:59:52 +00:00
jljusten 297c148b7a edk2/EdkCompatibilityPkg/Foundation/Include/(Ia32|X64)/EfiBind.h:
Merge from MdePkg/Include/(Ia32|x64)/ProcessorBind.h
  for GCC support.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5293 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-26 21:55:35 +00:00
jljusten b96b676f11 edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Handle.c:
Resolve warning on GCC compiler.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5290 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-26 06:16:59 +00:00
jljusten ee3f13d539 edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/BaseMemoryLib.inf:
Match filename case for files under the X64 directory. (x64 => X64)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5289 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-26 06:12:49 +00:00
qhuang8 3149b37794 Use EDK library macro for EDK library function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5285 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-23 05:42:44 +00:00
qwang12 1668bd49c9 1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
2) Remove the duplicated functions implementation  from the modules that reference these APIs 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5284 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-23 05:31:39 +00:00
jljusten bfe03264cb edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c:
Merge from edk2\MdePkg\Library\PeiMemoryAllocationLib\MemoryAllocationLib.c
  to achieve better support for additional compilers.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5280 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:46:47 +00:00
jljusten bd2d157b9d edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/*:
Merge from edk2/MdePkg/Library/BaseMemoryLib and
  edk2/MdePkg/Library/BaseMemoryLibRepStr to achieve better
  support for additional compilers.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5279 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:42:13 +00:00
jljusten 3f8f7fa5ba edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/*:
Merge from edk2/MdePkg/Library/BaseLib to achieve better
  support for additional compilers.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5278 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:37:38 +00:00
jljusten e2955fba07 Merge from edk2/MdePkg/Library/BaseIoLibIntrinsic to achieve better
support for additional compilers.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5277 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:33:19 +00:00