mirror_edk2.git
6 years agoFix a bug about iSCSI initiator(based on NetworkPkg-IPv4 network stack) cannot reinst...
Wu Jiaxin [Tue, 19 Nov 2013 05:52:10 +0000 (05:52 +0000)]
Fix a bug about iSCSI initiator(based on NetworkPkg-IPv4 network stack) cannot reinstate session with Windows iSCSI target.

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jin Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14862 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg Pcd: Refine the code to avoid error report.
Star Zeng [Tue, 19 Nov 2013 05:42:51 +0000 (05:42 +0000)]
MdeModulePkg Pcd: Refine the code to avoid error report.

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

6 years agoFixed one typo in MathRShiftU64.S stub implementation; Add one digest algorithm regis...
Long, Qin [Tue, 19 Nov 2013 02:57:19 +0000 (02:57 +0000)]
Fixed one typo in MathRShiftU64.S stub implementation; Add one digest algorithm registration to make sure the underlying algorithm is available for the default OpenSSL software PRNG implementation.

Signed-off-by: Long, Qin <qin.long@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14860 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoEnable the build command override the .DSC file contents to enable debug output and...
Lee Leahy [Tue, 19 Nov 2013 02:37:37 +0000 (02:37 +0000)]
Enable the build command override the .DSC file contents to enable debug output and specify which debug messages are displayed.  An example:

build  -a IA32  -a X64  -t VS2008x86  -p AppPkg/AppPkg.dsc  -b DEBUG   -D DEBUG_ENABLE_OUTPUT=TRUE   -D DEBUG_PROPERTY_MASK=0x27   -D DEBUG_PRINT_ERROR_LEVEL=0xFCF00040

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14859 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd UEFI RNG Protocol support. The driver will leverage Intel Secure Key technology...
Long, Qin [Tue, 19 Nov 2013 01:49:49 +0000 (01:49 +0000)]
Add UEFI RNG Protocol support. The driver will leverage Intel Secure Key technology to produce the Random Number Generator protocol, which is used to provide high-quality random numbers for use in applications, or entropy for seeding other random number generators. Refer to software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide/ for more information about Intel Secure Key technology.

Signed-off-by: Long, Qin <qin.long@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14858 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg and MdeModulePkg Pcd: Implement PCD Driver for External PCD Database and SKU...
Bob C Feng [Mon, 18 Nov 2013 07:45:49 +0000 (07:45 +0000)]
MdePkg and MdeModulePkg Pcd: Implement PCD Driver for External PCD Database and SKU enable Feature.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bob C Feng <bob.c.feng@intel.com>
Reviewed-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@14857 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoSync BaseTool trunk (version r2610) into EDKII BaseTools.
Liming Gao [Mon, 18 Nov 2013 07:41:21 +0000 (07:41 +0000)]
Sync BaseTool trunk (version r2610) into EDKII BaseTools.

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

6 years agoSecurityPkg Variable: Remove mStorageData buffer allocation and use Scratch buffer...
Star Zeng [Mon, 18 Nov 2013 02:56:04 +0000 (02:56 +0000)]
SecurityPkg Variable: Remove mStorageData buffer allocation and use Scratch buffer instead to reduce SMRAM consumption.

It can reduce MAX (PcdGet32 (PcdMaxVariableSize), PcdGet32 (PcdMaxHardwareErrorVariableSize)) size of SMRAM consumption.

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

6 years agoShellPkg: "For Run" fix for spaces between numerals
Jaben Carsey [Fri, 15 Nov 2013 20:28:58 +0000 (20:28 +0000)]
ShellPkg: "For Run" fix for spaces between numerals
Since this is expected to use a string with spaces between some of the numbers, the function must halt on spaces and not skip them.

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

6 years agoShellPkg: Fix help MAN file searching
Jaben Carsey [Fri, 15 Nov 2013 20:21:34 +0000 (20:21 +0000)]
ShellPkg: Fix help MAN file searching
Make sure that “help App” and “help App.EFI” work the same by removing “.efi” (case insensitive) from the end of the string before searching for MAN file.

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

6 years agoShellPkg: Rename duplicate STRING ID
Jaben Carsey [Fri, 15 Nov 2013 18:55:36 +0000 (18:55 +0000)]
ShellPkg: Rename duplicate STRING ID

There were 2 "STR_UCS2" strings.  This renames one of them so they are unique.

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

6 years agoShellPkg: Add DiskIO2, and fix GUID from string check to be case insensitive
Chris Phillips [Fri, 15 Nov 2013 18:44:29 +0000 (18:44 +0000)]
ShellPkg: Add DiskIO2, and fix GUID from string check to be case insensitive
- Add DiskIO2 to list of known protocols
- Fix string check to be case insensitive for commands like ‘dh –p protocolname’

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

