summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility
AgeCommit message (Collapse)Author
2013-04-251. Use the check IsAddressValid() to prevent SMM communication buffer ↵lzeng14
overflow in SmmVariable, FtwSmm, FpdtSmm, SmmCorePerformance and SmmBaseHelper, and add check to prevent InfoSize overflows in SmmVariableHandler. 2. Refine the debug message. 3. Add check to make sure the input VariableName is A Null-terminated string. 4. Use local variable to hold StrSize (VariableName) to avoid duplicated StrSize calculation. Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14317 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-28Save/Restore missing volatile registers (XMM0-5) save/restore in Page Fault ↵vanjeff
handler. Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13974 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-12Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space ↵lzeng14
which is not required to be restored by OS. Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13935 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-12Free the buffer allocated by GetSectionFromAnyFv() when exit, and add Error ↵lzeng14
Status Check for InstallProtocolInterface(), GetSectionFromAnyFv() return. Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13933 6f19259b-4bc3-4df7-8a09-765794883524
2012-08-28Fix comparisons of enumerated types which may cause warnings for some compilers.rsun3
Signed-off-by: Sun Rui <rui.sun@intel.com> Reviewed-by: Gao Liming <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13686 6f19259b-4bc3-4df7-8a09-765794883524
2012-07-02EdkCompatibilityPkg MpServicesOnFrameworkMpServicesThunk: Update .S files to ↵rsun3
be consistent with corresponding .asm files. Signed-off-by: Sun Rui <rui.sun@intel.com> Reviewed-by: Tian Feng <feng.tian@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13481 6f19259b-4bc3-4df7-8a09-765794883524
2012-06-26EdkCompatibilityPkg SmmBaseHelper: In SmmHandlerEntry(), add check to ensure ↵rsun3
CommBuff+CommBuffSize is outside of SMRAM. Signed-off by: Sun Rui <rui.sun@intel.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13472 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31Fixed build failed.ydong10
Signed-off-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13406 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-30Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more ↵ydong10
info. Also replace old interface with new one. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13375 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-10Enhance the logic when extract data from storage.ydong10
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13301 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-151. Updated S3Resume2Pei to save IA32 IDT table setup in protected mode. vanjeff
2. Updated BootScriptSaveOnS3SaveStateThunk restore IA32 IDT table before transferring to protected mode. It could support exception handler in 32-bit Framework Boot Script code. Signed-off-by: vanjeff Reviewed-by: jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13099 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of ↵lzeng14
0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record. Signed-off-by: lzeng14 Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12749 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21PI 1.2 Errata C: A new return condition is added for the returned status ↵rsun3
code EFI_INVALID_PARAMETER for SMM Control2 Protocol.Trigger(). signed-off-by: rsun3 reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12743 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-19Avoid using code name in comments.niruiyu
Signed-off-by: niruiyu Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12552 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-29Add more check to avoid access violation.ydong10
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12470 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-28EdkCompatibilityPkg SmmBaseHelper: Fix PageFaultHandlerHook assembly code to ↵rsun3
use AL register for return value from PageFaultHandler(). Signed-off-by: rsun3 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12466 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-26EdkCompatibilityPkg MpServicesOnFrameworkMpServicesThunk: Check for x2APIC ↵rsun3
mode before accessing the APIC ID register in RendezvousFunnelProc(). Contributed by Bruce Losure. Signed-off-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12442 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-20Clean up the private GUID definition in module Level.lgao4
Signed-off-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12386 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-31EdkCompatibilityPkg: Add BootScriptThunkHelper driverjljusten
Signed-off-by: jljusten Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12247 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-30Enhance the SmmBaseHelper driver to support changing ↵rsun3
SMBASE/IORestart/AutoHALTRestart CPU Save State registers for Framework SMM driver. Signed-off-by: rsun3 Reviewed-by: jfan12 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12230 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-01Create smbios table before ReadyToBoot event. For SMBIOS thunk driver, ↵li-elvin
create/update smbios table in configuration table when each field is updated. Signed-off-by: li-elvin Reviewed-by: lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12066 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-01Clean and split AcpiVariable.h in IntelFrameworkModulePkg into 2 new .h ↵rsun3
files for better modularity: IntelFrameworkModulePkg\Include\Guid\AcpiVariableCompatibility.h, MdeModulePkg\Include\Guid\AcpiS3Context.h. Signed-off-by: rsun3 Reviewed-by: jljusten Reviewed-by: jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12063 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-19EdkCompatibilityPkg: Add DxeSmmReadyToLockOnExitPmAuthThunk driverjljusten
Signed-off-by: jljusten Reviewed-by: mdkinney Reviewed-by: geekboy15a Reviewed-by: jyao1 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12031 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-12EdkCompatabilityPkg: Fix build issues with X64 clangandrewfish
Removed passing VA_LIST and some assembly language compatability issues. Did not fix ReportStatusCode passing VA_LIST (non-ANSI C Code), and some of the assembler was not not ported and int 3 was inserted, as it likely is not needed. signed-off-by: andrewfish reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12006 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-27EdkCompatibilityPkg: Add AcpiVariableHobOnSmramReserveHobThunkjljusten
Signed-off-by: jljusten Reviewed-by: mdkinney Reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11904 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-08String Reference Cleanup.lzeng14
Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11762 6f19259b-4bc3-4df7-8a09-765794883524
2011-05-30Update code to pass packaging tool.lzeng14
Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11712 6f19259b-4bc3-4df7-8a09-765794883524
2011-05-20Refine all R9 call back function to return EFI_UNSUPPORTED for all ↵ydong10
unsupported call back type. Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11680 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-27Fix 2 BootScript thunk issue on MEM_POLL.jyao1
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-20Add missing Type 35 support and correct SmbiosFldMiscType13 implementation.lzeng14
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11571 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-30Update inf file to follow spec.ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11453 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-14Enhance inf file to follow inf spec.ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11389 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-10Update module to pass in a valid EFI_HANDLE when is reloads and restarts ↵mdkinney
itself using the PeCoffLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11364 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-07ECP package BootScriptSaveOnS3SaveStateThunk driver needs to support ↵lgao4
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-01-28Don't need to update its copy right. It is same to previous version. lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11282 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-28Roll back previous change. GCC assembly file should use .S postfix. lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11280 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-24Correct file name. lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11269 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-05Correct return value check.jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11227 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-26Fix CYG GCC build fail on retf.jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11202 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-25Replace @@ symbol since GCC does not recognize it.jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11201 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-24Fix GCC build failure.jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11200 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-22Fix boot script thunk issue that we need dispatch in PEI mode for Framework ↵jyao1
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-10Add missing fields of Type 4 conversion.li-elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11148 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-28Correct Comments.lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10984 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12Add Framework SMM Status Code Protocol on PI SMM Status Code Protocol Thunk ↵rsun3
driver. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10918 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-13Refine some code to make code run safely.ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10873 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-10Refine some code to make the code run safely.ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10863 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-27Program virtual wire mode and disable LINT0 and LINT1 in ApProcWrapper() of ↵rsun3
MpServicesOnFrameworkMpServicesThunk. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10828 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-23Update MpServicesOnFrameworkMpServicesThunk to consume Local APIC library.rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10815 6f19259b-4bc3-4df7-8a09-765794883524
2010-08-17SmmBaseHelper: Update MP state in Framework SMST before transferring control ↵rsun3
to Framework SMM driver entry point. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10802 6f19259b-4bc3-4df7-8a09-765794883524