]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
8 years agoMdeModulePkg: Provide EfiBootManagerRegisterBootDescriptionHandler
Ruiyu Ni [Tue, 2 Jun 2015 09:03:38 +0000 (09:03 +0000)]
MdeModulePkg: Provide EfiBootManagerRegisterBootDescriptionHandler

This API can be used for platform to customize the boot description other than using core provided boot description.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17547 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd Sample I2C Library for Baytrail I2C Controller.
David Wei [Tue, 2 Jun 2015 01:47:57 +0000 (01:47 +0000)]
Add Sample I2C Library for Baytrail I2C Controller.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: David Wei <david.wei@intel.com>
Reviewed-by: Tim He <time.he@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17546 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools/Conf: Don't support upper case nasm extensions
Jordan Justen [Mon, 1 Jun 2015 23:21:00 +0000 (23:21 +0000)]
BaseTools/Conf: Don't support upper case nasm extensions

For *.asm and *.s, there have been cases of *.Asm and *.S files, but
since the nasm extensions are new, we don't need to support the upper
case extensions.

In other words, remove .Nasm and .NASM.

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

8 years agoMdeModulePkg DxeCore: Add debug message to assist TPL related issues.
Star Zeng [Mon, 1 Jun 2015 06:40:38 +0000 (06:40 +0000)]
MdeModulePkg DxeCore: Add debug message to assist TPL related issues.

The debug message is to print the current TPL and requested TPL value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17543 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Move ACPI default PCDs to support PCD dynamic.
Star Zeng [Sun, 31 May 2015 01:55:43 +0000 (01:55 +0000)]
MdeModulePkg: Move ACPI default PCDs to support PCD dynamic.

Move ACPI default PCDs
  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId
  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemTableId
  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision
  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId
  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision
from [PcdsFixedAtBuild, PcdsPatchableInModule] to
[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]
to cover some platforms want to update them at boot time.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17542 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMaintainers.txt: Added Leif Lindholm as a co-maintainer
Olivier Martin [Fri, 29 May 2015 16:23:52 +0000 (16:23 +0000)]
Maintainers.txt: Added Leif Lindholm as a co-maintainer

Leif becomes a co-maintainer for the ARM Packages.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17541 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/AcpiLib: Introduced LocateAndInstallAcpiFromFvConditional()
Olivier Martin [Fri, 29 May 2015 14:39:41 +0000 (14:39 +0000)]
EmbeddedPkg/AcpiLib: Introduced LocateAndInstallAcpiFromFvConditional()

This new helper function allows to install ACPI Table on condition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17540 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/BdsLib: Fixed TFTP when there are directories in the name
Olivier Martin [Fri, 29 May 2015 14:00:39 +0000 (14:00 +0000)]
ArmPkg/BdsLib: Fixed TFTP when there are directories in the name

The TFTP Device Path might contain a list of File Path device
path nodes.
ConvertDevicePathToText() allows to concatenate these File Path
nodes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17539 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMaintainers.txt: Assigned new maintainers for ArmVirtPkg
Olivier Martin [Fri, 29 May 2015 13:54:21 +0000 (13:54 +0000)]
Maintainers.txt: Assigned new maintainers for ArmVirtPkg

Added Laszlo Ersek and Ard Biesheuvel as maintainers
for ArmVirtPkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17538 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRenamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg
Olivier Martin [Fri, 29 May 2015 13:50:43 +0000 (13:50 +0000)]
Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17537 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/UfsPciHcDxe: Fix EBC build error
Feng Tian [Fri, 29 May 2015 05:33:25 +0000 (05:33 +0000)]
MdeModulePkg/UfsPciHcDxe: Fix EBC build error

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17536 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/DxeCore: Fixed build error.
Star Zeng [Fri, 29 May 2015 04:04:01 +0000 (04:04 +0000)]
MdeModulePkg/DxeCore: Fixed build error.

ARM toolchain raises the build error: "enumerated type mixed with
another type".

