]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
11 years agoPoll the network adapter during connect
lpleahy [Mon, 8 Oct 2012 22:02:23 +0000 (22:02 +0000)]
Poll the network adapter during connect

Signed-off-by: lpleahy
Reviewed-by: Dell, Sreenivasula Reddy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13803 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFixed close for socket to properly release the socket context structure and the handle.
lpleahy [Mon, 8 Oct 2012 21:39:35 +0000 (21:39 +0000)]
Fixed close for socket to properly release the socket context structure and the handle.

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

11 years agoOvmfPkg: QemuBootOrder: recognize virtio-blk OFW device paths
jljusten [Mon, 8 Oct 2012 07:33:37 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: recognize virtio-blk OFW device paths

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

11 years agoOvmfPkg: QemuBootOrder: lower the required number of OFW nodes to 2
jljusten [Mon, 8 Oct 2012 07:33:25 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: lower the required number of OFW nodes to 2

2 nodes in an OpenFirmware device path are sufficient for the generic
check at the beginning of TranslateOfwNodes(). The driver specific
branches check for the necessary nodes individually.

The number of nodes saved for examination is unchanged.

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

11 years agoOvmfPkg: QemuBootOrder: whitespace fix
jljusten [Mon, 8 Oct 2012 07:33:12 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: whitespace fix

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

11 years agoOvmfPkg: introduce virtio-blk driver
jljusten [Mon, 8 Oct 2012 07:32:59 +0000 (07:32 +0000)]
OvmfPkg: introduce virtio-blk driver

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

11 years agoMdePkg: Fix incorrect SPCR definitions for 115200 and 57600 baud rate
jyao1 [Mon, 8 Oct 2012 03:30:56 +0000 (03:30 +0000)]
MdePkg: Fix incorrect SPCR definitions for 115200 and 57600 baud rate

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com
Reviewed-by: Jiewen.yao@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13790 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMove GOP and UGA draw from Consplitter entrypoint to start(). When there is one real...
li-elvin [Mon, 8 Oct 2012 02:34:33 +0000 (02:34 +0000)]
Move GOP and UGA draw from Consplitter entrypoint to start(). When there is one real physical graphics device in system, Consplitter will expose GOP/UGA protocol on the virtual handle. In addition, fix a obvious logic issue in GraphicsConsole.

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

11 years agoContributed-under: TianoCore Contribution Agreement 1.0
mdkinney [Fri, 5 Oct 2012 22:26:25 +0000 (22:26 +0000)]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
1) ShellPkg/Library/UefiHandleParsingLib
    a. UefiHandleParsingLib.c – ConvertHandleToHandleIndex() and ConvertHandleIndexToHandle()
        i. Update to work correctly when handles are destroyed due to driver disconnect operations.  Same handle index is never reused.
    b. UefiHandleParsingLib.c – ParseHandleDatabaseByRelationshipWithType() and ParseHandleDatabaseForChildControllers()
        i. Expand to handle Service Binding Protocol usage such as Network stack.
2) ShellPkg/Library/UefiShellDriver1CommandsLib
    a. DevTree.c – Fix bug where the same handle is shown more than once.
    b. Dh.c – Fix use of GetDriverName() and GetDriverImageName().  The status returned must always be evaluated.
    c. Disconnect.c – Remove requirement that a handle being disconnected must support Device Path Protocol.  This prevents driver model handles without device paths from being disconnected (i.e. Network Stack)
    d. OpenInfo.c – Fix bug when showing open info about a ControllerHandle that has been destroyed due to a disconnect or an unload operation.
    e. UefiShellDriver1CommandsLib.uni – Fix “drivers” command formatting when handle indexes have more than 2 characters.

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

11 years agoStdLib: Fix several problems where characters were not being correctly converted...
darylm503 [Fri, 5 Oct 2012 22:00:43 +0000 (22:00 +0000)]
StdLib: Fix several problems where characters were not being correctly converted between wide and MBCS.
        Add utility functions for determining character length of strings.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: erik.c.bjorge@intel.com
Reviewed-by: lee.g.rosenbaum@intel.com
StdLib/LibC/
  Locale/multibyte_Utf8.c
    Improve comments.
    Define implementation-specific MBCS utility functions, as declared in <stdlib.h>.
    Enhance functionality of EncodeUtf8() and improve error handling.
    Set correct conversion state in wcrtomb().
    Bug fixes in wcsrtombs().
    Make wctob() properly MBCS compliant.

  Main/Main.c
    Remove code obsoleted by new wcsrtombs() implementation.

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

11 years agoUnixPkg: Mark as deprecated (replaced by EmulatorPkg)
jljusten [Fri, 5 Oct 2012 07:05:54 +0000 (07:05 +0000)]
UnixPkg: Mark as deprecated (replaced by EmulatorPkg)

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

11 years agoWhen SOURCE_DEBUG_ENABLE is set, a TimerLib is linked into the SEC Phase to support...
mdkinney [Thu, 4 Oct 2012 20:58:21 +0000 (20:58 +0000)]
When SOURCE_DEBUG_ENABLE is set, a TimerLib is linked into the SEC Phase to support the Debug Agent and the TimerLib is mapped into read-only ROM/FLASH.

The TimerLib in the OvmfPkg uses a global variable called mPmba and depends on that global being updated.  This works for modules loaded into memory, but not  XIP modules in ROM/FLASH.

This patch removes the mPmba global variable and instead reads the PIIX4 Power Management Base Address from PCI configuration space when it is needed.  This patch also simplifies the initialization logic in the constructor and introduces #defines to eliminate hard coded values in the function implementations.  According to the PIIX4 documentation, the IO Space enable bit in the PCI Command Register does not have to be set for the Power Management Base Address to be decoded, so that one op has been removed from the constructor.

I have tested this patch with QEMU and verified that the UDK Debugger us functional when SOURCE_DEBUG_ENABLE is set.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
I also tested it with RHEL-6.3 guest boot/shutdown, Fedora 18 Alpha XFCE
guest boot/shutdown, and Windows 8 Consumer Preview guest
boot/reboot/shutdown. (RHEL-6.3 host.) I didn't notice any adverse effects.

Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13783 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoHere is a patch that by default keeps the current 1MB FD sizes. If FD_SIZE_2MB is...
mdkinney [Thu, 4 Oct 2012 15:41:15 +0000 (15:41 +0000)]
Here is a patch that by default keeps the current 1MB FD sizes.  If FD_SIZE_2MB is defined, then 2MB FD sizes will be used.

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

11 years agoThe Driver Binding Protocol Stop() function for the UndiRuntimeDxe is performing...
mdkinney [Wed, 3 Oct 2012 23:49:50 +0000 (23:49 +0000)]
The Driver Binding Protocol Stop() function for the UndiRuntimeDxe is performing actions in the incorrect order.  The call to UninstallMultipleProtocolInterfaces() removes all the protocols from the child handle, which means ChildHandleBuffer[Index] is no longer valid.  After the call to UninstallMultipleProtocolInterfaces(), ChildHandleBuffer[Index] is used again in a call to CloseProtocol().  The handle is not valid, so CloseProtocol() returns an error and generates an ASSERT().

This patch changes the order to call CloseProtocol() before calling UninstallMultipleProtocolInterfaces().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13781 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoThe exception table information in X64 PE/COFF images is being stripped by default...
mdkinney [Wed, 3 Oct 2012 21:00:26 +0000 (21:00 +0000)]
The exception table information in X64 PE/COFF images is being stripped by default in the OvmfPkg.

This patch preserves this information when SOURCE_DEBUG_ENABLE is set.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13780 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoVS2005 and DDK3790 tool chain tags require typecasts to BOOLEAN to compile.
mdkinney [Wed, 3 Oct 2012 20:22:17 +0000 (20:22 +0000)]
VS2005 and DDK3790 tool chain tags require typecasts to BOOLEAN to compile.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13779 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg:removes the unreachable ‘break’ instruction after a ‘return’ instruction...
erictian [Sat, 29 Sep 2012 02:44:33 +0000 (02:44 +0000)]
MdeModulePkg:removes the unreachable ‘break’ instruction after a ‘return’ instruction in the switch().

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
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@13778 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoArmPlatformPkg/LcdPlatformLib.h: Updated HD mode settings to produce a 60Hz frame...
oliviermartin [Fri, 28 Sep 2012 11:12:13 +0000 (11:12 +0000)]
ArmPlatformPkg/LcdPlatformLib.h: Updated HD mode settings to produce a 60Hz frame rate

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

11 years agoArmPlatformPkg/LcdPlatformLib.h: Added support for 'WSXGA+ Mode: 1680 x 1050'
oliviermartin [Fri, 28 Sep 2012 11:11:00 +0000 (11:11 +0000)]
ArmPlatformPkg/LcdPlatformLib.h: Added support for 'WSXGA+ Mode: 1680 x 1050'

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

11 years agoArmPlatformPkg/ArmVExpress-CTA15-A7: Added support for CoreTile Express A15x2_A7x3
oliviermartin [Fri, 28 Sep 2012 11:09:36 +0000 (11:09 +0000)]
ArmPlatformPkg/ArmVExpress-CTA15-A7: Added support for CoreTile Express A15x2_A7x3

This is the big.LITTLE test chip for ARM Versatile Express Motherboard.

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

11 years agoArmPlatformPkg/ArmPlatformStackLib: Introduced helper library to initialize stacks
oliviermartin [Fri, 28 Sep 2012 11:01:36 +0000 (11:01 +0000)]
ArmPlatformPkg/ArmPlatformStackLib: Introduced helper library to initialize stacks

The new functions are:
- ArmPlatformStackSet(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);
- ArmPlatformStackSetPrimary(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);
- ArmPlatformStackSetSecondary(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);

The stack topology can be changed by implementing a new ArmPlatformStackLib

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

11 years agoEmbeddedPkg: Introduced 'SerialPortExtLib.h'
oliviermartin [Fri, 28 Sep 2012 10:56:12 +0000 (10:56 +0000)]
EmbeddedPkg: Introduced 'SerialPortExtLib.h'

EmbeddedPkg/SerialDxe was not allowing to set/get the control of the
Serial connection because the needed functions were not exposed in
SerialPortLib.h.
This commit introduces an additional library to extend the SerialPort
features.

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

11 years agoARM Packages: Moved ARM assembly files to 'Arm' subdirectory
oliviermartin [Fri, 28 Sep 2012 10:52:16 +0000 (10:52 +0000)]
ARM Packages: Moved ARM assembly files to 'Arm' subdirectory

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

11 years agoArmPlatformPkg/EblCmdLib: Added the command 'dumpfdt'
oliviermartin [Fri, 28 Sep 2012 10:48:35 +0000 (10:48 +0000)]
ArmPlatformPkg/EblCmdLib: Added the command 'dumpfdt'

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

11 years agoArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()
oliviermartin [Fri, 28 Sep 2012 10:46:28 +0000 (10:46 +0000)]
ArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()

The MP ID Register is not enough to know the position of the core in the SoC.
We could have SoC with multi cluster of CPUs that do not contain the
same number of CPUs.
This function should return the position of the CPU in the SoC.

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

11 years agoArmPlatformPkg: Introduction of gArmPlatformTokenSpaceGuid.PcdCoreCount
oliviermartin [Fri, 28 Sep 2012 10:43:28 +0000 (10:43 +0000)]
ArmPlatformPkg: Introduction of gArmPlatformTokenSpaceGuid.PcdCoreCount

On ARM PLatforms, there is no standard way to know how many cores are
available on the platform.
This PCD is expected to contain this number.

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

11 years agoArmPkg/BdsLib: Added FDT support for BdsLib
oliviermartin [Fri, 28 Sep 2012 09:58:42 +0000 (09:58 +0000)]
ArmPkg/BdsLib: Added FDT support for BdsLib

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

11 years agoArmPkg/DefaultExceptionHandlerLib: Added support to the BASE-type library
oliviermartin [Fri, 28 Sep 2012 09:55:48 +0000 (09:55 +0000)]
ArmPkg/DefaultExceptionHandlerLib: Added support to the BASE-type library

This library could be used before the UEFI phases to expose the CPU state
when an unexpected exception interrupt the firmware.

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

11 years agoArmPlatformPkg/PrePi: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib
oliviermartin [Fri, 28 Sep 2012 09:54:13 +0000 (09:54 +0000)]
ArmPlatformPkg/PrePi: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib

In case a DebugAgent library is supported for a specific debugger, we would
expect the exception be caught by DebugAgentLib.
The DebugAgentBaseLib exposes the cause of the exception to the user in the
Serial Terminal.

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

11 years agoArmPlatformPkg/Sec: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib
oliviermartin [Fri, 28 Sep 2012 09:52:11 +0000 (09:52 +0000)]
ArmPlatformPkg/Sec: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib

In case a DebugAgent library is supported for a specific debugger, we would
expect the exception be caught by DebugAgentLib.
The DebugAgentBaseLib exposes the cause of the exception to the user in the
Serial Terminal.

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

11 years agoAdd more exact SMM check in SmmFaultTolerantWriteHandler.
lzeng14 [Fri, 28 Sep 2012 02:30:25 +0000 (02:30 +0000)]
Add more exact SMM check in SmmFaultTolerantWriteHandler.

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

11 years agoRename Trusted Hob to Measured FV hob and add Guided Hob layout structure
czhang46 [Fri, 28 Sep 2012 00:57:02 +0000 (00:57 +0000)]
Rename Trusted Hob to Measured FV hob and add Guided Hob layout structure

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

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

11 years agoArmPlatformPkg/ArmVExpress-CTA9x4.dsc: Fixed build
oliviermartin [Thu, 27 Sep 2012 22:25:56 +0000 (22:25 +0000)]
ArmPlatformPkg/ArmVExpress-CTA9x4.dsc: Fixed build

Removed unavailable driver.

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

11 years agoEmbeddedPkg: Added support to libfdt
oliviermartin [Thu, 27 Sep 2012 16:53:57 +0000 (16:53 +0000)]
EmbeddedPkg: Added support to libfdt

Use the library libdt from the Device Tree Compiler project.
The used version is from Wednesday 22nd August 2012 (commit: 8716901d2215a3)

The Device Tree Compiler project is under dual BSD/GPL license (it means the
license is either BSD or GPL). The BSD license is the license that fits to the
Tianocore contribution requirements.
The use of libfdt into Tianocore has been authorised by David Gibson the
author of libfdt and its current maintainer Jon Loeliger (email thread on 7th
September 2011).

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

11 years agoArmPlatformPkg/Bds: Replaced 'EBL' by 'UEFI Shell' as the default shell on ARM Platforms
oliviermartin [Thu, 27 Sep 2012 15:33:10 +0000 (15:33 +0000)]
ArmPlatformPkg/Bds: Replaced 'EBL' by 'UEFI Shell' as the default shell on ARM Platforms

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

11 years agoARM Packages: Replaced the build of Fat driver and EBL by the binaries of Fat driver...
oliviermartin [Thu, 27 Sep 2012 15:31:54 +0000 (15:31 +0000)]
ARM Packages: Replaced the build of Fat driver and EBL by the binaries of Fat driver and UEFI Shell

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

11 years agoShellBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:28:54 +0000 (15:28 +0000)]
ShellBinPkg: Added ARM Binaries

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

