Commit Graph

382 Commits

Author SHA1 Message Date
qwang12 90eff00547 update comment
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6848 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 13:35:03 +00:00
qwang12 d8444a2766 1) GCC Clean up.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6847 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 13:32:35 +00:00
gikidy 9e21d6d026 Change function IpfFlushCacheRange() to AsmFlushCacheRange() follow the Mde_Lib_Spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6835 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 06:56:34 +00:00
qwang12 2b534a7c09 Fix a bug of not initialize Private->PciRootBridgeIo correctly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6832 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 06:13:53 +00:00
xli24 9fd4915feb Use .radix directive that GCC assembly supports.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6830 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 06:06:00 +00:00
qwang12 8138a06bf7 a statement ".radix D" which cause build break for *NIX IPF tool-chain. This is temperarily comment out. This .s file will be reimplemented to follow EDKII's MdePkg's BaseLib's IPF instruction flush code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6829 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 05:24:43 +00:00
gikidy 97f201c47e Follow the Mde_Lib_Spec to fix the function PeCoffLoaderUnloadImage() IN/OUT issue about definition and implementation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6827 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 02:04:19 +00:00
qwang12 d87a4d5757 UNIX GCC cleanup: file name is case sensitive.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6824 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-04 01:32:07 +00:00
qwang12 aa274d2a3a 1) Add in EcpEfiBreakPoint and EcpMemoryFence which will be defined as EFI_BREAKPOINT and MEMORY_FENCE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6820 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-03 13:53:50 +00:00
qwang12 81c56b8d1a Unix GCC cleanup:
File name is case sensitive.
Foward slash is used.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6819 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-03 13:50:50 +00:00
qwang12 f90eb36c15 1) Add in EcpEfiBreakPoint and EcpMemoryFence which will be defined as EFI_BREAKPOINT and MEMORY_FENCE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6806 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-02 14:35:15 +00:00
qwang12 03254710db 1) Fix a bug of DefaultVarStoreId of the Form Set should be used when Framework IfrSupportLib create new opcode.
2) Remove the unnecessary OpcodeCreation.h 
3) Update the doxygen function header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6787 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-01 07:16:55 +00:00
qwang12 168da756c6 Fixed a error although Math.c is not built include for building.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6785 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-01 02:39:49 +00:00
qwang12 0fc1f8f234 GCC Cleanup: Files name should match the case in the file system.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6784 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-01 02:38:31 +00:00
qwang12 6bc3c115ba GCC cleanup: forward slash used.o
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6783 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-01 02:32:20 +00:00
qwang12 6800062768 Move GlueLib's PeiPerformanceLib and DxePerformanceLib to [Components.IA32,Components.X64] and [Libraries.IA32,Libraries.X64] as the ECP implementation use AsmReadTsc () function (IA32/X64 only).
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6779 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-29 09:09:03 +00:00
qwang12 ba428fb4ed Add CompilerStubLib_Edk2.inf which is built by EDK II tool chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6778 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-29 07:38:29 +00:00
qwang12 d437caa0fa Add CompilerStubLib_Edk2.inf which is built by EDK II tool chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6777 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-29 07:37:49 +00:00
qwang12 bc4c047f7b 1) Revert the original CompilerStubLib.inf which will be built by EDK tool chain. CompilerStubLib_Edk2.inf is the one that should be built by EDK II tool chain.
2) Revert the memcpy.c and memset.c. We use CompilerStubLib_Edk2.inf to switch the file combinations that are built under differnt tool-chains.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6776 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-29 07:36:43 +00:00
qwang12 48a59ce09a Update the entry point function's prototype.
Add Doxygen function header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6769 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-28 01:21:54 +00:00
qwang12 bad2ca8ed0 Update the entry point function's prototype.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6768 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-28 01:21:29 +00:00
xli24 88b6bcec9d Clean ECP for build failure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6760 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-27 07:58:15 +00:00
qwang12 e24d48ac46 1) Initialize return value for UefiOp for all execution path.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6748 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-27 02:43:22 +00:00
qwang12 5990ace9f5 ICC IA32 Cleanup.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6746 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-27 02:22:59 +00:00
qwang12 cec4aed1a9 GCC/ICC Cleanup.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6743 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-27 02:05:01 +00:00
qwang12 35d297c7ac PI defines the architectural way to get PeiServicesTablePointer from sizeof (UINTN) bytes before the IDT table base. Add the runtime detection of PI version so that Mm7 Library instance is usable under PI 1.0 system.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6739 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-26 11:28:02 +00:00
qwang12 b6228a086f add ULL suffix to Long Long number.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6738 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-26 11:27:06 +00:00
qwang12 1aaf8feb94 add ULL suffix to PEI_SERVICES_SIGNATURE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6737 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-26 11:25:34 +00:00
qwang12 3321fa09f0 1) Add in SharingStringPack to make UpdateString only create/update string token in the String Packages that shares String Package with each other. For a String Token to be updated in a Package, TagGUID must be the same and SharingStringPack need to be true too.
If a package list has both String Package and Form Package registered, the Create/Update of String Token will only be done in this Package List.
2) Add in Doxygen Function headers.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6736 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-26 11:02:31 +00:00
qwang12 70d72ba978 1) StrGather (Build.exe) in compatible mode add a Framework Package Header to replace the original “ArrayLength” generated in the output.
2) VfrCompiler in compatible mode add a Framework Package Header to replace the original “ArrayLength” generated in the output.
3) HII Thunk module nows support Narrow Font registered using Framework New Pack HII interface.
4) Fix a bug in IfrLibCreatePopUp2 by updating the prototype. The previous way of using VA_START to get the address of parameter in the argument list and expecting the parameters that follows will be found using VA_ARG macro is wrong. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6672 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-21 15:07:50 +00:00
qwang12 cae5044b4a GCC Build Clean: Add doxygen comment and fix build break issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6647 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-20 06:27:17 +00:00
qwang12 19caab516d 1) Covert the FvAttributes back to format defined in Framework spec after calling the PI FV Protocol. This behavior is defined in Framework spec.
2) Set the EFI_FV_FILE_ATTRIB_MEMORY_MAPPED before calling PI FV Protocol->WriteFile interface.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6612 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 14:20:01 +00:00
qwang12 9e99ce325a Covert the FvAttributes back to format defined in PI spec after calling the Framework FV Protocol. This behavior is defined in PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6611 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 14:18:25 +00:00
qwang12 6d8f3e5d57 EBC Cleanup: BaseIoLibIntrinsic is only supported for IA32, IPF, X64
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6610 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 13:55:17 +00:00
qwang12 73396ac275 EBC Cleanup: _break is already defined in EdkCompatibilityPkg\Foundation\Include\Ebc\EfiBind.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6609 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 13:53:57 +00:00
qwang12 9a737ffeab Remove unused comment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6605 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 10:04:51 +00:00
qwang12 9836611611 1) Change the EFI_SPECIFICATION_VERSION to 0x00020000 and PI_SPECIFICATION_VERSION to 0x00009000. EdkCompatibilityPkg.dsc by default support UEFI 2.0 and Framework 0.9x.
2) Replace using these EDK 2 style INF file so that EdkCompatibilityPkg.dsc can be built under GCC, ICC and MSFT tool-chain.
EfiCommonLib_Edk2.inf
EfiRuntimeLib_Edk2.inf
Thunk16Lib_Edk2.inf
PeiLib_Edk2.inf
CpuIA32Lib_Edk2.inf

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6604 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 10:03:39 +00:00
qwang12 a7875fb808 ICC Cleanup.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6603 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:58:36 +00:00
qwang12 1bfbd131fa ICC Cleanup:
#if __INTEL_COMPILER