To fix the issue, typecase can be used like below.
 -    return EfiMaxMemoryType + 1;
 +    return (EFI_MEMORY_TYPE)(EfiMaxMemoryType + 1);

But to eliminate the confusion, update the return type of
GetProfileMemoryIndex() from EFI_MEMORY_TYPE to UINTN.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17535 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Update help output for correct alphabetical
Jaben Carsey [Thu, 28 May 2015 18:29:15 +0000 (18:29 +0000)]
ShellPkg: Update help output for correct alphabetical

This updates help output to put dynamic commands in correct alphabetical location mixed into the other commands.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17534 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/Ufs: Refine EDKII_UFS_HOST_CONTROLLER_PROTOCOL interface
Feng Tian [Thu, 28 May 2015 07:42:05 +0000 (07:42 +0000)]
MdeModulePkg/Ufs: Refine EDKII_UFS_HOST_CONTROLLER_PROTOCOL interface

The EDKII_UFS_HOST_CONTROLLER_PROTOCOL is refined to provide
interfaces accessing UFS host controller MMIO register.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17533 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/PciBusDxe: Remove unused variable assignment
Olivier Martin [Thu, 28 May 2015 01:55:15 +0000 (01:55 +0000)]
MdeModulePkg/PciBusDxe: Remove unused variable assignment

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17532 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd HII string definition for DTS.
Shifei Lu [Thu, 28 May 2015 01:27:46 +0000 (01:27 +0000)]
Add HII string definition for DTS.

Add string ” DTS” and help info string” Enabled/Disable Digital Thermal Sensor”.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shifei Lu <shifeix.a.lu@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17531 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/HiiDatabaseDxe: Fixed build error.
Olivier Martin [Thu, 28 May 2015 00:49:30 +0000 (00:49 +0000)]
MdeModulePkg/HiiDatabaseDxe: Fixed build error.

ARM toolchain raises the error: "statement is unreachable"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17529 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmJunoDxe: Fixed PCI Root bridge device path
Olivier Martin [Wed, 27 May 2015 15:12:25 +0000 (15:12 +0000)]
ArmPlatformPkg/ArmJunoDxe: Fixed PCI Root bridge device path

The PCI Root bridge is defined by PciRoot(0x0)/Pci(0x0,0x0).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17528 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg: Fix Ebl dumpgcd bug with memory type and IO type
Heyi Guo [Wed, 27 May 2015 15:11:19 +0000 (15:11 +0000)]
EmbeddedPkg: Fix Ebl dumpgcd bug with memory type and IO type

1. Data type for GcdMemoryType and GcdIoType is enumeration type
rather than bit field, so we need to use strict equation "=="
instead of bit-and "&";
2. Testing for GcdIoType should use EfiGcdIoType*** constants
rather than EfiGcdMemoryType***;
3. As we are going to use strict equation, it is clearer to use
switch-case than if-else.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17527 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg: Expand AArch64 address width to 48 bits
Heyi Guo [Wed, 27 May 2015 15:10:10 +0000 (15:10 +0000)]
ArmPkg: Expand AArch64 address width to 48 bits

The VA address space has a maximum address width of 48 bits in
AArch64 state; 48 bits address width limit will provide better
compatibility than 40 bits for future CPU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17526 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/FdtPlatformDxe: Add FdtLib to the required libraries
Olivier Martin [Wed, 27 May 2015 15:09:12 +0000 (15:09 +0000)]
EmbeddedPkg/FdtPlatformDxe: Add FdtLib to the required libraries

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17525 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmJunoPkg/Madt.aslc: Added GIC MSI Frame Table
Olivier Martin [Wed, 27 May 2015 15:07:55 +0000 (15:07 +0000)]
ArmPlatformPkg/ArmJunoPkg/Madt.aslc: Added GIC MSI  Frame Table

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17524 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/AcpiLib.h: Introduced EFI_ACPI_6_0_GIC_MSI_FRAME_INIT()
Olivier Martin [Wed, 27 May 2015 15:07:01 +0000 (15:07 +0000)]
EmbeddedPkg/AcpiLib.h: Introduced EFI_ACPI_6_0_GIC_MSI_FRAME_INIT()

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17523 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmJunoPkg: ACPI PCI Support
Olivier Martin [Wed, 27 May 2015 15:06:11 +0000 (15:06 +0000)]
ArmPlatformPkg/ArmJunoPkg: ACPI PCI Support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17522 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEnable Digital Thermal Sensor to detect processor temperature.
Shifei Lu [Wed, 27 May 2015 05:47:57 +0000 (05:47 +0000)]
Enable Digital Thermal Sensor to detect processor temperature.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shifei Lu <shifeix.a.lu@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17521 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootModulePkg: Fix GCC build failure.
Guo Dong [Wed, 27 May 2015 05:33:14 +0000 (05:33 +0000)]
CorebootModulePkg: Fix GCC build failure.