11 years agoFatBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:25:52 +0000 (15:25 +0000)]
FatBinPkg: Added ARM Binaries

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

11 years agoEdkShellPkg: Added new patch to support EFI Shell project revision 61
oliviermartin [Thu, 27 Sep 2012 15:23:33 +0000 (15:23 +0000)]
EdkShellPkg: Added new patch to support EFI Shell project revision 61

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

11 years agoEdkShellBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:20:41 +0000 (15:20 +0000)]
EdkShellBinPkg: Added ARM Binaries

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

11 years agoOmap35xxPkg/Flash: Fixed 'NandStatus may be used before being set'
oliviermartin [Thu, 27 Sep 2012 13:41:04 +0000 (13:41 +0000)]
Omap35xxPkg/Flash: Fixed 'NandStatus may be used before being set'

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

11 years agoARM Packages: Minor typo, mispellings and coding style changes
oliviermartin [Thu, 27 Sep 2012 13:39:40 +0000 (13:39 +0000)]
ARM Packages: Minor typo, mispellings and coding style changes

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

11 years agoEnable EFI_IFR_DEFAULT2 opcode in browser.
ydong10 [Thu, 27 Sep 2012 11:19:56 +0000 (11:19 +0000)]
Enable EFI_IFR_DEFAULT2 opcode in browser.

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

