mirror_edk2.git
9 years agoEmbeddedPkg/MmcDxe: The timeout while waiting for the programming to be complete...
oliviermartin [Fri, 31 Aug 2012 16:29:23 +0000 (16:29 +0000)]
EmbeddedPkg/MmcDxe: The timeout while waiting for the programming to be complete was decreased twice.

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

9 years agoArmPkg: Changed Uncached System Memory from EFI_MEMORY_UC to EFI_MEMORY_WC
oliviermartin [Fri, 31 Aug 2012 16:24:01 +0000 (16:24 +0000)]
ArmPkg: Changed Uncached System Memory from EFI_MEMORY_UC to EFI_MEMORY_WC

EFI_MEMORY_UC is mapped to Strongly Ordered memory while EFI_MEMORY_WC is
mapped to Uncached Normal/System memory.
This change improve performance while accessing uncached regions in the
System Memory.

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

9 years agoRestore EditBuffer before call the callback function to avoid get error data.
ydong10 [Thu, 30 Aug 2012 10:48:17 +0000 (10:48 +0000)]
Restore EditBuffer before call the callback function to avoid get error data.

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

9 years agoShould pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string...
erictian [Wed, 29 Aug 2012 09:23:34 +0000 (09:23 +0000)]
Should pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string length.

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

9 years agoAdd check for DevicePathNode.
lgao4 [Wed, 29 Aug 2012 05:10:30 +0000 (05:10 +0000)]
Add check for DevicePathNode.

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

9 years agoEmulatorPkg/PlatformSmbiosDxe: Fix build issue with UNIXGCC
jljusten [Tue, 28 Aug 2012 21:21:57 +0000 (21:21 +0000)]
EmulatorPkg/PlatformSmbiosDxe: Fix build issue with UNIXGCC

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

9 years agoOvmfPkg/BlockMmioToBlockIoDxe: Fix allocation size error
jljusten [Tue, 28 Aug 2012 21:21:44 +0000 (21:21 +0000)]
OvmfPkg/BlockMmioToBlockIoDxe: Fix allocation size error

When allocating the BLOCK_MMIO_TO_BLOCK_IO_DEVICE structure, we were
not allocating a large enough amount. We were allocating the size of
the pointer, rather than the size of the structure.

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

9 years agoOVMF X64: Allow enabling SOURCE_DEBUG_ENABLE on GCC44
jljusten [Tue, 28 Aug 2012 21:21:30 +0000 (21:21 +0000)]
OVMF X64: Allow enabling SOURCE_DEBUG_ENABLE on GCC44

Currently if SOURCE_DEBUG_ENABLE is enabled when building with
GCC44, then the SEC module will not fit into SECFV.

This change increases the size of SECFV to allow this.

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

9 years agoFix comparisons of enumerated types which may cause warnings for some compilers.
rsun3 [Tue, 28 Aug 2012 06:48:28 +0000 (06:48 +0000)]
Fix comparisons of enumerated types which may cause warnings for some compilers.

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

9 years agoTcgPei need to measure anything to PCR in S3 bootpath, so skip shadow logic.
czhang46 [Tue, 28 Aug 2012 03:16:10 +0000 (03:16 +0000)]
TcgPei need to measure anything to PCR in S3 bootpath, so skip shadow logic.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

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

9 years agoOnly disable Debug Timer for x64 platforms in S3RestoreConfig2().
vanjeff [Tue, 28 Aug 2012 02:37:45 +0000 (02:37 +0000)]
Only disable Debug Timer for x64 platforms in S3RestoreConfig2().

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13684 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: get boot order from QEMU
jljusten [Mon, 27 Aug 2012 23:28:30 +0000 (23:28 +0000)]
OvmfPkg: get boot order from QEMU

Set the boot order based on configuration retrieved from QEMU.

