mirror_edk2.git
9 years agoFix compatibility issue when using IPF image with PE32 magic value in the OptionalHeader.
sfu5 [Fri, 8 Jun 2012 02:09:48 +0000 (02:09 +0000)]
Fix compatibility issue when using IPF image with PE32 magic value in the OptionalHeader.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13433 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOnly use ports with a network connection (media present) when connecting to a remote...
lpleahy [Thu, 7 Jun 2012 17:38:09 +0000 (17:38 +0000)]
Only use ports with a network connection (media present) when connecting to a remote host.
Fix bug causing early exit with NO_MEDIA.
Add fix to TCP6.

Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13432 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix file name not included in the inf.
ydong10 [Thu, 7 Jun 2012 03:22:13 +0000 (03:22 +0000)]
Fix file name not included in the inf.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13431 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix file guid conflict.
ydong10 [Thu, 7 Jun 2012 03:21:17 +0000 (03:21 +0000)]
Fix file guid conflict.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13430 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmLib: Fixed parameter checking in ArmConfigureMmu()
oliviermartin [Wed, 6 Jun 2012 15:47:23 +0000 (15:47 +0000)]
ArmPkg/ArmLib: Fixed parameter checking in ArmConfigureMmu()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13429 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix memory leak issues.
niruiyu [Wed, 6 Jun 2012 08:41:58 +0000 (08:41 +0000)]
Fix memory leak issues.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13428 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOnly use ports with a network connection (media present) when connecting to a remote...
lpleahy [Mon, 4 Jun 2012 20:38:03 +0000 (20:38 +0000)]
Only use ports with a network connection (media present) when connecting to a remote host.

Signed-off-by: lpleahy
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13427 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUseEfiSocketLib.c - Only exit for out of resources, otherwise use all network adapters.
lpleahy [Fri, 1 Jun 2012 20:01:30 +0000 (20:01 +0000)]
UseEfiSocketLib.c - Only exit for out of resources, otherwise use all network adapters.
Service.c - Return EFI_SUCCESS if any of the protocols are present.  Return failure only when no protocols are available or no more memory available.

Signed-off-by: lpleahy
Reviewed-by: vzimmer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13426 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiPlatformDxe: Fix VS2010 build issue
jljusten [Fri, 1 Jun 2012 17:55:00 +0000 (17:55 +0000)]
OvmfPkg/AcpiPlatformDxe: Fix VS2010 build issue

Reported-by: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13425 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoPcAtChipsetPkg/PciHostBridgeDxe: Improve KVM FIFO I/O read/write performance
jljusten [Fri, 1 Jun 2012 17:07:00 +0000 (17:07 +0000)]
PcAtChipsetPkg/PciHostBridgeDxe: Improve KVM FIFO I/O read/write performance

KVM can substantially boost the speed of the rep insb/insw/insl
and rep outsb/outsw/outsl instructions by transferring up to
a page of data per VM trap.

This change adds assembly handling of the PCI Host Bridge
I/O FIFO Reads and Writes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13424 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance GPT measurement to be able to handle different partition entry size.
gdong1 [Fri, 1 Jun 2012 08:06:37 +0000 (08:06 +0000)]
Enhance GPT measurement to be able to handle different partition entry size.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13422 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix TCG PPI request EnableActivateClear failure.
gdong1 [Fri, 1 Jun 2012 07:58:58 +0000 (07:58 +0000)]
Fix TCG PPI request EnableActivateClear failure.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13421 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine BdsDxe driver and GenericBdsLib library so that the GenericBdsLib doesn't...
niruiyu [Fri, 1 Jun 2012 03:39:39 +0000 (03:39 +0000)]
Refine BdsDxe driver and GenericBdsLib library so that the GenericBdsLib doesn't depend on the BdsDxe implementation.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13418 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix SmmCryptLib issue when calling time() in RealTimeClock.c
tye1 [Fri, 1 Jun 2012 02:37:24 +0000 (02:37 +0000)]
Fix SmmCryptLib issue when calling time() in RealTimeClock.c

Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13417 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: Enhance CompareGuid performance by using CompareMem instead of nested unalign...
oliviermartin [Thu, 31 May 2012 15:28:37 +0000 (15:28 +0000)]
ArmPkg: Enhance CompareGuid performance by using CompareMem instead of nested unaligned read calls

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
Reviewed-by: Olivier Martin olivier.martin@arm.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13409 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFixed build failed.
ydong10 [Thu, 31 May 2012 08:35:48 +0000 (08:35 +0000)]
Fixed build failed.

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