11 years agoAdd debug port and debug port 2 table.
jyao1 [Thu, 27 Sep 2012 06:33:35 +0000 (06:33 +0000)]
Add debug port and debug port 2 table.

signed off by: jiewen.yao@intel.com
reviewed by: liming.gao@intel.com

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

11 years agoSave and disable CPU interrupt before programming MTRR settings, and restore the...
vanjeff [Thu, 27 Sep 2012 03:04:31 +0000 (03:04 +0000)]
Save and disable CPU interrupt before programming MTRR settings, and restore the CPU interrupt after programming MTRR setting.

signed-off-by: Kinney, Michael D <michael.d.kinney@intel.com>
reviewed-by: Bjorge, Erik C <erik.c.bjorge@intel.com>
reviewed-by: Jeff Fan <jeff.fan@intel.com>

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

11 years agoReset system only when the pre-allocated memory is more than 1.5 of needed memory...
niruiyu [Thu, 27 Sep 2012 02:57:01 +0000 (02:57 +0000)]
Reset system only when the pre-allocated memory is more than 1.5 of needed memory and boot mode is BOOT_WITH_DEFAULT_SETTING, or less than the needed memory.

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

11 years agoArmPlatformPkg/EblCmdLib: Fixed 'performance' command
oliviermartin [Wed, 26 Sep 2012 20:24:10 +0000 (20:24 +0000)]
ArmPlatformPkg/EblCmdLib: Fixed 'performance' command

