]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
11 years ago1.Measure ACPI table data comes from flash event type EV_POST_CODE ACPI DATA to PCR[0]
czhang46 [Tue, 27 Nov 2012 05:16:15 +0000 (05:16 +0000)]
1.Measure ACPI table data comes from flash event type EV_POST_CODE ACPI DATA to PCR[0]
2.Re-measure ACPI table after fix up with event type EV_EFI_HANDOFF_TABLES to PCR[1]

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

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

11 years ago1.Measure ACPI table data comes from flash event type EV_POST_CODE ACPI DATA to PCR[0]
czhang46 [Tue, 27 Nov 2012 05:14:11 +0000 (05:14 +0000)]
1.Measure ACPI table data comes from flash event type EV_POST_CODE ACPI DATA to PCR[0]
2.Re-measure ACPI table after fix up with event type EV_EFI_HANDOFF_TABLES to PCR[1]

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

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

11 years agoEnhance the check for resource section data.
ydong10 [Mon, 26 Nov 2012 02:17:21 +0000 (02:17 +0000)]
Enhance the check for resource section data.

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

11 years agoEnhance the check for debug data before get the PdbPointer.
ydong10 [Mon, 26 Nov 2012 01:53:31 +0000 (01:53 +0000)]
Enhance the check for debug data before get the PdbPointer.

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

11 years agoFix IA32 build failure to add UINTN type cast.
li-elvin [Mon, 26 Nov 2012 00:34:34 +0000 (00:34 +0000)]
Fix IA32 build failure to add UINTN type cast.

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

11 years agoUpdate FrameBufferSize aligned with UEFI spec.
li-elvin [Fri, 23 Nov 2012 08:24:19 +0000 (08:24 +0000)]
Update FrameBufferSize aligned with UEFI spec.

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

11 years agoFix issue that RsaPkcs1Verify() may not work in PEI phase.
tye1 [Thu, 22 Nov 2012 05:07:22 +0000 (05:07 +0000)]
Fix issue that RsaPkcs1Verify() may not work in PEI phase.

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

11 years ago1. Correct the counter-based hash algorithm according to UEFI spec.
sfu5 [Wed, 21 Nov 2012 08:06:02 +0000 (08:06 +0000)]
1. Correct the counter-based hash algorithm according to UEFI spec.
2. Check the reserverd bit in variable attribute.
3. Return EFI_OUT_OF_RESOURCE instead of EFI_SECURITY_VIOLATION if there is not enough speace to store the public key.
4. Fix a bug when deleting a non-existent time-based auth variable, we store the certificate into cert DB incorrectly.
5. Fix a bug that time-based auth variable can't been updated again after append operation.

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

11 years agoFix GCC44 build failure.
li-elvin [Wed, 21 Nov 2012 03:03:32 +0000 (03:03 +0000)]
Fix GCC44 build failure.

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

11 years agoCorrect MACOR EFI_ERROR_RECORD_SIGNATURE_START definition in MdePkg.
lgao4 [Tue, 20 Nov 2012 07:00:16 +0000 (07:00 +0000)]
Correct MACOR EFI_ERROR_RECORD_SIGNATURE_START definition in MdePkg.

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

11 years agoRemove the useless code.
ydong10 [Tue, 20 Nov 2012 02:53:21 +0000 (02:53 +0000)]
Remove the useless code.

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

11 years agoIf IDE controller is not in IDE mode, we should not clear IO bar.
li-elvin [Tue, 20 Nov 2012 00:59:17 +0000 (00:59 +0000)]
If IDE controller is not in IDE mode, we should not clear IO bar.

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

11 years agoJust reserve memory space for page table, but not create it, and allocate the memory...
lzeng14 [Mon, 19 Nov 2012 02:15:46 +0000 (02:15 +0000)]
Just reserve memory space for page table, but not create it, and allocate the memory with ReservedMemory instead of ACPIMemoryNVS.

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

11 years agoUse IA32_IDT_GATE_DESCRIPTOR defined in BaseLib instead of local struct INTERRUPT_GAT...
lzeng14 [Fri, 16 Nov 2012 01:24:31 +0000 (01:24 +0000)]
Use IA32_IDT_GATE_DESCRIPTOR defined in BaseLib instead of local struct INTERRUPT_GATE_DESCRIPTOR.

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

