mirror_edk2.git
8 years agoArmPlatformPkg/ArmVExpressPkg: Fixed build issue
oliviermartin [Wed, 1 Aug 2012 10:07:33 +0000 (10:07 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Fixed build issue

ConSpillter now requires DxeServicesLib.

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

8 years agoMove PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey...
czhang46 [Wed, 1 Aug 2012 08:09:15 +0000 (08:09 +0000)]
Move PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey service can act accordingly

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

8 years agoOvmfPkg/AcpiTables/Dsdt.asl: report the PCI IO ranges set in FWDT
jljusten [Tue, 31 Jul 2012 18:18:20 +0000 (18:18 +0000)]
OvmfPkg/AcpiTables/Dsdt.asl: report the PCI IO ranges set in FWDT

Based on SeaBIOS commit 2062f2ba by Gerd Hoffmann <kraxel@redhat.com>.

v3: comments on FWDT fields

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

8 years agoOvmfPkg/AcpiTables/Dsdt.asl: strip trailing whitespace
jljusten [Tue, 31 Jul 2012 18:18:11 +0000 (18:18 +0000)]
OvmfPkg/AcpiTables/Dsdt.asl: strip trailing whitespace

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

8 years agoOvmfPkg: scan memory space map and populate FWDT (32-bit fields only)
jljusten [Tue, 31 Jul 2012 18:18:01 +0000 (18:18 +0000)]
OvmfPkg: scan memory space map and populate FWDT (32-bit fields only)

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: minor cleanup]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13574 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: install an SSDT with a dynamic OperationRegion called FWDT
jljusten [Tue, 31 Jul 2012 18:17:51 +0000 (18:17 +0000)]
OvmfPkg: install an SSDT with a dynamic OperationRegion called FWDT

"FWDT" ("firmware data") is allocated as EfiReservedMemoryType, with
AllocateReservedPool(). <MdePkg/Include/Library/MemoryAllocationLib.h>
doesn't seem to provide direct access to EfiACPIReclaimMemory, but at this
point the former seems sufficient.

Based on SeaBIOS commit 2062f2ba by Gerd Hoffmann <kraxel@redhat.com>.

v3:
- coding style fixes:
  - BDAT     -> FWDT
  - __packed -> #pragma pack(1)
  - BFLD     -> FIRMWARE_DATA, PCI_WINDOW
  - Bfld     -> FwData
- Ssdt.asl: changed license to 2-clause BSDL, paraphrasing Dsdt.asl

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

8 years agoOvmfPkg: clean up memory map
jljusten [Tue, 31 Jul 2012 18:17:37 +0000 (18:17 +0000)]
OvmfPkg: clean up memory map

Fix IO-APIC range size.
Add HPET.
Take LAPIC base from PCD and fix range size.

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

8 years agoOvmfPkg/*.dsc: Move PCD locations to be similar to OvmfPkgIa32X64.dsc
jljusten [Tue, 31 Jul 2012 17:54:39 +0000 (17:54 +0000)]
OvmfPkg/*.dsc: Move PCD locations to be similar to OvmfPkgIa32X64.dsc

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

8 years agoOvmfPkg: Move DxeServicesTableLib to common LibraryClasses
jljusten [Tue, 31 Jul 2012 17:54:30 +0000 (17:54 +0000)]
OvmfPkg: Move DxeServicesTableLib to common LibraryClasses

ConSplitterDxe (UEFI_DRIVER) now uses this library class.
Move the library mapping to the common LibraryClasses section.

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

8 years agoOvmfPkg: Disable debugging for UNIXGCC to save space
jljusten [Tue, 31 Jul 2012 17:54:18 +0000 (17:54 +0000)]
OvmfPkg: Disable debugging for UNIXGCC to save space

UNIXGCC builds larger images than GCC44, and can have issues
fitting into the FD image. Therefore, when using UNIXGCC,
debug will be disabled by default.

The README file is updated with instructions for selectively
enabling debug for 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@13569 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 06:06:32 +0000 (06:06 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

8 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 06:04:13 +0000 (06:04 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

8 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 05:56:33 +0000 (05:56 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

8 years agoChange the type of NotifyHandle from EFI_HANDLE to VOID * for SimpleTextInEx protocol.
niruiyu [Mon, 30 Jul 2012 03:50:42 +0000 (03:50 +0000)]
Change the type of NotifyHandle from EFI_HANDLE to VOID * for SimpleTextInEx protocol.
Clean up the code to remove unnecessary NotifyHandle in the private data structure.

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

8 years agoFix some typo and coding style issues in BaseCryptLib instances.
tye1 [Fri, 27 Jul 2012 07:49:42 +0000 (07:49 +0000)]
Fix some typo and coding style issues in BaseCryptLib instances.

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

8 years agoClose the corresponding GUIDed section extraction protocol notify event in CloseSecti...
lzeng14 [Fri, 27 Jul 2012 02:35:24 +0000 (02:35 +0000)]
Close the corresponding GUIDed section extraction protocol notify event in CloseSectionStream.

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

8 years agoOvmfPkg: add support for debug console on port 0x402
jljusten [Thu, 26 Jul 2012 16:36:39 +0000 (16:36 +0000)]
OvmfPkg: add support for debug console on port 0x402

This patch adds support for a debug console on the same port that is used
by SeaBIOS.  This makes it easier to debug OVMF, because it does not mix
debug and serial output on the same device.  It also makes it easier to
leave some of the debug messages on even in release builds.

To enable it, pass "-debugcon stdio -global isa-debugcon.iobase=0x402" to
QEMU.

The new mechanism is enabled by default, but a regular serial console can
be chosen by adding -D DEBUG_ON_SERIAL_PORT to the build options.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: MAX_DEBUG_MESSAGE_LENGTH=>0x100, p=>Ptr]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13562 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUnixPkg/Sec: Fixed build
oliviermartin [Thu, 26 Jul 2012 09:16:01 +0000 (09:16 +0000)]
UnixPkg/Sec: Fixed build

IntelFrameworkModulePkg.dec is required to define gEfiIntelFrameworkModulePkgTokenSpaceGuid.Pcd*
in DSC file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13561 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change...
oliviermartin [Thu, 26 Jul 2012 09:12:46 +0000 (09:12 +0000)]
MdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change of sign'

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

8 years agoFix build fail for GCC
ydong10 [Thu, 26 Jul 2012 07:44:26 +0000 (07:44 +0000)]
Fix build fail for GCC

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

8 years agoFixed issues:
ydong10 [Thu, 26 Jul 2012 07:15:31 +0000 (07:15 +0000)]
Fixed issues:
1.Refine the logic about show different attribute.
2.Refine the logic about allocate memory for variable name and data.

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

8 years agoRoll back the change which caused build fail
ydong10 [Thu, 26 Jul 2012 05:42:43 +0000 (05:42 +0000)]
Roll back the change which caused build fail

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

8 years agoFix a failure in TCG HashAll interface.
gdong1 [Thu, 26 Jul 2012 05:17:35 +0000 (05:17 +0000)]
Fix a failure in TCG HashAll interface.

signed-off by Tao Hengyan <hengyan.tao@intel.com>
reviewed by Dong Guo <guo.dong@intel.com>
reviewed by Long Qin <qin.long@intel.com>

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

8 years agoEnhance TCG driver to provide TPM physical presence lifetime lock capability.
gdong1 [Thu, 26 Jul 2012 05:11:47 +0000 (05:11 +0000)]
Enhance TCG driver to provide TPM physical presence lifetime lock capability.

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

8 years agoFix the typo in InstallMultipleProtocolInterfaces comments
niruiyu [Wed, 25 Jul 2012 06:45:49 +0000 (06:45 +0000)]
Fix the typo in InstallMultipleProtocolInterfaces comments

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

8 years agoUse RsaGetPublicKeyFromX509() to validate the given X.509 certificate for PK/KEK...
sfu5 [Wed, 25 Jul 2012 02:01:58 +0000 (02:01 +0000)]
Use RsaGetPublicKeyFromX509() to validate the given X.509 certificate for PK/KEK/db/dbx database.

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

8 years agoCorrect a typo in EFI_EDID_ACTIVE_PROTOCOL and EFI_EDID_DISCOVERED_PROTOCOL comments.
niruiyu [Tue, 24 Jul 2012 07:17:24 +0000 (07:17 +0000)]
Correct a typo in EFI_EDID_ACTIVE_PROTOCOL and EFI_EDID_DISCOVERED_PROTOCOL comments.

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

8 years agoOvmfPkg: introduce QemuFwCfgFindFile ()
jljusten [Mon, 23 Jul 2012 17:10:29 +0000 (17:10 +0000)]
OvmfPkg: introduce QemuFwCfgFindFile ()

Tested with the "bootorder" fw_cfg file. Example contents (leading space
added and line terminators transcribed for readability):

  /pci@i0cf8/ide@1,1/drive@0/disk@0<LF>
  /pci@i0cf8/ide@1,1/drive@1/disk@0<LF>
  /pci@i0cf8/ethernet@3/ethernet-phy@0<NUL>

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

8 years agoShellPkg: Update string to number conversion to correctly stop at spaces if so requested.
jcarsey [Mon, 23 Jul 2012 16:32:09 +0000 (16:32 +0000)]
ShellPkg: Update string to number conversion to correctly stop at spaces if so requested.

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

8 years agoAdd logic to check the execution break flag before executing the next command in...
ydong10 [Mon, 23 Jul 2012 03:17:09 +0000 (03:17 +0000)]
Add logic to check the execution break flag before executing the next command in a script file.

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

8 years agoUpdate the secure boot configuration UI to accept *.crt certificate file.
sfu5 [Mon, 23 Jul 2012 01:03:53 +0000 (01:03 +0000)]
Update the secure boot configuration UI to accept *.crt certificate file.

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

8 years agoAdd more security check for CommBuffer+CommBufferSize.
jyao1 [Mon, 23 Jul 2012 00:59:26 +0000 (00:59 +0000)]
Add more security check for CommBuffer+CommBufferSize.

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

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

8 years agoAdjust library instances used in SecurityPkg by proper module type.
tye1 [Fri, 20 Jul 2012 03:36:21 +0000 (03:36 +0000)]
Adjust library instances used in SecurityPkg by proper module type.
Signed-off-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@13544 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/AcpiPlatformDxe: rely on built-in checksumming
jljusten [Wed, 18 Jul 2012 22:34:01 +0000 (22:34 +0000)]
OvmfPkg/AcpiPlatformDxe: rely on built-in checksumming

Implementation in
"MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c":

  InstallAcpiTable()
    SetAcpiTable(... Checksum=TRUE ...)
      AddTableToList(... Checksum=TRUE ...)
        AcpiPlatformChecksum()

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

8 years agoOvmfPkg/AcpiPlatformDxe/Xen.c: reuse CalculateSum8
jljusten [Wed, 18 Jul 2012 22:33:48 +0000 (22:33 +0000)]
OvmfPkg/AcpiPlatformDxe/Xen.c: reuse CalculateSum8

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

8 years agoOvmfPkg/AcpiPlatformDxe: Add Xen ACPI tables support
jljusten [Wed, 18 Jul 2012 22:33:33 +0000 (22:33 +0000)]
OvmfPkg/AcpiPlatformDxe: Add Xen ACPI tables support

This patch adds Xen ACPI tables support to OVMF.
Use EFI_ACPI_TABLE_PROTOCOL to publish all Xen ACPI tables in OVMF,
while keeping the Qemu and KVM support.

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

8 years agoStdLib/LibC/Uefi/Devices/Console/daConsole.c: Fix bug where unconvertable wide chara...
darylm503 [Wed, 18 Jul 2012 18:23:25 +0000 (18:23 +0000)]
StdLib/LibC/Uefi/Devices/Console/daConsole.c:  Fix bug where unconvertable wide characters would cause the code to hang or generate an exception.

When the WideTtyCvt() function encountered an unconvertable character, it properly replaced it but did not update the byte count, numB, to 1 and instead left it at -1.

This fix sets numB to 1 when an unconvertable character is replaced.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: tim.lewis@insidesw.com
Reviewed-by: daryl.mcdaniel@intel.com
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13540 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd interfaces to several library instances of BaseCryptLib.
tye1 [Wed, 18 Jul 2012 09:32:05 +0000 (09:32 +0000)]
Add interfaces to several library instances of BaseCryptLib.

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

8 years agoTo follow UEFI spec, update the code to make correct check to support multiple _ADR...
li-elvin [Wed, 18 Jul 2012 06:21:08 +0000 (06:21 +0000)]
To follow UEFI spec, update the code to make correct check to support multiple _ADR fields.

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

8 years agoAdded secure boot in CSM module entrypoint, if UEFI secure boot is enabled, CSM modul...
li-elvin [Tue, 17 Jul 2012 09:25:26 +0000 (09:25 +0000)]
Added secure boot in CSM module entrypoint, if UEFI secure boot is enabled, CSM module cannot be started.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13537 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago1. Remove extra attribute for SetupMode, SignatureSupport and SecureBoot variable.
sfu5 [Tue, 17 Jul 2012 08:38:58 +0000 (08:38 +0000)]
1. Remove extra attribute for SetupMode, SignatureSupport and SecureBoot variable.
2. Allow the PK owner to update db/dbx variable directly.

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

8 years agoReturn EFI_UNSUPPORTED if READY_TO_BOOT function is invoked at SMM runtime.
sfu5 [Tue, 17 Jul 2012 08:21:42 +0000 (08:21 +0000)]
Return EFI_UNSUPPORTED if READY_TO_BOOT function is invoked at SMM runtime.

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

8 years agoFix a buffer overflow bug in VariableSmm driver.
sfu5 [Tue, 17 Jul 2012 08:07:29 +0000 (08:07 +0000)]
Fix a buffer overflow bug in VariableSmm driver.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13534 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate HobLib and Hob Service to avoid data over flow.
lgao4 [Tue, 17 Jul 2012 01:51:26 +0000 (01:51 +0000)]
Update HobLib and Hob Service to avoid data over flow.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13533 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate HobLib and Hob Service to avoid data over flow.
lgao4 [Tue, 17 Jul 2012 01:50:52 +0000 (01:50 +0000)]
Update HobLib and Hob Service to avoid data over flow.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13532 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoVerify the provided PKpub is signed with its private key when enrolling a new PK...
sfu5 [Fri, 13 Jul 2012 06:12:58 +0000 (06:12 +0000)]
Verify the provided PKpub is signed with its private key when enrolling a new PK variable in setup mode.

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

8 years agoAdd SMRAM range check to variable SMM SMI handler.
czhang46 [Fri, 13 Jul 2012 05:15:06 +0000 (05:15 +0000)]
Add SMRAM range check to variable SMM SMI handler.

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

8 years agoRemove unused CapsuleReset() in MdeModulePkg\Universal\ResetSystemRuntimeDxe\ResetSys...
lzeng14 [Fri, 13 Jul 2012 03:20:28 +0000 (03:20 +0000)]
Remove unused CapsuleReset() in MdeModulePkg\Universal\ResetSystemRuntimeDxe\ResetSystem.c.

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

8 years agoArmPkg/CompilerIntrinsicsLib: Added missing __aeabi_uread8 and __aeabi_uwrite8
oliviermartin [Thu, 12 Jul 2012 18:00:36 +0000 (18:00 +0000)]
ArmPkg/CompilerIntrinsicsLib: Added missing __aeabi_uread8 and __aeabi_uwrite8

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

8 years agoClean up include of ACPI header file so that only IndustryStandard/Acpi.h is needed...
lzeng14 [Thu, 12 Jul 2012 06:18:22 +0000 (06:18 +0000)]
Clean up include of ACPI header file so that only IndustryStandard/Acpi.h is needed for supported ACPI version(e.g. Acpi40.h, Acpi50.h).

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

8 years agoFix a bug in DxeImageVerificationLib which will pass incorrect trust cert size to...
sfu5 [Thu, 12 Jul 2012 01:13:37 +0000 (01:13 +0000)]
Fix a bug in DxeImageVerificationLib which will pass incorrect trust cert size to AuthenticodeVerify() function.

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

8 years agoUpdate the secure boot configuration UI to accept *.der certificate file as the Platf...
sfu5 [Thu, 12 Jul 2012 01:09:00 +0000 (01:09 +0000)]
Update the secure boot configuration UI to accept *.der certificate file as the Platform Key.

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

8 years agoShellPkg: update pci enumeration routine for platforms with multiple pci segments.
jcarsey [Wed, 11 Jul 2012 19:08:40 +0000 (19:08 +0000)]
ShellPkg: update pci enumeration routine for platforms with multiple pci segments.

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

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

8 years agoArmPlatformPkg/ArmVExpressLibCTA9x4: Fixed build
oliviermartin [Wed, 11 Jul 2012 18:57:31 +0000 (18:57 +0000)]
ArmPlatformPkg/ArmVExpressLibCTA9x4: Fixed build

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

8 years agoOvmfPkg BDS: Remove support for loading vgabios-cirrus.bin from 0xc0000
jljusten [Tue, 10 Jul 2012 22:43:42 +0000 (22:43 +0000)]
OvmfPkg BDS: Remove support for loading vgabios-cirrus.bin from 0xc0000

Older QEMU versions would load vgabios-cirrus.bin at 0xc0000 in
system RAM. We would then find this ROM, and try to run it, since
it would be our QEMU Video driver.

Now, the QEMU Video driver is just merged into the main OVMF
firmware image, so this support is unused.

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

8 years agoaccept "-n THREADNUMBER" in OvmfPkg build script
jljusten [Tue, 10 Jul 2012 22:43:30 +0000 (22:43 +0000)]
accept "-n THREADNUMBER" in OvmfPkg build script

v1->v2:
- change from "-j JOBS"

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

8 years agoembed OvmfVideo.rom into OVMF.fd
jljusten [Tue, 10 Jul 2012 22:43:19 +0000 (22:43 +0000)]
embed OvmfVideo.rom into OVMF.fd

This enables qemu to use OVMF with a single -bios option. Based on
<http://lists.xen.org/archives/html/xen-devel/2012-03/msg01992.html>.

v1->v2:
- move xen-devel link from code to commit message
- cover all three FDF files

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: remove vgabios-cirrus.bin from build.sh/README]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13520 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoincrease MEMFD size to enable secure boot build
jljusten [Tue, 10 Jul 2012 22:43:05 +0000 (22:43 +0000)]
increase MEMFD size to enable secure boot build

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

8 years agoAdd SMRAM range check to fault tolerant write SMM SMI handler.
ydong10 [Tue, 10 Jul 2012 08:09:09 +0000 (08:09 +0000)]
Add SMRAM range check to fault tolerant write SMM SMI handler.

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

8 years agoDuetPkg DuetPkgIa32.dsc & DuetPkgX64.dsc: Add library class and instance mapping...
rsun3 [Tue, 10 Jul 2012 04:57:44 +0000 (04:57 +0000)]
DuetPkg DuetPkgIa32.dsc & DuetPkgX64.dsc: Add library class and instance mapping for UefiCpuLib after UefiCpuPkg\CpuDxe consumes UefiCpuLib.

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

8 years agoEmbeddedPkg/EmbeddedPkg.dec: Add missing PcdMetronomeTickPeriod PCD
oliviermartin [Mon, 9 Jul 2012 19:45:32 +0000 (19:45 +0000)]
EmbeddedPkg/EmbeddedPkg.dec: Add missing PcdMetronomeTickPeriod PCD

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

8 years agoReset the platform when user choose to enroll/delete the PK variable.
sfu5 [Mon, 9 Jul 2012 09:17:00 +0000 (09:17 +0000)]
Reset the platform when user choose to enroll/delete the PK variable.

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

8 years agoAdd SMRAM range check to variable SMM SMI handler.
czhang46 [Mon, 9 Jul 2012 08:26:35 +0000 (08:26 +0000)]
Add SMRAM range check to variable SMM SMI handler.

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

8 years agoDefer TCG table publish after LASA/LAML in the table got updated.
gdong1 [Mon, 9 Jul 2012 03:22:21 +0000 (03:22 +0000)]
Defer TCG table publish after LASA/LAML in the table got updated.

signed-off by Tao Hengyan <hengyan.tao@intel.com>
reviewed by Dong Guo <guo.dong@intel.com>
reviewed by Hot Tian <hot.tian@intel.com>

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

8 years agoInclude read data buffer in CommBufferSize when calculate the buffer size.
ydong10 [Mon, 9 Jul 2012 02:03:47 +0000 (02:03 +0000)]
Include read data buffer in CommBufferSize when calculate the buffer size.

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

8 years agoUefiCpuPkg CpuDxe: Call UefiCpuLib.InitializeFloatingPointUnits () to initialize...
rsun3 [Fri, 6 Jul 2012 05:49:53 +0000 (05:49 +0000)]
UefiCpuPkg CpuDxe: Call UefiCpuLib.InitializeFloatingPointUnits () to initialize X87 FPU Control Word for BSP.

For a platform tip with 32-bit PEI+64-bit DXE, InitializeFloatingPointUnits () should be called for BSP in the DXE phase.

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

8 years agoMdeModulePkg/Ata: add dynamic type to PcdAtaSmartEnable
erictian [Fri, 6 Jul 2012 05:29:25 +0000 (05:29 +0000)]
MdeModulePkg/Ata: add dynamic type to PcdAtaSmartEnable

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

8 years agoWhen do discard action, enable callback action for questions which have value changed.
ydong10 [Fri, 6 Jul 2012 02:27:33 +0000 (02:27 +0000)]
When do discard action, enable callback action for questions which have value changed.

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

8 years agoRefine the message for Reset request.
ydong10 [Fri, 6 Jul 2012 01:51:43 +0000 (01:51 +0000)]
Refine the message for Reset request.

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

8 years agoUpdate the logic to force user to reset when change configuration which need to reset.
ydong10 [Fri, 6 Jul 2012 00:59:08 +0000 (00:59 +0000)]
Update the logic to force user to reset when change configuration which need to reset.

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

8 years agoUefiCpuPkg BaseUefiCpuLib: Change the initialization value for x87 FPU Control Word...
rsun3 [Thu, 5 Jul 2012 08:44:57 +0000 (08:44 +0000)]
UefiCpuPkg BaseUefiCpuLib: Change the initialization value for x87 FPU Control Word for x64 arch from 0x27f to 0x37f per UEFI 2.3.1c spec.

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

8 years ago1. Reset system when user changes secure boot state in secure boot configuration...
sfu5 [Thu, 5 Jul 2012 08:08:12 +0000 (08:08 +0000)]
1. Reset system when user changes secure boot state in secure boot configuration form.
2. Update the method to detect secure boot state in DxeImageVerificationLib and secure boot configuration driver.

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

8 years agoUpdate header file to match UEFI231B mantis 771, 850, 853 and 857.
lgao4 [Thu, 5 Jul 2012 04:52:43 +0000 (04:52 +0000)]
Update header file to match UEFI231B mantis 771, 850, 853 and 857.

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

8 years agoArmPkg/BdsLib: Fixed cache cleaning in PreparePlatformHardware()
oliviermartin [Wed, 4 Jul 2012 20:24:25 +0000 (20:24 +0000)]
ArmPkg/BdsLib: Fixed cache cleaning in PreparePlatformHardware()

Because the D&I caches were clean before to be disabled, the cache
lines might have got dirty during the cache maintenance operations.
This fix disables D&I caches before to clean them. The performance
drops should be minimised as invalidating the I cache is only a
couple of instruction.

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

8 years agoARM Packages: Fixed mispellings
oliviermartin [Wed, 4 Jul 2012 20:23:21 +0000 (20:23 +0000)]
ARM Packages: Fixed mispellings

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

8 years agoArmPkg/SemihostFs: Fixed DataAbort in Semihosting File System
oliviermartin [Wed, 4 Jul 2012 20:22:02 +0000 (20:22 +0000)]
ArmPkg/SemihostFs: Fixed DataAbort in Semihosting File System

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

8 years agoArmPkg/BdsLib: Fixed ShutdownUefiBootServices() in case the first gBS->GetMemoryMap...
oliviermartin [Wed, 4 Jul 2012 20:21:13 +0000 (20:21 +0000)]
ArmPkg/BdsLib: Fixed ShutdownUefiBootServices() in case the first gBS->GetMemoryMap() was successful

If the first call of gBS->GetMemoryMap() succeeded (could happen if the Memory Map
has changed between the two gBS->GetMemoryMap() calls) in the loop block then
gBS->ExitBootServices() was never called.

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

8 years agoArmPlatformPkg/Sec: Fixed Primary Non-Cold Boot Path
oliviermartin [Wed, 4 Jul 2012 20:20:21 +0000 (20:20 +0000)]
ArmPlatformPkg/Sec: Fixed Primary Non-Cold Boot Path

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

8 years agoArmPkg/TimerDxe: Fixed incorrect TimerTicks calculation
oliviermartin [Wed, 4 Jul 2012 20:18:41 +0000 (20:18 +0000)]
ArmPkg/TimerDxe: Fixed incorrect TimerTicks calculation

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

8 years agoArmPlatformPkg/PrePi: Declared the ARM MP Core Info
oliviermartin [Wed, 4 Jul 2012 20:17:46 +0000 (20:17 +0000)]
ArmPlatformPkg/PrePi: Declared the ARM MP Core Info

Registered the gArmMpCoreInfoGuid Data Hob.

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

8 years agoArmPkg/BaseMemoryLibStm: Removed duplicated instruction in InternalMemSetMem()
oliviermartin [Wed, 4 Jul 2012 20:16:14 +0000 (20:16 +0000)]
ArmPkg/BaseMemoryLibStm: Removed duplicated instruction in InternalMemSetMem()

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

8 years agoEmbeddedPkg/MetronomeDxe: Replaced hardcoded Tick Period by PcdMetronomeTickPeriod
oliviermartin [Wed, 4 Jul 2012 20:13:48 +0000 (20:13 +0000)]
EmbeddedPkg/MetronomeDxe: Replaced hardcoded Tick Period by PcdMetronomeTickPeriod

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

8 years agoARM Packages: Clean code (Remove unused PCDs, ...)
oliviermartin [Wed, 4 Jul 2012 20:12:29 +0000 (20:12 +0000)]
ARM Packages: Clean code (Remove unused PCDs, ...)

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

8 years agoArmPkg/AsmMacroIoLib: Renamed 'GetCorePositionInStack' macro into 'GetCorePositionFro...
oliviermartin [Wed, 4 Jul 2012 20:10:18 +0000 (20:10 +0000)]
ArmPkg/AsmMacroIoLib: Renamed 'GetCorePositionInStack' macro into 'GetCorePositionFromMpId'

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

8 years agoArmPlatformPkg/Sec: Added support for Non Cold Boot Paths
oliviermartin [Wed, 4 Jul 2012 20:08:54 +0000 (20:08 +0000)]
ArmPlatformPkg/Sec: Added support for Non Cold Boot Paths

For instance, in case of CpuHotPlug boot path the platform has already been
initialized. The CPU core should not execute any of the platform initialization
in this case.

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

8 years agoArmPkg/ArmPkg.dec: Removed duplicated PCD declarations
oliviermartin [Wed, 4 Jul 2012 20:07:28 +0000 (20:07 +0000)]
ArmPkg/ArmPkg.dec: Removed duplicated PCD declarations

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

8 years agoArmPkg: Fixed RVCT compiler warnings
oliviermartin [Wed, 4 Jul 2012 20:06:23 +0000 (20:06 +0000)]
ArmPkg: Fixed RVCT compiler warnings

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

8 years agoArmPkg/PL390Gic: Added support for ArmGicDisableInterruptInterface()
oliviermartin [Wed, 4 Jul 2012 20:02:49 +0000 (20:02 +0000)]
ArmPkg/PL390Gic: Added support for ArmGicDisableInterruptInterface()

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

8 years agoArmPkg/PL390Gic: Fixed initialization when the primary core is not (Cluster0,Cpu0)
oliviermartin [Wed, 4 Jul 2012 19:58:54 +0000 (19:58 +0000)]
ArmPkg/PL390Gic: Fixed initialization when the primary core is not (Cluster0,Cpu0)

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

8 years agoUpdate the comments for EFI_IFR_TYPE_VALUE to follow UEFI spec 2.3.1b
ydong10 [Wed, 4 Jul 2012 07:24:19 +0000 (07:24 +0000)]
Update the comments for EFI_IFR_TYPE_VALUE to follow UEFI spec 2.3.1b

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

8 years agoFix a buffer overflow bug in VariableSmm driver.
sfu5 [Wed, 4 Jul 2012 04:39:18 +0000 (04:39 +0000)]
Fix a buffer overflow bug in VariableSmm driver.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Zhang Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13486 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate PXE driver to wait for IPv6 duplicate address detection to finish.
sfu5 [Wed, 4 Jul 2012 04:34:10 +0000 (04:34 +0000)]
Update PXE driver to wait for IPv6 duplicate address detection 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@13485 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Fix recursion when deleting all variables.
ydong10 [Wed, 4 Jul 2012 01:14:07 +0000 (01:14 +0000)]
ShellPkg: Fix recursion when deleting all variables.

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

8 years agoReturn EFI_BROWSER_ACTION_REQUEST_FORM_APPLY action request to avoid discard action...
ydong10 [Tue, 3 Jul 2012 07:56:02 +0000 (07:56 +0000)]
Return EFI_BROWSER_ACTION_REQUEST_FORM_APPLY action request to avoid discard action useless.

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

8 years agoDuetPkg/SataController: Fix possible memory leak at error handling of SataController...
erictian [Tue, 3 Jul 2012 03:24:47 +0000 (03:24 +0000)]
DuetPkg/SataController: Fix possible memory leak at error handling of SataController driver

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jie Lin <jie.lin@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13482 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEdkCompatibilityPkg MpServicesOnFrameworkMpServicesThunk: Update .S files to be consi...
rsun3 [Mon, 2 Jul 2012 10:38:24 +0000 (10:38 +0000)]
EdkCompatibilityPkg MpServicesOnFrameworkMpServicesThunk: Update .S files to be consistent with corresponding .asm files.

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

8 years agoIn PcdBootlogoOnlyEnable case, Clear cursor & screen when key rather than Hotkey or
czhang46 [Mon, 2 Jul 2012 05:17:16 +0000 (05:17 +0000)]
In PcdBootlogoOnlyEnable case, Clear cursor & screen when key rather than Hotkey or
Enter is pressed to goto front page

Signed-off-by: czhang46
Reviewed-by: li-elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13480 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoChoose a better subnet mask value for the IPv4 address.
lpleahy [Fri, 29 Jun 2012 00:46:58 +0000 (00:46 +0000)]
Choose a better subnet mask value for the IPv4 address.

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

8 years agoTry to fix the error detected by the 64-bit GCC compiler.
lpleahy [Thu, 28 Jun 2012 00:35:53 +0000 (00:35 +0000)]
Try to fix the error detected by the 64-bit GCC compiler.

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

8 years agoAdd more SMRAM range check to 3 SMI handler.
czhang46 [Wed, 27 Jun 2012 05:08:49 +0000 (05:08 +0000)]
Add more SMRAM range check to 3 SMI handler.

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