This patch fixed a GCC build failure issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17519 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add EFI EAP Configuration Protocol definitions
Hao Wu [Wed, 27 May 2015 02:48:28 +0000 (02:48 +0000)]
MdePkg: Add EFI EAP Configuration Protocol definitions

Add UEFI2.5 EFI EAP Configuration Protocol definitions.

MdePkg/Include/Protocol/Eap.h is also modified for backward compatibility.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17518 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add EFI EAP Management2 Protocol definitions
Hao Wu [Wed, 27 May 2015 02:47:42 +0000 (02:47 +0000)]
MdePkg: Add EFI EAP Management2 Protocol definitions

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17517 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Enable reconnect request from action request or question flag.
Eric Dong [Wed, 27 May 2015 02:32:59 +0000 (02:32 +0000)]
MdeModulePkg: Enable reconnect request from action request or question flag.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17516 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add reconnect definition in action request type and question attribute.
Eric Dong [Wed, 27 May 2015 02:27:40 +0000 (02:27 +0000)]
MdePkg: Add reconnect definition in action request type and question attribute.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17515 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Add reconnect request flag for question.
Eric Dong [Wed, 27 May 2015 02:25:48 +0000 (02:25 +0000)]
BaseTools: Add reconnect request flag for question.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17514 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix PciBus hang issue
Ruiyu Ni [Wed, 27 May 2015 01:22:13 +0000 (01:22 +0000)]
MdeModulePkg: Fix PciBus hang issue

LocatePciExpressCapabilityRegBlock () doesn't check the return status of Pci.Read().
Certain platform's PciRootBridge.Pci.Read() doesn't support PCIE access causing the CapabilityEntry not updated.
If the uninitialized CapabilityEntry equals to a big enough initial value, the while-loop will never end.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17513 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg:fix browser not call EFI_BROWSER_ACTION_CHANGED
Dandan Bi [Tue, 26 May 2015 11:43:18 +0000 (11:43 +0000)]
MdeModulePkg:fix browser not call EFI_BROWSER_ACTION_CHANGED

fix bellow bug:
change checkbox  from FALSE to TRUE.EFI_BROWSER_ACTION_CHANGED called
but when checkbox change back to FALSE,don't call EFI_BROWSER_ACTION_CHANGED

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17512 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg:Support delete key
Dandan Bi [Tue, 26 May 2015 11:36:52 +0000 (11:36 +0000)]
MdeModulePkg:Support delete key

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17511 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Add default BuildRuleOrder in tools_def.template
Yingke Liu [Tue, 26 May 2015 10:32:47 +0000 (10:32 +0000)]
BaseTools: Add default BuildRuleOrder in tools_def.template

*_*_*_*_BUILDRULEORDER = nasm Nasm NASM asm Asm ASM S s
*_XCODE32_*_*_BUILDRULEORDER    = S s nasm Nasm NASM
*_XCLANG_*_*_BUILDRULEORDER     = S s nasm Nasm NASM
*_XCODE5_*_*_BUILDRULEORDER     = S s nasm Nasm NASM