11 years agoCheck mHiiPackageListUpdated before set it to FALSE.
ydong10 [Thu, 15 Nov 2012 08:13:23 +0000 (08:13 +0000)]
Check mHiiPackageListUpdated before set it to FALSE.

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

11 years agoEnhance CreatePopup to call ReadKeyStroke() before calling WaitForEvent(). This can...
niruiyu [Thu, 15 Nov 2012 06:31:43 +0000 (06:31 +0000)]
Enhance CreatePopup to call ReadKeyStroke() before calling WaitForEvent(). This can handle the case when in lazy ConIn mode.

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

11 years agoEnhance CreatePopup to call ReadKeyStroke() before calling WaitForEvent(). This can...
niruiyu [Thu, 15 Nov 2012 06:31:25 +0000 (06:31 +0000)]
Enhance CreatePopup to call ReadKeyStroke() before calling WaitForEvent(). This can handle the case when in lazy ConIn mode.

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

11 years agoRemove 0xc8000 check when searching PNP header. Remove the check about the size of...
li-elvin [Thu, 15 Nov 2012 02:10:44 +0000 (02:10 +0000)]
Remove 0xc8000 check when searching PNP header. Remove the check about the size of Init code when validating if PCI 3.0 OPROM is successfully started.

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

11 years agoShellPkg: Fix line responsible for deleting “cwd” variable when exit shell.
jcarsey [Wed, 14 Nov 2012 23:43:33 +0000 (23:43 +0000)]
ShellPkg: Fix line responsible for deleting “cwd” variable when exit shell.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13943 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEnhance SetupBrowser to call ReadKeyStroke() before calling WaitForEvent(). This...
niruiyu [Wed, 14 Nov 2012 06:30:39 +0000 (06:30 +0000)]
Enhance SetupBrowser to call ReadKeyStroke() before calling WaitForEvent(). This can handle the case when the UI is launched in lazy ConIn mode.

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

11 years agoMdeModulePkg/AtaAtapiPassThru: fix buffer overflow issue introduced by previous patch...
erictian [Wed, 14 Nov 2012 05:12:40 +0000 (05:12 +0000)]
MdeModulePkg/AtaAtapiPassThru: fix buffer overflow issue introduced by previous patch(r13932).

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

11 years agoFix issue that node is still reachable after executing ifconfig –c.
tye1 [Wed, 14 Nov 2012 01:43:18 +0000 (01:43 +0000)]
Fix issue that node is still reachable after executing ifconfig –c.

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

11 years agoShellPkg: Clean up header file usage.
jcarsey [Tue, 13 Nov 2012 22:39:09 +0000 (22:39 +0000)]
ShellPkg: Clean up header file usage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13939 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoShellPkg: Correct 3 places where memory was not being properly released by the shell.
jcarsey [Tue, 13 Nov 2012 16:08:52 +0000 (16:08 +0000)]
ShellPkg: Correct 3 places where memory was not being properly released by the shell.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Liu, Jiang A <jiang.a.liu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13938 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAllocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which...
lzeng14 [Mon, 12 Nov 2012 05:28:32 +0000 (05:28 +0000)]
Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which is not required to be restored by OS.

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

11 years agoBiosVideo allocate wrong size of buffer for EDID override data. Fix this issue to...
li-elvin [Mon, 12 Nov 2012 03:48:35 +0000 (03:48 +0000)]
BiosVideo allocate wrong size of buffer for EDID override data. Fix this issue to allocate correct buffer size.

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13934 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFree the buffer allocated by GetSectionFromAnyFv() when exit, and add Error Status...
lzeng14 [Mon, 12 Nov 2012 01:33:41 +0000 (01:33 +0000)]
Free the buffer allocated by GetSectionFromAnyFv() when exit, and add Error Status Check for InstallProtocolInterface(), GetSectionFromAnyFv() return.

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

11 years agoMdeModulePkg/AtaAtapiPassThru: valid ports transverse algo of AHCI controller is...
erictian [Fri, 9 Nov 2012 06:39:56 +0000 (06:39 +0000)]
MdeModulePkg/AtaAtapiPassThru: valid ports transverse algo of AHCI controller is updated to handle inconsecutive case

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

11 years agoRefine code to make it more safely.
ydong10 [Thu, 8 Nov 2012 03:15:20 +0000 (03:15 +0000)]
Refine code to make it more safely.

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