Added support for performance counter that counts up or down

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

11 years agoArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions
oliviermartin [Wed, 26 Sep 2012 20:22:37 +0000 (20:22 +0000)]
ArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions

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

11 years agoArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero
oliviermartin [Wed, 26 Sep 2012 20:21:20 +0000 (20:21 +0000)]
ArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero

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

11 years agoArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT
oliviermartin [Wed, 26 Sep 2012 20:19:53 +0000 (20:19 +0000)]
ArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT

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

11 years agoArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE
oliviermartin [Wed, 26 Sep 2012 20:12:55 +0000 (20:12 +0000)]
ArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE

This makefile can be used to build EDK2 from Eclipse CDT plug-in.

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

11 years agoRemove local function IsValidDevicePath and use new interface provided by UefiDeviceP...
niruiyu [Wed, 26 Sep 2012 09:01:23 +0000 (09:01 +0000)]
Remove local function IsValidDevicePath and use new interface provided by UefiDevicePathlib.

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

11 years agoStdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.
darylm503 [Tue, 25 Sep 2012 22:01:58 +0000 (22:01 +0000)]
StdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.

StdLib/Include/
  stdlib.h
    Update MB_CUR_MAX to 3, the max. size of a MBCS character.
    Improve comments for wcstombs()
    Declare implementation-specific MBCS utility functions:
      OneWcToMcLen()    Determine the number of bytes needed to represent
                        a Wide character as a MBCS character.
      EstimateWtoM()    Determine the number of bytes needed to represent
                        a Wide character string as a MBCS string.
      CountMbcsChars()  Determine the number of characters in a MBCS string.

  wchar.h
    Improve comments.