Tool Chain in Mac Os will use S as the first priority. Other tool chains
use nasm as the first priority.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17510 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoBaseTools: Implement BUILDRULEORDER for tools_def
Yingke Liu [Tue, 26 May 2015 10:32:07 +0000 (10:32 +0000)]
BaseTools: Implement BUILDRULEORDER for tools_def

This feature allows the toolchain to choose a preference for source file
extensions in tools_def.txt. The first extension is given the highest priority.

Here is an example usage for tools_def.txt:
*_*_*_*_BUILDRULEORDER         = nasm Nasm NASM asm Asm ASM S s
*_XCODE5_*_*_BUILDRULEORDER    = S s nasm Nasm NASM

Now, if a .inf lists these sources: 1.nasm, 1.asm and 1.S
All toolchains, except XCODE5 will use the 1.nasm file. The XCODE5
toolchain will use the 1.S file.

Note that the build_rule.txt file also impacts the decision, because,
for instance there is no build rule for .asm files on GCC toolchains.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17509 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago* MdePkg: Move SIO header files to correct location.
Ruiyu Ni [Tue, 26 May 2015 04:52:09 +0000 (04:52 +0000)]
* MdePkg: Move SIO header files to correct location.

The patch also fixed some comments to align the code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17507 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Move IsaBusDxe driver to MdeModulePkg.
Ruiyu Ni [Tue, 26 May 2015 03:25:19 +0000 (03:25 +0000)]
MdeModulePkg: Move IsaBusDxe driver to MdeModulePkg.

A previous incorrect check-in adds the IsaBusDxe driver to <Root>/Bus directory.
The patch fixes it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17506 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Move SIO header files to MdePkg.
Ruiyu Ni [Tue, 26 May 2015 03:24:20 +0000 (03:24 +0000)]
MdePkg: Move SIO header files to MdePkg.

A previous incorrect check-in adds the SIO header files to <Root>/Include directory.
The patch fixes it.
The patch also adds the missing PeiServices pointer to the SIO PPI interfaces.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17505 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add IsaBusDxe driver
Ruiyu Ni [Tue, 26 May 2015 02:48:42 +0000 (02:48 +0000)]
MdeModulePkg: Add IsaBusDxe driver

This driver follows UEFI driver model and layers on ISA HC protocol defined in PI spec 1.2.1.
It consumes the ISA Host Controller protocol produced by the ISA Host Controller and installs the ISA Host Controller Service Binding protocol on the ISA Host Controller's handle.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17504 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add SIO related protocol/PPI definitions.
Ruiyu Ni [Tue, 26 May 2015 02:44:27 +0000 (02:44 +0000)]
MdePkg: Add SIO related protocol/PPI definitions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17503 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFrameworkModulePkg: Rollback this change because display engine use class/subclass.
Eric Dong [Mon, 25 May 2015 10:28:03 +0000 (10:28 +0000)]
IntelFrameworkModulePkg: Rollback this change because display engine use class/subclass.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17502 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter
Jeff Fan [Mon, 25 May 2015 02:48:00 +0000 (02:48 +0000)]
SourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter

Add one parameter DumpFlag to indicate if need to dump Local APIC time's
parameter.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17501 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer
Jeff Fan [Mon, 25 May 2015 02:46:11 +0000 (02:46 +0000)]
SourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer

Now Debug Agent library uses Local APIC Timer to implement time-out mechanism.
In SMM, SMM BSP maybe not be the one in DXE phase, its local APIC timer may not
work. This fix is to initialize Local APIC timer if it doesn't work as expected
at SMM entry.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17500 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Fix compilation error in BlockIoCrypto.h
Feng Tian [Mon, 25 May 2015 02:01:09 +0000 (02:01 +0000)]
MdePkg: Fix compilation error in BlockIoCrypto.h

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17499 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: fix compilation error
Ludovic Rousseau [Mon, 25 May 2015 02:00:40 +0000 (02:00 +0000)]
MdePkg: fix compilation error