9 years agoChange returned status codes for SmiManage() per PI 1.2.1 spec.
rsun3 [Thu, 31 May 2012 04:06:13 +0000 (04:06 +0000)]
Change returned status codes for SmiManage() per PI 1.2.1 spec.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13394 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove CPU dead loop code from IA32 assembly codes.
vanjeff [Thu, 31 May 2012 01:34:44 +0000 (01:34 +0000)]
Remove CPU dead loop code from IA32 assembly codes.

Signed-off-by: Fan Jeff <jeff.fan@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13388 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiPlatformDxe: Dynamically add Local APIC entries in MADT
jljusten [Wed, 30 May 2012 23:15:59 +0000 (23:15 +0000)]
OvmfPkg/AcpiPlatformDxe: Dynamically add Local APIC entries in MADT

Update MADT processing for QEMU to add additional Local APIC
entries to the MADT.

The MADT is still built with a single Local APIC entry.
If the AcpiPlatformDxe driver determines that more processors
are available, then additional Local APIC entries are added
to the MADT at runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13387 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg ACPI MADT: Make processor IDs zero based
jljusten [Wed, 30 May 2012 23:15:42 +0000 (23:15 +0000)]
OvmfPkg ACPI MADT: Make processor IDs zero based

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13386 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiPlatformDxe: Detect QEMU & Xen
jljusten [Wed, 30 May 2012 23:15:27 +0000 (23:15 +0000)]
OvmfPkg/AcpiPlatformDxe: Detect QEMU & Xen

Detect QEMU & Xen, and allow each to choose how to publish
the individual ACPI tables.

Currently both paths simply publish the tables unmodified.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13385 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Add AcpiPlatformDxe
jljusten [Wed, 30 May 2012 23:15:00 +0000 (23:15 +0000)]
OvmfPkg: Add AcpiPlatformDxe

This driver is currently a direct copy of
MdeModulePkg/Universal/Acpi/AcpiPlatformDxe.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13384 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Add QemuFwCfgLib library class and implementation
jljusten [Wed, 30 May 2012 23:14:38 +0000 (23:14 +0000)]
OvmfPkg: Add QemuFwCfgLib library class and implementation

QEMU's Firmware Configuration interface gives the firmware
access to various types of information.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13383 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellBinPkg: Update binary images to those made from revision 13224 of ShellPkg.
jcarsey [Wed, 30 May 2012 20:10:20 +0000 (20:10 +0000)]
ShellBinPkg: Update binary images to those made from revision 13224 of ShellPkg.

signed-off-by: jaben carsey jaben.carsey@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13382 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fix display of 64-bit BARs in PCI dump on 32-bit systems.
jcarsey [Wed, 30 May 2012 17:38:23 +0000 (17:38 +0000)]
ShellPkg: Fix display of 64-bit BARs in PCI dump on 32-bit systems.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
reviewed-by: jaben carsey jaben.carsey@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13381 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Enable Runtime DXE drivers to make use of Shell libraries with the expectat...
jcarsey [Wed, 30 May 2012 17:34:16 +0000 (17:34 +0000)]
ShellPkg: Enable Runtime DXE drivers to make use of Shell libraries with the expectation that the driver is responsible for ensuring that they are only called when boot services are present.  Also adds a ShellCommandLib Depex for gEfiUnicodeCollation2ProtocolGuid to fix constructor crash when used by drivers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
reviewed-by: jaben carsey jaben.carsey@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13380 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRecord LoadImage perf log for LoadImageEx() and use NULL as Handle to record StartIma...
lzeng14 [Wed, 30 May 2012 10:48:50 +0000 (10:48 +0000)]
Record LoadImage perf log for LoadImageEx() and use NULL as Handle to record StartImage perf log when StartImage() fails.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13379 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoLoadedImageDevicePath protocol may be installed with NULL device path, so add check...
lzeng14 [Wed, 30 May 2012 10:36:52 +0000 (10:36 +0000)]
LoadedImageDevicePath protocol may be installed with NULL device path, so add check before using the device path.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13378 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix IA32 build fail.
lzeng14 [Wed, 30 May 2012 09:11:52 +0000 (09:11 +0000)]
Fix IA32 build fail.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13377 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoNew EDK Shell binary(r59).
niruiyu [Wed, 30 May 2012 09:08:33 +0000 (09:08 +0000)]
New EDK Shell binary(r59).

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13376 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
ydong10 [Wed, 30 May 2012 07:36:00 +0000 (07:36 +0000)]
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more 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