Attempt to retrieve the "bootorder" fw_cfg file from QEMU. Translate the
OpenFirmware device paths therein to UEFI device path fragments. Match the
translated fragments against the enumerated BootOptionList, and rewrite
the BootOrder NvVar so that it corresponds to the order described in
fw_cfg.

The user is expected to configure working boot options first.

Tested via virt-manager's boot order widget.

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

9 years agoOvmfPkg/PlatformPei: Shrink memory range for PCI MMIO allocation
jljusten [Mon, 27 Aug 2012 23:28:15 +0000 (23:28 +0000)]
OvmfPkg/PlatformPei: Shrink memory range for PCI MMIO allocation

Including the range of [0xFC000000, 0xFD000000) for PCI MMIO
allocation created a conflict for Xen's HVM loader.

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

9 years agoChange Bcfg.c to use the new definition of EFI_KEY_OPTION.
niruiyu [Mon, 27 Aug 2012 10:09:34 +0000 (10:09 +0000)]
Change Bcfg.c to use the new definition of EFI_KEY_OPTION.

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

9 years ago1. Add debug init flag DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 in Debug Agent Library.
vanjeff [Mon, 27 Aug 2012 08:36:23 +0000 (08:36 +0000)]
1. Add debug init flag DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 in Debug Agent Library.
2. Update Capsule modules to consume debug agent library to support source debugging in x64 code.
3. Update BootScriptExecutorDxe module to support source debugging on S3 path.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

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

9 years agoAdd comments to explain the reason return status is not checked. The return status...
li-elvin [Mon, 27 Aug 2012 08:20:27 +0000 (08:20 +0000)]
Add comments to explain the reason return status is not checked. The return status of KeyboardRead is not used.

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

9 years agoChange Bcfg.c to use the new definition of EFI_KEY_OPTION.
niruiyu [Mon, 27 Aug 2012 05:05:24 +0000 (05:05 +0000)]
Change Bcfg.c to use the new definition of EFI_KEY_OPTION.

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

9 years agoUse firmware version instead of hardcode string for S-CRTM version identifier
czhang46 [Mon, 27 Aug 2012 00:52:18 +0000 (00:52 +0000)]
Use firmware version instead of hardcode string for S-CRTM version identifier

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

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

9 years agoFix bugs in PXE driver when using option 43 for boot server list and boot menu prompt.
sfu5 [Fri, 24 Aug 2012 08:25:42 +0000 (08:25 +0000)]
Fix bugs in PXE driver when using option 43 for boot server list and boot menu prompt.

Signed-off-by: Fu Siyuan <siyuan.fu@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@13676 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove MOR check box feature. should not have a switch to turn off MOR.
czhang46 [Fri, 24 Aug 2012 00:37:40 +0000 (00:37 +0000)]
Remove MOR check box feature. should not have a switch to turn off MOR.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong, Guo  <guo.dong@intel.com>
Reviewed-by  : Mike, Wu   <mike.wu@intel.com>
Reviewed-by  : Erik C Bjorge <erick.c.bjorge@intel.com>

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

9 years agoFix the bug in PciBusNoEnumerationDxe driver to correct parse the 64bit BAR.
niruiyu [Thu, 23 Aug 2012 12:28:42 +0000 (12:28 +0000)]
Fix the bug in PciBusNoEnumerationDxe driver to correct parse the 64bit BAR.

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

9 years agoFix the bug in PciBus driver to correct parse the 64bit BAR.
niruiyu [Thu, 23 Aug 2012 12:28:22 +0000 (12:28 +0000)]
Fix the bug in PciBus driver to correct parse the 64bit BAR.

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

9 years agoUpdate the DxeImageVerificationLib to handle the signed image which CertType is set...
sfu5 [Thu, 23 Aug 2012 07:55:35 +0000 (07:55 +0000)]
Update the DxeImageVerificationLib to handle the signed image which CertType is set to EFI_CERT_TYPE_PKCS7_GUID.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-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@13672 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Initialize certdb variable with correct value of list size.
sfu5 [Thu, 23 Aug 2012 06:53:51 +0000 (06:53 +0000)]
1. Initialize certdb variable with correct value of list size.
2. Use gloable database array instead of calling AllocateZeroPool in SetVariable.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-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@13671 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix PeiCryptLib build issue.
tye1 [Thu, 23 Aug 2012 03:31:00 +0000 (03:31 +0000)]
Fix PeiCryptLib build issue.

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