StdLib/Include/sys/
  fcntl.h
    Define new Open flags.
    Remove obsolete and commented-out lines.

  termios.h
    Add Intel Copyright notice and Open-Source License.
    Change c_cc index macros into enumerated values.
    Clean up flag definitions for visual alignment as well as UEFI relevance.
    Move c_ispeed and c_ospeed termios members to end for better alignment.
    Comment out declarations for functions not yet implemented.
    Add an enum defining values for the UEFI extended function keys.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
Reviewed-by: jaben.carsey@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13741 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI...
vanjeff [Tue, 25 Sep 2012 02:44:53 +0000 (02:44 +0000)]
1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI triggered.
2. Fix issue that PlatformHookAfterSmiDispatch() and PERF_END() are not called in the case mInLegacyBoot is TRUE.

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

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

11 years agoStdLib/LibC/StdLib/Malloc.c: Make the free() function conform to the ISO/IEC 9899...
darylm503 [Mon, 24 Sep 2012 22:44:03 +0000 (22:44 +0000)]
StdLib/LibC/StdLib/Malloc.c:  Make the free() function conform to the ISO/IEC 9899 (C95) specification.

The C95 specification states: "The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation.  If ptr is a null pointer, no action occurs".  The UEFI FreePool() function, which the StdLib implementation of free() uses, does not make this check.  This fix adds a check for null to the free() function such that if the pointer argument is NULL, nothing is done.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13739 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClean the build warning.
ydong10 [Mon, 24 Sep 2012 06:58:21 +0000 (06:58 +0000)]
Clean the build warning.

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

11 years agoAdd new API IsDevicePathValid() to UefiDevicePathLib.
niruiyu [Mon, 24 Sep 2012 03:20:35 +0000 (03:20 +0000)]
Add new API IsDevicePathValid() to UefiDevicePathLib.

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