11 years agoBuild the registered guid HOB and SystemTable to record the GUID itself in PeiExtract...
lzeng14 [Thu, 8 Nov 2012 01:12:56 +0000 (01:12 +0000)]
Build the registered guid HOB and SystemTable to record the GUID itself in PeiExtractGuidedSectionLib and DxeExtractGuidedSectionLib, and also state the restriction in BaseExtractGuidedSectionLib.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13930 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMoved the PeiS3ResumeState access when PeiS3ResumeState is not 0, this will fix K9...
li-elvin [Wed, 7 Nov 2012 04:44:04 +0000 (04:44 +0000)]
Moved the PeiS3ResumeState access when PeiS3ResumeState is not 0, this will fix K9 error.

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

11 years agoFix ECC issue
czhang46 [Mon, 5 Nov 2012 02:52:13 +0000 (02:52 +0000)]
Fix ECC issue

Signed-off-by : chao zhang<chao.b.zhang@intel.com>
Reviewed-by  :  fan  jeff <jeff.fan@intel.com>

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

11 years agoOvmfPkg: Add support for qemu's -kernel parameter
jljusten [Fri, 2 Nov 2012 18:28:17 +0000 (18:28 +0000)]
OvmfPkg: Add support for qemu's -kernel parameter

If QEMU's -kernel parameter was used, then download the
kernel from the FwCfg interface, and launch it.  (See -kernel,
-initrd, -append) The application uses the LoadLinuxLib to boot
the kernel image.

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

11 years agoOvmfPkg: Add LoadLinuxLib library implementation
jljusten [Fri, 2 Nov 2012 18:27:55 +0000 (18:27 +0000)]
OvmfPkg: Add LoadLinuxLib library implementation

This code is based on efilinux's bzimage support.
git://git.kernel.org/pub/scm/boot/efilinux/efilinux.git

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

11 years agoOvmfPkg: Add LoadLinuxLib library interface
jljusten [Fri, 2 Nov 2012 18:26:48 +0000 (18:26 +0000)]
OvmfPkg: Add LoadLinuxLib library interface

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

11 years agoOvmfPkg: Add Linux bzimage include file
jljusten [Fri, 2 Nov 2012 18:26:30 +0000 (18:26 +0000)]
OvmfPkg: Add Linux bzimage include file

This file is from the efilinux project where it resides
under the path loaders/bzimage/bzimage.h.
git://git.kernel.org/pub/scm/boot/efilinux/efilinux.git

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

11 years agoAdd missing PCI class code definition.
niruiyu [Fri, 2 Nov 2012 06:13:14 +0000 (06:13 +0000)]
Add missing PCI class code definition.
PCI22/PCI23/PCI30 spec were reviewed and the missing definitions were added to accordingly Pci22.h/Pci23.h/Pci30.h.
All other class code definitions that are not defined in PCI Local Bus specification but in PCI Code and ID Assignment specification are defined in PciCodeId.h.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Liming Gao<liming.gao@intel.com>
Reviewed-by: Hot Tian<hot.tian@intel.com>
Reviewed-by: Elvin Li<elvin.li@intel.com>
Reviewed-by: Feng Tian<feng.tian@intel.com>
Reviewed-by: Jiewen Yao<jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13919 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate comments for functions UhciAllocateDev, EhcCreateUsb2Hc and XhcCreateUsbHc.
li-elvin [Fri, 2 Nov 2012 00:58:15 +0000 (00:58 +0000)]
Update comments for functions UhciAllocateDev, EhcCreateUsb2Hc and XhcCreateUsbHc.

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

11 years agoFixed one bug: gSmmCorePrivate->InSmm is not set to FALSE correctly before exiting
vanjeff [Thu, 1 Nov 2012 23:51:22 +0000 (23:51 +0000)]
Fixed one bug: gSmmCorePrivate->InSmm is not set to FALSE correctly before exiting

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Michael.D.Kinney <Michael.D.Kinney@intel.com>

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

11 years agoMdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModul...
erictian [Thu, 1 Nov 2012 06:59:25 +0000 (06:59 +0000)]
MdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModulePkg on PcdLib

Signed-off-by: Tian Feng <feng.tian@intel.com>
Reviewed-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@13909 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Physical Presence request UI detection logic. Refine UIConfirm ReadKey logic
czhang46 [Thu, 1 Nov 2012 04:46:26 +0000 (04:46 +0000)]
Add Physical Presence request UI detection logic. Refine UIConfirm ReadKey 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@13908 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix build fail.
ydong10 [Thu, 1 Nov 2012 03:55:20 +0000 (03:55 +0000)]
Fix build fail.

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