9 years agoAdd TcgDxeHashLogExtendEvent EventLogLastEntry parameter update logic
czhang46 [Thu, 23 Aug 2012 03:17:33 +0000 (03:17 +0000)]
Add TcgDxeHashLogExtendEvent  EventLogLastEntry parameter update logic

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong Guo <guo.dong@intel.com>

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

9 years ago1. Added SetLocalApicBaseAdress() and GetLocalApicBaseAddress() APIs in Local APIC...
vanjeff [Thu, 23 Aug 2012 01:42:01 +0000 (01:42 +0000)]
1. Added SetLocalApicBaseAdress() and GetLocalApicBaseAddress() APIs in Local APIC library.
2. Updated Local APIC library instances to get Local APIC base Address by invoking GetLocalApicBaseAddress() instead of by PCD PcdCpuLocalApicBaseAddress.

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

9 years agoSet correct DS/ES/FS/GS/SS segment selectors after GDT loaded.
vanjeff [Wed, 22 Aug 2012 08:56:50 +0000 (08:56 +0000)]
Set correct DS/ES/FS/GS/SS segment selectors after GDT loaded.

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

9 years agoGet correct GOP protocol for physical GOP device.
li-elvin [Wed, 22 Aug 2012 08:52:04 +0000 (08:52 +0000)]
Get correct GOP protocol for physical GOP device.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13666 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the check for some fields in the PE image before use it.
ydong10 [Wed, 22 Aug 2012 08:04:53 +0000 (08:04 +0000)]
Enhance the check for some fields in the PE image before use it.

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

9 years agoAdd additional delay in DHCP6 InfoRequest interface to wait for link local address...
sfu5 [Wed, 22 Aug 2012 08:01:19 +0000 (08:01 +0000)]
Add additional delay in DHCP6 InfoRequest interface to wait for link local address DAD to finish.

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

9 years agoMdeModulePkg/AtaAtapiPassThru: Move error check behind the place that SetupFIS frame...
erictian [Wed, 22 Aug 2012 07:12:10 +0000 (07:12 +0000)]
MdeModulePkg/AtaAtapiPassThru: Move error check behind the place that SetupFIS frame is received.

This way is used to avoid that the subsequent operations are treated as failure if the last operation is wrong.

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