11 years agoHandle the case when OpROM wants to completely remove itself.
niruiyu [Mon, 24 Sep 2012 02:57:47 +0000 (02:57 +0000)]
Handle the case when OpROM wants to completely remove itself.

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

11 years agoStdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define...
darylm503 [Thu, 20 Sep 2012 21:01:21 +0000 (21:01 +0000)]
StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <jcarsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd TperReset Logic By using MOR bit - Remove the unnecessary parameter.
qianouyang [Wed, 19 Sep 2012 02:14:51 +0000 (02:14 +0000)]
Add TperReset Logic By using MOR bit - Remove the unnecessary parameter.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13734 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd a dialog box with help message when user changes the state of "Attempt Secure...
sfu5 [Fri, 14 Sep 2012 07:28:37 +0000 (07:28 +0000)]
Add a dialog box with help message when user changes the state of "Attempt Secure Boot" check box.

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

11 years agoFix the issue that FTW driver fail to reclaim WorkSpace.
lzeng14 [Fri, 14 Sep 2012 06:54:35 +0000 (06:54 +0000)]
Fix the issue that FTW driver fail to reclaim WorkSpace.

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

11 years ago1. Fix a bug when comparing two timestamp in auth-variable driver.
sfu5 [Fri, 14 Sep 2012 02:59:35 +0000 (02:59 +0000)]
1. Fix a bug when comparing two timestamp in auth-variable driver.
2. Remove the TimeCompare function in Bds since it's not used anymore.

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

11 years agoFix coding style issue
czhang46 [Thu, 13 Sep 2012 11:28:27 +0000 (11:28 +0000)]
Fix coding style issue

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

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

11 years agoAdd ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
czhang46 [Thu, 13 Sep 2012 08:34:32 +0000 (08:34 +0000)]
Add ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
Section Extraction Protocol

Signed-off-by: Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by  : Gao Liming<liming.gao@intel.com>

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