6 years agoShellPkg: Skip leading tabs when processing command line and scripts
Chris Phillips [Fri, 15 Nov 2013 18:41:50 +0000 (18:41 +0000)]
ShellPkg: Skip leading tabs when processing command line and scripts

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14850 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoShellPkg: verify that leading and trailing % are removed from variable names when...
Jaben Carsey [Fri, 15 Nov 2013 18:39:26 +0000 (18:39 +0000)]
ShellPkg: verify that leading and trailing % are removed from variable names when doing command line redirection to an environment variable.

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

6 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:05:15 +0000 (02:05 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

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

6 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:05:11 +0000 (02:05 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

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

6 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:04:57 +0000 (02:04 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

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

6 years agoShellPkg: clarify space limitation in comment.
Jaben Carsey [Thu, 14 Nov 2013 23:52:43 +0000 (23:52 +0000)]
ShellPkg: clarify space limitation in comment.

Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14845 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoOvmfPkg/BdsPlatform: don't restore NvVars from disk when flash is present
Laszlo Ersek [Tue, 12 Nov 2013 18:35:32 +0000 (18:35 +0000)]
OvmfPkg/BdsPlatform: don't restore NvVars from disk when flash is present

QemuFlashFvbServicesRuntimeDxe provides actual persistent storage for
non-volatile variables. When it is active, any on-disk NvVars file counts
as a stale source of variables -- hence don't load these files in BDS.

This also allows Secure Boot settings (eg. enrolled keys) to survive cold
VM reboots.

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://svn.code.sf.net/p/edk2/code/trunk/edk2@14844 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoOvmfPkg: indicate enablement of flash variables with a dedicated PCD
Laszlo Ersek [Tue, 12 Nov 2013 18:35:23 +0000 (18:35 +0000)]
OvmfPkg: indicate enablement of flash variables with a dedicated PCD

PcdFlashNvStorageVariableBase64 is used to arbitrate between
QemuFlashFvbServicesRuntimeDxe and EmuVariableFvbRuntimeDxe, but even the
latter driver sets it if we fall back to it.

Allow code running later than the startup of these drivers to know about
the availability of flash variables, through a dedicated 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://svn.code.sf.net/p/edk2/code/trunk/edk2@14843 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoOvmfPkg/build.sh: Enable flash for QEMU >= 1.6
Jordan Justen [Tue, 12 Nov 2013 18:35:15 +0000 (18:35 +0000)]
OvmfPkg/build.sh: Enable flash for QEMU >= 1.6

If the QEMU version is found to be >= 1.6, then automatically
enable flash (using the QEMU pflash command line parameter).

QEMU supports flash since 1.2, but only if KVM is disabled.
As of QEMU 1.6, flash support should also be enabled when
KVM is used. Therefore it is safest to only enable flash for
QEMU 1.6 and newer.

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

6 years agoOvmfPkg/build.sh: Support --enable-flash switch
Jordan Justen [Tue, 12 Nov 2013 18:35:08 +0000 (18:35 +0000)]
OvmfPkg/build.sh: Support --enable-flash switch

If this argument is used, then when QEMU is run, the -pflash
parameter will be used with QEMU to enable QEMU's flash
mode.

It should be used before the 'qemu' argument, since it is
not a QEMU parameter, but instead it updates how build.sh
runs QEMU.

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

6 years agoOvmfPkg: Add QemuFlashFvbServicesRuntimeDxe to firmware image
Jordan Justen [Tue, 12 Nov 2013 18:35:01 +0000 (18:35 +0000)]
OvmfPkg: Add QemuFlashFvbServicesRuntimeDxe to firmware image

This driver will support a flash FVB implementation if QEMU flash
is detected.

The driver is added to the apriori list to make sure it runs
before the EmuVariableFvbRuntimeDxe driver. If this driver detects
flash support, then it will disable the EmuVariableFvbRuntimeDxe
driver by setting PcdFlashNvStorageVariableBase64.

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

6 years agoOvmfPkg: Add QemuFlashFvbServicesRuntimeDxe driver
Jordan Justen [Tue, 12 Nov 2013 18:34:52 +0000 (18:34 +0000)]
OvmfPkg: Add QemuFlashFvbServicesRuntimeDxe driver

If QEMU flash is detected, this module will install
FirmwareVolumeBlock support for the QEMU flash device.

It will also set PCDs with the results that:
1. OvmfPkg/EmuVariableFvbRuntimeDxe will be disabled
2. MdeModulePkg variable services will read/write flash directly

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

6 years agoOvmfPkg/EmuVariableFvbRuntimeDxe: Disable if flash variables are supported
Jordan Justen [Tue, 12 Nov 2013 18:34:43 +0000 (18:34 +0000)]
OvmfPkg/EmuVariableFvbRuntimeDxe: Disable if flash variables are supported

If QEMU flash is supported, then the PcdFlashNvStorageVariableBase64
will be set by the flash FVB driver. If it is set to a non-zero value,
then we disable memory based variables.

In future patches we will add the flash FVB driver and
force it to run before this driver. Therefore, if QEMU flash
writing is supported, then this driver will be disabled.

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

6 years agoOvmfPkg/AcpiPlatformDxe/Qemu: Decrease upper limit for PCI window 32
Jordan Justen [Tue, 12 Nov 2013 18:34:36 +0000 (18:34 +0000)]
OvmfPkg/AcpiPlatformDxe/Qemu: Decrease upper limit for PCI window 32

In a later patch we will want to mark the flash memory as a
runtime services data memory range. This will allow a new runtime
services firmware block driver to read & write flash memory when
the OS has set up virtual memory protection.

Since this memory range will appear as runtime services data, we
need to adjust the limit when scanning for PCI window 32 down to
just below the flash device. If we don't adjust the limit, then
the algorithm in PopulateFwData will fail because it will see a
EfiGcdMemoryTypeSystemMemory memory range just below 4GB.

v2:
 * This patch replaces the v1 patch:
   "OvmfPkg/AcpiPlatformDxe/Qemu: Allow high runtime memory regions"

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

6 years agoOvmfPkg/README: Add information about OVMF flash layout
Jordan Justen [Tue, 12 Nov 2013 18:34:28 +0000 (18:34 +0000)]
OvmfPkg/README: Add information about OVMF flash layout

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

6 years agoOvmfPkg: Add NV Variable storage within FD
Jordan Justen [Tue, 12 Nov 2013 18:34:20 +0000 (18:34 +0000)]
OvmfPkg: Add NV Variable storage within FD

This is to prepare for QEMU flash support which will allow
non-volatile variables to be saved in the flash image.

Note two size changes:
 * NV Varstore size increased from 0xc000 to 0xe000
 * FTW work size decreased from 0x2000 to 0x1000

The reason for this change is that the fault-tolerant write
support requires that the work area fit within the block
just before the fault-tolerant write spare storage blocks.
Since QEMU flash blocks have a size of 0x1000, this means
that the maximum FTW work size is 0x1000.

v2:
 * Update commit message and PcdVariableStoreSize

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

6 years agoOvmfPkg: Add flash PCD items
Jordan Justen [Tue, 12 Nov 2013 18:34:11 +0000 (18:34 +0000)]
OvmfPkg: Add flash PCD items

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

6 years agoOvmfPkg: Increase DEBUG build size to 2MB by default
Jordan Justen [Tue, 12 Nov 2013 18:34:02 +0000 (18:34 +0000)]
OvmfPkg: Increase DEBUG build size to 2MB by default

The 1MB image with full debug and the shell included is too
large to implement flash based non-volatile variable.

After this change, building with -D FD_SIZE_1MB will
force the smaller flash size.

The default size for RELEASE build remains at 1MB, so using
-b RELEASE on the build command line will result in a
1MB flash size. For RELEASE builds -D FD_SIZE_2MB can be
used to produce a 2MB flash image.

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

6 years agoMdeModulePkg and SecurityPkg Variable: Optimize the code to reduce some SMRAM consump...
Star Zeng [Tue, 12 Nov 2013 13:31:43 +0000 (13:31 +0000)]
MdeModulePkg and SecurityPkg Variable: Optimize the code to reduce some SMRAM consumption during variable reclaiming.

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

6 years agoCheck in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools...
Ruiyu Ni [Fri, 8 Nov 2013 03:35:14 +0000 (03:35 +0000)]
Check in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools (r14830), FatPkg (r67).

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

6 years agoAdd BaseSmbusLibNull instance for SmbusLib. Add check in BootScriptExecutorDxe driver...
Shumin Qiu [Fri, 8 Nov 2013 02:59:05 +0000 (02:59 +0000)]
Add BaseSmbusLibNull instance for SmbusLib. Add check in BootScriptExecutorDxe driver for the return status of S3BootScriptExecute().

Signed-off-by: Shumin Qiu <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@14830 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoNot update the imageId for EXT1,2,4 type.
Eric Dong [Fri, 8 Nov 2013 02:23:27 +0000 (02:23 +0000)]
Not update the imageId for EXT1,2,4 type.

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

6 years agoUpdate the logic, based on the device path and formset guid to find the HiiHandle.
Eric Dong [Thu, 7 Nov 2013 07:38:05 +0000 (07:38 +0000)]
Update the logic, based on the device path and formset guid to find the HiiHandle.

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

6 years agoFix several bugs in DevicePathLib implementation regarding the device path node and...
Ruiyu Ni [Thu, 7 Nov 2013 02:30:13 +0000 (02:30 +0000)]
Fix several bugs in DevicePathLib implementation regarding the device path node and text conversion.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14827 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoFix wrong parameter usage in GenericBdsLibConstructor
czhang46 [Thu, 7 Nov 2013 02:28:03 +0000 (02:28 +0000)]
Fix wrong parameter usage in GenericBdsLibConstructor

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

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14826 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoOvmfPkg/build.sh: Use QEMU_COMMAND environment variable
Jordan Justen [Wed, 6 Nov 2013 19:29:09 +0000 (19:29 +0000)]
OvmfPkg/build.sh: Use QEMU_COMMAND environment variable

If the user has set the QEMU_COMMAND environment variable,
then use it when running QEMU. This can be useful for running
OVMF with development builds of QEMU.

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

6 years agoArmPlatformPkg: Added initial support for the FVP Base and Foundation Models
Olivier Martin [Tue, 5 Nov 2013 18:10:36 +0000 (18:10 +0000)]
ArmPlatformPkg: Added initial support for the FVP Base and Foundation Models

The FVP Base Model has GICv3 support.
UEFI SEC does limited configuration of GICv3 if present. This is required for Linux to use GICv3.
UEFI itself uses the GICv3 in legacy mode (GICv2).

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

6 years agoSupport unhook notification function for Smst->SmmRegisterProtocolNotify() per PI...
Jeff Fan [Tue, 5 Nov 2013 13:32:32 +0000 (13:32 +0000)]
Support unhook notification function for Smst->SmmRegisterProtocolNotify() per PI specification.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14823 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg and SecurityPkg Variable: Enhance code to use the new variable data...
Star Zeng [Mon, 4 Nov 2013 03:13:54 +0000 (03:13 +0000)]
MdeModulePkg and SecurityPkg Variable: Enhance code to use the new variable data instead of old variable data when variable reclaim.

It can fix the potential failure to return EFI_OUT_OF_RESOURCES of the second variable set of large variable.

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

6 years agoOptionRomPkg: Corrected path for the FtdiUsbSerialDxe.inf in OptionRomPkg.dsc
Ashley DeSimone [Fri, 1 Nov 2013 17:01:23 +0000 (17:01 +0000)]
OptionRomPkg: Corrected path for the FtdiUsbSerialDxe.inf in OptionRomPkg.dsc

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ashley DeSimone <ashley.e.desimone@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14821 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg Pool: Update the type of Size to UINTN for the potential more than 4GB...
Star Zeng [Wed, 30 Oct 2013 04:54:53 +0000 (04:54 +0000)]
MdeModulePkg Pool: Update the type of Size to UINTN for the potential more than 4GB buffer allocation.

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

6 years agoMdeMdeModulePkg/UsbBusDxe: If DisconnectController() returns an error the USB Bus...
Feng Tian [Wed, 30 Oct 2013 03:49:24 +0000 (03:49 +0000)]
MdeMdeModulePkg/UsbBusDxe: If DisconnectController() returns an error the USB Bus Driver would retry the DisconnectController() from a timer event until it succeeds

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14819 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoUpdate SimpleFileSystem.h to add the asynchronous File IO API definition.
Ruiyu Ni [Wed, 30 Oct 2013 03:10:30 +0000 (03:10 +0000)]
Update SimpleFileSystem.h to add the asynchronous File IO API definition.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14818 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoOptionRomPkg: Added bus driver for FTDI USB to serial adapters
Ashley DeSimone [Tue, 29 Oct 2013 17:46:03 +0000 (17:46 +0000)]
OptionRomPkg: Added bus driver for FTDI USB to serial adapters

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ashley DeSimone <ashley.e.desimone@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14817 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Properly set lasterror environment variable
Chris Phillips [Tue, 29 Oct 2013 16:30:25 +0000 (16:30 +0000)]
ShellPkg: Properly set lasterror environment variable
- Set lasterror value based on platform width
- Use “lasterror” rather than “Lasterror” for variable name to match Shell Specification
- Set lasterror value when a binary or script file is not found

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

7 years agoClean the help string and hot key info if an empty form is painting.
Eric Dong [Tue, 29 Oct 2013 11:22:39 +0000 (11:22 +0000)]
Clean the help string and hot key info if an empty form is painting.

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

7 years agoFix a K9 error.Result of GetVariable2() function that may return NULL will be derefer...
Wu Jiaxin [Tue, 29 Oct 2013 08:52:01 +0000 (08:52 +0000)]
Fix a K9 error.Result of GetVariable2() function that may return NULL will be dereferenced.

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14814 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix a K9 error.Result of GetVariable2() function that may return NULL will be derefer...
Wu Jiaxin [Tue, 29 Oct 2013 08:51:16 +0000 (08:51 +0000)]
Fix a K9 error.Result of GetVariable2() function that may return NULL will be dereferenced.

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14813 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoUse rsp instead of esp to save 64-bit stack pointer.
Elvin Li [Tue, 29 Oct 2013 06:52:25 +0000 (06:52 +0000)]
Use rsp instead of esp to save 64-bit stack pointer.

Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14812 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix the bug that SetTimer () cannot work when Type is TimerPeriodic and TriggerTime...
Elvin Li [Tue, 29 Oct 2013 06:47:47 +0000 (06:47 +0000)]
Fix the bug that SetTimer () cannot work when Type is TimerPeriodic and TriggerTime is 0.

Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14811 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoARM Packages: Renamed PL390Gic driver into ArmGic driver
Olivier Martin [Tue, 29 Oct 2013 06:36:34 +0000 (06:36 +0000)]
ARM Packages: Renamed PL390Gic driver into ArmGic driver

The aim is to make this driver follows the ARM GIC specifications and
be implementation independent.

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

7 years agoOvmfPkg/Virtio.h: Added the Virtio Vendor and MMIO IDs
Olivier Martin [Tue, 29 Oct 2013 06:09:46 +0000 (06:09 +0000)]
OvmfPkg/Virtio.h: Added the Virtio Vendor and MMIO IDs

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

7 years agoOvmfPkg/Virtio.h: Added PCI/MMIO Virtio Headers Offsets
Olivier Martin [Tue, 29 Oct 2013 06:08:39 +0000 (06:08 +0000)]
OvmfPkg/Virtio.h: Added PCI/MMIO Virtio Headers Offsets

Offsets are different between the PCI and MMIO transport layer.

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

7 years agoOvmfPkg/Virtio.h: Added the macros that define the Device Specific Configuration...
Olivier Martin [Tue, 29 Oct 2013 06:07:35 +0000 (06:07 +0000)]
OvmfPkg/Virtio.h: Added the macros that define the Device Specific Configuration Offset

The Device Specific Configuration region is located at different locations
for the VirtIo devices over PCI, PCI with MSI-X capability, MMIO.

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

7 years agoOvmfPkg/PlatformPei: emulated NV storage must be EfiRuntimeServicesData
Laszlo Ersek [Tue, 29 Oct 2013 06:02:46 +0000 (06:02 +0000)]
OvmfPkg/PlatformPei: emulated NV storage must be EfiRuntimeServicesData

SVN r14770 ("OvmfPkg/PlatformPei: correctly align emulated NV storage")
made sure the emulated NV storage was allocated with correct alignment.

However, the AllocateRuntimePool() -> AllocateAlignedPages() change
flipped the memory type from EfiRuntimeServicesData to
EfiBootServicesData. This causes variable services to access freed storage
at runtime. It crashes Windows 2008 R2 early at boot, for example.

Keep the alignment, but restore the memory type to EfiRuntimeServicesData,
by calling AllocateAlignedRuntimePages().

These helper functions are implemeted and documented in
"MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c".

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://svn.code.sf.net/p/edk2/code/trunk/edk2@14806 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoMdeModulePkg/NvmExpressDxe: Correct the calculation of LbaFmtIdx of Identify name...
Feng Tian [Tue, 29 Oct 2013 01:31:02 +0000 (01:31 +0000)]
MdeModulePkg/NvmExpressDxe: Correct the calculation of LbaFmtIdx of Identify name space to follow NVME spec

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

7 years agoEADK (AppPkg): Update the Python ReadMe file, Python/PythonReadMe.txt, to reflect...
Daryl McDaniel [Fri, 25 Oct 2013 20:09:26 +0000 (20:09 +0000)]
EADK (AppPkg): Update the Python ReadMe file, Python/PythonReadMe.txt, to reflect the current status of the project.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14804 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix a bug about the iSCSI DHCP dependency issue.
Wu Jiaxin [Fri, 25 Oct 2013 08:07:26 +0000 (08:07 +0000)]
Fix a bug about the iSCSI DHCP dependency issue.
Create rules to determine whether iSCSI need DHCP protocol in current configuration by examining user’s configuration data in DriverBindingSupported().

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14803 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix a bug about the iSCSI DHCP dependency issue.
Wu Jiaxin [Fri, 25 Oct 2013 08:05:47 +0000 (08:05 +0000)]
Fix a bug about the iSCSI DHCP dependency issue.
Create rules to determine whether iSCSI need DHCP protocol in current configuration by examining user’s configuration data in DriverBindingSupported().

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14802 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoEADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Update ReadMe.txt in all packages.
Daryl McDaniel [Thu, 24 Oct 2013 23:14:10 +0000 (23:14 +0000)]
EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Update ReadMe.txt in all packages.
StdLib: Update Issues.txt and add Fixes.txt files.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14801 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fixes the shell so output redirection works for the 'mode' command
Chris Phillips [Thu, 24 Oct 2013 17:47:57 +0000 (17:47 +0000)]
ShellPkg: Fixes the shell so output redirection works for the 'mode' command

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14800 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Stop running command when page break quit
Chris Phillips [Thu, 24 Oct 2013 17:29:33 +0000 (17:29 +0000)]
ShellPkg: Stop running command when page break quit

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

7 years agoArmPkg/PL390Gic: Fixed setting of the Interrupt Processor Targets Registers when...
Olivier Martin [Thu, 24 Oct 2013 11:49:32 +0000 (11:49 +0000)]
ArmPkg/PL390Gic: Fixed setting of the Interrupt Processor Targets Registers when Uniprocessor

When running on a uniprocessor implementation, the ICDIPTRn registers are RAZ (Read as Zero).
So the previous assertion was not correct.

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

7 years agoMdeModulePkg/XhciDxe: Dynamically calculate the interval value of interrupt endpoint...
Tian, Feng [Wed, 23 Oct 2013 05:35:07 +0000 (05:35 +0000)]
MdeModulePkg/XhciDxe: Dynamically calculate the interval value of interrupt endpoint context of low/full speed device behind low/full speed hub.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
reviewed-by: Li, Elvin <elvin.li@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14797 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoEdkCompatibilityPkg: Fixed EDK Shell build
Olivier Martin [Tue, 22 Oct 2013 08:49:50 +0000 (08:49 +0000)]
EdkCompatibilityPkg: Fixed EDK Shell build

Fixed:
- Removed unused variables
- Function does not return value.

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

7 years agoShellPkg: Fix copy load option error.
Eric Dong [Tue, 22 Oct 2013 01:14:54 +0000 (01:14 +0000)]
ShellPkg: Fix copy load option error.

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

7 years agoArmPlatformPkg/PL031RealTimeClockLib: Fixed the conditions in LibSetTime()
Olivier Martin [Mon, 21 Oct 2013 11:12:21 +0000 (11:12 +0000)]
ArmPlatformPkg/PL031RealTimeClockLib: Fixed the conditions in LibSetTime()

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

7 years agoArmPlatformPkg/PL180MciDxe: Fixed check for space in transmit FIFO
Olivier Martin [Mon, 21 Oct 2013 11:06:51 +0000 (11:06 +0000)]
ArmPlatformPkg/PL180MciDxe: Fixed check for space in transmit FIFO

This patch prevents a buffer underrun error on the Versatile Express

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

7 years agoArmPlatformPkg/NorFlashDxe: Fix checking of return value of NorFlashWriteBlocks()
Roy Franz [Mon, 21 Oct 2013 10:29:56 +0000 (10:29 +0000)]
ArmPlatformPkg/NorFlashDxe: Fix checking of return value of NorFlashWriteBlocks()

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

7 years agoAdd TPM1.2 SaveState API.
jyao1 [Mon, 21 Oct 2013 05:56:07 +0000 (05:56 +0000)]
Add TPM1.2 SaveState API.

Signed off by: Yao, Jiewen <Jiewen.yao@intel.com>
Reviewed by: Dong Guo <Gui.dong@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14791 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoEnable two form packages share one hii handle.
Eric Dong [Mon, 21 Oct 2013 05:22:01 +0000 (05:22 +0000)]
Enable two form packages share one hii handle.

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

7 years agoAdd sample code for warningif opcode.
Eric Dong [Mon, 21 Oct 2013 05:19:03 +0000 (05:19 +0000)]
Add sample code for warningif opcode.

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

7 years agoShellPkg: Fixes for the ‘type’ command:
Chris Phillips [Fri, 18 Oct 2013 20:53:06 +0000 (20:53 +0000)]
ShellPkg: Fixes for the ‘type’ command:
- Better handling to skip byte order mark in Unicode files.
- Only display valid ASCII characters.
- Change to use ShellPrintEx() instead of Print().
- Print each character instead of %s to avoid possible overrun when not NULL terminated.
- Check for ExecutionBreak.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14788 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fix for the ‘mv’ command when destination starts with ‘\’.
Chris Phillips [Fri, 18 Oct 2013 20:10:18 +0000 (20:10 +0000)]
ShellPkg: Fix for the ‘mv’ command when destination starts with ‘\’.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14787 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fixes for the ‘ls’ command:
Chris Phillips [Fri, 18 Oct 2013 18:53:16 +0000 (18:53 +0000)]
ShellPkg: Fixes for the ‘ls’ command:
- Better output to print header and file not found text
- Fix file attribute argument handling
- Fix so path ending with ‘\’ or ‘*’ is handled correctly

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14786 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fixes ‘edit’ command to correctly display ASCII or UNICODE for the file...
Chris Phillips [Fri, 18 Oct 2013 18:11:52 +0000 (18:11 +0000)]
ShellPkg: Fixes ‘edit’ command to correctly display ASCII or UNICODE for the file type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: jaben carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14785 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fixes for shell application launch, argument handling, and version output:
Chris Phillips [Fri, 18 Oct 2013 15:49:23 +0000 (15:49 +0000)]
ShellPkg: Fixes for shell application launch, argument handling, and version output:
- Fixes shell application launch version output to match ‘ver’ command, as specified by the UEFI Shell spec.
- Adds PcdShellSupplier for <shell-supplier-specific-data> line of version output.  Defaulted to “EDK II”.
- Display only 1 startup.nsh countdown line per second instead of 10 per second.
- Fix issue where command line is just 1 or more “ “ characters and displayed garbage.
- Fix for @echo –off and @echo –on to not restore echo state

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14784 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix an issue that execute "map -r" in NT32 simulator cannot reinstate iSCSI session...
Ye Ting [Fri, 18 Oct 2013 02:49:13 +0000 (02:49 +0000)]
Fix an issue that execute "map -r" in NT32 simulator cannot reinstate iSCSI session with Linux iSCSI target after unplug/plug network cable.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14783 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix an issue that execute "map -r" in UEFI shell cannot reinstate iSCSI session with...
Ye Ting [Fri, 18 Oct 2013 02:45:52 +0000 (02:45 +0000)]
Fix an issue that execute "map -r" in UEFI shell cannot reinstate iSCSI session with Microsoft iSCSI target after unplug/plug network cable.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14782 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix an issue that execute "map -r" in UEFI shell cannot reinstate iSCSI session with...
Ye Ting [Fri, 18 Oct 2013 02:43:34 +0000 (02:43 +0000)]
Fix an issue that execute "map -r" in UEFI shell cannot reinstate iSCSI session with Microsoft iSCSI target after unplug/plug network cable.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14781 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoSeparate NT32 build directory, so that we can build IA32 and X64 image at same time.
Yao, Jiewen [Wed, 16 Oct 2013 08:19:48 +0000 (08:19 +0000)]
Separate NT32 build directory, so that we can build IA32 and X64 image at same time.

Signed-off-by: Yao, Jiewen <Jiewen.Yao@intel.com>
Reviewed-by: Ni, Ruiyu <Ruiyu.Ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14780 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix DxeCapsuleLib build failure
czhang46 [Wed, 16 Oct 2013 07:43:14 +0000 (07:43 +0000)]
Fix DxeCapsuleLib build failure

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

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14779 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg/Include/Chipset: Fix translation table address calculations for AARCH64
Garrett Kirkendall [Tue, 15 Oct 2013 09:25:38 +0000 (09:25 +0000)]
ArmPkg/Include/Chipset: Fix translation table address calculations for AARCH64

TT_ADDRESS_* macros were not casting immediate values to UINTN.
This causes shift operations to be off by 32-bits when calculating
addresses above 4GB.  Any address above 4GB was being improperly calculated.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14777 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoMdeModulePkg/XhciDxe: Usb legacy support feature is optional. For those usb 3.0 devic...
Sergey Isakov [Tue, 15 Oct 2013 06:13:14 +0000 (06:13 +0000)]
MdeModulePkg/XhciDxe: Usb legacy support feature is optional. For those usb 3.0 devices which doesn’t support this feature, should directly return and not touch corresponding registers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Li, Elvin <elvin.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14776 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoClean the garbage space for the statements nest in subtitle menu.
Eric Dong [Tue, 15 Oct 2013 02:51:13 +0000 (02:51 +0000)]
Clean the garbage space for the statements nest in subtitle menu.

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

7 years agoEnable UEFI firmware to support FMP capsule format.
czhang46 [Tue, 15 Oct 2013 01:31:49 +0000 (01:31 +0000)]
Enable UEFI firmware to support FMP capsule format.

signed-off-by : Chao Zhang <chao.b.zhang@intel.com>
reviewed-by   : Gao Liming <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@14773 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg/CpuDxe: Fixed confusion in AArch64 Table descriptor types
Olivier Martin [Mon, 14 Oct 2013 16:32:38 +0000 (16:32 +0000)]
ArmPkg/CpuDxe: Fixed confusion in AArch64 Table descriptor types

Table Descriptor and Level-3 Block entry descriptors have the same
translation table type value (ie: 0x3).

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

7 years agoOvmfPkg/PlatformPei: correctly align emulated NV storage
Wei Liu [Mon, 14 Oct 2013 16:24:37 +0000 (16:24 +0000)]
OvmfPkg/PlatformPei: correctly align emulated NV storage

Per 2c4b18e ("MdeModulePkg: Add the alignment check for FTW spare area
address and length, and add the check for PcdFlashNvStorageVariableSize
<= PcdFlashNvStorageFtwSpareSize."), FTWDxe refuses to initialize if
spare space base address or size is not aligned to block size.

Depending on configuration, memory for FTWDxe might be dynamically
allocated in PlatformPei. This patch makes sure that the allocated
memory region is aligned.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14770 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoMdePkg PeiServicesLib: Refine the code to avoid error report.
Star Zeng [Mon, 14 Oct 2013 09:39:25 +0000 (09:39 +0000)]
MdePkg PeiServicesLib: Refine the code to avoid error report.

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

7 years agoMove update legacy order logic from CHANGING to CHANGED.
Eric Dong [Mon, 14 Oct 2013 02:42:47 +0000 (02:42 +0000)]
Move update legacy order logic from CHANGING to CHANGED.

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

7 years agoCorrect a typo: Change the type of the 4th parameter of EFI_DRIVER_HEALTH_PROTOCOL...
Ruiyu Ni [Mon, 14 Oct 2013 02:02:02 +0000 (02:02 +0000)]
Correct a typo: Change the type of the 4th parameter of EFI_DRIVER_HEALTH_PROTOCOL::Repair() from EFI_DRIVER_HEALTH_REPAIR_PROGRESS_NOTIFY to EFI_DRIVER_HEALTH_REPAIR_NOTIFY to follow the UEFI spec.

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

7 years agoWe enabled X64 native version NT32, and made it works on Windows 7 X64 OS.
Jiamin Ma [Sat, 12 Oct 2013 06:31:55 +0000 (06:31 +0000)]
We enabled X64 native version NT32, and made it works on Windows 7 X64 OS.

Signed-off-by: Jiamin Ma <mjmthy@gmail.com>
Reviewed by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed by: Liming Gao <liming.gao@intel.com>
Reviewed by: Jiewen Yao <jiewen.yao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14766 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoUpdate comments for VarOffset field in the dynamic create question function.
Eric Dong [Sat, 12 Oct 2013 02:10:02 +0000 (02:10 +0000)]
Update comments for VarOffset field in the dynamic create question function.

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

7 years agoMdeModulePkg/AtaAtapiPassThru: Add parameter check to ResetDevice() to follow UEFI...
Tian, Feng [Fri, 11 Oct 2013 07:37:30 +0000 (07:37 +0000)]
MdeModulePkg/AtaAtapiPassThru: Add parameter check to ResetDevice() to follow UEFI spec.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
reviewed-by: Jin, Eric <eric.jin@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14764 6f19259b-4bc3-4df7-8a09-765794883524

7 years ago1. Enable use-cases in PEI using SecurityPPI co-equal to the use-cases in DXE using...
Star Zeng [Fri, 11 Oct 2013 03:54:13 +0000 (03:54 +0000)]
1. Enable use-cases in PEI using SecurityPPI co-equal to the use-cases in DXE using the Security Arch Protocol
2. Add support to find section by instance rather than only 0 at PEI phase.

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

7 years agoMdeModulePkg/AtaBus&AtaAtapiPassThru: Update ATA drivers to follow UEFI2.4 new reques...
Tian, Feng [Thu, 10 Oct 2013 05:57:50 +0000 (05:57 +0000)]
MdeModulePkg/AtaBus&AtaAtapiPassThru: Update ATA drivers to follow UEFI2.4 new request in which it requests ResetEx() to terminate any in-flight non-blocking IO request with EFI_ABORTED transaction status.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14761 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoJust like EhciDxe, do not reset host controller when debug capability is enabled...
Elvin Li [Wed, 9 Oct 2013 08:30:59 +0000 (08:30 +0000)]
Just like EhciDxe, do not reset host controller when debug capability is enabled in XhciDxe driver.

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

7 years agoRestore the correct cursor status after finish creating the dialog.
Eric Dong [Wed, 9 Oct 2013 07:51:14 +0000 (07:51 +0000)]
Restore the correct cursor status after finish creating the dialog.

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