9 years agoRoll back one unnecessary change in Dispatcher.c, which is added by previous patch.
lgao4 [Wed, 22 Aug 2012 02:44:05 +0000 (02:44 +0000)]
Roll back one unnecessary change in Dispatcher.c, which is added by previous patch.

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

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 02:33:00 +0000 (02:33 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Update three Security Handlers to depend on new SecurityManagementLib APIs to register Security service for SAP2

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13661 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 02:32:12 +0000 (02:32 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Update SecurityManagementLib to support SAP2 and SAP services.
2. Update SecurityStub driver to produce SAP2 and SAP protocol both.
3. Update DxeCore and SmmCore to use SAP2 and SAP service to verify Image.
4. Update DxeCore ConnectController() to use SAP2 service to check user permission.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13660 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoChange the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields.
niruiyu [Wed, 22 Aug 2012 02:24:40 +0000 (02:24 +0000)]
Change the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields.
Change the BDS module in IntelFrameworkModulePkg to use the new EFI_BOOT_KEY_DATA definition.

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

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 01:30:23 +0000 (01:30 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Add SAP2 protocol definition in MdePkg

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13658 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the check when ImageRead function return.
ydong10 [Tue, 21 Aug 2012 08:38:58 +0000 (08:38 +0000)]
Enhance the check when ImageRead function return.

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

9 years agoInitialize the variable before use it.
ydong10 [Tue, 21 Aug 2012 08:25:37 +0000 (08:25 +0000)]
Initialize the variable before use it.

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

9 years agoPatch includes:
ydong10 [Tue, 21 Aug 2012 08:23:20 +0000 (08:23 +0000)]
Patch includes:
1.Enable Retrieve callback type for all questions before show these questions.
2.Enable retrieve callback type for all questions without storage when initial these questions.

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

9 years agoMdePkg PiSmmCis.h: clarify the meaning of NumberOfCpus per PI spec version 1.2.1.
rsun3 [Tue, 21 Aug 2012 06:31:20 +0000 (06:31 +0000)]
MdePkg PiSmmCis.h: clarify the meaning of NumberOfCpus per PI spec version 1.2.1.

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

9 years agoFix some coding style issues
czhang46 [Tue, 21 Aug 2012 05:26:00 +0000 (05:26 +0000)]
Fix some coding style issues

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Kinney Michael <michael.d.kinney@intel.com>

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

9 years agoFix TCG protocol TcgDxeHashLogExtendEvent and TcgDxeLogEvent SDL issue
czhang46 [Tue, 21 Aug 2012 02:12:43 +0000 (02:12 +0000)]
Fix  TCG protocol TcgDxeHashLogExtendEvent and TcgDxeLogEvent SDL issue

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

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

9 years agoFix Consplitter GOP UEFI SCT issue.
li-elvin [Tue, 21 Aug 2012 01:35:43 +0000 (01:35 +0000)]
Fix Consplitter GOP UEFI SCT issue.

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

9 years agoEnhance the code to make the code logic more clear.
ydong10 [Tue, 21 Aug 2012 00:57:17 +0000 (00:57 +0000)]
Enhance the code to make the code logic more clear.

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

9 years agoInitialize TempAcpiS3Context and TempEfiBootScriptExecutorVariable.
lzeng14 [Mon, 20 Aug 2012 06:09:25 +0000 (06:09 +0000)]
Initialize TempAcpiS3Context and TempEfiBootScriptExecutorVariable.

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

9 years agoAdd three INIT flag in Debug Agent Library.
vanjeff [Mon, 20 Aug 2012 03:10:48 +0000 (03:10 +0000)]
Add three INIT flag in Debug Agent Library.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

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

9 years agoIntelFrameworkModulePkg/IdeBusDxe: Add error check on the return status of invoking...
erictian [Mon, 20 Aug 2012 02:17:49 +0000 (02:17 +0000)]
IntelFrameworkModulePkg/IdeBusDxe: Add error check on the return status of invoking AtaSoftReset().

Signed-off-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13647 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix TCG protocol PassThroughToTpm() SDL issue
czhang46 [Fri, 17 Aug 2012 07:59:51 +0000 (07:59 +0000)]
Fix  TCG protocol PassThroughToTpm() SDL issue

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong Guo <guo.dong@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

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

9 years agoFix the issue that consplitter should not touch ConIn variable & do ConIn connection
czhang46 [Fri, 17 Aug 2012 07:43:09 +0000 (07:43 +0000)]
Fix  the issue that consplitter should not touch ConIn variable & do ConIn connection

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Hot Tian <hot.tian@intel.com>
Reviewed-by  : Ni, Ruiyu <ruiyu.ni@intel.com>

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

9 years agoFix the issue that consplitter should not touch ConIn variable & do ConIn connection
czhang46 [Fri, 17 Aug 2012 07:36:56 +0000 (07:36 +0000)]
Fix  the issue that consplitter should not touch ConIn variable & do ConIn connection

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Hot Tian <hot.tian@intel.com>
Reviewed-by  : Ni, Ruiyu <ruiyu.ni@intel.com>

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

9 years agoUpdate file guid to avoid conflict with other file.
ydong10 [Fri, 17 Aug 2012 05:31:47 +0000 (05:31 +0000)]
Update file guid to avoid conflict with other file.

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

9 years agoAdd missing break and add comment to non-necessary break.
li-elvin [Fri, 17 Aug 2012 04:01:48 +0000 (04:01 +0000)]
Add missing break and add comment to non-necessary break.

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

9 years agoUpdate the "ConErr" related variable name to the new one "ErrOut".
ydong10 [Fri, 17 Aug 2012 03:58:17 +0000 (03:58 +0000)]
Update the "ConErr" related variable name to the new one "ErrOut".

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

9 years agoAdd validation on ACPI_S3_CONTEXT.S3DebugBufferAddress, moreover only debug tip could...
vanjeff [Thu, 16 Aug 2012 04:36:24 +0000 (04:36 +0000)]
Add validation on ACPI_S3_CONTEXT.S3DebugBufferAddress, moreover only debug tip could override IDT entry for INT3.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13640 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd missing function comments
jyao1 [Thu, 16 Aug 2012 03:39:10 +0000 (03:39 +0000)]
Add missing function comments

signed-off-by: jiewen.yao@intel.com
reviewed-by: eric.dong@intel.com

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

9 years agoFix incorrect sizeof () usage.
li-elvin [Thu, 16 Aug 2012 02:39:14 +0000 (02:39 +0000)]
Fix incorrect sizeof () usage.

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

9 years agoPcAtChipsetPkg/RTC: Fix a bug in RtcGetWakeUpTime() which may cause its return value...
erictian [Wed, 15 Aug 2012 04:38:15 +0000 (04:38 +0000)]
PcAtChipsetPkg/RTC: Fix a bug in RtcGetWakeUpTime() which may cause its return value wrong

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

9 years ago1. Remove the code path which use X509 cert in KEK to validate PKCS7 signed image.
sfu5 [Wed, 15 Aug 2012 01:39:43 +0000 (01:39 +0000)]
1. Remove the code path which use X509 cert in KEK to validate PKCS7 signed image.
2. Remove the code path to validate UEFI image signed by RSA2048 key.
3. Disable the ALLOW_EXECUTE/DEFER_EXECUTE/QUERY_USER policy PCD.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-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@13636 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Add custom SecureBootConfigDxe that doesn't reset
jljusten [Wed, 15 Aug 2012 00:03:59 +0000 (00:03 +0000)]
OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset

We don't force a platform reset for OVMF when PK is changed in
custom mode setup.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Rosenbaum <lee.g.rosenbaum@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13635 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues
jljusten [Wed, 15 Aug 2012 00:03:35 +0000 (00:03 +0000)]
OvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues

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

9 years agoEmulatorPkg: Fix Visual Studio build for IA32 & X64
jljusten [Wed, 15 Aug 2012 00:03:25 +0000 (00:03 +0000)]
EmulatorPkg: Fix Visual Studio build for IA32 & X64

This code is untested since there is currently no 'host' component
for Win32/Win64.

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

9 years agoRefine the logic to handle the device path info get from string token.
ydong10 [Tue, 14 Aug 2012 09:52:25 +0000 (09:52 +0000)]
Refine the logic to handle the device path info get from string token.

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

9 years agoCreate 4G page table by default, and using PF to handle >4G MMIO access, to improve...
jyao1 [Tue, 14 Aug 2012 04:42:50 +0000 (04:42 +0000)]
Create 4G page table by default, and using PF to handle >4G MMIO access, to improve S3 performance.

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

9 years agoOvmfPkg: Support GCC47 toolchain
jljusten [Mon, 13 Aug 2012 17:06:49 +0000 (17:06 +0000)]
OvmfPkg: Support GCC47 toolchain

When GCC >= 4.7 is detected, use the GCC47 toolchain.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[jordan.l.justen@intel.com: reword commit message for OvmfPkg]
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13630 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg: Support GCC47 toolchain
jljusten [Mon, 13 Aug 2012 17:06:39 +0000 (17:06 +0000)]
EmulatorPkg: Support GCC47 toolchain

When GCC >= 4.7 is detected, use the GCC47 toolchain.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[jordan.l.justen@intel.com: reword commit message for EmulatorPkg]
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13629 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: generate full MADT dynamically, synchronize contents with qemu
jljusten [Mon, 13 Aug 2012 15:42:07 +0000 (15:42 +0000)]
OvmfPkg: generate full MADT dynamically, synchronize contents with qemu

Represent the set of possible PCI link target IRQs with
Pcd8259LegacyModeEdgeLevel. This ensures that the 8259 Interrupt
Controller code in PcAtChipsetPkg will treat them as level-triggered too.

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

9 years agoOvmfPkg: have PlatformBdsLib::PciInitialization conform to the _PRS
jljusten [Mon, 13 Aug 2012 15:41:43 +0000 (15:41 +0000)]
OvmfPkg: have PlatformBdsLib::PciInitialization conform to the _PRS

Also set some INTLN values, informatively.

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

9 years agoOvmfPkg: PlatformBdsLib: the balloon device (RAM Memory) is in slot 5
jljusten [Mon, 13 Aug 2012 15:41:31 +0000 (15:41 +0000)]
OvmfPkg: PlatformBdsLib: the balloon device (RAM Memory) is in slot 5

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

9 years agoOvmfPkg: fix interrupt routing in the DSDT, bump revision number
jljusten [Mon, 13 Aug 2012 15:41:18 +0000 (15:41 +0000)]
OvmfPkg: fix interrupt routing in the DSDT, bump revision number

Rotate links over devices and pins so that they match qemu.

PIIX4 function 3 (Power Management Module) unconditionally uses the INTA
interrupt pin. SCI from this module requires IRQ9.

Keep other assignments off IRQ9. Only IRQ5, IRQ10, IRQ11 remain for PCI
devices.

Bump OEMRevision in the DSDT.

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

9 years agoOvmfPkg: add parallel port to the DSDT
jljusten [Mon, 13 Aug 2012 15:41:07 +0000 (15:41 +0000)]
OvmfPkg: add parallel port to the DSDT

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

9 years agoOvmfPkg: fix the _UID of \_SB.PCI0.LPC.LNKD in the DSDT
jljusten [Mon, 13 Aug 2012 15:40:54 +0000 (15:40 +0000)]
OvmfPkg: fix the _UID of \_SB.PCI0.LPC.LNKD in the DSDT

LNKD is the fourth PNP0C0F.

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

9 years agoOvmfPkg: add comments to the DSDT, remove trailing empty line
jljusten [Mon, 13 Aug 2012 15:40:43 +0000 (15:40 +0000)]
OvmfPkg: add comments to the DSDT, remove trailing empty line

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

9 years agoOvmfPkg: _DIS and _SRS methods should have permanent effect
jljusten [Mon, 13 Aug 2012 15:40:31 +0000 (15:40 +0000)]
OvmfPkg: _DIS and _SRS methods should have permanent effect

Kill PDIS and PSRS as they are writing to copies of PIR[A-D], not PIR[A-D]
themselves. Use specialized _DIS and _SRS methods that access PIR[A-D]
directly.

(This should be solvable by passing RefOf (PIRA) etc to PDIS/PSRS, however
the RHEL-6.3 kernel AML parser seems to choke on it. The rules described
in ACPIspec5.0 Table 19-316 "Object Storing and Copying Rules" don't seem
to work:

    ACPI Error: Needed [Integer/String/Buffer], found [Reference]
    ffff88003ee02420 (20090903/exresop-422)

    ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for
    [OpcodeName unavailable] (20090903/dswexec-445)

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.PDIS] (Node ffff88003f638b50), AE_AML_OPERAND_TYPE

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.LNKA._DIS] (Node ffff88003f638a10),
    AE_AML_OPERAND_TYPE

When changing the method too, so that it writes to DerefOf (Arg0) instead
of Arg0, ie. explicitly dereferencing rather than expecting the auto-deref
to work:

    ACPI Error: Needed type [Reference], found [RegionField]
    ffff88003f639858 (20090903/exresop-104)

    ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for
    [OpcodeName unavailable] (20090903/dswexec-445)

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.PDIS] (Node ffff88003f638b50), AE_AML_OPERAND_TYPE

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.LNKA._DIS] (Node ffff88003f638a10),
    AE_AML_OPERAND_TYPE