Remove an extra parenthesis in Include/Protocol/SmartCardReader.h

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@gmail.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17498 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFspPkg/Tool rename generated FspUpdVpd header file.
Mudusuru, Giri P [Fri, 22 May 2015 07:50:47 +0000 (07:50 +0000)]
IntelFspPkg/Tool rename generated FspUpdVpd header file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17497 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIntelFspPkg/FspSecCore add AsmGetFspBaseAddressNoStack and AsmGetFspInfoHeaderNoStack
Yao, Jiewen [Fri, 22 May 2015 07:49:34 +0000 (07:49 +0000)]
IntelFspPkg/FspSecCore add AsmGetFspBaseAddressNoStack and AsmGetFspInfoHeaderNoStack

Fix GCC issue on FspInfoHeaderRelativeOff.
Clean up comments for platform ID matching on Microcode and PcdFspBootFirmwareVolumeBase

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17496 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/AtaAtapiPassThruDxe: Support 4K bytes block size HDDs
Feng Tian [Fri, 22 May 2015 06:53:44 +0000 (06:53 +0000)]
MdeModulePkg/AtaAtapiPassThruDxe: Support 4K bytes block size HDDs

The original code hard-codes block size to 512. But after ATA 7 spec,
the non-512 block size is also supported. The code is updated to
dynamically calculate the block size according to IDENTIFY data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17495 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Validate the return value before use it.
Eric Dong [Fri, 22 May 2015 05:37:44 +0000 (05:37 +0000)]
MdeModulePkg: Validate the return value before use it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17494 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRemove Framework HII "class\subclass" in all VFR
Dandan Bi [Thu, 21 May 2015 07:58:12 +0000 (07:58 +0000)]
Remove Framework HII "class\subclass"  in all VFR

class/subclass is the obseleted key word in VFR file. It is designed in framework HII.
After convert to UEFI HII, it is not used any longer. Now remove them from VFR

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17493 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg:fix more than one arrow shows for one goto menu
Dandan Bi [Thu, 21 May 2015 07:44:59 +0000 (07:44 +0000)]
MdeModulePkg:fix more than one arrow shows for one goto menu

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17492 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg:Add line break character
Dandan Bi [Thu, 21 May 2015 07:02:51 +0000 (07:02 +0000)]
MdeModulePkg:Add line break character

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17491 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix INF to point to correct UNI file.
Ruiyu Ni [Thu, 21 May 2015 06:50:07 +0000 (06:50 +0000)]
MdeModulePkg: Fix INF to point to correct UNI file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17490 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/CdExpressPei: Fix build error
Feng Tian [Thu, 21 May 2015 05:36:40 +0000 (05:36 +0000)]
MdeModulePkg/CdExpressPei: Fix build error

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17489 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Resolve type mismatch in node/text conversion for Wifi device
Hao Wu [Thu, 21 May 2015 01:46:31 +0000 (01:46 +0000)]
MdePkg: Resolve type mismatch in node/text conversion for Wifi device

Function DevPathFromTextWiFi() in use UINT8* and CHAR8* interchangeably,
which breaks the build on ARM. Pointer type conversion is added to
resolved this problem.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17488 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootModulePkg/CbParseLib: Coding style update
Guo Dong [Wed, 20 May 2015 08:32:55 +0000 (08:32 +0000)]
CorebootModulePkg/CbParseLib: Coding style update

This patch update file CbParseLib.c to make it consistent with EDKII coding style:
1) Add function comments.
2) Add {} for if statement.
3) Compare with NULL for pointer and compare with 0 for integer instead of using them like a BOOLEAN.
4) For debug information only, use EFI_D_INFO instead of EFI_D_ERROR
5) Correct IN, OUT modifier

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17487 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootModulePkg/CbParseLib: Fix coding issue in ACPI
Guo Dong [Wed, 20 May 2015 08:29:11 +0000 (08:29 +0000)]
CorebootModulePkg/CbParseLib: Fix coding issue in ACPI

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17486 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootModulePkg/CbParseLib: Remove tab and spaces
Guo Dong [Wed, 20 May 2015 08:26:19 +0000 (08:26 +0000)]
CorebootModulePkg/CbParseLib: Remove tab and spaces

