Commit Graph

605 Commits

Author SHA1 Message Date
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
rsun3 c5eef36d69 Add back the removed pair of "#ifndef VA_START" and "#endif" in recent check-in to avoid macro redefinition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10595 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-23 06:55:56 +00:00
jljusten 124969632b EdkCompatibilityPkg: Fix EFIAPI usage inconsistencies
These inconsistencies cause a build error for GCC 4.4 X64.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10587 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-15 02:46:49 +00:00
jljusten 19e2bfe8f0 ECP MpServicesOnFrameworkMpServicesThunk: Fix build with GCC
Add definitions for IdtrProfile (IA32) and IdtrLocation (X64) into
GCC assembly code files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10586 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-15 02:46:22 +00:00
jljusten 5f68233c6f EdkCompatibilityPkg VA_LIST: Fix build issue with GCC 4.4
Merge from MdePkg/Include/Base.h to fix build issues with GCC 4.4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10585 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-15 02:46:03 +00:00
jljusten 0e7e330262 EdkCompatibilityPkg IA32 EfiBind.h: Do not include stdint.h
Merge from MdePkg/Include/Ia32/ProcessorBind.h.  Do not include
stdint.h.  Instead define the basic types ourselves.

This fixes a build issue with GCC on X64 Linux.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10584 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-15 02:45:51 +00:00
lgao4 0ccabf7bab Initialize the local variable before refer to them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10577 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-12 03:14:26 +00:00
vanjeff de243ee444 1.Restore BSP IDT table to AP when AP wakeup.
2.Restore Virtual wire mode on AP when AP wakeup.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10575 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-11 08:24:01 +00:00
lgao4 4ac4deb706 Add more check to make sure code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10574 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-11 07:47:06 +00:00
li-elvin 2788ff5116 Fix the issue that if OEM SMBIOS data includes string, it will cause SmbiosFldMiscTypeOEM buffer overflow.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10569 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-09 02:04:12 +00:00
klu2 5a2bc7144a synchronize interget type definition from MdePkg's processbinding.h to make build pass under GCC44 tool chain
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10543 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-26 05:29:33 +00:00
lgao4 88b3d36a9f Clean up package/platform DSC files by the following steps:
1. Remove PCDs those use the default values/types from the DEC file.
  2. Remove the unused library instances.
  3. Group common library instances in common [LibraryClasses] section as the default library instance for all modules.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10527 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-21 02:49:16 +00:00
rsun3 6a8fb8bab5 Change TPM_BASE to 0 per TPM spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10499 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-18 02:22:51 +00:00
xdu2 30c636a3f2 Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10476 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-10 02:49:26 +00:00
hhtian f57387d54b Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10435 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 12:14:56 +00:00
hhtian 4ea9375a2d Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10434 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 11:56:24 +00:00
hhtian 2c7e5c2feb Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10433 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 11:42:36 +00:00
hhtian 4b1e11214a Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10432 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 11:21:53 +00:00
hhtian 8362d12a17 Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10421 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-24 09:52:28 +00:00
hhtian 584d565227 Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10419 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-24 09:48:54 +00:00
lgao4 983ae8cee2 Add the correct check for the return value before use them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10396 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-22 02:59:29 +00:00
lgao4 9af300fc22 Correct data conversion from pointer to integer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10358 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-12 02:49:28 +00:00
lgao4 e319b2ded9 Add the blank line at the end of file to pass ICC compiler.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10357 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-12 02:12:28 +00:00
lgao4 e9ba23c77d 1. Add the missing function headers.
2.  Update local variable name to match coding style.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10355 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-09 09:15:50 +00:00
lgao4 8180a7aa43 Add the missing CpuLib library instance into EdkCompatibilityPkg.dsc
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10339 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-06 02:37:53 +00:00
jgong5 097e25cbaf Add function comments and refine function parameter IN OUT.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10329 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-02 02:53:41 +00:00
jgong5 ff443d3ebd Use on-demand paging for CpuSaveStates read/write. It was measured about 200us for either read or write the PI CpuSaveStates to framework, ~400us in total on a platform with 80 CPUs with original for loop implementation. So with on-demand paging, if the framework SMI handler doesn’t read/write CpuSaveStates, ~400us will be saved. If the handler happens to use CpuSaveStates, there will be about 20us overhead for either read or write a page which contains 5 continuous CpuSaveStates.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10328 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-02 01:39:19 +00:00
lgao4 35a895c9f8 Remove the unnecessary top level header files in protocol header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10326 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-01 02:29:35 +00:00
lgao4 caeefbfe14 Remove the duplicated UefiRuntimeLib in EdkCompatibilityPkg.dsc
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10325 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-01 02:28:48 +00:00
lgao4 0cf8c2096e 1. Remove the duplicated contents from source files and INF file of PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk module.
2. Add PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk module into EdkCompatibilityPkg.dsc to verify its build on package level. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10319 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-27 05:21:43 +00:00
rsun3 dc2b05a200 Add PI SMM Status Code Protocol on Framework SMM Status Code Protocol thunk driver. This thunk driver produces PI SMM Status Code Protocol and SMM Report Status Code Handler Protocol and it registers a status code handler within itself to route status codes into Framework SMM Status Code Protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10317 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-26 08:44:36 +00:00
rsun3 8edfbe027c Security enhancement to SMM Base thunk drivers: Framework SMM drivers can't be loaded after SMRAM is locked.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10316 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-26 08:41:06 +00:00
hhtian 5878d1511c Not maintained.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10311 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-25 14:44:18 +00:00