11 years agoAdd more check to make code more safely.
ydong10 [Thu, 1 Nov 2012 02:10:31 +0000 (02:10 +0000)]
Add more check to make code more safely.

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

11 years agoMdeModulePkg/AtaBusDxe: remove a redundant error check
erictian [Wed, 31 Oct 2012 09:33:40 +0000 (09:33 +0000)]
MdeModulePkg/AtaBusDxe: remove a redundant error check

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

11 years agoRaise TPL to high to disable CPU interrupt before 8259 legacy base vector is changed...
li-elvin [Wed, 31 Oct 2012 08:58:27 +0000 (08:58 +0000)]
Raise TPL to high to disable CPU interrupt before 8259 legacy base vector is changed, then restore TPL level at last when 8259 initialization is done.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13901 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInstall CustomGuidedSectionExtractionPpi for Tiano or Lzma DeCompression on S3 boot...
lgao4 [Wed, 31 Oct 2012 08:56:25 +0000 (08:56 +0000)]
Install CustomGuidedSectionExtractionPpi for Tiano or Lzma DeCompression on S3 boot in DxeIpl.

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

11 years agoRemove the unsupported SEC PEIM PEI_CORE module type from DxeS3BootScriptLib.
lzeng14 [Wed, 31 Oct 2012 03:31:08 +0000 (03:31 +0000)]
Remove the unsupported SEC PEIM PEI_CORE module type from DxeS3BootScriptLib.

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

11 years agoFix build failure of PcAtChipsetPkg.
li-elvin [Wed, 31 Oct 2012 01:41:54 +0000 (01:41 +0000)]
Fix build failure of PcAtChipsetPkg.

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

11 years agoFix build failure.
li-elvin [Wed, 31 Oct 2012 01:29:04 +0000 (01:29 +0000)]
Fix build failure.

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

11 years agoFix memory out of band access in AsmFxSave() and AsmFxRestore().
lgao4 [Tue, 30 Oct 2012 08:36:02 +0000 (08:36 +0000)]
Fix memory out of band access in AsmFxSave() and AsmFxRestore().

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

11 years agoFix memory out of band access in AsmFxSave() and AsmFxRestore().
lgao4 [Tue, 30 Oct 2012 08:35:08 +0000 (08:35 +0000)]
Fix memory out of band access in AsmFxSave() and AsmFxRestore().

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

11 years agoFix comment typo to use UEFI spec defined WIN_CERT_TYPE_EFI_GUID.
lgao4 [Tue, 30 Oct 2012 08:27:44 +0000 (08:27 +0000)]
Fix comment typo to use UEFI spec defined WIN_CERT_TYPE_EFI_GUID.

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

11 years agoAdd missing status code in several modules.
li-elvin [Tue, 30 Oct 2012 04:25:43 +0000 (04:25 +0000)]
Add missing status code in several modules.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
Reviewed-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13892 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing status code in several modules.
li-elvin [Tue, 30 Oct 2012 04:25:20 +0000 (04:25 +0000)]
Add missing status code in several modules.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
Reviewed-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13891 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing status code in several modules.
li-elvin [Tue, 30 Oct 2012 04:23:40 +0000 (04:23 +0000)]
Add missing status code in several modules.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
Reviewed-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13890 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing status code in several modules.
li-elvin [Tue, 30 Oct 2012 04:19:03 +0000 (04:19 +0000)]
Add missing status code in several modules.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
Reviewed-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13889 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCorrect the definition for Modal opcode, from EFI_IFR_MODAL to EFI_IFR_MODAL_TAG
ydong10 [Tue, 30 Oct 2012 02:08:44 +0000 (02:08 +0000)]
Correct the definition for Modal opcode, from EFI_IFR_MODAL to EFI_IFR_MODAL_TAG

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

11 years agoArmPlatformPkg/Scripts: Fixed the Makefile for Windows
oliviermartin [Mon, 29 Oct 2012 14:54:21 +0000 (14:54 +0000)]
ArmPlatformPkg/Scripts: Fixed the Makefile for Windows

This is the Makefile for the Windows version of Eclipse (use
MingW for Unix 'emulation').

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