In short, when passing a RefOf, it is recognized as a reference inside the
method but mistakenly refused. When trying to deref it explicitly with
DerefOf, then it's suddenly not recognized as a reference.)

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

9 years agoOvmfPkg: unlike PIIX4, qemu needs ActiveHigh for interrupt sharing
jljusten [Mon, 13 Aug 2012 15:40:19 +0000 (15:40 +0000)]
OvmfPkg: unlike PIIX4, qemu needs ActiveHigh for interrupt sharing

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

9 years agoOvmfPkg: simplify _CRS, _PRS, _SRS methods in the DSDT
jljusten [Mon, 13 Aug 2012 15:40:07 +0000 (15:40 +0000)]
OvmfPkg: simplify _CRS, _PRS, _SRS methods in the DSDT

Use Extended Interrupt Descriptors in the _CRS, _PRS, _SRS methods of
\_SB.PCI0.LPC.LNK[A-D], eliminating bit shifting.

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

9 years agoOvmfPkg: add qemu debug console port to XTRA device
jljusten [Mon, 13 Aug 2012 15:39:55 +0000 (15:39 +0000)]
OvmfPkg: add qemu debug console port to XTRA device

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

9 years agoOvmfPkg: fix LAPIC RangeLength in DSDT
jljusten [Mon, 13 Aug 2012 15:39:43 +0000 (15:39 +0000)]
OvmfPkg: fix LAPIC RangeLength in DSDT

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