Replace tab with space. Remove the sapce at the end of lines.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17485 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorebootModulePkg/CbParseLib: Support current Coreboot IMD
Guo Dong [Wed, 20 May 2015 08:21:18 +0000 (08:21 +0000)]
CorebootModulePkg/CbParseLib: Support current Coreboot IMD

The latest coreboot use IMD (In Memory Database) to report Tables. This patch adds IMD support in UEFI payload.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17484 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add assertion to make code easier for read.
Ruiyu Ni [Wed, 20 May 2015 07:41:01 +0000 (07:41 +0000)]
MdeModulePkg: Add assertion to make code easier for read.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17483 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/UfsBlockIoPei: Add RecoveryBlockIo2Ppi support
Feng Tian [Wed, 20 May 2015 06:32:39 +0000 (06:32 +0000)]
MdeModulePkg/UfsBlockIoPei: Add RecoveryBlockIo2Ppi support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17482 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/CdExpressPei: Add RecoveryBlockIo2Ppi support
Feng Tian [Wed, 20 May 2015 06:32:03 +0000 (06:32 +0000)]
MdeModulePkg/CdExpressPei: Add RecoveryBlockIo2Ppi support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17481 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/UsbBotPei: Add RecoveryBlockIo2Ppi support
Feng Tian [Wed, 20 May 2015 06:31:28 +0000 (06:31 +0000)]
MdeModulePkg/UsbBotPei: Add RecoveryBlockIo2Ppi support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17480 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/IdeBusPei: Add RecoveryBlockIo2 support
Feng Tian [Wed, 20 May 2015 06:30:48 +0000 (06:30 +0000)]
MdeModulePkg/IdeBusPei: Add RecoveryBlockIo2 support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17479 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNetworkPkg/UefiPxeBcDxe: Fix code style in INF file.
jiaxinwu [Wed, 20 May 2015 06:24:23 +0000 (06:24 +0000)]
NetworkPkg/UefiPxeBcDxe: Fix code style in INF file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: jiaxinwu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17478 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add RecoveryBlockIo2Ppi definition to follow PI1.4 spec
Feng Tian [Wed, 20 May 2015 06:20:00 +0000 (06:20 +0000)]
MdePkg: Add RecoveryBlockIo2Ppi definition to follow PI1.4 spec

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17477 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add WiFi device path definition and its node/text conversion
Hao Wu [Wed, 20 May 2015 05:21:19 +0000 (05:21 +0000)]
MdePkg: Add WiFi device path definition and its node/text conversion

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17476 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Add EFI Wireless MAC Connection Protocol definitions
Hao Wu [Wed, 20 May 2015 05:20:15 +0000 (05:20 +0000)]
MdePkg: Add EFI Wireless MAC Connection Protocol definitions

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17475 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update coding style
Chao Zhang [Wed, 20 May 2015 02:19:17 +0000 (02:19 +0000)]
MdeModulePkg: Update coding style

Update to follow Tiano Coding style. Fix potential NULL memory copy

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17474 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Update coding style
Chao Zhang [Wed, 20 May 2015 02:13:42 +0000 (02:13 +0000)]
MdePkg: Update coding style

Update to follow Tiano Coding style.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17473 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix potential buffer overflow issues.
Eric Dong [Tue, 19 May 2015 09:26:25 +0000 (09:26 +0000)]
MdeModulePkg: Fix potential buffer overflow issues.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17472 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Enumerate all string packages in one driver when search the keyword.
Eric Dong [Tue, 19 May 2015 09:22:59 +0000 (09:22 +0000)]
MdeModulePkg: Enumerate all string packages in one driver when search the keyword.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17471 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update the short name for persistent memory type.
Liming Gao [Tue, 19 May 2015 07:22:14 +0000 (07:22 +0000)]
MdeModulePkg: Update the short name for persistent memory type.

