Commit Graph

637 Commits

Author SHA1 Message Date
mdkinney 043d7c3b91 Clean up DEC files:
1) Remove section header comment blocks that do not provide any information
2) Combine PCDs listed in multiple sections into a single section that supports multiple PCD types to reduce maintenance overhead
3) Remove ModuleTypeList comments from [Includes], [Protocols], [Ppis], and [Guids] sections that do not properly describe the module type restrictions.
4) Clean up formatting of GUID structure declarations
5) Remove ".common" from section names if they are not required.
6) Order sections consistently as [Defines], [Includes], [LibraryClasses], [Guid], [Ppis], [Protocols], [PcdsFeatureFlag], [PcdsFixedAtBuild], [PcdsPatchableInModule], [PcdsDynamic], and [PcdsDynamicEx]


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11628 6f19259b-4bc3-4df7-8a09-765794883524
2011-05-09 17:48:14 +00:00
mdkinney 775afc8b57 Fix DEC files so any PCD declared as Dynamic is also declared as DynamicEx
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11619 6f19259b-4bc3-4df7-8a09-765794883524
2011-05-04 21:41:17 +00:00
jyao1 54e4b37e36 Fix 2 BootScript thunk issue on MEM_POLL.
1)	MEM_POLL stall time is incorrect.
Framework version: Duration is used for Stall(), which is Microseconds.
                   Total time is: Duration(Microseconds) * LoopTimes.
PI version:        Duration is always 100ns. Delay is LoopTimes.
                   Total time is: 100ns * Delay.
So Delay = Duration(Microseconds) * LoopTimes / 100ns
         = Duration * 1000ns * LoopTimes / 100ns
         = Duration * 10 * LoopTimes

2)	MEM_POLL BitMask/BitValue order is incorrect.
Framework version: First BitMask, then BitValue
PI version: First Data, then DataMask
So we revert their order in function call


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11595 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-27 07:35:20 +00:00
lzeng14 0ec4f1cb6f Add missing Type 35 support and correct SmbiosFldMiscType13 implementation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11571 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-20 02:17:42 +00:00
ydong10 33b71404f0 Update inf file to follow spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11453 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-30 03:38:50 +00:00
ydong10 36f0b7c245 Enhance inf file to follow inf spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11389 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-14 08:36:16 +00:00
mdkinney 6bd01ebce0 Update DebugLib to provide support for "err" command in the EFI Shell to adjust the filter mask for DEBUG() messages. The "err" command provide the ability to adjust this filter mask at a global level through an EFI Variable and at the module level through a the Debug Mask Protocol. In order to support the degree of flexibility, the DebugLib needs to use library to abstract the get/set operations to the filter mask.
1) Add default mappings for the DebugPrintErrorLevelLib to the DSC file for this package.