//
// Disable the extra ";" warning;
// All places referencing EFI_GUID_STRING MACRO will generate this error.
//
#pragma warning ( disable : 424 )

//
// error #593: variable "Status" was set but never used
// This error may be flagged if a function only do ASSERT on return status when 
// EFI_DEBUG is not defined (EDK's ASSERT will be defined as empty statement).
// To make EdkCompatibilityPkg buildable by ICC with EFI_DEBUG undefined, disable
// this warning.
//
#pragma warning ( disable : 593 )

//
// Disable ICC's remark #869: "Parameter" was never referenced warning.
// This is legal ANSI C code so we disable the remark that is turned on with -Wall
//
#pragma warning ( disable : 869 )

//
// Disable ICC's remark #1418: external function definition with no prior declaration.
// This is legal ANSI C code so we disable the remark that is turned on with /W4
//
#pragma warning ( disable : 1418 )

//
// Disable ICC's remark #1419: external declaration in primary source file
// This is legal ANSI C code so we disable the remark that is turned on with /W4
//
#pragma warning ( disable : 1419 )

#endif

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6602 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:57:59 +00:00
qwang12 78d9194775 ICC cleanup: Add in (CONST EFI_PEI_SERVICES **)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6601 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:56:50 +00:00
qwang12 71f633dd05 ICC cleanup: Add in (CONST EFI_PEI_SERVICES **)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6600 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:56:38 +00:00
qwang12 89f048160a ICC cleanup: add EFI_PEI_TRANSFER_CONTROL_SET_JUMP and EFI_PEI_TRANSFER_CONTROL_LONG_JUMP data cast.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6599 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:56:27 +00:00
qwang12 ec5ed91eef ICC cleanup: Add in (CONST EFI_PEI_SERVICES **)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6598 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:52:43 +00:00
qwang12 16bd006b23 ICC cleanup: #undef previously defined _DEBUG.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6597 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:52:11 +00:00
qwang12 e70330e0e3 Bug Fix: Define CPU_STACK_ALIGNMENT for each ARCH.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6596 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 09:50:35 +00:00
qwang12 d9ef3b7dc4 GCC Cleanup: UINT8_MAX is defined already in standard header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6594 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 08:33:30 +00:00
qwang12 6b6f745214 ICC Cleanup: add data typecast after arithemtics.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6593 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 08:12:25 +00:00
qwang12 c44a5016b3 ICC Cleanup: Remove the unnecessary ',' in the last enum.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6592 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 08:11:23 +00:00
qwang12 0d37437d28 GCC Cleanup: Define EFI_BREAKPOINT for GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6591 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 08:10:49 +00:00
qwang12 b8773e24c6 GCC Cleanup: Remove the duplicated typedef and include the header files instead.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6590 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-18 08:09:40 +00:00