This change will make DEBUG information be aligned with DEBUG_GCD enabled.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17470 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd comments for INF file to declare guid/protocol usage.
Yao, Jiewen [Tue, 19 May 2015 03:16:09 +0000 (03:16 +0000)]
Add comments for INF file to declare guid/protocol usage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17469 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg Variable: Prevent BS variable update in legacy OS runtime.
Star Zeng [Tue, 19 May 2015 01:33:25 +0000 (01:33 +0000)]
SecurityPkg Variable: Prevent BS variable update in legacy OS runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17468 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg Variable: Prevent BS variable update in legacy OS runtime.
Star Zeng [Tue, 19 May 2015 01:32:52 +0000 (01:32 +0000)]
MdeModulePkg Variable: Prevent BS variable update in legacy OS runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17467 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix comments typo in UefiBootManagerLib.h
Ruiyu Ni [Mon, 18 May 2015 05:30:35 +0000 (05:30 +0000)]
MdeModulePkg: Fix comments typo in UefiBootManagerLib.h

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17466 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNt32Pkg: Use different FILE_GUID.
Ruiyu Ni [Mon, 18 May 2015 05:30:01 +0000 (05:30 +0000)]
Nt32Pkg: Use different FILE_GUID.

Use different FILE_GUID other than the one used by PlatformBootManagerLibNull.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17465 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSourceLevelDebugPkg: Fix Serial Port connection cannot be setup
Ruiyu Ni [Mon, 18 May 2015 05:29:01 +0000 (05:29 +0000)]
SourceLevelDebugPkg: Fix Serial Port connection cannot be setup

The root cause is SerialPortDebugCommunicationLib returns NULL debug port handle causing the CompressData() doesn't send the compressed data.
The fix doesn't rely on the debug port handle value and uses Send parameter to indicate whether to send the compressed data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17464 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges
Star Zeng [Mon, 18 May 2015 01:46:40 +0000 (01:46 +0000)]
MdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges

 from FullSmramRanges and FullSmramRangeCount in SmmCorePrivate by Constructor.

It can avoid potential first call to FreePool() -> BufferInSmram() ->
if (mSmramRanges == NULL) { GetSmramRanges();} ->
gBS->LocateProtocol() at boottime with >= TPL_NOTIFY or
after ReadyToLock or at OS runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17463 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Update memory profile for OEM reserved memory type.
Star Zeng [Mon, 18 May 2015 01:30:04 +0000 (01:30 +0000)]
MdeModulePkg: Update memory profile for OEM reserved memory type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17462 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg PiSmmCore: Care runtime code/data only for SMRAM profile.
Star Zeng [Mon, 18 May 2015 01:29:00 +0000 (01:29 +0000)]
MdeModulePkg PiSmmCore: Care runtime code/data only for SMRAM profile.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17461 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg DxeCore: Add OEM reserved memory type support.
Star Zeng [Mon, 18 May 2015 01:28:24 +0000 (01:28 +0000)]
MdeModulePkg DxeCore: Add OEM reserved memory type support.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17460 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg UefiSpec.h: Update comments for OEM reserved memory type.
Star Zeng [Mon, 18 May 2015 01:27:25 +0000 (01:27 +0000)]
MdePkg UefiSpec.h: Update comments for OEM reserved memory type.

UEFI 2.5 Spec:
MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17459 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent
Jeff Fan [Mon, 18 May 2015 01:21:30 +0000 (01:21 +0000)]
SourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent

Now DxeDebugAgent Library instance will print help information on how to load
DebugAgentDxe.efi in UEFI shell. But it is printed after Target connected to
Host side. This fix is to move help info print to DebugAgentDxe module before
Target tries to connect HOST. It could help developer to get useful information
as early as possible.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17458 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer early
Jeff Fan [Mon, 18 May 2015 01:18:42 +0000 (01:18 +0000)]
SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer early