git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11370 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-10 22:32:53 +00:00
mdkinney ca1677d839 Update module to pass in a valid EFI_HANDLE when is reloads and restarts itself using the PeCoffLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11364 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-10 21:59:39 +00:00
lgao4 a1fe1d6dd8 ECP package BootScriptSaveOnS3SaveStateThunk driver needs to support framework 32bit dispatch code. It must be loaded into <4G memory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11349 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-07 02:23:00 +00:00
hhtian 60d8f1f856 clean non-ASCII char
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11338 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-26 06:23:18 +00:00
lgao4 a34688db37 Don't need to update its copy right. It is same to previous version.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11282 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-28 08:19:23 +00:00
lgao4 1fade6cf65 Roll back previous change. GCC assembly file should use .S postfix.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11280 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-28 05:22:14 +00:00
lgao4 8db466cc13 Correct file name.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11269 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-24 04:54:52 +00:00
lgao4 c10dc4c120 Export EDKII_GLUE_DebugPrintErrorLevel and EDKII_GLUE_DebugPropertyMask macro
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11256 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-18 02:12:32 +00:00
jyao1 b16ad4b87b Correct return value check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11227 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-05 13:43:00 +00:00
jljusten 58b9f0f0ee EdkCompatibilityPkg RuntimeDxe Lib: Fix GCC warning
Fix warning seen with GCC 4.4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11222 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-03 18:53:51 +00:00
lgao4 2a6433fef2 Use SmmStatusCode protocol in EfiInitializeSmmDriverLib() funciton.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11213 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-31 04:36:50 +00:00
jyao1 4eed2dbd89 Fix CYG GCC build fail on retf.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11202 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-26 07:25:12 +00:00
jyao1 ef291d07a1 Replace @@ symbol since GCC does not recognize it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11201 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-25 12:52:52 +00:00
jyao1 6dd67b60c4 Fix GCC build failure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11200 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-24 11:06:17 +00:00
jyao1 47cc0634ba Fix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch function, not in DXE mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11194 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-23 02:20:13 +00:00
jyao1 d766b22843 Fix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch function, not in DXE mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11189 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-22 04:26:08 +00:00
erictian 4e36d6f526 update USB_PORT_STAT_OWNER from 2^11 to 2^13 which is added as a possible value of EFI_USB_PORT_STATUS and is the equivalent of EfiUsbPortOwner of EFI_USB_PORT_FEATURE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11161 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-14 02:50:56 +00:00
li-elvin 5a0c0390e0 Add missing fields of Type 4 conversion.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11148 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-10 08:00:57 +00:00
ydong10 2349cf6f63 Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11143 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 08:25:59 +00:00
ydong10 54790583c0 Refine code to make code more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11123 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 09:14:47 +00:00
lgao4 3e99020dbf Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11094 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-26 01:54:49 +00:00
li-elvin be3b67bca5 Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11046 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-12 07:45:08 +00:00
lgao4 cccdc95f79 Correct Comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10984 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-28 02:44:00 +00:00
jljusten 2b0fcbf537 EdkCompatibilityPkg: Re-add VA_COPY macro
This macro was lost in r10585.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10930 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:54 +00:00
rsun3 2b8999e131 Add Framework SMM Status Code Protocol on PI SMM Status Code Protocol Thunk driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10918 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12 04:01:18 +00:00
ydong10 52fb4d3d13 Refine some code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10873 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-13 10:46:02 +00:00
ydong10 e009609938 Refine some code to make the code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10863 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-10 01:04:00 +00:00
rsun3 1aa8ced11e Program virtual wire mode and disable LINT0 and LINT1 in ApProcWrapper() of MpServicesOnFrameworkMpServicesThunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10828 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-27 03:47:42 +00:00
rsun3 9166e5f567 Add Local APIC library mapping.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10816 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-23 06:55:48 +00:00
rsun3 0a6374ba6d Update MpServicesOnFrameworkMpServicesThunk to consume Local APIC library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10815 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-23 06:53:10 +00:00
rsun3 5b9fc2f089 SmmBaseHelper: Update MP state in Framework SMST before transferring control to Framework SMM driver entry point.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10802 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-17 09:43:50 +00:00
xli24 6c45642e2b Add boundary check against APIC ID.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10757 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-30 09:09:24 +00:00
lgao4 6401e5ff13 Correct the check for macro definition __EDKII_GLUE_PEI_HOB_LIB__.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10719 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-30 07:46:38 +00:00
xli24 133238cb10 Fix GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10715 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-30 02:00:53 +00:00
xli24 d6d858c4b7 Fix the risk of AP stack conflict.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10714 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-30 01:49:51 +00:00
lgao4 2a0879aa03 Use local version EfiScriptLibAsciiStrLen() and EfiScriptLibStrLen() function to get string length so that this library doesn't depend on other EDK libraries and it can be linked together with EdkIIGlueLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10711 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-29 05:38:39 +00:00
lgao4 712a5698a6 Sync fix on MdePkg r9982.
Do not set gBS to NULL when the ExitBootServices event notification for the UEFI Runtime Lib is executed.

There is no guarantee that the ExitBootServices notification function from this lib will be the last ExitBootServices notification function registered by a module that uses the UEFI Runtime lib.  If additional ExitBootServices notification functions require the use of gBS, then setting to NULL will break those additional ExitBootServices notification functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10709 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-29 02:39:37 +00:00
andrewfish 830db4123a Fix Xcode build break.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10699 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-27 22:12:11 +00:00
vanjeff 74f895276a 1. Consume Debug Agent Library to support debugging AP code based on PI MP protocol.
2. Copy LVT Timer setting from old BSP to new BSP when SwitchBsp() to make sure debug timer worked after bsp switched.
3. Save and restore old BSP's TSC value to new one.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10698 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-27 07:40:20 +00:00
rsun3 6a60f8cb11 Fix a bug in SmmBaseHelper driver that the JMP instruction which jumps to the original page fault handler is incorrect.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10681 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-22 06:29:29 +00:00
lgao4 2496b46512 1. Update FFS_FIXED_CHECKSUM to 0xAA to match PI FV image generated by EDKII build tool.
2.  Clean up EfiScriptLib by removing unused EfiDriverLib from its INF file.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10662 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-19 05:33:56 +00:00
andrewfish 1beb1af938 Fixes for the ARM port of SCTs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10656 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-16 15:53:39 +00:00
andrewfish c14164f4f3 Ported more of EdkCompatabilityPkg to ARM to support SCT port.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10641 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-09 00:07:30 +00:00
lgao4 97c0d02fd6 Remove unnecessary volatile for local Index variable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10608 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-28 10:26:41 +00:00