9 years agoMdePkg SmmCpu.h: Add EFI_SMM_SAVE_STATE_REGISTER_PROCESSOR_ID in enum EFI_SMM_SAVE_ST...
rsun3 [Wed, 30 May 2012 05:24:42 +0000 (05:24 +0000)]
MdePkg SmmCpu.h: Add EFI_SMM_SAVE_STATE_REGISTER_PROCESSOR_ID in enum EFI_SMM_SAVE_STATE_REGISTER Per PI 1.2.1 spec.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13374 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAccording to UEFI spec 2.3.1a. hardware error record variable should use the EFI_HARD...
lzeng14 [Wed, 30 May 2012 02:53:10 +0000 (02:53 +0000)]
According to UEFI spec 2.3.1a. hardware error record variable should use the EFI_HARDWARE_ERROR_VARIABLE VendorGuid and have the L"HwErrRec####" name convention, #### is a printed hex value and no 0x or h is included in the hex value.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13373 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoReturn EFI_WRITE_PROTECTED when setting HwErrRecSupport Global Variable at runtime.
lzeng14 [Wed, 30 May 2012 02:42:26 +0000 (02:42 +0000)]
Return EFI_WRITE_PROTECTED when setting HwErrRecSupport Global Variable at runtime.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13372 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnable wide string for title and help string
ydong10 [Tue, 29 May 2012 11:07:05 +0000 (11:07 +0000)]
Enable wide string for title and help string

Sign-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@13371 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/Ata: Clear PxCmd.SUD bit when the port has no device presented at AHCI...
erictian [Tue, 29 May 2012 07:05:33 +0000 (07:05 +0000)]
MdeModulePkg/Ata: Clear PxCmd.SUD bit when the port has no device presented at AHCI mode.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13370 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/Ata: Use a new Pcd named "PcdAtaSmartEnable" to control if enabling...
erictian [Tue, 29 May 2012 06:59:26 +0000 (06:59 +0000)]
MdeModulePkg/Ata: Use a new Pcd named "PcdAtaSmartEnable" to control if enabling S.M.A.R.T feature by default.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13369 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate DxeCore and FwVolDxe drivers to inherit authentication status for the FV image...
lzeng14 [Tue, 29 May 2012 05:22:01 +0000 (05:22 +0000)]
Update DxeCore and FwVolDxe drivers to inherit authentication status for the FV image, if the image came from an FV image file and section in another firmware volume.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13368 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOptimize the log entry search algorithm to save boot performance.
lzeng14 [Tue, 29 May 2012 05:02:43 +0000 (05:02 +0000)]
Optimize the log entry search algorithm to save boot performance.
1. Search from the first entry can be changed to Search from the end entry, because most End just follows its Start.
2. Match Start and End entry, the first comparison can be changed from Handle to EndTimeStamp, because only zero EndTimeStamp is required to be matched.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13367 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine the code to follow coding style.
ydong10 [Mon, 28 May 2012 07:03:26 +0000 (07:03 +0000)]
Refine the code to follow coding style.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13366 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate to use correct file name for video option.
niruiyu [Mon, 28 May 2012 06:37:32 +0000 (06:37 +0000)]
Update to use correct file name for video option.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13365 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix a bug in DxeImageVerificationLib to use the correct certificate length when verif...
sfu5 [Mon, 28 May 2012 04:51:53 +0000 (04:51 +0000)]
Fix a bug in DxeImageVerificationLib to use the correct certificate length when verifying a signed EFI image.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13364 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix build failed
ydong10 [Mon, 28 May 2012 02:39:50 +0000 (02:39 +0000)]
Fix build failed

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13363 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine logic about validate boot option.
ydong10 [Fri, 25 May 2012 05:04:13 +0000 (05:04 +0000)]
Refine logic about validate boot option.

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@13362 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMove PcdExtFpdtBootRecordPadSize to the correct PCD section in MdeModulePkg.dec to...
lgao4 [Fri, 25 May 2012 03:25:43 +0000 (03:25 +0000)]
Move PcdExtFpdtBootRecordPadSize to the correct PCD section in MdeModulePkg.dec to support all PCD types.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13360 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCorrect a bug in AsmCpuidEx() to return correct ECX and EDX.
niruiyu [Fri, 25 May 2012 03:02:26 +0000 (03:02 +0000)]
Correct a bug in AsmCpuidEx() to return correct ECX and EDX.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13359 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove the check of signature because the code which looks for the input NotifyHandle...
niruiyu [Thu, 24 May 2012 08:29:09 +0000 (08:29 +0000)]
Remove the check of signature because the code which looks for the input NotifyHandle in the internal linked list is enough.
Enhance ConSplitter to register hot keys for new connected consoles.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13358 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg UefiTcgPlatform.h: Add definition for EV_CPU_MICROCODE event type.
rsun3 [Thu, 24 May 2012 05:23:33 +0000 (05:23 +0000)]
MdePkg UefiTcgPlatform.h: Add definition for EV_CPU_MICROCODE event type.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13357 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the ConPlatform driver's matching algorithm to manage the console controller...
niruiyu [Thu, 24 May 2012 03:33:39 +0000 (03:33 +0000)]
Enhance the ConPlatform driver's matching algorithm to manage the console controller when it shares the same parent with a certain instance in the "ConOut".

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13356 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSync BaseTools Trunk (version r2524) to EDKII main trunk.
lgao4 [Wed, 23 May 2012 08:27:14 +0000 (08:27 +0000)]
Sync BaseTools Trunk (version r2524) to EDKII main trunk.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liu Yingke <yingke.d.liu@intel.com>
Reviewed-by: Yurui Zeng <yurui.zeng@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13353 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate the way to allocate high PMM, firstly try to allocate high PMM below 16MB...
li-elvin [Wed, 23 May 2012 07:26:17 +0000 (07:26 +0000)]
Update the way to allocate high PMM, firstly try to allocate high PMM below 16MB, if it fails, allocate high PMM below 4GB.

