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
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
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
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
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
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
jljusten
8e98644530
edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ReportStatusCode.c:
...
Fix warning from Intel Compiler.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5276 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:29:56 +00:00
jljusten
d04f2a1fb7
edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/X64/CopyMem.asm:
...
Merge fix from r3913:
"Fix bug in backward copy for x64"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5275 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:27:44 +00:00
jljusten
b9b478088b
edk2/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h:
...
Add Intel Compiler fixes similar to r5123
edk2/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5274 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:24:08 +00:00
jljusten
221781879c
edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Common/EdkIIGlueDefinitionChangesPeim.h:
...
Remove duplicate definition of EFI_PEI_CPU_IO_PPI.
Previous definition was in
edk2\EdkCompatibilityPkg\Foundation\Framework\Include\PeiApi.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5273 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 23:20:30 +00:00
jljusten
e68757dee8
edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueBase.h:
...
Similar to previous change in TianoBind.h in r5123
for the Intel compiler.
Include <EfiBind.h> instead of "EfiBind.h", or
for some reason __STDC_VERSION__ is not defined.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5272 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 19:05:40 +00:00
qwang12
1e55f6a46b
1) Change Framework version of PeiServiceTable's PciCfg from PEI_PCI_CFG_PPI to ECP_PEI_PCI_CFG_PPI. This help to detect if user is calling PeiServiceTable->PciCfg->Modify in a PI platform. Modify between Framework spec and PI spec is not compatible.
...
2) Add ECP_PEI_PCI_CFG_PPI to EdkFrameworkPpiLib
3) Add PeiLibPciCfgModify which call PciCfg2. This function will used by modified Framework Module which will be working with a PI platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5260 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-21 07:21:30 +00:00
lgao4
dc2e539a34
Assert() break point default is DEADLOOP().
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5188 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-09 06:30:03 +00:00
qwang12
6f33781141
Re-enable ExtractDataFromHiiHandle and FindHiiHandle. The Framework to HII Thunk layer has enable these two functions to be called by the module that written against Framework HII spec.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5176 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-07 09:02:59 +00:00
jljusten
4cb43192bd
Fix various warnings with the Intel C compiler.
...
EfiBind.h:
* Adding ignores for certain warnings with the Intel C compiler.
(Partially merged from MdePkg.)
EfiPxe.h:
* Make sure PXE_NO_UINT64_SUPPORT is defined
Decompress.c:
* Removed 'unreachable' return statement.
EdkCompatibilityPkg/**: (all other files)
* Remove trailing comma from last value in enum.
* Include <EfiBind.h> instead of "EfiBind.h", or
for some reason __STDC_VERSION__ is not defined.
* Introduce more explicit function call ordering by
storing results in local variables before using
in a calculation.
* Add some additional casting for BOOLEAN & UINT8
following calculations which change the type to 'int'.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5123 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-24 16:21:53 +00:00
qwang12
76a21f7ce8
Add in Macro named SUPPORT_DEPRECATED_IFRSUPPORTLIB_API to comment out the functions that will be not be supported by EdkCompatibilityPka's FrameworkHiiToUefiHiiThunk module. We choose not to support these function as they are not commonly used by modules.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5084 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-17 13:39:39 +00:00
qwang12
6d9a6cf062
Add the filed FormValue to Framework's EFI_HII_UPDATE_DATA. This change keeps the definition of EFI_HII_UPDATE_DATA to be the same between EdkCompatibilityPkg and EDK II's IntelFrameworkPkg. HII 0.92 has this definition the field.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5083 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-17 13:32:24 +00:00
lgao4
90d44b32f4
Add EFI_D_INFO and EFI_D_WARN to the default print level.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5080 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-17 09:56:05 +00:00
jljusten
e1a09a0eaa
Remove ambiguous auto-increment usage. (gcc warning)
...
(This code change is in sync with BaseTools TianoCompress code.)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5057 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 23:31:48 +00:00
jljusten
02d99367c7
Remove empty typedefs (gcc warning).
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5056 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 23:24:29 +00:00
jljusten
3e71187c5c
Remove duplicate definition of TPM_CHOSENID_HASH.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5055 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 23:22:23 +00:00
jljusten
5f7d6886ad
Remove duplicate definition of PEI_MASTER_BOOT_MODE_PPI.
...
This definition would not have belonged in this file in the first place.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5054 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 23:21:15 +00:00
jljusten
d196f44fdc
Remove duplicate definition of EFI_REPORT_STATUS_CODE.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5053 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 23:18:07 +00:00
jljusten
0dbeedde34
Fixed several include filename issues for gcc+unix.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5046 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 20:24:11 +00:00
jljusten
db13e3c00b
edk2/EdkCompatibilityPkg/Foundation/Efi/Include/EfiTypes.h:
...
UNALIGNED is already defined by including 'windows.h' in the
EdkCompatibilityPkg/Sample/Library/Dxe/WinNt/WinNtLib.inf module.
For X64/IPF, the definition (via windows.h) is not blank (as
it is here). Therefore, a 're-definition' warning is generated.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5045 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-11 18:08:38 +00:00
jwang36
4965dd562e
Removed one include path which doesn't exist
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4980 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-02 08:09:41 +00:00
qhuang8
57d40fe2af
GCC cleanup for all EDK I DXE libraries.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4969 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-29 04:46:03 +00:00