11 years agoFix issue that ifconfig –c cannot clear IP address details.
tye1 [Mon, 29 Oct 2012 05:20:18 +0000 (05:20 +0000)]
Fix issue that ifconfig –c cannot clear IP address details.

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

11 years agoCreate a MAX_TIMER_TICK_DURATION for the error handling in 8254 timer module.
li-elvin [Thu, 25 Oct 2012 06:26:39 +0000 (06:26 +0000)]
Create a MAX_TIMER_TICK_DURATION for the error handling in 8254 timer module.

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

11 years agoAdd uninstalling GOP and UGA protocol in Consplitter Stop ().
li-elvin [Thu, 25 Oct 2012 06:16:14 +0000 (06:16 +0000)]
Add uninstalling GOP and UGA protocol in Consplitter Stop ().

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

11 years agoUse ReadUnaligned16 function to access the buffer which is pointed by a possible...
li-elvin [Wed, 24 Oct 2012 01:10:47 +0000 (01:10 +0000)]
Use ReadUnaligned16 function to access the buffer which is pointed by a possible unaligned pointer.

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

11 years agoOvmfPkg VirtioScsiDxe: Fix build with VS2010
jljusten [Tue, 23 Oct 2012 22:16:14 +0000 (22:16 +0000)]
OvmfPkg VirtioScsiDxe: Fix build with VS2010

Structures should not be directly assigned in EDK II
code, since this leads to different behaviours on various
compilers.

Instead, use ZeroMem to zero out the structures.

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

11 years agoAdd assertion to make sure the pointer is not NULL.
niruiyu [Tue, 23 Oct 2012 06:42:32 +0000 (06:42 +0000)]
Add assertion to make sure the pointer is not NULL.

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

11 years agoArmPlatformPkg/Scripts/Ds5: Added missing package declarations in Python scripts
oliviermartin [Mon, 22 Oct 2012 15:45:10 +0000 (15:45 +0000)]
ArmPlatformPkg/Scripts/Ds5: Added missing package declarations in Python scripts

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

11 years agoArmPlatformPkg/Scripts/Ds5: Updated DS-5 scripts to be used by DS-5 v5.12
oliviermartin [Mon, 22 Oct 2012 14:04:47 +0000 (14:04 +0000)]
ArmPlatformPkg/Scripts/Ds5: Updated DS-5 scripts to be used by DS-5 v5.12

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

11 years agoArmPlatformPkg/Scripts: Added ARM DS-5 scripts to debug UEFI
oliviermartin [Mon, 22 Oct 2012 14:01:38 +0000 (14:01 +0000)]
ArmPlatformPkg/Scripts: Added ARM DS-5 scripts to debug UEFI

These scripts allow to automatically load the symbols using either the
report file created by the BaseTools or using the memory regions
defined in the arguments.

This is the scripts for DS-5 prior to DS5 v5.12.

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

11 years ago Remove TPM selftest on S3 boot path to save time
czhang46 [Mon, 22 Oct 2012 04:35:59 +0000 (04:35 +0000)]
 Remove TPM selftest on S3 boot path to save time

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

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

11 years agoEmbeddedPkg/MmcDxe: Ensure MMC is in Identification Mode
oliviermartin [Fri, 19 Oct 2012 09:47:49 +0000 (09:47 +0000)]
EmbeddedPkg/MmcDxe: Ensure MMC is in Identification Mode

This change ensure the MMC card is in Identification Mode.
The card might be in Data Transfer Mode if a pre UEFI Boot Loader
had initialized the card.
A potential optimization would be to skip the Identification Mode
in this case.

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

11 years agoFix a bug that causes GCC build failure.
niruiyu [Fri, 19 Oct 2012 00:00:35 +0000 (00:00 +0000)]
Fix a bug that causes GCC build failure.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-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@13870 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug that incorrectly uses && instead of !! in IsKeyOptionVariable().
niruiyu [Thu, 18 Oct 2012 23:52:37 +0000 (23:52 +0000)]
Fix a bug that incorrectly uses && instead of !! in IsKeyOptionVariable().

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-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@13869 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: QemuBootOrder: recognize virtio-scsi devices
jljusten [Thu, 18 Oct 2012 17:08:01 +0000 (17:08 +0000)]
OvmfPkg: QemuBootOrder: recognize virtio-scsi devices

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