Signed-off-by: li-elvin <elvin.li@intel.com>
Reviewed-by: jyao1 <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13352 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoupdate copyright format
hhtian [Wed, 23 May 2012 00:47:12 +0000 (00:47 +0000)]
update copyright format

Signed-off-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13351 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix build break in OvmfPkgIa32X64.dsc where gEfiSecurityPkgTokenSpaceGuid was no...
leegrosenbaum [Wed, 23 May 2012 00:22:50 +0000 (00:22 +0000)]
Fix build break in OvmfPkgIa32X64.dsc where gEfiSecurityPkgTokenSpaceGuid was no longer found.

It is declared in SecurityPkg.dec, but with the latest build tools, since this package builds multiple architectures (IA32 & X64) and there are no IA32 modules used from the SecurityPkg, it is now necessary to place the gEfiSecurityPkgTokenSpaceGuid PCD's in a [PcdsFixedAtBuild.X64] section.

Signed-off-by: lee.g.rosenbaum@intel.com
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13350 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Enable Ctrl-C characters to be processed over serial interfaces that do...
jcarsey [Tue, 22 May 2012 22:16:37 +0000 (22:16 +0000)]
ShellPkg: Enable Ctrl-C characters to be processed over serial interfaces that do not pass control key modifiers (like SimpleTextInOutSerial)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
reviewed-by: Jaben Carsey jaben.carsey@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13349 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSNP driver for ASIX Electronics AX88772 found in SMC Networks SMC2209 USB/Ethernet...
lpleahy [Tue, 22 May 2012 17:08:33 +0000 (17:08 +0000)]
SNP driver for ASIX Electronics AX88772 found in SMC Networks SMC2209 USB/Ethernet 10/100 adapter.

