]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
10 years agoOvmfPkg/PlatformPei: Don't allocate ACPI NVS memory
Jordan Justen [Thu, 30 Jan 2014 01:06:47 +0000 (01:06 +0000)]
OvmfPkg/PlatformPei: Don't allocate ACPI NVS memory

Once we support ACPI S3, then we can restore this to
being allocated as ACPI NVS memory.

At that time we should also have a way to disable
S3 support in QEMU. When we detect that S3 is
disabled in QEMU, then we can allocate this as regular
Boot Services Data memory.

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

10 years agoOvmfPkg: QemuBootOrder: handle QEMU's "-boot strict=on" option
Laszlo Ersek [Wed, 29 Jan 2014 21:44:23 +0000 (21:44 +0000)]
OvmfPkg: QemuBootOrder: handle QEMU's "-boot strict=on" option

When this option is passed to qemu, it appends the word HALT to the
"bootorder" fw_cfg file, as last entry. For example,

  /pci@i0cf8/ethernet@3/ethernet-phy@0
  /pci@i0cf8/scsi@4/disk@0,0
  HALT

The option's purpose is to prevent SeaBIOS from booting from devices that
have not been specified explicitly (with bootindex=N device properties nor
-boot options). When SeaBIOS sees HALT, it doesn't proceed to boot from
default locations (after boot fails from all of the listed locations).

The HALT string currently causes OVMF to reject the entire "bootorder"
fw_cfg contents, with "parse error". This is not good, because since a
recent libvirt commit, libvirt unconditionally passes "-boot strict=on" to
qemu. Consequently, the boot order logic in QemuBootOrder.c has stopped
working for libvirt users.

OVMF's SetBootOrderFromQemu() function actually implements the idea behind
"-boot strict=on": it drops all boot options not in the fw_cfg list. (*)
Therefore, let's recognize HALT, and just do what we've been doing all
along.

(*) Except the UEFI shell, according to the survival policy in
BootOrderComplete(), but the memory mapped UEFI shell is not expressible
via fw_cfg anyway, and its preservation has been requested on edk2-devel.
Hence it's a good boot option to keep in any case.

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

10 years agoOvmfPkg/PlatformPei: Move BootMode detection before mem-init
Jordan Justen [Wed, 29 Jan 2014 21:44:16 +0000 (21:44 +0000)]
OvmfPkg/PlatformPei: Move BootMode detection before mem-init

This will be needed to update the boot flow for S3 resume.

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

10 years agoOvmfPkg/PlatformPei: Call PublishPeiMemory in one place
Jordan Justen [Wed, 29 Jan 2014 21:44:09 +0000 (21:44 +0000)]
OvmfPkg/PlatformPei: Call PublishPeiMemory in one place

The Xen and QEMU/KVM paths were calling this at nearly
the same time in the boot flow anyhow, so just make
the call in one spot.

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

10 years agoAdd description information for the GUID and Library class defined in DEC file
Dong Guo [Tue, 28 Jan 2014 07:00:06 +0000 (07:00 +0000)]
Add description information for the GUID and Library class defined in DEC file

Signed-off-by: Dong Guo <guo.dong@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@15194 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix ResetVectorVtf0.asm comment typo
Chen Fan [Tue, 28 Jan 2014 02:30:10 +0000 (02:30 +0000)]
Fix ResetVectorVtf0.asm comment typo

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15193 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoHandle command line parameter "-? -h --help" and any other.
Parmeshwr Prasad [Tue, 28 Jan 2014 02:18:23 +0000 (02:18 +0000)]
Handle command line parameter "-? -h --help" and any other.

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

10 years agoAdd initializing code for local variable 'CalleeExitStatus' and 'ExitStatus' in ...
Shumin Qiu [Tue, 28 Jan 2014 00:59:46 +0000 (00:59 +0000)]
Add initializing code for local variable 'CalleeExitStatus' and 'ExitStatus' in 'Shell.c'.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15191 6f19259b-4bc3-4df7-8a09-765794883524