11 years agoOvmfPkg: introduce virtio-scsi driver
jljusten [Thu, 18 Oct 2012 17:07:48 +0000 (17:07 +0000)]
OvmfPkg: introduce virtio-scsi driver

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: fix build for VS2012]
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@13867 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: VirtioBlkDriverBindingStop: fix incorrect use of UEFI driver model
jljusten [Thu, 18 Oct 2012 17:07:24 +0000 (17:07 +0000)]
OvmfPkg: VirtioBlkDriverBindingStop: fix incorrect use of UEFI driver model

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

11 years agoArmPlatformPkg/BaseTools-Pending-Patches.patch: Added latest ARMGCC & ARMLINUXGCC...
oliviermartin [Thu, 18 Oct 2012 16:27:14 +0000 (16:27 +0000)]
ArmPlatformPkg/BaseTools-Pending-Patches.patch: Added latest ARMGCC & ARMLINUXGCC updated flags

All these changes are already in BaseTools subversion repository.

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

11 years agoFix coding style issue in CryptoPkg.
tye1 [Thu, 18 Oct 2012 09:09:36 +0000 (09:09 +0000)]
Fix coding style issue in CryptoPkg.

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

11 years agoUse %lx to print UINT64 value instead of %x.
niruiyu [Thu, 18 Oct 2012 08:41:56 +0000 (08:41 +0000)]
Use %lx to print UINT64 value instead of %x.

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

11 years agoFix a bug that BCFG creates Key#### variable bigger than it should be.
niruiyu [Thu, 18 Oct 2012 07:32:42 +0000 (07:32 +0000)]
Fix a bug that BCFG creates Key#### variable bigger than it should be.

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

11 years agoRemove the KeyOrder variable dependency from BDS
niruiyu [Thu, 18 Oct 2012 07:31:49 +0000 (07:31 +0000)]
Remove the KeyOrder variable dependency from BDS

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

11 years agoAdd manual configured gateway address back after system reset.
tye1 [Wed, 17 Oct 2012 08:41:49 +0000 (08:41 +0000)]
Add manual configured gateway address back after system reset.

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

11 years ago1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option...
sfu5 [Wed, 17 Oct 2012 08:23:41 +0000 (08:23 +0000)]
1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option on the different IP stack is selected.
2. Retrieve the IP information after iSCSI TCPv6 connection established and fill it into iBFT table.
3. Generate a random IAID for each NIC port to require different IPv6 address in PXE driver.
4. Update function EfiMtftp6Configure() and Mtftp6RrqHandleOack() to allocate at most one UdpIo.
5. Fix a typo from “destory” to “destroy” in network code.

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

11 years agoFix a bug in OpensslLib that PKCS7_verify will use over 8k stack space.
sfu5 [Wed, 17 Oct 2012 08:17:33 +0000 (08:17 +0000)]
Fix a bug in OpensslLib that PKCS7_verify will use over 8k stack space.

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

11 years agoFix buffer overflow issue in Consplitter.
li-elvin [Wed, 17 Oct 2012 06:07:27 +0000 (06:07 +0000)]
Fix buffer overflow issue in Consplitter.

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

11 years agoFix code potential errors in IPsec.
qianouyang [Wed, 17 Oct 2012 05:46:53 +0000 (05:46 +0000)]
Fix code potential errors in IPsec.

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

11 years agoFix ECC issue.
li-elvin [Wed, 17 Oct 2012 05:45:57 +0000 (05:45 +0000)]
Fix ECC issue.

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

11 years agoRemove useless MD5 OID ASN.1 value from DxeImageVerificationLib.
tye1 [Wed, 17 Oct 2012 02:26:11 +0000 (02:26 +0000)]
Remove useless MD5 OID ASN.1 value from DxeImageVerificationLib.

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

11 years agoAdd SPC_INDIRECT_DATA_OBJID check to make sure contentType equals to the
tye1 [Wed, 17 Oct 2012 02:13:54 +0000 (02:13 +0000)]
Add SPC_INDIRECT_DATA_OBJID check to make sure contentType equals to the
specific value defined in Authenticode PE specification.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Reviewed-by:Dong Guo <guo.dong@intel.com>

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

11 years agoFix code potential errors.
ydong10 [Tue, 16 Oct 2012 09:27:49 +0000 (09:27 +0000)]
Fix code potential errors.

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