Signed-off-by: lpleahy
Contributed-by: Intel
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13348 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: Add Eject/Read12/Write12 cmds to Atapi.h
erictian [Tue, 22 May 2012 08:07:42 +0000 (08:07 +0000)]
MdePkg: Add Eject/Read12/Write12 cmds to Atapi.h

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13346 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT messag...
lgao4 [Mon, 21 May 2012 06:10:21 +0000 (06:10 +0000)]
Update PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT message if ASSERT message is too big.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13339 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUefiCpuPkg: Added code to enable Local APIC.
geekboy15a [Fri, 18 May 2012 20:29:14 +0000 (20:29 +0000)]
UefiCpuPkg: Added code to enable Local APIC.

This patch enables interrupt delivery via the Local APIC as part of the initialization process.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13338 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoDuetPkg: Enabled build with new version of CpuDxe driver.
geekboy15a [Fri, 18 May 2012 20:22:36 +0000 (20:22 +0000)]
DuetPkg: Enabled build with new version of CpuDxe driver.

Added a definition to the LocalApicLib in the project files to allow Duet to build with the updated version of the CpuDxe driver.

Tracker: 207345

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13337 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoClean ParentHandle field when image is loaded directly from the firmware's boot manager.
ydong10 [Fri, 18 May 2012 02:43:23 +0000 (02:43 +0000)]
Clean ParentHandle field when image is loaded directly from the firmware's boot manager.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13324 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd logic to validate variable before use it.
ydong10 [Fri, 18 May 2012 02:24:25 +0000 (02:24 +0000)]
Add logic to validate variable before use it.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jiewen Yao <jiewen,yao@intel.com>
Reviewed-by: Michael D. Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13323 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd logic to validate console variables when enter BDS.
ydong10 [Fri, 18 May 2012 02:13:29 +0000 (02:13 +0000)]
Add logic to validate console variables when enter BDS.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13322 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER to follow ACPI5.0...
jyao1 [Wed, 16 May 2012 06:03:55 +0000 (06:03 +0000)]
Update EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER to follow ACPI5.0 spec.