9 years agoOvmfPkg: sync FADT with QEMU: PM Timer is 24-bit
jljusten [Mon, 13 Aug 2012 15:39:32 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: PM Timer is 24-bit

Clear TMR_VAL_EXT.

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

9 years agoOvmfPkg: sync FADT with QEMU: boot architecture flags
jljusten [Mon, 13 Aug 2012 15:39:20 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: boot architecture flags

Clear boot architecture flags: LEGACY_DEVICES, 8042 keyboard controller.

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

9 years agoOvmfPkg: sync FADT with QEMU: clear DAY_ALRM
jljusten [Mon, 13 Aug 2012 15:39:08 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: clear DAY_ALRM

"RTC day of the month alarm feature is not supported".

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

9 years agoOvmfPkg: sync FADT with QEMU: cleanup FLUSH_SIZE / FLUSH_STRIDE
jljusten [Mon, 13 Aug 2012 15:38:55 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: cleanup FLUSH_SIZE / FLUSH_STRIDE

Since WBINVD is supported, clear ignored FLUSH_SIZE and FLUSH_STRIDE.

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

9 years agoOvmfPkg: sync FADT with QEMU: disable PM2 control block
jljusten [Mon, 13 Aug 2012 15:38:39 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: disable PM2 control block

Remove support for optional PM2 control block.

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

9 years agoOvmfPkg: sync FADT with QEMU: correct SMI_CMD
jljusten [Mon, 13 Aug 2012 15:38:16 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: correct SMI_CMD

- Qemu's PIIX emulation actually supports SMM and ACPI_ENABLE /
  ACPI_DISABLE.

- After enabling SMI_CMD (SMI_CMD_IO_PORT), further values to be written
  there must be synchronized with qemu: PSTATE_CNT, CST_CNT.

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

9 years agoOvmfPkg: cleanup whitespace in Facp.aslc / Platform.h
jljusten [Mon, 13 Aug 2012 15:37:50 +0000 (15:37 +0000)]
OvmfPkg: cleanup whitespace in Facp.aslc / Platform.h

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

9 years agoCheck if active video mode is changed after OpROM starts, if active video mode is...
li-elvin [Mon, 13 Aug 2012 09:33:49 +0000 (09:33 +0000)]
Check if active video mode is changed after OpROM starts, if active video mode is not changed, skip INT10 calls to improve performance.

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

9 years agoFix 2 errors for new feature
czhang46 [Fri, 10 Aug 2012 06:47:11 +0000 (06:47 +0000)]
Fix 2 errors for new feature

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

9 years agoFix 2 errors for new feature
czhang46 [Fri, 10 Aug 2012 06:46:21 +0000 (06:46 +0000)]
Fix 2 errors for new feature

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

9 years agoFix issue that TCP server will not response to SYN packet from TCP client in TCP6...
tye1 [Fri, 10 Aug 2012 06:32:15 +0000 (06:32 +0000)]
Fix issue that TCP server will not response to SYN packet from TCP client in TCP6 module.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13606 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate openssl patch to replaces the “__FILE__” and “__LINE__” with NULL and 0.
sfu5 [Fri, 10 Aug 2012 01:27:30 +0000 (01:27 +0000)]
Update openssl patch to replaces the “__FILE__” and “__LINE__” with NULL and 0.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-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@13605 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoReturn the proper status after one of the ports is configured for UDP or IP communica...
lpleahy [Fri, 10 Aug 2012 01:13:05 +0000 (01:13 +0000)]
Return the proper status after one of the ports is configured for UDP or IP communications.

Reviewed by: Ankit Singh of Dell
Submitted by: lpleahy

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

9 years agoRefine get default language logic for command "drivers".
ydong10 [Fri, 10 Aug 2012 01:10:05 +0000 (01:10 +0000)]
Refine get default language logic for command "drivers".

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

9 years agoOvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues
jljusten [Thu, 9 Aug 2012 23:27:05 +0000 (23:27 +0000)]
OvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues

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

9 years agoFix memory leak
ydong10 [Thu, 9 Aug 2012 01:39:56 +0000 (01:39 +0000)]
Fix memory leak

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

9 years agoArmPlatformPkg/Bds: Fixed device path of the default error output device
oliviermartin [Wed, 8 Aug 2012 16:47:51 +0000 (16:47 +0000)]
ArmPlatformPkg/Bds: Fixed device path of the default error output device

Replaced 'ConErr' by 'ErrOut'.

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

9 years agoRemoved SetMode in GraphicsConsole Start() in release BIOS to improve performance...
li-elvin [Tue, 7 Aug 2012 09:32:46 +0000 (09:32 +0000)]
Removed SetMode in GraphicsConsole Start() in release BIOS to improve performance. Initialize current text mode number to 0xFF as invalid text mode per UEFI spec. Add current mode check in text out protocol interface to avoid invalid text mode.

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

9 years agoUpdated GraphicsOutput.h to follow UEFI 2.3.1 c spec.
li-elvin [Tue, 7 Aug 2012 09:20:44 +0000 (09:20 +0000)]
Updated GraphicsOutput.h to follow UEFI 2.3.1 c spec.

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

9 years agoThe format strings are using notations that require UINTNs (like "0x%02x") but a...
ydong10 [Tue, 7 Aug 2012 00:54:29 +0000 (00:54 +0000)]
The format strings are using notations that require UINTNs (like "0x%02x") but a UINT64 type was being passed instead.  This patch adds a typecast to UINTN so the print processing works correctly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13597 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix a width count error in ClearScreen function.
ydong10 [Tue, 7 Aug 2012 00:47:06 +0000 (00:47 +0000)]
Fix a width count error in ClearScreen function.

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

9 years agoRefine code to follow coding style.
ydong10 [Tue, 7 Aug 2012 00:44:28 +0000 (00:44 +0000)]
Refine code to follow coding style.

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