11 years agoFix a typo in comments.
ydong10 [Tue, 16 Oct 2012 09:26:32 +0000 (09:26 +0000)]
Fix a typo in comments.

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

11 years agoUpdate SmiManager() to invoke all root SMI handlers to following PI Spec.
vanjeff [Tue, 16 Oct 2012 08:57:52 +0000 (08:57 +0000)]
Update SmiManager() to invoke all root SMI handlers to following PI Spec.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

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

11 years agoChange TPM ACCESS_X.activeLocality test timeout to TIMEOUT_A
czhang46 [Tue, 16 Oct 2012 02:58:08 +0000 (02:58 +0000)]
Change TPM ACCESS_X.activeLocality test timeout to TIMEOUT_A

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

11 years agoFix time-based and count-based authenticated variable can be updated by each other...
gdong1 [Mon, 15 Oct 2012 06:08:22 +0000 (06:08 +0000)]
Fix time-based and count-based authenticated variable can be updated by each other without verification.

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

11 years agoOvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build
jljusten [Sun, 14 Oct 2012 21:17:33 +0000 (21:17 +0000)]
OvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build

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

11 years agoOvmfPkg: VirtioBlkDxe: fix div & mod of 64-bit dividends on IA32/gcc-4.4
jljusten [Sun, 14 Oct 2012 21:17:20 +0000 (21:17 +0000)]
OvmfPkg: VirtioBlkDxe: fix div & mod of 64-bit dividends on IA32/gcc-4.4

OvmfPkg/VirtioBlkDxe/VirtioBlk.c:667: undefined reference to `__umoddi3'
OvmfPkg/VirtioBlkDxe/VirtioBlk.c:750: undefined reference to `__udivdi3'

These operations would come from libgcc in the IA32 build, but OVMF does not
link against libgcc.

Regression-tested the X64 build with Fedora 18 Alpha XFCE and Windows 8
Consumer Preview guests.

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

11 years agoOvmfPkg: MSVC build fixes for VirtioLib and VirtioBlkDxe
jljusten [Fri, 12 Oct 2012 18:54:52 +0000 (18:54 +0000)]
OvmfPkg: MSVC build fixes for VirtioLib and VirtioBlkDxe

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mike Lee <leemiketw@gmail.com>
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@13845 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: librarize reusable bits from VirtioBlkDxe's SynchronousRequest()
jljusten [Fri, 12 Oct 2012 18:54:35 +0000 (18:54 +0000)]
OvmfPkg: librarize reusable bits from VirtioBlkDxe's SynchronousRequest()

new VirtioLib functions:
- VirtioPrepare(): prepare for appending descriptors
- VirtioFlush(): submit descriptor chain and await host answer

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

11 years agoOvmfPkg: rename AppendDesc to VirtioAppendDesc
jljusten [Fri, 12 Oct 2012 18:54:17 +0000 (18:54 +0000)]
OvmfPkg: rename AppendDesc to VirtioAppendDesc

AppendDesc() should have a prefix implying its containing library,
VirtioLib. Update its sole client VirtioBlkDxe.

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

11 years agoOvmfPkg: extract VirtioLib from VirtioBlkDxe
jljusten [Fri, 12 Oct 2012 18:53:58 +0000 (18:53 +0000)]
OvmfPkg: extract VirtioLib from VirtioBlkDxe

Introduce a new library called VirtioLib, for now only collecting the
following reusable functions with as little changes as possible:

- VirtioWrite()
- VirtioRead()
- VirtioRingInit()
- VirtioRingUninit()
- AppendDesc()

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

11 years agoOvmfPkg: Include/IndustryStandard: extract VirtioBlk.h from Virtio.h
jljusten [Fri, 12 Oct 2012 18:53:36 +0000 (18:53 +0000)]
OvmfPkg: Include/IndustryStandard: extract VirtioBlk.h from Virtio.h

Separate virtio-blk related macro and type definitions from generic virtio
related ones. Adapt the virtio-blk driver since it needs the latter 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@13841 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: rename OFFSET_OF_VHDR() / SIZE_OF_VHDR() to *_OF_VBLK()
jljusten [Fri, 12 Oct 2012 18:53:20 +0000 (18:53 +0000)]
OvmfPkg: rename OFFSET_OF_VHDR() / SIZE_OF_VHDR() to *_OF_VBLK()

since they are in fact virtio-blk specific.

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