signed off by: jiewen.yao@intel.com
reviewed by: rui.sun@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13315 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd Perf log for SMM driver Load and Start Image.
lgao4 [Wed, 16 May 2012 00:55:04 +0000 (00:55 +0000)]
Add Perf log for SMM driver Load and Start Image.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Siddharth Shah <Siddharth.Shah@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13314 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to...
lgao4 [Wed, 16 May 2012 00:42:41 +0000 (00:42 +0000)]
Update MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to follow UEFI spec.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D. Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13313 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to...
lgao4 [Wed, 16 May 2012 00:42:21 +0000 (00:42 +0000)]
Update MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to follow UEFI spec.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D. Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13312 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/UsbMassStorage: Add 16 byte SCSI cmds support if the last LBA can not...
erictian [Mon, 14 May 2012 07:50:07 +0000 (07:50 +0000)]
MdeModulePkg/UsbMassStorage: Add 16 byte SCSI cmds support if the last LBA can not be presented by 4bytes width

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Li Elvin <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13311 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate auth-variable and secure boot UI driver to support only time-based PK, KEK...
sfu5 [Mon, 14 May 2012 07:36:20 +0000 (07:36 +0000)]
Update auth-variable and secure boot UI driver to support only time-based PK, KEK and Signature Database variable variable according to UEFI Spec requirement.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13310 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance TcgSmm driver to handle potential SetVariable failure case.
gdong1 [Fri, 11 May 2012 05:10:57 +0000 (05:10 +0000)]
Enhance TcgSmm driver to handle potential SetVariable failure case.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13309 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd logic to validate new input value with minimum.
ydong10 [Fri, 11 May 2012 03:09:07 +0000 (03:09 +0000)]
Add logic to validate new input value with minimum.

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@13308 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThe code line where judges if offset exceed the FTW work space boundary, in some...
lzeng14 [Fri, 11 May 2012 01:48:45 +0000 (01:48 +0000)]
The code line where judges if offset exceed the FTW work space boundary, in some special situations where there are so many records, the offset may happen to be just equal to FtwWorkSpaceSize. And then FtwHead will be updated to be outside of work space wrongly, and cause the system to hang in this driver.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13307 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the code logic for RelocateBlockDescriptors.
lzeng14 [Fri, 11 May 2012 01:44:14 +0000 (01:44 +0000)]
Enhance the code logic for RelocateBlockDescriptors.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13306 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCurrently, CapsulePei assumes ScatterGatherList are all related. But, UEFI spec has...
lzeng14 [Fri, 11 May 2012 01:41:28 +0000 (01:41 +0000)]
Currently, CapsulePei assumes ScatterGatherList are all related. But, UEFI spec has no such requirement, ScatterGatherList may be standalone. So update CapsulePei to only ignore the invalid ScatterGatherList, and still keep the valid ScatterGatherList.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13305 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMake sure CapsuleImage size is equal or less than DataBlock Size. And when copy the...
lzeng14 [Fri, 11 May 2012 01:37:23 +0000 (01:37 +0000)]
Make sure CapsuleImage size is equal or less than DataBlock Size. And when copy the Capsule data from DataBlock to the continuous memory, CapsuleImage size should be used instead of DataBlock.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13304 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoDestPtr may point to the lower aligned address in the free memory region (FreeMemBase...
lzeng14 [Fri, 11 May 2012 01:33:01 +0000 (01:33 +0000)]
DestPtr may point to the lower aligned address in the free memory region (FreeMemBase, FreeMemBase + FreeMemSize), the free memory region may be updated to override the private signature. So update FreeMemSize to avoid the potential overlap.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13303 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate CapsuleCoalesce() to return the correct size of the coalesced capsule include...
lzeng14 [Fri, 11 May 2012 01:27:59 +0000 (01:27 +0000)]
Update CapsuleCoalesce() to return the correct size of the coalesced capsule include PrivateData, CapsuleImageData, CapsuleNumber and CapsuleOffset array.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13302 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the logic when extract data from storage.
ydong10 [Thu, 10 May 2012 08:00:22 +0000 (08:00 +0000)]
Enhance the logic when extract data from storage.

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

9 years agoUse current time value as default random seed in BaseCryptLib.
tye1 [Thu, 10 May 2012 07:58:02 +0000 (07:58 +0000)]
Use current time value as default random seed in BaseCryptLib.

Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13300 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFixes buffer read overflow bugs in authenticated variable driver.
sfu5 [Wed, 9 May 2012 10:45:09 +0000 (10:45 +0000)]
Fixes buffer read overflow bugs in authenticated variable driver.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13298 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix always reboot issue for an invalid physical presence operation request.
gdong1 [Wed, 9 May 2012 08:24:29 +0000 (08:24 +0000)]
Fix always reboot issue for an invalid physical presence operation request.

Signed-off by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang, Qian <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13297 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUse PartitionHeader->SizeOfPartitionEntry instead of sizeof (EFI_PARTITION_ENTRY).
niruiyu [Wed, 9 May 2012 05:21:43 +0000 (05:21 +0000)]
Use PartitionHeader->SizeOfPartitionEntry instead of sizeof (EFI_PARTITION_ENTRY).

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13296 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the potential issue that NULL pointer may be referred in LoadImage().
lgao4 [Tue, 8 May 2012 03:10:37 +0000 (03:10 +0000)]
Fix the potential issue that NULL pointer may be referred in LoadImage().

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13293 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance ACPI FPDT DXE and SMM driver to accept the extension boot records.
lgao4 [Tue, 8 May 2012 03:09:54 +0000 (03:09 +0000)]
Enhance ACPI FPDT DXE and SMM driver to accept the extension boot records.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Jin <eric.jin@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13292 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemoves redundant code and adds data size check for certificate data in DxeImageVerif...
tye1 [Tue, 8 May 2012 02:53:49 +0000 (02:53 +0000)]
Removes redundant code and adds data size check for certificate data in DxeImageVerificationLib.

Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Eric <yong.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13291 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance SmbiosDxe driver:
lzeng14 [Tue, 8 May 2012 01:33:23 +0000 (01:33 +0000)]
Enhance SmbiosDxe driver:
1. If string length exceeds 65535 bytes, return error. So infinite loop will not happen because of UINTN overflow.
2. When a SMBIOS entry is added or updated, check if the total length of SMBIOS table exceeds 65535 bytes, if it happens, return error.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13290 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpgrade openssl version to 0.98w.
tye1 [Mon, 7 May 2012 10:29:58 +0000 (10:29 +0000)]
Upgrade openssl version to 0.98w.

Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13289 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix memory leak issues.
ydong10 [Mon, 7 May 2012 08:51:42 +0000 (08:51 +0000)]
Fix memory leak issues.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiTables: Change the ACPI PM Base Adress to 0xb000
jljusten [Fri, 4 May 2012 15:02:33 +0000 (15:02 +0000)]
OvmfPkg/AcpiTables: Change the ACPI PM Base Adress to 0xb000

0xb000 is the address normally used with QEMU.

0x400 also appears to conflict with some debug I/O ports
used by QEMU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13279 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL
jljusten [Fri, 4 May 2012 15:01:56 +0000 (15:01 +0000)]
OvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL

If the bit is not set, then the only method ACPI defines
for setting it is to use the SMI SCI enable code path.

Since OVMF does not support SMM, we must enable the
bit during boot.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13278 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiTables: Set SMI ACPI Enable/Disable fields to 0
jljusten [Fri, 4 May 2012 15:01:39 +0000 (15:01 +0000)]
OvmfPkg/AcpiTables: Set SMI ACPI Enable/Disable fields to 0

OVMF does not support SMM. Previously the port value
was set to 0. This should be enough to disable the
SMM ACPI Enable/Disable code paths, but to be
consistent we'll set these fields to 0 as well.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13277 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiTables: Update GPE0 block address range for QEMU
jljusten [Fri, 4 May 2012 15:01:24 +0000 (15:01 +0000)]
OvmfPkg/AcpiTables: Update GPE0 block address range for QEMU

QEMU hard codes the GPE0 registers at 0xafe0.

Previously the code assumed that the GPE0 block
would move when the PM Base Address of the PIIX4
PCI device was programmed. It appears QEMU does not
emulate this behaviour of the PIIX4 PCI device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13276 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCurrently restoring PCI attributes are put in child uninstall logic, if one child...
li-elvin [Fri, 4 May 2012 12:21:41 +0000 (12:21 +0000)]
Currently restoring PCI attributes are put in child uninstall logic, if one child is uninstalled, PCI attributes are restored, it will bring problem for stopping the next child. we do not restore the PCI attributes until all child handles are uninstalled.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13275 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCorrect an error in Aprint function.
ydong10 [Fri, 4 May 2012 05:59:26 +0000 (05:59 +0000)]
Correct an error in Aprint function.

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@13274 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate the logic related to get section header offset for TE image.
ydong10 [Fri, 4 May 2012 05:11:07 +0000 (05:11 +0000)]
Update the logic related to get section header offset for TE image.

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@13273 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmbeddedPkg/Ebl: Returned an error message when a command is not supported
oliviermartin [Wed, 2 May 2012 20:19:52 +0000 (20:19 +0000)]
EmbeddedPkg/Ebl: Returned an error message when a command is not supported

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13266 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg: Replaced 'ArmGicSecLib' by 'ArmGicLib'
oliviermartin [Wed, 2 May 2012 20:19:00 +0000 (20:19 +0000)]
ArmPlatformPkg: Replaced 'ArmGicSecLib' by 'ArmGicLib'

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13265 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Fixed Memory Corruption when updating the path of a Linux initrd
oliviermartin [Wed, 2 May 2012 20:17:36 +0000 (20:17 +0000)]
ArmPlatformPkg/Bds: Fixed Memory Corruption when updating the path of a Linux initrd

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13264 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBeagleBoardPkg/b.bat: Updated RVCT toolchain name
oliviermartin [Wed, 2 May 2012 20:16:38 +0000 (20:16 +0000)]
BeagleBoardPkg/b.bat: Updated RVCT toolchain name

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13263 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/DebugSecExtraActionLib: Added Warning comment to signal the DRAM must...
oliviermartin [Wed, 2 May 2012 20:15:49 +0000 (20:15 +0000)]
ArmPlatformPkg/DebugSecExtraActionLib: Added Warning comment to signal the DRAM must be inititalized at this stage

Since the System Memory initialization has been moved inside ArmPlatformSecLib
on some platforms, the use of this library could crash if the firmware engineer
forgot to initialize the DRAM.
This library 'patches' the DRAM to add an infinite loop.

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13262 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmCpuLib: Fixed SMP Cortex-A9 and Cortex-A15
oliviermartin [Wed, 2 May 2012 20:14:55 +0000 (20:14 +0000)]
ArmPkg/ArmCpuLib: Fixed SMP Cortex-A9 and Cortex-A15

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13261 6f19259b-4bc3-4df7-8a09-765794883524