11 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:20:34 +0000 (10:20 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

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

11 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:19:50 +0000 (10:19 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

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

11 years agoSecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
erictian [Wed, 12 Sep 2012 08:25:25 +0000 (08:25 +0000)]
SecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.

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

11 years agoMdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
erictian [Wed, 12 Sep 2012 08:24:10 +0000 (08:24 +0000)]
MdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.

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

11 years agoOvmfPkg: fix gPcAtChipsetPkgTokenSpaceGuid build break
jljusten [Wed, 12 Sep 2012 07:19:39 +0000 (07:19 +0000)]
OvmfPkg: fix gPcAtChipsetPkgTokenSpaceGuid build break

In OvmfPkgIa32X64.dsc:

Paraphrasing svn rev 13350: gPcAtChipsetPkgTokenSpaceGuid is declared in
PcAtChipsetPkg.dec and used via AcpiPlatformDxe.inf, but with the latest
build tools, since this package builds multiple architectures (IA32 & X64)
and AcpiPlatformDxe is used on X64 only, it is now necessary to place the
gPcAtChipsetPkgTokenSpaceGuid PCD's in the [PcdsFixedAtBuild.X64] section.

In the two other .dsc files:

Make a similar change to keep file contents more easily comparable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[jordan.l.justen@intel.com: change all .dsc files to keep them diffable]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13724 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: key PMBA setup in Platform PEI off of PMREGMISC/PMIOSE, not Xen
jljusten [Wed, 12 Sep 2012 07:19:28 +0000 (07:19 +0000)]
OvmfPkg: key PMBA setup in Platform PEI off of PMREGMISC/PMIOSE, not Xen

This matches the logic in AcpiTimerLib.

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

11 years agoOvmfPkg: enable PIIX4 IO space in the PEI phase
jljusten [Wed, 12 Sep 2012 07:19:16 +0000 (07:19 +0000)]
OvmfPkg: enable PIIX4 IO space in the PEI phase

I. There are at least three locations in OvmfPkg that manipulate the PMBA
and related PIIX4 registers.

1. MiscInitialization() [OvmfPkg/PlatformPei/Platform.c]
   module type: PEIM -- Pre-EFI Initialization Module
   (a) currently sets the PMBA only: 00.01.3 / 0x40 bits [15:6]

2. AcpiTimerLibConstructor() [OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c]
   module type: BASE -- probably callable anywhere after PEI
   (a) sets the PMBA if needed:      00.01.3 / 0x40 bits [15:6]
   (b) sets PCICMD/IOSE if needed:   00.01.3 / 0x04 bit  0
   (c) sets PMREGMISC/PMIOSE:        00.01.3 / 0x80 bit  0

3. AcpiInitialization() [OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c]
   module type: DXE_DRIVER -- Driver eXecution Environment
   (a) sets SCI_EN, which depends on correct PMBA setting from earlier

(
  The relative order of #1 and #3 is dictated minimally by their module
  types. Said relative order can be verified with the boot log:

       27 Loading PEIM at 0x00000822320 EntryPoint=0x00000822580
          PlatformPei.efi
       28 Platform PEIM Loaded
     1259 PlatformBdsInit
     1270 PlatformBdsPolicyBehavior

  Line 28 is printed by InitializePlatform()
  [OvmfPkg/PlatformPei/Platform.c] which is the entry point of that
  module. The other two lines are printed by the corresponding functions
  in "OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c".
)

Currently #2 (AcpiTimerLibConstructor()) is called in a random spot
(whenever it gets loaded from the firmware image) and masks the
insufficient setup in #1. We shouldn't depend on that, PEI should finish
with IO space being fully accessibe. In addition, PEI should program the
same PMBA value as AcpiTimerLib.

II. The PEI change notwithstanding, AcpiTimerLib should stay defensive and
ensure proper PM configuration for itself (either by confirming or by
doing).

III. Considering a possible cleanup/unification of #2 and #3: timer
functions relying on AcpiTimerLibConstructor(),

- MicroSecondDelay()
- NanoSecondDelay()
- GetPerformanceCounter()
- GetPerformanceCounterProperties()
- GetTimeInNanoSecond()

may be called before #3 is reached (in Boot Device Selection phase), so we
should not move the initialization from #2 to #3. (Again, AcpiTimerLib
should contain its own setup.)

We should also not move #3 to an earlier phase -- SCI_EN is premature
unless we're about to boot real soon ("enable generation of SCI upon
assertion of PWRBTN_STS, LID_STS, THRM_STS, or GPI_STS bits").

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

11 years agoOvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib
jljusten [Wed, 12 Sep 2012 07:19:04 +0000 (07:19 +0000)]
OvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib

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

11 years agoOvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield
jljusten [Wed, 12 Sep 2012 07:18:50 +0000 (07:18 +0000)]
OvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield

The Index Register Base Address bitfield is selected by the binary mask
00000000 00000000 11111111 11000000, 0xFFC0; fix the typo.

Reported-by: Gleb Natapov <gleb@redhat.com>
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@13720 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: extract the PBMA used in AcpiTimerLib into a PCD
jljusten [Wed, 12 Sep 2012 07:18:35 +0000 (07:18 +0000)]
OvmfPkg: extract the PBMA used in AcpiTimerLib into a PCD

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

11 years agoOvmfPkg: assorted whitespace removal
jljusten [Wed, 12 Sep 2012 07:18:21 +0000 (07:18 +0000)]
OvmfPkg: assorted whitespace removal

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

11 years agoFix compile error
czhang46 [Wed, 12 Sep 2012 01:23:04 +0000 (01:23 +0000)]
Fix compile error

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

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

11 years agoEnhance the error code info.
ydong10 [Tue, 11 Sep 2012 10:53:37 +0000 (10:53 +0000)]
Enhance the error code info.

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

11 years agoEnhance the comments.
ydong10 [Tue, 11 Sep 2012 10:26:44 +0000 (10:26 +0000)]
Enhance the comments.

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

11 years agoEnable TPM measurement lib to measure all PE image from a FV unmeasured by TcgPei
czhang46 [Tue, 11 Sep 2012 02:26:50 +0000 (02:26 +0000)]
Enable TPM measurement lib to measure all PE image from a FV unmeasured by TcgPei

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

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

11 years agoModify UDP and IP to transmit on all network adapters instead of just the first netwo...
lpleahy [Mon, 10 Sep 2012 19:04:41 +0000 (19:04 +0000)]
Modify UDP and IP to transmit on all network adapters instead of just the first network adapter.
Fix comment in Socket.c.

Signed-off-by: lpleahy
Reviewed and tested by: Sreenivasula Reddy of Dell

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

11 years agoRefine code to make it more safely.
ydong10 [Mon, 10 Sep 2012 09:35:43 +0000 (09:35 +0000)]
Refine code to make it more safely.

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

11 years agoEnhance the check for options in the question.
ydong10 [Mon, 10 Sep 2012 08:29:32 +0000 (08:29 +0000)]
Enhance the check for options in the question.

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

11 years agoWhen question not have storage with it, not restore old value for it.
ydong10 [Mon, 10 Sep 2012 03:03:40 +0000 (03:03 +0000)]
When question not have storage with it, not restore old value for it.

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

11 years agoAdd type cast to avoid sign extension on x64 tip.
vanjeff [Mon, 10 Sep 2012 02:36:17 +0000 (02:36 +0000)]
Add type cast to avoid sign extension on x64 tip.

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

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

11 years agoWhen SerialPortWrite() is called with a non-NULL Buffer and NumberOfBytes is passed...
niruiyu [Mon, 10 Sep 2012 02:32:45 +0000 (02:32 +0000)]
When SerialPortWrite() is called with a non-NULL Buffer and NumberOfBytes is passed in as 0, just do a flush.

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

11 years agoCache the state whether the ROM image contains EFI Option ROM when loading the ROM...
niruiyu [Fri, 7 Sep 2012 03:15:25 +0000 (03:15 +0000)]
Cache the state whether the ROM image contains EFI Option ROM when loading the ROM content from PCI device to memory to avoid re-parsing the ROM image to check the EFI Option ROM.

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

11 years agoFix always allocate memory issue.
ydong10 [Fri, 7 Sep 2012 01:55:33 +0000 (01:55 +0000)]
Fix always allocate memory issue.

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

11 years agoFix display color error when scroll up/down the screen.
ydong10 [Fri, 7 Sep 2012 01:54:47 +0000 (01:54 +0000)]
Fix display color error when scroll up/down the screen.

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

11 years agoFix the memory leak issue and enhance the check for CoreReadImageFile return.
lzeng14 [Fri, 7 Sep 2012 01:35:44 +0000 (01:35 +0000)]
Fix the memory leak issue and enhance the check for CoreReadImageFile return.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ting Ye <ting.ye@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13704 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCheck the return code from CoreLocateDevicePath() in MdeModulePkg/Core/Dxe/Image...
lzeng14 [Thu, 6 Sep 2012 05:00:34 +0000 (05:00 +0000)]
Check the return code from CoreLocateDevicePath() in MdeModulePkg/Core/Dxe/Image/Image.c CoreLoadImageCommon().

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

11 years agoTcgPei is a generic module, so move PcdFirmwareVersionString to generic Pcd list
czhang46 [Thu, 6 Sep 2012 02:46:07 +0000 (02:46 +0000)]
TcgPei is a generic module, so move PcdFirmwareVersionString to generic Pcd list

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

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

11 years agoCheck the value of Hdr.dwLength for signed EFI image before image validation.
sfu5 [Thu, 6 Sep 2012 02:15:59 +0000 (02:15 +0000)]
Check the value of Hdr.dwLength for signed EFI image before image validation.

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

11 years agoRefine coding style.
ydong10 [Wed, 5 Sep 2012 08:46:51 +0000 (08:46 +0000)]
Refine coding style.

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

11 years agofix compile error in TcgPei
czhang46 [Wed, 5 Sep 2012 00:32:12 +0000 (00:32 +0000)]
fix compile error in TcgPei

signed-off-by: Zhang Chao <chao.b.zhang@intel.com>
reviewed-by  : Dong Guo   <guo.dong@inte.com>

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

11 years agoSet mode 0 (80x25) when Consplitter does not exist.
li-elvin [Tue, 4 Sep 2012 09:43:22 +0000 (09:43 +0000)]
Set mode 0 (80x25) when Consplitter does not exist.

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

11 years agoFix build fail.
ydong10 [Tue, 4 Sep 2012 08:35:16 +0000 (08:35 +0000)]
Fix build fail.

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

11 years agoRefine the code to make it more safely.
ydong10 [Mon, 3 Sep 2012 01:59:05 +0000 (01:59 +0000)]
Refine the code to make it more safely.

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

11 years agoStdLib: Fix possible compiler warnings when doing enumerate type comparison.
rsun3 [Mon, 3 Sep 2012 01:07:54 +0000 (01:07 +0000)]
StdLib: Fix possible compiler warnings when doing enumerate type comparison.

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

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

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