Now Debug Agent library uses Local APIC Timer to implement time-out mechanism.
But it does not initialize Local APIC Timer before transfer data with HOST.
This fix is to move Local APIC Timer initialization to
SetupDebugAgentEnvironment().
This fix also updates function header and fixed one typo of
SetupDebugAgentEnvironment() name.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17457 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI file for PlatformBootManagerLibNull library.
Ruiyu Ni [Fri, 15 May 2015 08:48:13 +0000 (08:48 +0000)]
MdeModulePkg: Add UNI file for PlatformBootManagerLibNull library.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17456 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI file for UefiBootManagerLib library.
Ruiyu Ni [Fri, 15 May 2015 08:47:31 +0000 (08:47 +0000)]
MdeModulePkg: Add UNI file for UefiBootManagerLib library.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17455 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI files for BootManagerMenuApp application.
Ruiyu Ni [Fri, 15 May 2015 08:47:03 +0000 (08:47 +0000)]
MdeModulePkg: Add UNI files for BootManagerMenuApp application.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17454 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI files for DriverHealthManagerDxe driver.
Ruiyu Ni [Fri, 15 May 2015 08:46:34 +0000 (08:46 +0000)]
MdeModulePkg: Add UNI files for DriverHealthManagerDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17453 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI files for BootManagerPolicyDxe driver.
Ruiyu Ni [Fri, 15 May 2015 08:46:06 +0000 (08:46 +0000)]
MdeModulePkg: Add UNI files for BootManagerPolicyDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17452 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add UNI file for BdsDxe driver.
Ruiyu Ni [Fri, 15 May 2015 08:45:35 +0000 (08:45 +0000)]
MdeModulePkg: Add UNI file for BdsDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17451 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Fix PI Multi-processor PPI header file include issue
Hao Wu [Fri, 15 May 2015 00:40:29 +0000 (00:40 +0000)]
MdePkg: Fix PI Multi-processor PPI header file include issue

Multi-processor PPI header file 'Ppi/Mpservices.h' uses a function
prototype EFI_AP_PROCEDURE which is defined in 'Pi/PiDxeCis.h' (DXE header
file).

This will cause a build fail when 'Ppi/Mpservices.h' is included in a PEI
module.

Since both phase support multi-processor service now, function prototype
EFI_AP_PROCEDURE should be moved to 'Pi/PiMultiPhase.h'. The move is a
compatible change and will not affect other codes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17450 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix Typo.
Eric Dong [Thu, 14 May 2015 23:35:01 +0000 (23:35 +0000)]
MdeModulePkg: Fix Typo.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17449 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: remove unused variable DevicePathSize
Ard Biesheuvel [Thu, 14 May 2015 23:33:28 +0000 (23:33 +0000)]
MdeModulePkg: remove unused variable DevicePathSize

Remove the unused DevicePathSize variable from EnumerateAllKeywords().
Due to our use of -Werror=unused-but-set-variable when building under GCC, the presence of DevicePathSize is breaking the build.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17448 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Add DiskInfo GUID matching to the She
Samer El-Haj-Mahmoud [Thu, 14 May 2015 16:50:40 +0000 (16:50 +0000)]
ShellPkg: Add DiskInfo GUID matching to the She

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17447 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg: Add more comments for PcdTpmInstanceGuid
Liming Gao [Thu, 14 May 2015 05:03:55 +0000 (05:03 +0000)]
SecurityPkg: Add more comments for PcdTpmInstanceGuid

When PcdTpmInstanceGuid is configured to other value,
it means other TPM 2.0 device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17446 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: ConfigKeywordHandler: fix pointer target signedness.
Laszlo Ersek [Thu, 14 May 2015 02:46:11 +0000 (02:46 +0000)]
MdeModulePkg: ConfigKeywordHandler: fix pointer target signedness.

SVN r17428 ("MdeModulePkg: Implement UEFI25 HII Config keyword handler protocol") introduced code that triggers

  -Werror=pointer-sign

under gcc ("warn for pointer argument passing or assignment with different signedness"). This patch fix up those locations.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17445 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Fix build failure in UefiBootManagerLib
Ruiyu Ni [Thu, 14 May 2015 02:09:59 +0000 (02:09 +0000)]
MdeModulePkg: Fix build failure in UefiBootManagerLib

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17444 6f19259b-4bc3-4df7-8a09-765794883524