10 years ago1. Fix several comments in function headers for 'ShellProtocol.c', 'ShellProtocol...
Shumin Qiu [Tue, 28 Jan 2014 00:37:11 +0000 (00:37 +0000)]
1. Fix several comments in function headers for 'ShellProtocol.c', 'ShellProtocol.h' and 'Ls.c'.  2. Remove the initialization of variable 'CalleeExitStatus' in function 'RunScriptFileHandle' of 'Shell.c' from its declarartion.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15190 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Mon, 27 Jan 2014 05:36:53 +0000 (05:36 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15189 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoSync BaseTool trunk (version r2649) into EDKII BaseTools.
Gao, Liming [Mon, 27 Jan 2014 05:23:15 +0000 (05:23 +0000)]
Sync BaseTool trunk (version r2649) into EDKII BaseTools.

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

10 years agoFix the typo for the structure definition of EFI_ADAPTER_INFO_NETWORK_BOOT in Adapter...
Shumin Qiu [Mon, 27 Jan 2014 04:54:05 +0000 (04:54 +0000)]
Fix the typo for the structure definition of EFI_ADAPTER_INFO_NETWORK_BOOT in AdapterInformation.

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

10 years agoRollback the change 15178.
Gao, Liming [Sun, 26 Jan 2014 09:33:22 +0000 (09:33 +0000)]
Rollback the change 15178.
And, update NameString IScsiDxeStrings[] to IScsi4DxeStrings[] to match its BASE_NAME

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

10 years agoMdeModulePkg UsbBotPei: The UsbBotPei module contains the private structure definitio...
Star Zeng [Sun, 26 Jan 2014 02:49:41 +0000 (02:49 +0000)]
MdeModulePkg UsbBotPei: The UsbBotPei module contains the private structure definition used by the UsbBusPei module.

If the structure layout in UsbBusPei is changed, then the UsbBotPei will not work.

1. As the maximum number of endpoints is 16, use UINT16 type rather than UINT8 for DataToggle.
2. DataToggle needs to be reset to 0 when endpoint stall is cleared, do it in PeiUsbControlTransfer().

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

10 years agoShellPkg/ShellProtocol.c: Don't put consective "\"s in file paths
Brendan Jackman [Fri, 24 Jan 2014 22:32:38 +0000 (22:32 +0000)]
ShellPkg/ShellProtocol.c: Don't put consective "\"s in file paths

The UEFI and UEFI Shell specs do not allow consecutive path separators.

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

10 years agoShellPkg/UefiShellLib.c: Execute: Return a Command status even in the old shell
Brendan Jackman [Fri, 24 Jan 2014 22:31:07 +0000 (22:31 +0000)]
ShellPkg/UefiShellLib.c: Execute: Return a Command status even in the old shell

This means we can use ShellExecute without thinking which shell
environment is in use. However it still isn't ideal: if
mEfiShellEnvironment2->Execute returns EFI_INVALID_PARAMETER, we can't tell
whether Execute() received an invalid parameter (e.g. ParentImageHandle was
NULL), or whether we tried to execute a command with an invalid parameter
(for example CommandLine "ls -hurdygurdy").

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

10 years agoShellLib/UefiShellLib.c: Fix doc comment for ShellOpenFileMetaArg
Brendan Jackman [Fri, 24 Jan 2014 22:29:53 +0000 (22:29 +0000)]
ShellLib/UefiShellLib.c: Fix doc comment for ShellOpenFileMetaArg

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

10 years agoShellPkg/ShellProtocol.c: Don't overwrite Status in InternalShellExecuteDevicePath
Brendan Jackman [Fri, 24 Jan 2014 22:28:36 +0000 (22:28 +0000)]
ShellPkg/ShellProtocol.c: Don't overwrite Status in InternalShellExecuteDevicePath

Due to the ASSERT_EFI_ERROR, this patch is necessary only to ensure specified
behaviour in RELEASE builds.

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

10 years agoShellPkg/Shell: Fix reporting of exit status in ShellProtocol.Execute
Brendan Jackman [Fri, 24 Jan 2014 22:27:11 +0000 (22:27 +0000)]
ShellPkg/Shell: Fix reporting of exit status in ShellProtocol.Execute

When the exit status of the command run by the shell is other than
SHELL_SUCCESS, the shell image will now exit with EFI_ABORTED, placing the
commands exit status (which is a SHELL_STATUS) in ExitData.

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

10 years agoShellPkg: Refactor Print logic out of main loop function
Jaben Carsey [Fri, 24 Jan 2014 20:33:17 +0000 (20:33 +0000)]
ShellPkg: Refactor Print logic out of main loop function

This has no change in the behavior of the LS command, but it removes the printing logic from the main recursive function.  This is the first step toward changing the code flow without affecting the look and feel.

The long term goal is correcting the recursion to be more clean and useful to users.

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

10 years agoUpdate Module BaseName to avoid the same name.
Gao, Liming [Fri, 24 Jan 2014 14:39:30 +0000 (14:39 +0000)]
Update Module BaseName to avoid the same name.
Remove the unused extern C name.

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

10 years agoArmPkg/ArmLib: Fix AARCH64 page table entry filling overrun
Garrett Kirkendall [Fri, 24 Jan 2014 13:10:54 +0000 (13:10 +0000)]
ArmPkg/ArmLib: Fix AARCH64 page table entry filling overrun

Update the LastBlockEntry return value when allocating a new page table block
and the parent page table entry is not valid.  Discovered when producing page
table entries for a memory region that spans multiple page table entries of a
parent page table block.  Not very memory space efficient because the rest of
the code could calculate a required page level that is deeper than some blocks
of the memory region might require.  Case that found the problem:
MemoryRegion->VirtualBase = 0
MemoryRegion->Length = 0x7F000000
This fix will create an un-needed level of page table for address
range 0 -> 0x40000000

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

10 years agoUpdate Module BaseName to avoid the same name.
Gao, Liming [Fri, 24 Jan 2014 09:33:11 +0000 (09:33 +0000)]
Update Module BaseName to avoid the same name.

Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15176 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate Module BaseName to avoid the same name.
Gao, Liming [Fri, 24 Jan 2014 09:32:30 +0000 (09:32 +0000)]
Update Module BaseName to avoid the same name.

Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15175 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix following problems about VLAN driver:
Fu Siyuan [Fri, 24 Jan 2014 05:33:18 +0000 (05:33 +0000)]
Fix following problems about VLAN driver:
1. "VLAN Configuration” form crash after 'reconnect -r'
2. disconnect VLAN driver from the managed device will return EFI_NOT_FOUND
3. disconnect MNP driver from the managed device, VLAN driver couldn't be stopped.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15174 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoRe-execute the failed SCSI command if iSCSI driver could reinstates the session succe...
Fu Siyuan [Thu, 23 Jan 2014 08:36:37 +0000 (08:36 +0000)]
Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15173 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Thu, 23 Jan 2014 05:27:14 +0000 (05:27 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15172 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix PCD help information format and a typo.
Dong Guo [Thu, 23 Jan 2014 03:19:38 +0000 (03:19 +0000)]
Fix PCD help information format and a typo.

Signed-off-by: Dong Guo <guo.dong@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@15171 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate password process logic, if password without interactive attribute, the first...
Eric Dong [Thu, 23 Jan 2014 02:00:15 +0000 (02:00 +0000)]
Update password process logic, if password without interactive attribute, the first byte of buffer is zero means this password not has preexist value.

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

10 years agoRefine the logic when return success, should not clean the buffer in this case.
Eric Dong [Thu, 23 Jan 2014 01:57:04 +0000 (01:57 +0000)]
Refine the logic when return success, should not clean the buffer in this case.

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

10 years agoArmPlatformPkg/ArmVExpress-CTA15-A7.fdf: Move UEFI image above the first 128MB of...
Olivier Martin [Thu, 23 Jan 2014 01:01:08 +0000 (01:01 +0000)]
ArmPlatformPkg/ArmVExpress-CTA15-A7.fdf: Move UEFI image above the first 128MB of DRAM

Linux and its DTB required to be loaded in the first 128MB of the system memory.
Moving UEFI firmware above this limit ensures some XIP runtime code (part of the
UEFI firmware) are not overwritten when loading Linux kernel.

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

10 years agoArmPlatformPkg/PrePi: Fixed register corruption
Olivier Martin [Thu, 23 Jan 2014 00:59:08 +0000 (00:59 +0000)]
ArmPlatformPkg/PrePi: Fixed register corruption

The commit on Fri Dec 6 2013: "ArmPlatformPkg/ArmPlatformStackLib:
Do not directly use PcdArmPrimaryCore" has made the function
ArmPlatformStackSet() overwrites the registers r6 and r7.
These registers are used by PrePi to store the MPIDR and the the base
of the system memory region used by UEFI.

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

10 years agoArmPlatformPkg: Removed the hardware floating point build flags
Olivier Martin [Thu, 23 Jan 2014 00:57:56 +0000 (00:57 +0000)]
ArmPlatformPkg: Removed the hardware floating point build flags

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

10 years agoEmbeddedPkg/MmcDxe: Fix mixed EOL
Olivier Martin [Thu, 23 Jan 2014 00:56:29 +0000 (00:56 +0000)]
EmbeddedPkg/MmcDxe: Fix mixed EOL

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

10 years agoUpdate prints of variable attributes from 'RS' to 'RT' for 'Dmpstore' command.
Shumin Qiu [Thu, 23 Jan 2014 00:29:53 +0000 (00:29 +0000)]
Update prints of variable attributes from 'RS' to 'RT' for 'Dmpstore' command.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15164 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate the comments in function headers to follow Doxygen special documentation block...
Shumin Qiu [Thu, 23 Jan 2014 00:27:52 +0000 (00:27 +0000)]
Update the comments in function headers to follow Doxygen special documentation blocks in section 2.3.5.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15163 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:41:16 +0000 (08:41 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15162 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:40:49 +0000 (08:40 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15161 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:40:29 +0000 (08:40 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15160 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:40:06 +0000 (08:40 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15159 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:39:50 +0000 (08:39 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15158 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:39:32 +0000 (08:39 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15157 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:39:09 +0000 (08:39 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15156 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:38:50 +0000 (08:38 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15155 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:38:20 +0000 (08:38 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15154 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix CRLF format
Tian, Hot [Wed, 22 Jan 2014 08:35:25 +0000 (08:35 +0000)]
Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15153 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoRe-execute the failed SCSI command if iSCSI driver could reinstates the session succe...
Fu Siyuan [Wed, 22 Jan 2014 01:57:06 +0000 (01:57 +0000)]
Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15152 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg: Split MAINFV into a separate PEI and DXE FVs
Jordan Justen [Tue, 21 Jan 2014 19:39:13 +0000 (19:39 +0000)]
OvmfPkg: Split MAINFV into a separate PEI and DXE FVs

By splitting the PEI and DXE phases into separate FVs,
we can only reserve the PEI FV for ACPI S3 support.
This should save about 7MB.

Unfortunately, this all has to happen in a single commit.

DEC:
* Remove PcdOvmfMemFv(Base|Size)
* Add PcdOvmfPeiMemFv(Base|Size)
* Add PcdOvmfDxeMemFv(Base|Size)

FDF:
* Add new PEIFV. Move PEI modules here.
* Remove MAINFV
* Add PEIFV and DXEFV into FVMAIN_COMPACT
   - They are added as 2 sections of a file, and compressed
     together so they should retain good compression
* PcdOvmf(Pei|Dxe)MemFv(Base|Size) are set

SEC:
* Find both the PEI and DXE FVs after decompression.
   - Copy them separately to their memory locations.

Platform PEI driver:
* Fv.c: Publish both FVs as appropriate
* MemDetect.c: PcdOvmfMemFv(Base|Size) =>
                PcdOvmfDxeMemFv(Base|Size)

OVMF.fd before:

  Non-volatile data storage
  FVMAIN_COMPACT                    uncompressed
    FV FFS file                     LZMA compressed
      MAINFV                        uncompressed
        individual PEI modules      uncompressed
        FV FFS file                 compressed with PI_NONE
          DXEFV                     uncompressed
            individual DXE modules  uncompressed
  SECFV                             uncompressed

OVMF.fd after:

  Non-volatile data storage
  FVMAIN_COMPACT                    uncompressed
    FV FFS file                     LZMA compressed
      PEIFV                         uncompressed
        individual PEI modules      uncompressed
      DXEFV                         uncompressed
        individual DXE modules      uncompressed
  SECFV                             uncompressed

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

10 years agoOvmfPkg/Sec: Add FindFfsSectionInstance
Jordan Justen [Tue, 21 Jan 2014 19:39:04 +0000 (19:39 +0000)]
OvmfPkg/Sec: Add FindFfsSectionInstance

This allow you to search for an 'instance' of a section
within a series of FFS sections.

For example, we will split the MAINFV into a PEI and DXE
FV, and then compress those two FV's together within a
FFS FV file. The DXE FV will appear as the second section
of the file, and therefore we will search for it using
an Instance=1 value.

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

10 years agoOvmfPkg/Sec: Remove EFIAPI from functions that don't require it
Jordan Justen [Tue, 21 Jan 2014 19:38:57 +0000 (19:38 +0000)]
OvmfPkg/Sec: Remove EFIAPI from functions that don't require it

These are all internal functions that don't interface with
assembly code or other drivers. Therefore EFIAPI is not
required.

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

10 years agoOvmfPkg/Sec: Cleanup debug messages
Jordan Justen [Tue, 21 Jan 2014 19:38:50 +0000 (19:38 +0000)]
OvmfPkg/Sec: Cleanup debug messages

Remove some not-so-useful messages (during FV scanning).

Convert ERROR to INFO and vise versa where appropriate.

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

10 years agoOvmfPkg: Move SEC/PEI Temporary RAM from 0x70000 to 0x810000
Jordan Justen [Tue, 21 Jan 2014 19:38:43 +0000 (19:38 +0000)]
OvmfPkg: Move SEC/PEI Temporary RAM from 0x70000 to 0x810000

Note: The Temporary RAM memory size is being reduced from
      64KB to 32KB. This still appears to be more than
      adequate for OVMF's early PEI phase. We will be adding
      another 32KB range of RAM just above this range for
      use on S3 resume.

The range is declared as part of MEMFD, so it is easier
to identify the memory range.

We also now assign PCDs to the memory range.

The PCDs are used to set the initial SEC/PEI stack in
SEC's assembly code.

The PCDs are also used in the SEC C code to setup
the Temporary RAM PPI.

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

10 years agoOvmfPkg X64 ResetVector: Move page tables from 512KB to 8MB
Jordan Justen [Tue, 21 Jan 2014 19:38:34 +0000 (19:38 +0000)]
OvmfPkg X64 ResetVector: Move page tables from 512KB to 8MB

To help consolidate OVMF fixed memory uses, we declare this
range in MEMFD and thereby move it to 8MB.

We also now declare the table range in the FDF to set
PCDs. This allows us to ASSERT that CR3 is set as expected
in OVMF SEC.

OvmfPkgIa32.fdf and OvmfPkgIa32X64.fdf are updated simply
for consistency.

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

10 years agoOvmfPkg/Sec/SecMain.c: Convert to CRLF (dos) text
Jordan Justen [Tue, 21 Jan 2014 19:38:25 +0000 (19:38 +0000)]
OvmfPkg/Sec/SecMain.c: Convert to CRLF (dos) text

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

10 years agoOvmfPkg: Carve 128KB out of MAINFV in MEMFD
Jordan Justen [Tue, 21 Jan 2014 19:38:16 +0000 (19:38 +0000)]
OvmfPkg: Carve 128KB out of MAINFV in MEMFD

In an effort to consolidate fixed memory used by OVMF,
we'll move 2 SEC/PEI phase RAM users to 8MB.
* X64 page tables (24KB)   0x80000 => 0x800000
* PEI temporary RAM (64KB) 0x70000 => 0x810000

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

10 years agoOptimize the code to not call StrToBuf when DataLength is 0.
Ruiyu Ni [Tue, 21 Jan 2014 07:34:41 +0000 (07:34 +0000)]
Optimize the code to not call StrToBuf when DataLength is 0.

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

10 years agoOvmfPkg: unify PcdMaxVariableSize at 0x2000 bytes
Laszlo Ersek [Mon, 20 Jan 2014 08:50:06 +0000 (08:50 +0000)]
OvmfPkg: unify PcdMaxVariableSize at 0x2000 bytes

The Linux persistent store (pstore) feature serves, among other things,
for saving the trailing portion of the dmesg in case of a kernel oops. One
backend for the pstore facility is "efivars", ie. non-volatile UEFI
variables.

Linux splits the tail of the dmesg that is to be dumped in 1KB chunks, and
tries to save each chunk as a specially (and differently) named
non-volatile variable. The 1KB chunk size accounts for the variable data
only; Linux expects this size to be available per variable *without*
accounting for the variable name or any firmware-internal overhead.

For non-authenticated (ie. non-secure-boot) variables, OvmfPkg currently
sets the per-variable limit to 0x400 (1KB) through PcdMaxVariableSize.
However this PCD determines the size *before* subtracting the internal
overhead (which is sizeof(VARIABLE_HEADER) == 0x20 bytes for
non-authenticated variables, see
"MdeModulePkg/Include/Guid/VariableFormat.h"), and also before subtracting
the given variable's UCS-2 encoded name (including the trailing 0x0000).

Linux maximizes these special variable names in DUMP_NAME_LEN==52 code
points (including the trailing NUL). Hence we must provide at least

  0x020 == sizeof(VARIABLE_HEADER), for the internal overhead
  0x068 == 2 * 52, for the UCS-2 encoded name, including trailing 0x0000
  0x400 for the variable body
  -----
  0x488 == 1160

bytes in PcdMaxVariableSize, so that Linux's efivars-backed pstore can
work even on non-secure-boot builds of OVMF.

However, as PcdMaxVariableSize=0x2000 has proven reasonable when secure
boot is enabled, it should also be okay when secure boot is disabled; so
for simplicity's sake set PcdMaxVariableSize to 0x2000 unconditionally.

Tested-by: Seiji Aguchi <seiji.aguchi@hds.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://svn.code.sf.net/p/edk2/code/trunk/edk2@15142 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg/build.sh: Support GCC48 toolchain
Jordan Justen [Mon, 20 Jan 2014 08:49:58 +0000 (08:49 +0000)]
OvmfPkg/build.sh: Support GCC48 toolchain

If GCC 4.8 or 4.9 is detected, then use the GCC48 toolchain.

Previously we would use the GCC47 toolchain, but GCC48
was recently added to the main edk2 BaseTools/Conf.

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

10 years agoShellPkg: Change StdIn redirection
Jaben Carsey [Fri, 17 Jan 2014 17:51:09 +0000 (17:51 +0000)]
ShellPkg: Change StdIn redirection

This changes how StdIn redirection works such that the file is opened and parsed for length up front and not each time.  This prevents TPL issues.

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

10 years agoAdd VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'.
Gao, Liming [Fri, 17 Jan 2014 06:07:01 +0000 (06:07 +0000)]
Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'.

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

10 years agoAdd VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'.
Gao, Liming [Fri, 17 Jan 2014 06:06:30 +0000 (06:06 +0000)]
Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'.

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

10 years agoCapsulePei coalesce need add more sanity check for each Capsule Fragment.
jyao1 [Fri, 17 Jan 2014 03:51:01 +0000 (03:51 +0000)]
CapsulePei coalesce need add more sanity check for each Capsule Fragment.

Signed-off by: jiewen yao <jiewen.yao@intel.com>
Reviewed by: elvin li <elvin.li@intel.com>

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

10 years agoDxeCore is designed to trust input data, so add comments to reminder caller to do...
jyao1 [Fri, 17 Jan 2014 03:42:09 +0000 (03:42 +0000)]
DxeCore is designed to trust input data, so add comments to reminder caller to do check to follow PI specification when necessary.
Since LBA_CACHE is DxeCore implementation specific, DxeCore will check it here.

Signed-off by: jiewen yao <jiewen.yao@intel.com>
Reviewed by: liming gao <liming.gao@intel.com>

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

10 years agoShellPkg: Return the failure
Jaben Carsey [Thu, 16 Jan 2014 16:53:56 +0000 (16:53 +0000)]
ShellPkg: Return the failure

This change returns the error code when they keyboard fails to read instead of potentially spinning endlessly.

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

10 years agoShellPkg: Remove ASSERT
Jaben Carsey [Thu, 16 Jan 2014 16:53:23 +0000 (16:53 +0000)]
ShellPkg: Remove ASSERT

This change removes ASSERT statements and replaces them with logic to break out of the loop.  This both prevents spinning forever and prevents processing the returned data from the function that failed.

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

10 years agoShellPkg: Remove ASSERT
Jaben Carsey [Thu, 16 Jan 2014 16:52:39 +0000 (16:52 +0000)]
ShellPkg: Remove ASSERT

This change removes ASSERT statements and replaces them with logic to break out of the loop.  This both prevents spinning forever and prevents processing the returned data from the function that failed.

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

10 years agoArmPlatformPkg/ArmVExpressPkg: Clean line endings
Laszlo Ersek [Thu, 16 Jan 2014 10:35:55 +0000 (10:35 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Clean line endings

The edk2 tree mandates CRLF line terminators. Earlier patches added some
lines with LF terminators. Clean them up.

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

10 years agoArmPlatformPkg/ArmVExpress-RTSM-A15_MPCore.fdf: Added Generic Network drivers
Reece R. Pollack [Thu, 16 Jan 2014 10:31:14 +0000 (10:31 +0000)]
ArmPlatformPkg/ArmVExpress-RTSM-A15_MPCore.fdf: Added Generic Network drivers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Reece R. Pollack <reece.pollack@linaro.org>
Signed-off-by: Steven Kinney <steven.kinney@linaro.org>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15131 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoArmPlatformPkg/ArmVExpress-RTSM-A15.fdf: Added the generic Network drivers
Reece R. Pollack [Thu, 16 Jan 2014 10:28:23 +0000 (10:28 +0000)]
ArmPlatformPkg/ArmVExpress-RTSM-A15.fdf: Added the generic Network drivers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Reece R. Pollack <reece.pollack@linaro.org>
Signed-off-by: Steven Kinney <steven.kinney@linaro.org>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15130 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoArmPlatformPkg/ArmVExpressPkg: Add the core network components needed for networking...
Ryan Harkin [Thu, 16 Jan 2014 10:25:00 +0000 (10:25 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Add the core network components needed for networking and PXE boot.

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

10 years agoUpdate PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer
Gao, Liming [Thu, 16 Jan 2014 02:42:17 +0000 (02:42 +0000)]
Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer

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

10 years agoFollow UEFI2.4.a spec, add more description on parameter check.
jyao1 [Thu, 16 Jan 2014 02:03:10 +0000 (02:03 +0000)]
Follow UEFI2.4.a spec, add more description on parameter check.

Signed-off by: jiewen yao <jiewen.yao@intel.com>
Reviewed by: qin long <qin.long@intel.com>

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

10 years agoArmPlatformPkg/BootMonFs: Added support for the NorFlash File System of the ARM Devel...
Olivier Martin [Thu, 16 Jan 2014 00:06:13 +0000 (00:06 +0000)]
ArmPlatformPkg/BootMonFs: Added support for the NorFlash File System of the ARM Development Boards

This is the filesystem created by the microcontroller on NOR Flash of the ARM Versatile
Express Development Board.

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

10 years agoArmPlatformPkg/ArmVExpressPkg: Add build option to support VExpress A15 QEMU emulation
Roy Franz [Wed, 15 Jan 2014 16:24:00 +0000 (16:24 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Add build option to support VExpress A15 QEMU emulation

This patch adds an EDK2_ARMVE_SUPPORT_QEMU macro that can be defined at build
time to build an image that supports QEMU.  The default build is unchanged and
builds the RTSM configuration.

QEMU only models fixed size blocks within a flash device, and the RTSM
configuration stores EFI variables in the smaller boot blocks of the
flash.  When built for QEMU the larger blocks are used that QEMU properly
emulates.

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

10 years agoArmPkg/CompilerIntrinsicsLib: Make __aeabi_memcpy the same as memcpy
Olivier Martin [Wed, 15 Jan 2014 12:24:31 +0000 (12:24 +0000)]
ArmPkg/CompilerIntrinsicsLib: Make __aeabi_memcpy the same as memcpy

This code also removed some redundant instructions.

__aeabi_memcpy doesn't require preservation of r0 (as memcpy does),
which could save a push, but the code has been left to keep things consistent.

The reason __aeabi_memcpy has been added to the .S file is so it will be available
to toolchains that use the GCC assembler but the full ARM EABI (i.e. current LLVM)

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

10 years agoArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A9 BSP
Ryan Harkin [Wed, 15 Jan 2014 12:22:06 +0000 (12:22 +0000)]
ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A9 BSP

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

10 years agoArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A15 BSP
Ryan Harkin [Wed, 15 Jan 2014 12:19:29 +0000 (12:19 +0000)]
ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A15 BSP

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

10 years agoArmPlatformPkg/ArmVExpressPkg: Add virtio to RTSM A15 MPCore BSP
Ryan Harkin [Wed, 15 Jan 2014 12:18:29 +0000 (12:18 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Add virtio to RTSM A15 MPCore BSP

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

10 years agoArmPlatformPkg/PeiServicesTablePointerLib: Update PeiServicesTablePointerLib instance...
Gao, Liming [Wed, 15 Jan 2014 11:51:38 +0000 (11:51 +0000)]
ArmPlatformPkg/PeiServicesTablePointerLib: Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer()

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

10 years agoFollow UEFI spec to convert unrecognized device path structure from/to hex dump text.
Ruiyu Ni [Wed, 15 Jan 2014 07:51:22 +0000 (07:51 +0000)]
Follow UEFI spec to convert unrecognized device path structure from/to hex dump text.

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

10 years agoUpdate Debug Agent initialization message to change the version string from "1.3...
Ruiyu Ni [Wed, 15 Jan 2014 07:48:05 +0000 (07:48 +0000)]
Update Debug Agent initialization message to change the version string from "1.3.1" to "1.4"

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

10 years agoChange the library global variable to add library name prefix to avoid potential...
Ruiyu Ni [Wed, 15 Jan 2014 07:46:38 +0000 (07:46 +0000)]
Change the library global variable to add library name prefix to avoid potential compilation failure.

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

10 years agoFix bug that PXEv4 boot fail if PXEv6 is performed firstly.
Fu Siyuan [Wed, 15 Jan 2014 07:19:58 +0000 (07:19 +0000)]
Fix bug that PXEv4 boot fail if PXEv6 is performed firstly.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Jin, Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15116 6f19259b-4bc3-4df7-8a09-765794883524

10 years ago1. Add new API MigratePeiServicesTablePointer() in PeiServicesTablePointerLib class.
Gao, Liming [Wed, 15 Jan 2014 02:17:30 +0000 (02:17 +0000)]
1. Add new API MigratePeiServicesTablePointer() in PeiServicesTablePointerLib class.
2. PeiCore will call this API to migrate the PEI Services Table pointer from temporary RAM to permanent RAM.

Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15115 6f19259b-4bc3-4df7-8a09-765794883524

10 years ago1. Add new API MigratePeiServicesTablePointer() in PeiServicesTablePointerLib class.
Gao, Liming [Wed, 15 Jan 2014 02:16:57 +0000 (02:16 +0000)]
1. Add new API MigratePeiServicesTablePointer() in PeiServicesTablePointerLib class.
2. PeiCore will call this API to migrate the PEI Services Table pointer from temporary RAM to permanent RAM.

Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15114 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEdkShellPkg/ShellR64.patch: Adding missing files from the patch
Olivier Martin [Tue, 14 Jan 2014 15:31:01 +0000 (15:31 +0000)]
EdkShellPkg/ShellR64.patch: Adding missing files from the patch

Some files were missing from the newly generated patch:
- Library/Aarch64/efilibplat.h
- Library/Arm/efilibplat.h

Instructions have been written to correctly generate this patch:
https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPkg/Binaries#EdkShellPkg

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

10 years ago1. Change the implementation of function 'LoadVariableFromFile' to return SHELL_STATU...
Shumin Qiu [Tue, 14 Jan 2014 07:30:50 +0000 (07:30 +0000)]
1. Change the implementation of function 'LoadVariableFromFile' to return SHELL_STATUS. 2. Add code to check whether the pointer 'FoundVarName' in 'DmpStore.c' is NULL before used.

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

10 years agoUpdate FMP Header file Comments per UEFI2.4A
Gao, Liming [Tue, 14 Jan 2014 06:05:12 +0000 (06:05 +0000)]
Update FMP Header file Comments per UEFI2.4A

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

10 years agoUpdate the comments to follow spec update.
Eric Dong [Tue, 14 Jan 2014 02:19:30 +0000 (02:19 +0000)]
Update the comments to follow spec update.

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

10 years agoShellPkg: Remove UNICODE file tag (FEFF) from files used for input redirection
Jaben Carsey [Mon, 13 Jan 2014 18:52:48 +0000 (18:52 +0000)]
ShellPkg: Remove UNICODE file tag (FEFF) from files used for input redirection

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

10 years agoShellPkg: remove unreachable break statements
Olivier Martin [Mon, 13 Jan 2014 18:52:12 +0000 (18:52 +0000)]
ShellPkg: remove unreachable break statements

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

10 years agoShellPkg: assign pointer to NULL after free to prevent double free
Jaben Carsey [Mon, 13 Jan 2014 18:47:18 +0000 (18:47 +0000)]
ShellPkg: assign pointer to NULL after free to prevent double free

Since the API caller may call twice we need to make sure that we set pointer to NULL so we can tell if already free.

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

10 years agoEdkShellPkg/ShellR64.patch: Update patch to fix RVCTLINUX build
Olivier Martin [Mon, 13 Jan 2014 17:47:17 +0000 (17:47 +0000)]
EdkShellPkg/ShellR64.patch: Update patch to fix RVCTLINUX build

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

10 years agoFix typo in PCD description in SecurityPkg.
jyao1 [Mon, 13 Jan 2014 13:42:42 +0000 (13:42 +0000)]
Fix typo in PCD description in SecurityPkg.

Signed-off by: jiewen yao <jiewen.yao@intel.com>
Reviewed by: guo dong <guo.dong@intel.com>

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

10 years agoFollow UEFI2.4.a spec, deprecate 6 hash algo.
jyao1 [Mon, 13 Jan 2014 13:25:30 +0000 (13:25 +0000)]
Follow UEFI2.4.a spec, deprecate 6 hash algo.

Signed-off by: jiewen yao <jiewen.yao@intel.com>
Reviewed by: qin long <qin.long@intel.com>

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

10 years agoShellPkg: Fix command line parsing for script files (%1, %1, etc...)
Jaben Carsey [Mon, 13 Jan 2014 07:30:08 +0000 (07:30 +0000)]
ShellPkg: Fix command line parsing for script files (%1, %1, etc...)

This change makes sure that all script files get their command lines properly parsed for use in the script file.

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

10 years agoSet the type of return value from function 'LoadVariablesFromFile' in 'DmpStore.c...
Shumin Qiu [Mon, 13 Jan 2014 07:28:01 +0000 (07:28 +0000)]
Set the type of return value from function 'LoadVariablesFromFile' in 'DmpStore.c' to match the type of 'ShellStatus'.

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

10 years agoAdd a new header file to define Adapter Information Protocol.
Shumin Qiu [Mon, 13 Jan 2014 05:09:27 +0000 (05:09 +0000)]
Add a new header file to define Adapter Information Protocol.

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

10 years agoAdd EFI_FILE_PROTOCOL_LATEST_REVISION macro to SimpleFileSystem.h.
Ruiyu Ni [Mon, 13 Jan 2014 03:28:01 +0000 (03:28 +0000)]
Add EFI_FILE_PROTOCOL_LATEST_REVISION macro to SimpleFileSystem.h.

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

10 years ago1. Update the parsing logic of DHCP message in PXE driver.
Fu Siyuan [Mon, 13 Jan 2014 02:53:50 +0000 (02:53 +0000)]
1. Update the parsing logic of DHCP message in PXE driver.
2. Append null terminated character at the end of option 67.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Jin, Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15099 6f19259b-4bc3-4df7-8a09-765794883524