branch xen-unstable xen branch xen-unstable job build-i386 test xen-build Tree: ovmf https://github.com/tianocore/edk2.git Tree: qemuu git://xenbits.xen.org/staging/qemu-upstream-unstable.git Tree: xen git://xenbits.xen.org/xen.git *** Found and reproduced problem changeset *** Bug is in tree: ovmf https://github.com/tianocore/edk2.git Bug introduced: 7cc7022dfccadcae9e815d071916f96577e5df89 Bug not present: 447d264115c476142f884af0be287622cd244423 commit 7cc7022dfccadcae9e815d071916f96577e5df89 Author: Jaben Carsey Date: Fri Jan 30 16:29:20 2015 +0000 ShellPkg: Refactor quote and escape search to use new function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Joe Peterson Reviewed-by: Shumin Qiu Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16682 6f19259b-4bc3-4df7-8a09-765794883524 commit 00534bc3e2d49bbf3cb649136eed3f6891121114 Author: Jaben Carsey Date: Fri Jan 30 16:28:22 2015 +0000 ShellPkg: Refactor Split search to generic function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Joe Peterson Reviewed-by: Shumin Qiu Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16681 6f19259b-4bc3-4df7-8a09-765794883524 commit a35ecb7584677b84b65028b7865243f76e7ecf0c Author: Eric Dong Date: Fri Jan 30 05:35:30 2015 +0000 Move ConfigHdr from browser_storage to Formset_storage, avoid device path lost for drivers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16680 6f19259b-4bc3-4df7-8a09-765794883524 commit 49a228ca6980b197bb854dc88c909d712959cb47 Author: David Wei Date: Thu Jan 29 04:39:53 2015 +0000 Update SPI connection parameters for Microsoft RhProxy driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16679 6f19259b-4bc3-4df7-8a09-765794883524 commit b2499fe67ed7cef361805b68691711053549c0ee Author: David Wei Date: Wed Jan 28 08:45:52 2015 +0000 Add SSDT for Microsoft RhProxy Driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16677 6f19259b-4bc3-4df7-8a09-765794883524 commit 217abb4659c5c8bade3d6be173fa456e4b5b967e Author: Shifei Lu Date: Wed Jan 28 08:24:57 2015 +0000 Align the overrider with UDK2014.SP1 core. The override fixed Showing IPv4 and IPv6 string format as "EFI Network " in Boot Manager Group under BIOS setup. This override will be removed after core fixing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16675 6f19259b-4bc3-4df7-8a09-765794883524 commit 14030c5c854ea40487a853344fc763d808c1a88b Author: Jaben Carsey Date: Tue Jan 27 18:56:36 2015 +0000 ShellPkg: refine command line parsing Correctly divide up parameters for Argc/Argv including quote ("), escape (^), and space ( ) processing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16673 6f19259b-4bc3-4df7-8a09-765794883524 commit fdd52bde510a5cb89ce90c307c62e617c10ab7be Author: Jaben Carsey Date: Tue Jan 27 18:53:27 2015 +0000 ShellPkg: Always remove non-defined environment variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16672 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bbbdc85a3bbc7ec63fc8317fcfbd9bab0006251 Author: Shifei Lu Date: Tue Jan 27 08:47:14 2015 +0000 Align the overrider with EDK2 trunk. Align the overrider with EDK2 trunk.(The override fixed default console text color) This override will be removed after core fixing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16671 6f19259b-4bc3-4df7-8a09-765794883524 commit 952ba83c4781c7e7fff74fc32fd840a86731d8f6 Author: Star Zeng Date: Tue Jan 27 08:44:10 2015 +0000 SecurityPkg Variable: Implement variable quota management. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16670 6f19259b-4bc3-4df7-8a09-765794883524 commit 4edb18663fef14ef4c54f985a21d3faacec5d499 Author: Star Zeng Date: Tue Jan 27 08:42:47 2015 +0000 MdeModulePkg Variable: Implement variable quota management. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16669 6f19259b-4bc3-4df7-8a09-765794883524 commit 4139580d3151bb7cdb1f46a0c170b6f7d8032f38 Author: Shifei Lu Date: Tue Jan 27 07:34:32 2015 +0000 Fixed system hang issue with accessing to Boot Maintenance Manager when pressed hot key to enter BIOS setup. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16666 6f19259b-4bc3-4df7-8a09-765794883524 commit 734b93933c0c30ca082c0fe81fe41daae3a2dedc Author: Mang Guo Date: Tue Jan 27 04:38:18 2015 +0000 Enabled Performance measurement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mang Guo Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16662 6f19259b-4bc3-4df7-8a09-765794883524 commit c45bc17996455365e43d791870ba0d5af49aa0e3 Author: Feng Tian Date: Tue Jan 27 03:07:01 2015 +0000 MdeModulePkg/UsbBotPei: Correct wrong media type detection logic in UsbBotPei Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16661 6f19259b-4bc3-4df7-8a09-765794883524 commit 24e11fd8f80e15bb2ec435b8bed2492da8fc3e5d Author: Hao Wu Date: Tue Jan 27 01:12:46 2015 +0000 MdeModulePkg: Fixed DxeCore displaying incorrect FV Hob information Modify DxeMain.c which displays incorrect debug message regarding FV Hob. Specifically, the BaseAddress and Length are not related to the same FV. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16660 6f19259b-4bc3-4df7-8a09-765794883524 commit f798e8bff773c833837c71fa806a7604fff7b503 Author: Laszlo Ersek Date: Mon Jan 26 08:05:04 2015 +0000 MdeModulePkg: Acpi: enforce exclusion between FirmwareCtrl and XFirmwareCtrl The code in AcpiTableDxe handles the installation of FADT and FACS in both possible orders. In the [FADT, FACS] installation order, the FACS is at once linked into the FADT. In the [FACS, FADT] installation order, the FACS is stashed temporarily, and it is linked into the FADT when the FADT is installed later. According to the ACPI specification, *at most one* of FADT.FirmwareCtrl and FADT.XFirmwareCtrl may be nonzero. The code is aware of this requirement, and it never sets both of them to nonzero values at once. However, the code doesn't expect the following: - The caller first installs the FACS, which is stashed. The address that is saved happens to fall below 4GB. - The caller then installs a FADT, with a zero FirmwareCtrl field, and a nonzero (pre-populated) XFirmwareCtrl field. In this case the code sets FADT.FirmwareCtrl to the less-than-4GB address of the stashed FACS, and leaves the different nonzero value in FADT.XFirmwareCtrl. This violates the ACPI specification. Prevent this by always zeroing the field that we do *not* set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16659 6f19259b-4bc3-4df7-8a09-765794883524 commit 38bd44b8e1f0d650094edbd8cc918ce135a330a7 Author: Shifei Lu Date: Mon Jan 26 07:07:06 2015 +0000 Fixed the GCC build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16658 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e4c9170687f98d19ab3af9e21f379787697cf07 Author: Bruce Cran Date: Mon Jan 26 06:50:22 2015 +0000 Fix the Windows MNW2 build failure. Fix the Windows MNW2 build by updating the library paths and adding support for VS2012 and VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16657 6f19259b-4bc3-4df7-8a09-765794883524 commit 48edf6be7fd35467b77e6ebf3707094db4da6d6f Author: Leif Lindholm Date: Fri Jan 23 16:10:00 2015 +0000 ArmPlatformPkg: detect correct pl011 fifo depth pl011 releases earlier than r1p5 has a fifo depth of 16 bytes, whereas version r1p5 upwards has a fifo depth of 32 bytes. The pl011 driver was hardwired to 32 byte depth, causing dropped characters on some platforms (including default settings on FVP Base and Foundation models). Update driver to select 16 or 32 on port initialization by checking the component revision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16656 6f19259b-4bc3-4df7-8a09-765794883524 commit ac83357a4311e008b229a8db43d2f1726cfe326d Author: Ronald Cron Date: Fri Jan 23 16:09:07 2015 +0000 ArmPkg/NorFlashDxe : Fix the check of flash addresses Fix the check to prevent any reading past the end of the nor flash. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16655 6f19259b-4bc3-4df7-8a09-765794883524 commit 2596e61a9b6a18c315f985bcb41cce3d498f9ad0 Author: Olivier Martin Date: Fri Jan 23 16:07:38 2015 +0000 ArmPlatformPkg/ArmJunoPkg/AcpiTables: Updated with new ACPI 5.1 Tables & Definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16654 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c1712f05aeb7fb24b055eee8e76cba672af2816 Author: Olivier Martin Date: Fri Jan 23 16:06:09 2015 +0000 EmbeddedPkg/AcpiLib.h: Added some helper macros for ACPI 5.1 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16653 6f19259b-4bc3-4df7-8a09-765794883524 commit 3399d5beb86deccd064f915fe59ebfa0176ee7bc Author: Olivier Martin Date: Fri Jan 23 16:03:09 2015 +0000 ArmPlatformPkg/ArmJunoPkg: Added the ACPI 5.0 Tables These tables are: - Differentiated System Description Table Fields (DSDT) - Firmware ACPI Control Structure (FACS) - Fixed ACPI Description Table (FADT) - Generic Timer Description Table (GTDT) - Multiple APIC Description Table (MADT) - Secondary System Description Table Fields (SSDT) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16652 6f19259b-4bc3-4df7-8a09-765794883524 commit 05e56470cd68d378fc6d282a51e8bb6ae640b1dc Author: Olivier Martin Date: Fri Jan 23 16:01:11 2015 +0000 ArmPlatformPkg/ArmJunoPkg: Added ACPI support This support makes the Juno UEFI Firmware to look into the Firmware Volume for the ACPI Tables. But it does not provide the ACPI Tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16651 6f19259b-4bc3-4df7-8a09-765794883524 commit 3356211b9c9afd39cc0ca1bb8d92ee968a8cfd04 Author: Olivier Martin Date: Fri Jan 23 15:59:27 2015 +0000 EmbeddedPkg: Introduced AcpiLib AcpiLib is a library to help working with ACPI Tables. In this initial implementation, the library provides: - a helper function to locate and install the ACPI Tables within a Firmware Volume - Some helper macros to initialize some ACPI structures Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16650 6f19259b-4bc3-4df7-8a09-765794883524 commit bfed5d80af4cb3d76f9e064bc4d513d1be92ee2e Author: Tim He Date: Fri Jan 23 08:14:39 2015 +0000 Increase the BiosID major version to 0.77 and Enable gcc build for minnowboard max with UDK2014.SP1.P1. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tim He Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16648 6f19259b-4bc3-4df7-8a09-765794883524 commit a687a1d207f1b84e08f2a45fcbc0c0d8f0763214 Author: Eric Dong Date: Fri Jan 23 06:11:22 2015 +0000 The default type is not returned by display engine, this code update the logic to return it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16647 6f19259b-4bc3-4df7-8a09-765794883524 commit 909ac47bf94b3fb375b79774a839980b43bf8e0a Author: Shumin Qiu Date: Fri Jan 23 05:52:25 2015 +0000 MdePkg: Refine the format of INF files and the declaration in header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16646 6f19259b-4bc3-4df7-8a09-765794883524 commit 23c7d4258f3a916c916f16e1cdf4c217a539b984 Author: Eric Dong Date: Fri Jan 23 05:51:07 2015 +0000 Enable popup dialog when user press the hotkey. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16645 6f19259b-4bc3-4df7-8a09-765794883524 commit fc2e7502663ee5891d3c0f6d7792a8277df50745 Author: Eric Dong Date: Fri Jan 23 05:49:31 2015 +0000 Avoid change the return status from above code which will also be used later. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16644 6f19259b-4bc3-4df7-8a09-765794883524 commit 44cbe89ec8ed1fd6e378f92e16b5a5e9e3781bcf Author: Eric Dong Date: Fri Jan 23 05:48:44 2015 +0000 Locate the config route protocol before install the config access protocol to fix potential issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16643 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e5fff631b92436790c27d8f3995710aa15c9232 Author: Elvin Li Date: Fri Jan 23 04:49:00 2015 +0000 Added 2 new PCDs for minimal and maximal valid year in RTC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16642 6f19259b-4bc3-4df7-8a09-765794883524 commit d47da7866989bdb276479ccd95f52196a8832c8a Author: Long Qin Date: Thu Jan 22 07:43:04 2015 +0000 Update OpenSSL support to the latest release (0.9.8ze, 15-Jan-2015). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long Qin Reviewed-by: Dong Guo Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16641 6f19259b-4bc3-4df7-8a09-765794883524 commit d71c25cf2c7783024a3e9c57327f43654305838f Author: David Wei Date: Thu Jan 22 05:50:45 2015 +0000 Set RTC initial time to be BIOS Release time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16639 6f19259b-4bc3-4df7-8a09-765794883524 commit 83a276f61342d0b0d94e96f7d0636bf9474b5ed1 Author: Yao, Jiewen Date: Thu Jan 22 05:14:23 2015 +0000 Add TpmInitializationDonePpi to TPM PEI module. This PPI will always be installed to notify other drivers that TPM initialization action is done. TPM initialization may success or fail, or even not present. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Chiu, Chasel" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16638 6f19259b-4bc3-4df7-8a09-765794883524 commit 57ce74ac5ff4950b4bebd5bb1d8fa2024ecc1010 Author: Yao, Jiewen Date: Thu Jan 22 03:29:17 2015 +0000 Resolve buffer check overrun issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Qiu, Shumin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16637 6f19259b-4bc3-4df7-8a09-765794883524 commit a61b07f464f5f9080ead9cc955f10f2acf5de085 Author: Elvin Li Date: Thu Jan 22 02:47:12 2015 +0000 Update PcdSmbiosVersion from 0x0207 to 0x0208. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16636 6f19259b-4bc3-4df7-8a09-765794883524 commit 8165009451e2dff81a42d3a8bcb1792e82ce5d91 Author: Shumin Qiu Date: Thu Jan 22 02:02:08 2015 +0000 MdeModulePkg: Refine the format of INF files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16635 6f19259b-4bc3-4df7-8a09-765794883524 commit ecd07f373707981687b5d66b62c3812cfe587faf Author: Qiu Shumin Date: Thu Jan 22 01:44:11 2015 +0000 ShellPkg: Refine the fomat in INF/DEC files to follow spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16634 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b354b080c7e70b56d5aaff811a7959f82d21f81 Author: Tim He Date: Wed Jan 21 07:37:42 2015 +0000 Remove 2 unnecessary modules (Ps2MouseDxe, Ps2keyboardDxe) for saving size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tim He Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16631 6f19259b-4bc3-4df7-8a09-765794883524 commit 7d17a6a1197f6b1aaf2bbce6c43c23c529dbfc0b Author: Ard Biesheuvel Date: Wed Jan 21 03:11:19 2015 +0000 MdeModulePkg/DxeMain: Fix wrong sanity check in CoreTerminateMemoryMap() The function CoreTerminateMemoryMap() performs some final sanity checks on the runtime regions in the memory map before allowing ExitBootServices() to complete. Unfortunately, it does so by testing the EFI_MEMORY_RUNTIME bit in the Attribute field, which is never set anywhere in the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Feng Tian Acked-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16630 6f19259b-4bc3-4df7-8a09-765794883524 commit d3d925578c89281685f860726fda08cc5daf06bb Author: Feng Tian Date: Wed Jan 21 02:47:49 2015 +0000 MdePkg: Add [in/out] tags to those function type declarations in UefiSpec.h for Doxgen format Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16629 6f19259b-4bc3-4df7-8a09-765794883524 commit d9044ec5553c946e20154b7b5c61cd3979472f60 Author: Ruiyu Ni Date: Tue Jan 20 08:46:31 2015 +0000 Use RLE (Run Length Encoding) to improve debugging performance. DEBUG_AGENT_REVISION is DEBUG_AGENT_REVISION_03 to disable this feature and will be changed to DEBUG_AGENT_REVISION_04 when new version of HOST is released. Reduce the stack usage by re-using the same buffer to send/receive packet. Zero out the buffer before fxsave so that the reserved field in the buffer remains 0 for better RLE compression ratio. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16628 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a39a6a1a8a35a84e4e13900a2b5e8da1b6435f2 Author: Yao, Jiewen Date: Tue Jan 20 08:24:12 2015 +0000 Fix GCC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16627 6f19259b-4bc3-4df7-8a09-765794883524 commit 944d79b75485068324d1d39281288601764e235d Author: Shumin Qiu Date: Tue Jan 20 07:31:57 2015 +0000 PcAtChipsetPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16626 6f19259b-4bc3-4df7-8a09-765794883524 commit 483d0d85a74eb96e5bf12bf07ca9d51af679db9d Author: Ruiyu Ni Date: Tue Jan 20 06:45:01 2015 +0000 Dispatch the UEFI option rom returned from PciPlatform/PciOverride protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao B Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16625 6f19259b-4bc3-4df7-8a09-765794883524 commit e8a61b967877b6170e71ebdcbf6f2ae01d2709c6 Author: Shumin Qiu Date: Tue Jan 20 01:45:35 2015 +0000 Performance: Refine the format of INF files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16624 6f19259b-4bc3-4df7-8a09-765794883524 commit b0446065db6dbafb8202c6024c0dd483cf1af966 Author: Shumin Qiu Date: Mon Jan 19 07:45:25 2015 +0000 IntelFspWrapperPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16623 6f19259b-4bc3-4df7-8a09-765794883524 commit b34eb190837327224a46723051a587d98b3cabd3 Author: Shumin Qiu Date: Mon Jan 19 07:18:24 2015 +0000 IntelFspPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16622 6f19259b-4bc3-4df7-8a09-765794883524 commit aaedfe3c126c434badb608284ad72d8a07ce162b Author: Yao, Jiewen Date: Mon Jan 19 06:08:23 2015 +0000 Add HSTI support. Add HSTI header file and a library to assist HSTI table creation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Gao, Liming" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16621 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f04e527397f6e6646ca7a96436b5edb29d303e9 Author: Yingke Liu Date: Mon Jan 19 05:04:28 2015 +0000 Fix SET statement bug which is always evaluated even it is in a False conditional statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16620 6f19259b-4bc3-4df7-8a09-765794883524 commit b0e23cf32bc5f13c77e80b1e63faa14511c118c1 Author: Yingke Liu Date: Mon Jan 19 05:01:39 2015 +0000 Fixed build issue with fds target specified. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao Reviewed-by: Hesheng Chen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16619 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e4a6f3d23c8a96211c0b1420bce4c136ede07fd Author: Shumin Qiu Date: Mon Jan 19 02:44:10 2015 +0000 SourceLevelDebugPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16618 6f19259b-4bc3-4df7-8a09-765794883524 commit c4bac158b36d0ceb84921152c198cf8ed23b7c7b Author: Shumin Qiu Date: Fri Jan 16 05:20:31 2015 +0000 Refine the format of PCD in INF files for UefiCpuPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16617 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a3dae688298782ca557dd5ef3cfa7a87f26578e Author: Shumin Qiu Date: Fri Jan 16 03:30:07 2015 +0000 Refine the format of GUID in INF files for SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16616 6f19259b-4bc3-4df7-8a09-765794883524 commit 15b670eae219adf6e338e1da9ca4c606f5e3098e Author: Shumin Qiu Date: Fri Jan 16 02:30:51 2015 +0000 Refine the abstract information in header comment section for NetworkPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16615 6f19259b-4bc3-4df7-8a09-765794883524 commit d8bf346886357e6b469ef74e112dfc8f3f5269be Author: Shumin Qiu Date: Fri Jan 16 02:23:07 2015 +0000 Refine the format of GUID in INF files for IntelFrameworkModulePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16614 6f19259b-4bc3-4df7-8a09-765794883524 commit 0545a1a22d1a53a0ce1338a761b747b9ffae7a24 Author: David Wei Date: Thu Jan 15 01:36:17 2015 +0000 Add package maintainers for Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16613 6f19259b-4bc3-4df7-8a09-765794883524 commit 9aaf441c84026a4f96146e66ef6f02ec92cd6813 Author: Laszlo Ersek Date: Wed Jan 14 16:26:04 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: get front page timeout from QEMU Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that ArmVirtualizationPkg's Platform BDS policy can consume QEMU's command line option -boot menu=on,splash-time=N RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1172756 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16612 6f19259b-4bc3-4df7-8a09-765794883524 commit ea444a3e42a61a9fbbb77401265e5d8b3bcba050 Author: Laszlo Ersek Date: Wed Jan 14 16:25:59 2015 +0000 OvmfPkg: PlatformBdsLib: get front page timeout from QEMU Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that OVMF's Platform BDS policy can consume QEMU's command line option -boot menu=on,splash-time=N RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1170507 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16611 6f19259b-4bc3-4df7-8a09-765794883524 commit 9253c14d4134da1bf3bb222fffa2b2d4880ab3cf Author: Laszlo Ersek Date: Wed Jan 14 16:25:54 2015 +0000 OvmfPkg: QemuBootOrderLib: expose QEMU's "-boot menu=on[,splash-time=N]" The QEMU command line option -boot menu=on is meant to have the guest firmware wait for a firmware-specific interval for the user to enter the boot menu. During the wait, the user can opt to enter the boot menu, or interrupt the wait and proceed to booting at once. If the wait interval elapses, the firmware should boot as it normally would. The QEMU command line option -boot menu=on,splash-time=N means the same, except the firmware should wait for cca. N milliseconds instead of a firmware-specific interval. We can approximate this behavior quite well for edk2's virtual platforms because the Intel BDS front page already supports a progress bar, with semantics similar to the above. Let's distill the fw_cfg bits underlying "-boot menu=on,splash-time=N" for the BDS policies, in the form of a timeout value they can pass to Intel's PlatformBdsEnterFrontPage(). If the boot menu is not requested, we return "gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut", which is what the virtual platforms use right now. If the boot menu is requested without specifying the timeout, we return the same PCD, unless it would cause us to skip the boot menu at once. In the latter case, we return 3 seconds (as an approximation of the 2500 ms SeaBIOS default.) RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1170507 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16610 6f19259b-4bc3-4df7-8a09-765794883524 commit 3fe23dc606d19a13c8407d624678d6834b08b344 Author: Laszlo Ersek Date: Wed Jan 14 16:25:48 2015 +0000 ShellPkg: UefiShellLib: drop wrong PathLib library class dependency SVN r16601 ("MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration.") incorporated ShellPkg/Library/BasePathLib into MdePkg/Library/BaseLib. BasePathLib had been the only instance of library class PathLib. Even so, SVN r16606 ("ShellPkg: allow creating of files to create required directory path") added a PathLib dependency to "ShellPkg/Library/UefiShellLib/UefiShellLib.inf". This breaks edk2 platforms that build the "new" UEFI shell from source. Undo the wrong dependency. Similarly, update the #include directive to (example function prototype: PathRemoveLastItem()). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16609 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a013e50b3f63598e07030325d9469e2444a17a6 Author: Daryl McDaniel Date: Tue Jan 13 23:35:33 2015 +0000 StdLib: Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib AppPkg.dsc: StdLib.dsc: StdLib.inc: Delete PathLib LibraryClass description. Update FileHandleLib LibraryClass description to reflect its new location. Update SortLib LibraryClass description to reflect its new location. StdLib.inf: Delete PathLib from LibraryClasses. realpath.c: Delete include of PathLib.h. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16608 6f19259b-4bc3-4df7-8a09-765794883524 commit 45aee4c87aeb2d24398741cf4a36da7c49ad2cbd Author: Daryl McDaniel Date: Tue Jan 13 23:27:08 2015 +0000 EmulatorPkg: Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib EmulatorPkg.dsc: Delete PathLib LibraryClass description Update FileHandleLib LibraryClass description to reflect its new location. Update SortLib LibraryClass description to reflect its new location. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jordan Justen Reviewed-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16607 6f19259b-4bc3-4df7-8a09-765794883524 commit 21a86a7d0ae6e12b7af9f04c7a4288b94110dc05 Author: jaben carsey Date: Tue Jan 13 22:16:41 2015 +0000 ShellPkg: allow creating of files to create required directory path Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Tapan Shah Reviewed-by: Joe Peterson git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16606 6f19259b-4bc3-4df7-8a09-765794883524 commit fa14cfc927e34ddc07dfbb7af7bbdc51b40c949a Author: Olivier Martin Date: Tue Jan 13 18:58:00 2015 +0000 ArmPlatformPkg: Fixed builds after some ShellPkg libraries have moved Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16605 6f19259b-4bc3-4df7-8a09-765794883524 commit 173acde9162ad099005ef25456237c8a0e1b8d7f Author: Ruiyu Ni Date: Tue Jan 13 05:33:47 2015 +0000 Fix IA32 build failure: Use MultU64x32 for 64bit * 32bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16604 6f19259b-4bc3-4df7-8a09-765794883524 commit a782428ec66f9cd306ef944448a9427b8e8a1e87 Author: Yao, Jiewen Date: Tue Jan 13 01:23:15 2015 +0000 Correct file path. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16603 6f19259b-4bc3-4df7-8a09-765794883524 commit 5dbb66351a4008305d148710bd576aeb42c61327 Author: Yao, Jiewen Date: Tue Jan 13 01:18:11 2015 +0000 Check in missing patch for TPM error handling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16602 6f19259b-4bc3-4df7-8a09-765794883524 commit ae591c14b333757a33768e80481bc301b8855686 Author: Daryl McDaniel Date: Tue Jan 13 01:04:07 2015 +0000 MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration. Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib Diffs showing file changes are in the attached file, LibMigration.patch. A description of the changes follows: • Move ShellPkg/Include/Library/FileHandleLib.h to MdePkg/Include/Library/FileHandleLib.h • Move ShellPkg/Include/Library/SortLib.h to MdeModulePkg/Include/Library/SortLib.h • Move ShellPkg/Library/BaseSortLib to MdeModulePkg/Library/BaseSortLib • Move ShellPkg/Library/UefiSortLib to MdeModulePkg/Library/UefiSortLib • Move ShellPkg/Library/BasePathLib/BasePathLib.c to MdePkg/Library/BaseLib/FilePaths.c • Merge ShellPkg/Include/Library/PathLib.h into MdePkg/Include/Library/BaseLib.h • Delete ShellPkg/Library/BasePathLib; Includes BasePathLib.c and BasePathLib.inf • NetworkPkg/NetworkPkg.dsc • PerformancePkg.dsc • OvmfPkg/OvmfPkgX64.dsc • OvmfPkg/OvmfPkgIa32X64.dsc • OvmfPkg/OvmfPkgIa32.dsc o Update SortLib and FileHandleLib library classes to point to the new library locations. o Remove PathLib library class and make sure that BaseLib is described. • MdeModulePkg/MdeModulePkg.dec o Add SortLib library class • MdePkg/MdePkg.dec o Add FileHandleLib library class o Add PcdUefiFileHandleLibPrintBufferSize PCD • MdePkg/Library/BaseLib/BaseLib.inf o Add FilePaths.c to [Sources] • MdePkg/Include/Library/BaseLib.h o Update file description to include "file path functions" • ShellPkg/ShellPkg.dsc o Change PACKAGE_GUID to { C1014BB7-4092-43D4-984F-0738EB424DBF } o Update PACKAGE_VERSION to 1.0 o Update SortLib and FileHandleLib library classes to point to the new library locations. o Remove PathLib library class and make sure that BaseLib is described. o Remove ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf from [Components] • ShellPkg/ShellPkg.dec o Update PLATFORM_VERSION to 1.0 o Remove declarations of the FileHandleLib, SortLib, and PathLib Library Classes o Update comment for the PcdShellPrintBufferSize PCD. • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf • ShellPkg/Application/Shell/Shell.inf o Remove PathLib from [LibraryClasses] • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h • ShellPkg/Application/Shell/Shell.h o Remove #include • ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf o Add PathLib to [LibraryClasses] • ShellPkg/Library/UefiShellLevel1CommandsLib/If.c o Remove #include • ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.inf o Add MdeModulePkg/MdeModulePkg.dec to [Packages] • MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf • MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf o Replace ShellPkg.dec with MdeModulePkg.dec in [Packages] • MdeModulePkg/Library/UefiSortLib/UefiSortLib.c o Remove #include o Define USL_FREE_NON_NULL() to replace SHELL_FREE_NON_NULL() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16601 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d6bf9e22973c2ad327ca7422f80144c848912dc Author: Olivier Martin Date: Mon Jan 12 12:28:36 2015 +0000 MdeModulePkg/PartitionDxe: Fixed El Torito support when the medium is not a CDROM El Torito format can be used on different media (eg: USB). A ISO image can be dumped onto a USB mass-storage. These media might not have the same block size as the CDROM media (ie: 2KB). The El Torito code and the specification assumes a LBA 2KB. In addition, the specification says in "12.3.4.4 CD-ROM and DVD-ROM": UEFI code does not assume a fixed block size. I was able to dupliacte the issue by copying a debian ISO on a USB driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16600 6f19259b-4bc3-4df7-8a09-765794883524 commit 3cbfba02fef9dae07a041fdbf2e89611d72d6f90 Author: David Wei Date: Mon Jan 12 09:37:20 2015 +0000 Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to https://svn.code.sf.net/p/edk2/code/trunk/edk2/, which are for MinnowBoard MAX open source project. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Mike Wu Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16599 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f785cfcc304c48ec04e542ee429df95e7b51bc5 Author: Yao, Jiewen Date: Mon Jan 12 03:21:00 2015 +0000 Handle TPM device error and avoid deadloop in BDS. If TPM error happens, set TPM flag to NOT present, so that trusted boot patch is disabled. Also report status code for failure, so that platform may register handler to apply policy like force system reset, or disable TPM permanently. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16598 6f19259b-4bc3-4df7-8a09-765794883524 commit 4610b23ab10942d140eb51c4bdbefc5f896979ad Author: Yao, Jiewen Date: Mon Jan 12 03:16:49 2015 +0000 Add TPM Physical Presence >=128 operation value support. The Tcg/TrEE PhysicalPresence library will depend on Tcg/TrEE PpVendor library. The default NULL library instance is provided in this package. OEM can create OemPpVendorLib as override to handle >=128 operation value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16597 6f19259b-4bc3-4df7-8a09-765794883524 commit c5f1d437eddd8fcfe9adeb7ca70cca7ef8688ded Author: Liming Gao Date: Fri Jan 9 10:07:02 2015 +0000 BaseTools Fix NASM tool version in comments of tools_def.template NASM tool version should be 2.07 instead of 2.0.7. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16596 6f19259b-4bc3-4df7-8a09-765794883524 commit 092b852a5bd124d94395930848f2754b6a98fd5c Author: Star Zeng Date: Fri Jan 9 08:46:47 2015 +0000 MdeModulePkg DxeCore: Enhance memory profile code to handle possible NULL FilePath. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16595 6f19259b-4bc3-4df7-8a09-765794883524 commit a5077fd0d280b7160e14159144934b1d7391a045 Author: Shumin Qiu Date: Fri Jan 9 04:50:11 2015 +0000 MdePkg IA32/X64 ProcessorBind.h : Disable the C4701 and C4703 warnings for VS2013. As they may be raised as false positive in building. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16594 6f19259b-4bc3-4df7-8a09-765794883524 commit 586d81d103d124dc5df54d3897b8ed359d0d22ca Author: Liming Gao Date: Fri Jan 9 03:22:53 2015 +0000 MdeModulePkg DxePrintLibPrint2Protocol Library SPrintLength() API issue. SPrintLength() and SPrintLengthAsciiFormat() API doesn’t work with 'g', 't' and 'r' option. The fix sync from MdePkg BasePrintLib instance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16593 6f19259b-4bc3-4df7-8a09-765794883524 commit c792e5b8a3fb103c1e06663f44fa9bda801fc31b Author: Eric Dong Date: Fri Jan 9 02:38:39 2015 +0000 Restore question value for question without storage after CHANGING callback return error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16592 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c7956a2a3324ef47e95f3a350e901b2ddfef69c Author: Eric Dong Date: Thu Jan 8 08:36:05 2015 +0000 Fixed VfrCompile crash on efivarstore statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Aaron Pop git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16591 6f19259b-4bc3-4df7-8a09-765794883524 commit 92ca0c6721d6475d9125c3b64f429cde0777fe28 Author: Yao, Jiewen Date: Thu Jan 8 05:41:56 2015 +0000 Add TPM12 NV related function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16590 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c2d456b9670cd8eeed1b06d3e50011598ade3b0 Author: Olivier Martin Date: Tue Jan 6 15:54:12 2015 +0000 ArmPlatformPkg/Bds: Signal when the variable 'Fdt' has been updated Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16589 6f19259b-4bc3-4df7-8a09-765794883524 commit f2c730d3123c8952e2715b120e79c4ea20c73451 Author: Olivier Martin Date: Tue Jan 6 15:52:52 2015 +0000 ArmPlatformPkg/Bds: Retrieve the Status when calling RT.SetVariable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16588 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e8b37f1f62a3945de44d40616f9e13b4d214980 Author: Ronald Cron Date: Tue Jan 6 15:51:54 2015 +0000 ArmPlatformPkg: PCI emulation - Define a vendor and device id Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16587 6f19259b-4bc3-4df7-8a09-765794883524 commit ad7e31b505b91c9e7baf266dd8cf2ff95befbb8a Author: Ronald Cron Date: Tue Jan 6 15:51:02 2015 +0000 ArmPkg/BdsLib: Close file after reading an Image When loading an image from a file, close the file after reading from it. Use OpenProtocol instead of HandleProtocol to retrieve the simple file system protocol interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16586 6f19259b-4bc3-4df7-8a09-765794883524 commit f98f9d98089be8b5b33669cf6e09f14b819dafc4 Author: Ronald Cron Date: Tue Jan 6 15:49:51 2015 +0000 ArmPlatformPkg/ArmJunoDxe: Close the FDT file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16585 6f19259b-4bc3-4df7-8a09-765794883524 commit f38d0dfbefb1beb480695b7f038c1be300a6b12c Author: Ronald Cron Date: Tue Jan 6 15:48:19 2015 +0000 ArmJunoDxe/InstallFdt.c: Fix the closing of the simple file system protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16584 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a8641b5640b4eeb79a5dedfe48f81805b43c967 Author: Ronald Cron Date: Tue Jan 6 15:47:25 2015 +0000 ArmPlatformPkg: Make PCI emulation more compliant with the UEFI spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16583 6f19259b-4bc3-4df7-8a09-765794883524 commit f88a751a07881f6c4f53f09c796e9938667562e6 Author: Ronald Cron Date: Tue Jan 6 15:46:36 2015 +0000 ArmPkg/BdsLib: Fix DHCP4 configuration Fix DHCP4 configuration as part of TFTP boot process to get the IP address of the gateway and the subnet mask from the DHCP server. Fix a memory leak when the download from the TFTP server fails as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16582 6f19259b-4bc3-4df7-8a09-765794883524 commit 901b45162ab1c4b01dbba48092226ac968b2219f Author: Olivier Martin Date: Tue Jan 6 15:41:59 2015 +0000 ArmPlatformPkg/ArmVExpressPkg: Add support for FV filesystems to ARM platforms Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16581 6f19259b-4bc3-4df7-8a09-765794883524 commit 17409b7aad2b8c4afc55fae1c368f44cb463d35a Author: Star Zeng Date: Mon Jan 5 03:42:17 2015 +0000 SecurityPkg Variable: Implement VarCheck PROTOCOL and follow UEFI spec to check UEFI defined variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16580 6f19259b-4bc3-4df7-8a09-765794883524 commit efb01a104d58942a27aa83643a910b6e76fb7bf8 Author: Star Zeng Date: Mon Jan 5 03:38:36 2015 +0000 MdeModulePkg Variable: Implement VarCheck PROTOCOL and follow UEFI spec to check UEFI defined variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16579 6f19259b-4bc3-4df7-8a09-765794883524 commit 23d04b58e27b382bbd3f9b16ba9adb1cb203dad5 Author: Laszlo Ersek Date: Fri Jan 2 12:08:33 2015 +0000 ArmVirtualizationPkg: Intel BDS: load EFI-stubbed Linux kernel from fw_cfg A number of tools depend on passing the kernel image, the initial ramdisk, and the kernel command line to the guest on the QEMU command line (options -kernel, -initrd, -append, respectively). At the moment, these QEMU options work, but the guest kernel loaded this way is launched by a minimal binary firmware that is dynamically composed by QEMU. As a consequence, such a kernel has no UEFI environment. This patch enables -kernel, -initrd, -append to work on top of the ArmVirtualizationQemu firmware build. The approach it takes is different from how the same functionality is implemented in OvmfPkg. OvmfPkg contains a full-fledged Linux boot loader (see "OvmfPkg/Library/PlatformBdsLib/QemuKernel.c" and "OvmfPkg/Library/LoadLinuxLib/"). OVMF's LoadLinuxLib sets up the required kernel environment in a sophisticated way (including x86-specific artifacts like the GDT), calls ExitBootServices() itself (for legacy kernels without EFI handover protocol), and jumps to the kernel (using x86 assembly). In ArmVirtualizationPkg's PlatformIntelBdsLib, we require the kernel being loaded to have an EFI stub -- that is, to be a genuine UEFI application. (The EFI stub is not an additional burden for guest kernels -- the EFI stub is a hard requirement anyway because it needs to process the DTB heavily: - it removes memory nodes, - it removes memreserve entries, - it adds UEFI properties to the "chosen" node, - it calculates and installs virt-to-phys mappings with SetVirtualAddressMap() in a way that enables kexec [planned]. Kudos to Ard Biesheuvel for summarizing the above.) An EFI-stubbed Linux guest kernel can be loaded with plain gBS->LoadImage(). The EFI stub will look up its own EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL instance (ie. the device path where it has been loaded from), and it will locate the initial ramdisk named by the "initrd" command line parameter as a *sibling file* on the same device. The initrd file is then loaded using the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. This approach enables the EFI stub to load the initial ramdisk from normal EFI System Partitions, from remote PXE/TFTP directories -- and it enables us to provide the initrd from memory as well. In this patch: - We download the kernel image, the initrd image, and the kernel command line, using QEMU's fw_cfg interface. - We create a read-only EFI_SIMPLE_FILE_SYSTEM_PROTOCOL instance that has just a root directory, with the three downloaded files in it. - The handle that carries the simple file system has a single-node VenHw(...) device path (not counting the terminator node). - We load the EFI-stubbed kernel (which is a UEFI application) with gBS->LoadImage(), passing "VenHw(...)/kernel" as device path. This causes gBS->LoadImage() to call back into our filesystem. - Appended to the downloaded command line, we pass "initrd=initrd" to the EFI stub. - Once the EFI stub is running, it loads the initial ramdisk from the "sibling" device path "VenHw(...)/initrd", also calling back into our filesystem. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16578 6f19259b-4bc3-4df7-8a09-765794883524 commit b49ed62df124960d8acfb2432ecc57542d5b7844 Author: Laszlo Ersek Date: Fri Jan 2 12:08:28 2015 +0000 ArmVirtualizationPkg: identify "new shell" as builtin shell for Intel BDS The default value of this PCD (in "IntelFrameworkModulePkg.dec") identifies the "old shell" from EdkShellBinPkg. Our build includes the "new" shell from ShellBinPkg/UefiShell/UefiShell.inf; let's specify the FILE_GUID of that. Otherwise, no boot option will be generated for the Shell application. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16577 6f19259b-4bc3-4df7-8a09-765794883524 commit 274b4a8d79186b2280aec6c7bb5117063acbc052 Author: Laszlo Ersek Date: Fri Jan 2 12:08:24 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: adhere to QEMU's boot order We have all the required pieces in place. Let's call SetBootOrderFromQemu() in PlatformBdsPolicyBehavior(). We disable OFW-to-UEFI device path fragment translation for virtio-pci, and enable it only virtio-mmio at this time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16576 6f19259b-4bc3-4df7-8a09-765794883524 commit 433369169003d4749844615dca4a7239dba8f48b Author: Laszlo Ersek Date: Fri Jan 2 12:08:19 2015 +0000 OvmfPkg: QemuBootOrderLib: OFW-to-UEFI translation for virtio-mmio The TranslateMmioOfwNodes() function recognizes the following OpenFirmware device paths: virtio-blk: /virtio-mmio@000000000a003c00/disk@0,0 virtio-scsi disk: /virtio-mmio@000000000a003a00/channel@0/disk@2,3 virtio-net NIC: /virtio-mmio@000000000a003e00/ethernet-phy@0 The new translation can be enabled with the "PcdQemuBootOrderMmioTranslation" Feature PCD. This PCD also controls if the "survival policy" covers unselected boot options that start with the virtio-mmio VenHw() node. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16575 6f19259b-4bc3-4df7-8a09-765794883524 commit ca0d7c98f249ab686b96c72fc88bc9b665aeb4ef Author: Laszlo Ersek Date: Fri Jan 2 12:08:15 2015 +0000 OvmfPkg: QemuBootOrderLib: widen ParseUnitAddressHexList() to UINT64 The OpenFirmware device path nodes that QEMU generates for virtio-mmio transports contain 64-bit hexadecimal values (16 nibbles) -- the base addresses of the register blocks. In order to parse them soon, ParseUnitAddressHexList() must parse UINT64 values. Call sites need to be adapted, as expected. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16574 6f19259b-4bc3-4df7-8a09-765794883524 commit 73bb8e6895080f07ece26b0db0f50048713c2b93 Author: Laszlo Ersek Date: Fri Jan 2 12:08:11 2015 +0000 ArmVirtualizationPkg: VirtFdtDxe: use dedicated VIRTIO_MMIO_TRANSPORT_GUID Installing VenHw() device paths with this GUID, for the virtio-mmio transports that we detect, enables other modules to recognize those VenHw() nodes. (Note that the actual value doesn't change.) In addition, to avoid reusing GUIDs in unrelated contexts, detach the driver's FILE_GUID from its previous value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16573 6f19259b-4bc3-4df7-8a09-765794883524 commit 3765e030affb69f3c9d6d34a0be48f6bf533c480 Author: Laszlo Ersek Date: Fri Jan 2 12:08:06 2015 +0000 OvmfPkg: introduce VIRTIO_MMIO_TRANSPORT_GUID Soon there will be more than one modules (in separate packages) that need to have an understanding about the GUID used in the VenHw() device path nodes that describe virtio-mmio transports. Define such a GUID explicitly. Preserve the current value (which happens to be the FILE_GUID of ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf) for compatibility with external users. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16572 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f9c55cc1d00c075c20dc196699eb8f0d6029069 Author: Laszlo Ersek Date: Fri Jan 2 12:08:02 2015 +0000 OvmfPkg: QemuBootOrderLib: featurize PCI-like device path translation In preparation for adding OpenFirmware-to-UEFI translation for "MMIO-like" OFW device path fragments, let's turn the currently exclusive "PCI-like" translation into "just one" of the possible translations. - Rename TranslateOfwNodes() to TranslatePciOfwNodes(), because it is tightly coupled to "PCI-like" translations. - Rename REQUIRED_OFW_NODES to REQUIRED_PCI_OFW_NODES, because this macro is specific to TranslatePciOfwNodes(). - Introduce a new wrapper function under the original TranslateOfwNodes() name. This function is supposed to try translations in some order until a specific translation returns a status different from RETURN_UNSUPPORTED. - Introduce a new Feature PCD that controls whether PCI translation is attempted at all. - The boot option "survival policy" in BootOrderComplete() must take into account if the user was able to select PCI-like boot options. If the user had no such possibility (because the Feature PCD was off for PCI-like translation), then we ought to keep any such unselected boot options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16571 6f19259b-4bc3-4df7-8a09-765794883524 commit cca7475bcbb8bfc7c732e106692a6d15e1dae51c Author: Laszlo Ersek Date: Fri Jan 2 12:07:57 2015 +0000 OvmfPkg: extract QemuBootOrderLib and rebase OvmfPkg's PlatformBdsLib on the standalone library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16570 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b610ac2550d053d0997832059cc83247888bae4 Author: Laszlo Ersek Date: Fri Jan 2 12:07:52 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: add basic policy In PlatformBdsPolicyBehavior() we should follow the same pattern as in OvmfPkg's: after the consoles are connected, - connect all drivers and devices, - enumerate all boot options, - enter the Intel BDS FrontPage if the user presses a key different from Enter. We set the countdown to 3 seconds, similarly to the timeout that we specify for ARM BDS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16569 6f19259b-4bc3-4df7-8a09-765794883524 commit be8afe14f1e25672b12c15b38d253b4c7f98be86 Author: Laszlo Ersek Date: Fri Jan 2 12:04:25 2015 +0000 ArmVirtualizationPkg: clone PlatformIntelBdsLib from ArmPlatformPkg In the next patch(es) we'll customize the PlatformBdsLib instance used by ArmVirtualizationQemu.dsc. Let's clone it first verbatim from ArmPlatformPkg/Library/PlatformIntelBdsLib, changing only its FILE_GUID. (Also, coding style errors like "missing space before open parenthesis" and "missing space after comma or semicolon" have been cleaned up.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16568 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e2543b01d0cbd16b3fbcc6f12f6938d8c12bcc8 Author: Laszlo Ersek Date: Fri Jan 2 12:04:15 2015 +0000 ArmVirtualizationPkg: introduce QemuFwCfgLib instance for DXE drivers After reviewing OvmfPkg's use of its own QemuFwCfgLib instances, it is clear that its only pre-DXE fw_cfg dependency concerns S3 support (the QemuFwCfgS3Enabled() call in "PlatformPei/Platform.c"). For ARM guests, S3 is in the distant future, but we can see several shorter term applications for fw_cfg that all reside in DXE: - controlling boot order (to be implemented in PlatformBdsLib for Intel BDS), - supporting -kernel / -initrd / -append boot on QEMU (to be implemented in PlatformBdsLib for Intel BDS, similarly), - loading and linking ACPI tables, - installing SMBIOS tables. Therefore it makes sense to add a simple MMIO-based fw_cfg client library to ArmVirtualizationPkg that for the moment is only available to DXE_DRIVER modules. Because MMIO accesses are costly on KVM/ARM, InternalQemuFwCfgReadBytes() accesses the fw_cfg data register in full words. This speeds up transfers almost linearly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16567 6f19259b-4bc3-4df7-8a09-765794883524 commit ad652d46941c6a1e0f828cb084fb6829c3abb68d Author: Laszlo Ersek Date: Fri Jan 2 12:04:05 2015 +0000 ArmVirtualizationPkg: VirtFdtDxe: forward FwCfg addresses from DTB to PCDs Qemu's firmware configuration interface for ARM consists of two MMIO registers, a 16-bit selector, and a 64-bit data register that allows the guest to transfer data with 8, 16, 32, and 64-bit wide accesses. Parse the base address from the DTB, and expose the registers to the rest of DXE via dynamic PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16566 6f19259b-4bc3-4df7-8a09-765794883524 commit 931aae946fd301cc0b49a60edcde7680d5ceaf45 Author: Dong Guo Date: Wed Dec 31 01:47:39 2014 +0000 Remove the FV header assumption in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Gao Liming Reviewed-by: Zeng Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16565 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fcbeaeacd1fb2d9dbc6d6c92d75d785b71df4b3 Author: Dong Guo Date: Wed Dec 31 01:46:50 2014 +0000 Remove the FV header assumption in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Gao Liming Reviewed-by: Zeng Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16564 6f19259b-4bc3-4df7-8a09-765794883524 commit 42435671334345f91e7cb2e5e963ed457fbb61d6 Author: Qiu Shumin Date: Wed Dec 31 01:31:00 2014 +0000 ShellPkg: Check the unrecognized environment variable name before it is removed from command line. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16563 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a2dcd134a23491148af21792cec45252996d0d9 Author: Feng Tian Date: Tue Dec 30 08:18:57 2014 +0000 MdeModulePkg/FvSimpleFileSystem:Fix a potential NULL dereference issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16562 6f19259b-4bc3-4df7-8a09-765794883524 commit 871f6733152c08e6c68e5de8580ac624fb65269a Author: Eric Dong Date: Tue Dec 30 03:03:37 2014 +0000 Rollback change 16544. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16561 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f6792b82085c125df476ed5f8347afcbad1af5d Author: Qiu Shumin Date: Fri Dec 26 08:22:35 2014 +0000 ShellPkg: Add code to handle the split ('|') in a double-quoted string. This patch update the code in function 'ContainsSplit', and make 'ContainsSplit' depend on 'FindNextInstance'. So we move 'FindNextInstance' in front of 'ContainsSplit'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16560 6f19259b-4bc3-4df7-8a09-765794883524 commit 12d95665cb0e088afe2cd395f0acc7fdb2604acc Author: Long, Qin Date: Thu Dec 25 08:37:08 2014 +0000 Correct the Hash Calculation for Revoked X.509 Certificate to align with RFC3280 and UEFI 2.4 Spec. This patch added one new X509GetTBSCert() interface in BaseCryptLib to retrieve the TBSCertificate, and also corrected the hash calculation for revoked certificate to aligned the RFC3280 and UEFI 2.4 spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Long, Qin" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16559 6f19259b-4bc3-4df7-8a09-765794883524 commit 270fc03f3e0c4d446926d490f1f9bb9ae0f2cf27 Author: Feng Tian Date: Thu Dec 25 07:08:02 2014 +0000 MdeModulePkg/FvSimpleFileSystem: Fix building error with 32bit tool chains. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16558 6f19259b-4bc3-4df7-8a09-765794883524 commit 0927c81df6eac780c326866be9cd6116d5556e57 Author: Deric Cole Date: Wed Dec 24 00:53:11 2014 +0000 Address the potential system TPL does not been restore. This patch make sure the TPL been raised and restored in pair. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Deric Cole Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16556 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b13fe741b7221514da510c165a55e47a3d377b2 Author: Ruiyu Ni Date: Tue Dec 23 09:56:33 2014 +0000 Do not assert when the device path node length is invalid. Because IsDevicePathValid() calls this API we should leave the device path validation in the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16555 6f19259b-4bc3-4df7-8a09-765794883524 commit e4b0415d59d00eacc0ce4755ad6aaab80b16075c Author: Hot Tian Date: Tue Dec 23 08:33:49 2014 +0000 MdePkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16553 6f19259b-4bc3-4df7-8a09-765794883524 commit 736a692e7c0210eb71c01c39731ef97383d606eb Author: Hot Tian Date: Tue Dec 23 08:33:06 2014 +0000 MdeModulePkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16552 6f19259b-4bc3-4df7-8a09-765794883524 commit b947f0cf4431769ded585ac7fd57ab1744149b26 Author: Hot Tian Date: Tue Dec 23 08:31:24 2014 +0000 IntelFrameworkPkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16551 6f19259b-4bc3-4df7-8a09-765794883524 commit 997a5d1b049beb6af2ed40195b0b1c8aaf3bd555 Author: Cinnamon Shia Date: Tue Dec 23 05:48:31 2014 +0000 Fix ‘build run’ doesn’t work for NT32 X64 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cinnamon Shia Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16550 6f19259b-4bc3-4df7-8a09-765794883524 commit 9093fb92d56efa02ab47ddddeb4068855d0632bd Author: Yao, Jiewen Date: Tue Dec 23 04:06:52 2014 +0000 Correct AuthHandle definition for Tpm2SetPrimaryPolicy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16549 6f19259b-4bc3-4df7-8a09-765794883524 commit a50e58f48b310737a1027effd9f21d9aaf7f6d26 Author: Yao, Jiewen Date: Tue Dec 23 04:03:32 2014 +0000 Add TPM2 commands which might be used in provision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16548 6f19259b-4bc3-4df7-8a09-765794883524 commit 9da91aea69569feceb23cf502c81a32a4121d362 Author: Brendan Jackman Date: Tue Dec 23 03:18:04 2014 +0000 MdeModulePkg/FvSimpleFileSystem: Add a new module to provide access to executable files in FVs. This module implements Simple FileSystem protocol over Firmware Volume (FV). EFI Modules included into a FV can be listed and launched from the EFI Shell or any other EFI applications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Signed-off-by: Feng Tian Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16547 6f19259b-4bc3-4df7-8a09-765794883524 commit 32d258b5e78f0f45562a0cad909fd4add4b521d0 Author: Ruiyu Ni Date: Mon Dec 22 07:30:06 2014 +0000 Remove unnecessary RT attribute from LegacyDevOrder variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16545 6f19259b-4bc3-4df7-8a09-765794883524 commit f571ef9880ed8f3f3b41b12015b5079b508151de Author: Aaron Pop Date: Mon Dec 22 02:21:53 2014 +0000 Fixed VfrCompile crash on efivarstore statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Aaron Pop Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16544 6f19259b-4bc3-4df7-8a09-765794883524 commit 36c6413f76e5f16f866dc77e213abbcc6e13e7f2 Author: Gary Lin Date: Fri Dec 19 19:13:44 2014 +0000 OvmfPkg: enable the IPv6 support There are several network stack drivers in MdeModulePkg or NetworkPkg. Currently, we only use the drivers from MdeModulePkg which only provides the IPv4 support. This commit adds the IPv6 drivers in NetworkPkg into OVMF. Here is the table of drivers from Laszlo. currently included related driver add or replace from MdeModulePkg in NetworkPkg from NetworkPkg ------------------ -------------- --------------- SnpDxe n/a n/a DpcDxe n/a n/a MnpDxe n/a n/a VlanConfigDxe n/a n/a ArpDxe n/a n/a Dhcp4Dxe Dhcp6Dxe add Ip4ConfigDxe Ip6Dxe add Ip4Dxe Ip6Dxe add Mtftp4Dxe Mtftp6Dxe add Tcp4Dxe TcpDxe replace Udp4Dxe Udp6Dxe add UefiPxeBcDxe UefiPxeBcDxe replace IScsiDxe IScsiDxe replace Since the TcpDxe, UefiPxeBcDxe, and IScsiDxe drivers in NetworkPkg also support IPv4, we replace the ones in MdeModulePkg. To enable the IPv6 support, build OVMF with "-D NETWORK_IP6_ENABLE". A special case is NetworkPkg/IScsiDxe. It requires openssl. For convenience, NetworkPkg/IScsiDxe is enabled only if both IPv6 and SecureBoot are enabled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin [lersek@redhat.com: typo fix in commit message; specil -> special] Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16543 6f19259b-4bc3-4df7-8a09-765794883524 commit d89d1a546a7db864cc94efc3ba79db61e1dc3ba1 Author: Eric Dong Date: Fri Dec 19 05:30:04 2014 +0000 MdeModulePkg: 1.Add code to cover the space which is not covered by browser before. 2.Remove ESC help string for front page screen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16541 6f19259b-4bc3-4df7-8a09-765794883524 commit 514556741981eb1353dbcffa04d46fdb945ffe7a Author: Yao, Jiewen Date: Fri Dec 19 05:21:55 2014 +0000 Use better coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Qiu, Shumin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16540 6f19259b-4bc3-4df7-8a09-765794883524 commit 3532030489e93e67703a3c3df53fd9dfdee68f97 Author: Qiu Shumin Date: Fri Dec 19 02:37:53 2014 +0000 Code refine. Check the original length of array to avoid buffer over flow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16539 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a497016c9f6aa60e9be330d1592f8b5e71156ef Author: Chris Ruffin Date: Thu Dec 18 06:13:36 2014 +0000 MdeModulePkg\Bus\Ata\AtaAtapiPassThru: don't set PxSACT bit when issuing command Setting a bit in the PxSACT register for a command in the command list indicates to the controller that the command list slot contains a native queued command (NCQ). This can cause problems with some controllers (one such controller is the Marvell 9128). Since NCQ commands are not used, don't set the PxACT register for commands issued. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16536 6f19259b-4bc3-4df7-8a09-765794883524 commit 07f986f134abf85b4b1f360ca3c86f22cd9f92da Author: Gary Lin Date: Thu Dec 18 03:03:52 2014 +0000 Fix a bug that the gateway is not necessary in a simple PXE network. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16535 6f19259b-4bc3-4df7-8a09-765794883524 commit 4123bd7bf7c70998353b187b593dc992e0dcb146 Author: Jeff Fan Date: Wed Dec 17 05:31:42 2014 +0000 SourceLevelDebugPkg DebugAgentLib: Fix build error with GNU assembler Use mov instead of movw. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16531 6f19259b-4bc3-4df7-8a09-765794883524 commit e5030c1ec58c4a9bf3e70414a0413ceff7f583a9 Author: Jeff Fan Date: Wed Dec 17 05:30:33 2014 +0000 UefiCpuPkg CpuExceptionHandlerLib: Use %rax instead of %eax to make code consistence. Make code consistence between ASM and S files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16530 6f19259b-4bc3-4df7-8a09-765794883524 commit a1252397f50ecc02b37d4fa2db22f7b9fa7ffdf4 Author: Jordan Justen Date: Wed Dec 17 05:16:48 2014 +0000 MdeModulePkg DebugSupportDxe: Fix build error with GNU assembler The GNU assembler (2.24.51.20140918) is failing to build when movw is used on this instruction. Instead use the mov instruction, which matches the other cases of loading segment registers. The error message seen is: AsmFuncs.iii:283: Error: incorrect register `%rax' used with `w' suffix Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16529 6f19259b-4bc3-4df7-8a09-765794883524 commit fd8a2eb062678ea4f286974137bb2aec259e7321 Author: Star Zeng Date: Wed Dec 17 00:39:51 2014 +0000 MdeModulePkg DxeCore: Fix potential FV overflow of 4GB boundary on a 32-bit systems. The traversing of a Memory Mapped FV can overflow the 4GB limit on a 32bit system during the setting up a Linked List of FFS file inside the FV. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16527 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c23ddaa00e68f63b1934cd864790a5aff04ad74 Author: jaben carsey Date: Tue Dec 16 17:50:57 2014 +0000 ShellPkg: Remove IntelFramweorkModulePkg as Shell library dependency Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Tim Lewis Reviewed-by: Samer El-Haj-Mahmoud git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16526 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d6ccad2b96efbf38ed6bf8a06d320a63e96c6f6 Author: Qiu Shumin Date: Tue Dec 16 02:52:00 2014 +0000 ShellPkg: Code refine. Add error handling code to check pointer and remove redundant 'ASSERT'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16525 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d956ea2306a727368ae6dc4862ec408a7a363b5 Author: Olivier Martin Date: Mon Dec 15 11:13:44 2014 +0000 ArmPlatformPkg: Fixed build The original patch was assuming PathLib moved to MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16522 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bb390f1375b51cdc50fce0a763c38fad7748120 Author: Eric Dong Date: Mon Dec 15 10:05:42 2014 +0000 MdePkg: Add deprecate flag for the functions which has a replace function in safe c library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16521 6f19259b-4bc3-4df7-8a09-765794883524 commit 6395c642ae74ee14a8aa513f83bae41645a1f846 Author: Liming Gao Date: Mon Dec 15 09:36:46 2014 +0000 MdeModulePke: PeiCore FirmwareVolmeInfoPpiNotifyCallback ()issue PeiCore FirmwareVolmeInfoPpiNotifyCallback() should check FvCount when new one is added. Now, this check is the entry of Notify function that is too early, because PeiCore will install FvInfo and FvInfo2 both for one sub FV image and trig FvNotify function twice for the same FV images. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16520 6f19259b-4bc3-4df7-8a09-765794883524 commit 84b8497338c2242a92c10de801d12ab389573807 Author: Laszlo Ersek Date: Mon Dec 15 08:00:40 2014 +0000 Eliminate the variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16519 6f19259b-4bc3-4df7-8a09-765794883524 commit d5daaa836f46a3f8fe57da37cad7841d2a9c4aca Author: Olivier Martin Date: Fri Dec 12 19:32:50 2014 +0000 ArmPkg/AsmMacroIoLib: Fixed the global variables initialization The top of the stack always points to 'stack_base + stack_size'. But the stack pointer is decremented before writing to the stack. It means the top byte of the stack is actually 'stack_base + stack_size - 1'. The initialization should also decrement the stack pointer before zero'ing the memory (pre-indexed addressing). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16518 6f19259b-4bc3-4df7-8a09-765794883524 commit 85774874bcd13dba0ed8886ab5eb36b1ccdc44c1 Author: Olivier Martin Date: Fri Dec 12 19:15:37 2014 +0000 ArmPkg/BdsLib: Update the size of the Device Tree before booting Linux The memory reserved to load the device tree is over-allocated when UEFI loads the blob to update the device tree with additional information such as the command line, the initrd, etc. This change ensures the total size declared by the device tree matches the actual data (and not the over-allocated size value). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16517 6f19259b-4bc3-4df7-8a09-765794883524 commit 061568e2d5f21aeafa942891b15768c57fa0ffac Author: Ronald Cron Date: Fri Dec 12 19:14:22 2014 +0000 ArmPkg/BdsLib: Rework TFTP boot Rework the downloading of an image from a TFTP server to do not depend on any "PXE specific" setting of the DHCP server. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16516 6f19259b-4bc3-4df7-8a09-765794883524 commit b4c222655c8182febba890019367609ac278b1ba Author: Olivier Martin Date: Fri Dec 12 19:13:04 2014 +0000 ArmPlatformPkg/Bds: Test if OptionalData is NULL before using it Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16515 6f19259b-4bc3-4df7-8a09-765794883524 commit 830e5b8c0f8dda3c46313200e1464548b2b7d2a3 Author: Olivier Martin Date: Fri Dec 12 19:11:56 2014 +0000 ArmPlatformPkg/Bds: Fixed memory leak Device Paths were not freed after calling BDS_LOAD_OPTION_SUPPORT.CreateDevicePathNode() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16514 6f19259b-4bc3-4df7-8a09-765794883524 commit 23666400234149a9c64b5881805db49cb8342ee7 Author: Ronald Cron Date: Fri Dec 12 19:10:58 2014 +0000 ArmPkg/GenericWatchdogDxe: Set up the watchdog timeout relatively to the system counter Use the system counter to compute the watchdog compare value as the watchdog compare value is compared to the system counter to check if the watchdog timeout expired or not. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16513 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b4d97a0ea92289181d565000b9fcc81054d78ee Author: Ronald Cron Date: Fri Dec 12 19:09:24 2014 +0000 ArmPlatformPkg/ArmJunoPkg: Move the watchdog generic driver to ArmPkg/Drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16512 6f19259b-4bc3-4df7-8a09-765794883524 commit 95204533ad8ef83e0f5128ce03831eb5bcbac6cf Author: Ronald Cron Date: Fri Dec 12 19:06:10 2014 +0000 ArmPlatformPkg/BootMonFs: Fix the setting of information about a file Rework the setting of information about a file, in particular file resizing, file renaming and the returned error codes in case of error. This rework has implied a rework of the read, write, close and flush functions. To strickly separate what has been actually written to the media (flushed) from what has not been written when a file is open, an "Info" field has been added to the description of a file. The field is used to store the modifications done to the file by the means of SetInfo() like the change of the name or of the size. Such changes are written to the media only when a flush occurs. When a file is open, the information pointed to by the "Info" field is always up-to-date. This is not the case of the information stored in the "HwDescription" of the file description which from now is just a mirror of what is written on the media. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16511 6f19259b-4bc3-4df7-8a09-765794883524 commit fb08c45511edba2bc8f129135d1916eab02ee2fc Author: Ronald Cron Date: Fri Dec 12 19:03:30 2014 +0000 ArmPlatformPkg/BootMonFs: Fix error codes returned by Open() and Read() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16510 6f19259b-4bc3-4df7-8a09-765794883524 commit a40ff4578d62ac86b76e90d2c79b818b635ec7d8 Author: Olivier Martin Date: Fri Dec 12 19:00:37 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Removed compiler family to the AArch64 assembly files LLVM/ARMCC6 supports GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16509 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a8fa966d3f1bf8c5b4ad03e120c702b2c6ffa5e Author: Olivier Martin Date: Fri Dec 12 18:58:47 2014 +0000 ArmPlatformPkg: The toolchain family name can be omitted if the options are common Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16508 6f19259b-4bc3-4df7-8a09-765794883524 commit 967eaccaaa9aa22893882806124c3c7f7abb927b Author: Yao, Jiewen Date: Fri Dec 12 04:34:19 2014 +0000 Add TPM2 commands which might be used in field upgrade. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16505 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f2c0260b1727ba2f249e5a6f4c07b51e9ce3881 Author: Star Zeng Date: Fri Dec 12 03:19:47 2014 +0000 MdeModulePkg DxeCore: Remove @retval function comments for CoreUpdateMemoryAttributes(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16504 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b24f2cfe016f70236034fa033e5f5c9f6f310a0 Author: Liming Gao Date: Fri Dec 12 03:17:55 2014 +0000 MdeModulePkg DXE FpdtStatusCodeHandler: Check Boolean value in if statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16503 6f19259b-4bc3-4df7-8a09-765794883524 commit 99730361ec4724c07f6898a59615a8d33166e62f Author: Olivier Martin Date: Fri Dec 12 02:01:54 2014 +0000 MdeModulePkg/DxeCore: Fixed compiler error 'enumerated type mixed with another type' ARM Toolchain raises a warning/error when an integer is used instead of a enum value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16501 6f19259b-4bc3-4df7-8a09-765794883524 commit 41089802d5046d5d4790bb64ae35f87db3115cb2 Author: Dong Eric Date: Fri Dec 12 00:45:05 2014 +0000 Refine code to follow edkii coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Eric Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16500 6f19259b-4bc3-4df7-8a09-765794883524 commit 300c1f0d354bbb4ec1c7a97bf508c656983f6eec Author: Eric Dong Date: Thu Dec 11 08:03:19 2014 +0000 MdeModulePkg: Update the device path info for the storage when former drivers not provide it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16499 6f19259b-4bc3-4df7-8a09-765794883524 commit 5789fe3587ce0fb2fa5af1b00b11b5b0659b3289 Author: Dong Guo Date: Thu Dec 11 06:34:57 2014 +0000 correct a data type error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Dong Eric Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16498 6f19259b-4bc3-4df7-8a09-765794883524 commit 684a565a0459b758e69a5b95a8c4b34704124930 Author: Liming Gao Date: Wed Dec 10 08:45:44 2014 +0000 MdeModulePke: DxeCore NotifyFwVolBlock() function issue Fix DxeCore NotifyFwVolBlock() function to make sure FV protocol is installed for all valid PI FV images. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16496 6f19259b-4bc3-4df7-8a09-765794883524 commit 61959fa9baeed976adefa2043390f2ad208d894e Author: Chao Zhang Date: Wed Dec 10 08:21:05 2014 +0000 Fix potential NULL pointer dereference issue in TcgDxe & TreeDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16494 6f19259b-4bc3-4df7-8a09-765794883524 commit 213cc1000e6af3c90aefdef2f0f9d5aa99f758d1 Author: Dong Guo Date: Wed Dec 10 08:09:20 2014 +0000 Add failed image Name in the Image Execution Information Table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Zhang Chao B git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16493 6f19259b-4bc3-4df7-8a09-765794883524 commit b01fcf92ad7fb4ce2c9819b746c7bc5ad0586aa1 Author: Qin Long Date: Wed Dec 10 08:05:42 2014 +0000 Update the build option to eliminate possible build warning for IPF platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16492 6f19259b-4bc3-4df7-8a09-765794883524 commit beaec44e6216ac196205e45e27316fe64df3def0 Author: Jeff Fan Date: Wed Dec 10 02:24:50 2014 +0000 Add HobLib DXE instance for SMM_CORE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16488 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d62ae35ca6a4d0331f9ebd7609265378e69afbf Author: Hess Chen Date: Tue Dec 9 06:41:58 2014 +0000 BaseTools/ECC: Fix some issues of ECC tool Add support for the usage which is defined in the above line for a Protocol/Ppi/Guid Add support for “!ERROR” Ignore issue of parsing a macro Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16487 6f19259b-4bc3-4df7-8a09-765794883524 commit 3720ee6d32219fd67d391f53f2cb812dc197a86b Author: Jeff Fan Date: Tue Dec 9 02:20:16 2014 +0000 Checking if gSmmCorePrivate->CommunicationBuffer is in supported physical address scope. If CommunicationBuffer is not in valid address scope, return EFI_INVALID_PARAMETER. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Michael D Kinney Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16486 6f19259b-4bc3-4df7-8a09-765794883524 commit baaacdc82378d432f1c9c6ae0625869a26c174e0 Author: Yao, Jiewen Date: Sat Dec 6 01:05:19 2014 +0000 Move EndOfPei signal earlier before giving control back to FspInitDone. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16480 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b559c1a1d2f76f87aeafcab2764ca00bb7f8f13 Author: Yao, Jiewen Date: Sat Dec 6 00:31:40 2014 +0000 Added missing gFspBootLoaderTemporaryMemoryGuid to the FspPlatformLib.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16479 6f19259b-4bc3-4df7-8a09-765794883524 commit 975f1c64174967c6e1e26d63892b630a6bea8b23 Author: Yao, Jiewen Date: Sat Dec 6 00:29:04 2014 +0000 Updated FspApiEntry.asm/.s to auto detect the size of the MCU region. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16478 6f19259b-4bc3-4df7-8a09-765794883524 commit 54190e8366e79b5b2baacb07dc43b481fd54baa0 Author: Qiu Shumin Date: Fri Dec 5 02:33:45 2014 +0000 ShellBinPkg: Ia32/X64 Shell binary update. The binaries of ShellBinPkg are generated with ShellPkg project 16473. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16477 6f19259b-4bc3-4df7-8a09-765794883524 commit 63c05743b481945e729f22554b0916e526e05a3d Author: Yao, Jiewen Date: Fri Dec 5 00:28:11 2014 +0000 Specify little-endian, and then use the “Standard size” from the chart. Enhance python tool. The default being native size (and alignment) means by default the standard sizes are not used, which might cause different behavior on difference compiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Andrew Fish" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16476 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e89d9ceeb3a69f3554471095ded6b0496fa541e Author: Yao, Jiewen Date: Thu Dec 4 06:03:58 2014 +0000 Fix typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16475 6f19259b-4bc3-4df7-8a09-765794883524 commit 59c30d741646018c7f9b4d86010133e0f698c1d0 Author: Yao, Jiewen Date: Thu Dec 4 06:01:15 2014 +0000 properly support GCC - pass 'I' (int) rather than 'L' (long) to struct.unpack. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16474 6f19259b-4bc3-4df7-8a09-765794883524 commit d86b04fbe9955e3fc56f3f529a505005ad3a090f Author: Qiu Shumin Date: Thu Dec 4 01:18:04 2014 +0000 ShellPkg: Connect all the consoles in "reconnect -r". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16473 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f586b85c3f617ba802e663b4b3b303e06140863 Author: Randy Pawell Date: Thu Dec 4 00:55:50 2014 +0000 NetworkPkg: Source fixes and cleanup for ARMGCC compiles - Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Delete excess local variables that are initialized but otherwise unused. - Add LibraryClasses.ARM & AARCH64 section in NetworkPkg.dsc file, containing a CompilerIntrinsicsLib null-library, required for successful standalone package builds (copied from MdeModulePkg.dsc). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell Reviewed-by: Fu Siyuan Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16472 6f19259b-4bc3-4df7-8a09-765794883524 commit 35f910f08b58e978bc9251872635075d6f422e48 Author: Randy Pawell Date: Thu Dec 4 00:32:24 2014 +0000 MdeModulePkg: Source fixes and cleanup for ARMGCC compiles - Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Fix a EFI_INPUT_KEY usage in TerminalDxe to use CopyMem() to copy the structure instead of direct assignment, to avoid runtime alignment error. - Delete excess local variables that are initialized but otherwise unused. - CompilerIntrinsicsLib library now imported for AARCH64, as well as ARM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell Reviewed-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16471 6f19259b-4bc3-4df7-8a09-765794883524 commit 40a0f8cb78cb6728039465b92d6808d262d2d110 Author: Liming Gao Date: Wed Dec 3 15:34:08 2014 +0000 MdeModulePkg: Unregister DXE FpdtStatusCodeHandler. DXE FpdtStatusCodeHandler is required to be unregistered even if StatusCodeReport is disabled. This change makes sure FpdtStatusCodeHandler be always unregistered. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Jiewen Yao Reviewed-by: Vincent Zimmer git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16470 6f19259b-4bc3-4df7-8a09-765794883524 commit 8546dfeace040f9f6547cb1b44651a44b8b9670e Author: Yingke Liu Date: Wed Dec 3 08:30:56 2014 +0000 Fix a regression bug to uni parser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16469 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e0699c06e985c2e5067e6ca93f1c2db863f1760 Author: Qin Long Date: Wed Dec 3 07:40:32 2014 +0000 Code clean-up to eliminate potential "dereferenced pointer" warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16468 6f19259b-4bc3-4df7-8a09-765794883524 commit 2aa580be6549536d7a6c57f73f928a69124fe679 Author: Bruce Cran Date: Tue Dec 2 21:30:41 2014 +0000 StdLib/BsdSocketLib: Fix function declaration mismatch with definition. Replace the existing old-style function declarations for Field, cvtbase and spectHex in BsdSocketLib with real prototypes. This allows StdLib to build using the GCC48 toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16467 6f19259b-4bc3-4df7-8a09-765794883524 commit b8ff0f16d9a01be8b972f3ea78bc64459d0ad6ba Author: Samer El-Haj-Mahmoud Date: Tue Dec 2 01:51:37 2014 +0000 Fix memory leak in Ip4Config. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Fu Siyuan Reviewed-by: Tian Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16465 6f19259b-4bc3-4df7-8a09-765794883524 commit 62771cee1d453fbb0dd2e38953e0d8b3a4506fa4 Author: Scott Duplichan Date: Tue Dec 2 00:44:04 2014 +0000 Fix ARM build failure with gcc 4.6. Gcc option -mno-unaligned-access is supported by gcc 4.7 and newer, so it shouldn't be used with gcc 4.6. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Yingke Liu Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16464 6f19259b-4bc3-4df7-8a09-765794883524 commit edafa0bbe423d5d6129f4d18de176dfd73b6cfcf Author: Yingke Liu Date: Mon Dec 1 08:22:07 2014 +0000 Enhance error handling for external tool. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16458 6f19259b-4bc3-4df7-8a09-765794883524 commit c1589a2c24abbc026120e3b045f9045448f64b2d Author: Liming Gao Date: Mon Dec 1 08:17:51 2014 +0000 PerformancePkg: Update comments on TscTimerLib TscTimerLib is a sample implementation that depends on chipset ACPI timer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16457 6f19259b-4bc3-4df7-8a09-765794883524 commit 71f02911b176657c1c8dc952f93a022719ea878a Author: Cecil Sheng Date: Mon Dec 1 01:05:05 2014 +0000 Corrected slash and quote handling in the strings of UNI files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16456 6f19259b-4bc3-4df7-8a09-765794883524 commit b04a63ac48a73329006d25e8b7518bc09bb9843c Author: Laszlo Ersek Date: Fri Nov 28 10:24:56 2014 +0000 MdePkg: UefiScsiLib: do not encode LUN in CDB for other SCSI commands The TEST UNIT READY, INQUIRY, MODE SENSE, REQUEST SENSE and READ CAPACITY commands define bits [7:5] of Cdb[1] as Reserved (potentially as part of a larger Reserved bitfield): Command Reserved bitfield in Cdb[1] SCSI spec reference ------------------ --------------------------- ------------------- TEST UNIT READY all bits SPC-4 6.37 INQUIRY bits [7:2] SPC-4 6.4.1 MODE SENSE (6) bits [7:4] SPC-4 6.11.1 MODE SENSE (10) bits [7:5] SPC-4 6.12 REQUEST SENSE bits [7:1] SPC-4 6.29 READ CAPACITY (10) bits [7:1] SBC-3 5.16 READ CAPACITY (16) bits [7:5] SBC-3 5.17 Update the UefiScsiLib functions accordingly. (In ScsiReadCapacity16Command() the LUN has not been encoded, so there we just remove the useless ScsiIo->GetDeviceLocation() call, with its auxiliary local variables.) The EFI_SCSI_TARGET_MAX_BYTES and EFI_SCSI_LOGICAL_UNIT_NUMBER_MASK macros become unused with this patch, remove them too. Suggested-by: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16455 6f19259b-4bc3-4df7-8a09-765794883524 commit c128d5281ffb25d8c335a3cce6a9a9497df57059 Author: Laszlo Ersek Date: Fri Nov 28 10:24:41 2014 +0000 MdePkg: UefiScsiLib: do not encode LUN in CDB for READ and WRITE The "SCSI Block Commands - 2" (SBC-2) standard defines bits [7:5] of the CDB byte 1 as Reserved, for the READ and WRITE commands. The updated "SCSI Block Commands - 3" (SBC-3) standard defines the same bitfield as RDPROTECT and WRPROTECT, respectively. After reviewing the above standards, and the following commits: - SVN r8331 (git 676e2a32), - SVN r8334 (git 6b3ecf5c), we've determined that UefiScsiLib is incorrect in encoding the LUN in this bitfield for the READ and WRITE commands. Encoding a nonzero LUN there creates unintended RDPROTECT and WRPROTECT values, which the recipient device is required to reject if it does not support protection information, with CHECK CONDITION, ILLEGAL REQUEST, INVALID FIELD IN CDB: ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! FatOpenDevice: read of part_lba failed Device Error In practice this flaw breaks UefiScsiLib minimally on SCSI disks with nonzero LUNs that are emulated by QEMU (after QEMU commit 96bdbbab, part of v1.2.0). RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1166971 Reported-by: Cole Robinson Suggested-by: Paolo Bonzini Suggested-by: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16454 6f19259b-4bc3-4df7-8a09-765794883524 commit 80fbf5863264e7330eea3dc5ed6153eab57ed3ff Author: Star Zeng Date: Thu Nov 27 02:51:04 2014 +0000 MdeModulePkg DxeCore: Check pointer AllocInfoData before dereferencing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16453 6f19259b-4bc3-4df7-8a09-765794883524 commit a71c80b66884511760f4c829375f069f6fa22c4f Author: Samer El-Haj-Mahmoud Date: Thu Nov 27 02:17:28 2014 +0000 Added PlatformNotification to ACPI 5.0 PCCT structure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16452 6f19259b-4bc3-4df7-8a09-765794883524 commit 2e097165e9ad2bfc373b2a8f1126267f14ca26a3 Author: Eric Dong Date: Thu Nov 27 02:14:14 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16451 6f19259b-4bc3-4df7-8a09-765794883524 commit 01331951708f980fca1fb3a791ab544adcd3a5d0 Author: Samer El-Haj-Mahmoud Date: Thu Nov 27 01:01:43 2014 +0000 MdeModulePkg: Misc comments and DEBUG messages Fixed some spelling typos in some comments. Added a couple of useful DEBUG messages Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16450 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bf41ed7dc20f0f6e13babb136753ff3f91edd21 Author: Qin Long Date: Wed Nov 26 08:21:54 2014 +0000 Correct the alignment calculation of PE/COFF attribute certificate entry. This is to resolve the possible certificate entry retrieving issue caused by un-aligned (8-bytes) VirtualAddress in some PE/COFF image, which may break secure boot. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Siyuan Fu Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16449 6f19259b-4bc3-4df7-8a09-765794883524 commit 8cc87d32c65316a98a737bb887ba316b81f8bbf1 Author: Samer El-Haj-Mahmoud Date: Wed Nov 26 07:17:31 2014 +0000 Fix an issue in the PCD service to prevent potential out of bound array access that can cause an exception. mPeiExMapppingTableSize is the table size, but the code needs to check the entry number. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16448 6f19259b-4bc3-4df7-8a09-765794883524 commit 42645c3dcf0488c616422dcdfd1596939223f432 Author: Eric Dong Date: Wed Nov 26 02:44:06 2014 +0000 Fixed user input arrow down/ page down caused form display highlight menu error. When scroll menu to the one not shows in current form, and this menu has option mismatch error, current display engine will not highlight this menu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16447 6f19259b-4bc3-4df7-8a09-765794883524 commit 59e4c8e2bde4c25a8e3ea6916b0bfa9f77025e31 Author: Peter Jones Date: Wed Nov 26 01:22:15 2014 +0000 EdkCompatibilityPkg: Make this field name match the name in the spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Peter Jones Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16446 6f19259b-4bc3-4df7-8a09-765794883524 commit 59febea1f5390c9cc2b3199f1a0be7c39f7bb203 Author: Samer El-Haj-Mahmoud Date: Tue Nov 25 22:41:30 2014 +0000 ShellPkg: Update Shell DH command to display more info. Decode for gEfiAdapterInformationProtocolGuid and added GUIDs for gEfiIsaIoProtocolGuid and gEfiIsaAcpiProtocolGuid protocols. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16445 6f19259b-4bc3-4df7-8a09-765794883524 commit 2790926d8228383c53cf8ede0c8ffba36a91ef90 Author: Ruiyu Ni Date: Tue Nov 25 08:53:33 2014 +0000 Change NT32 and DUET to use UEFI Shell by default. Use "-D USE_OLD_SHELL" for NT32 to use EDK Shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16444 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f0a062f8c5c46bffc911afda67e9f66e41af217 Author: Hess Chen Date: Tue Nov 25 04:58:17 2014 +0000 BaseTools/UPT: Fix an issue of storing wrong PCD into XML file. Fix an issue of storing wrong PCD into XML file to only store PcdEx for AsBuilt sections Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16426 6f19259b-4bc3-4df7-8a09-765794883524 commit d431bf6e56bac6e8b457a6531932dec13f03933a Author: Elvin Li Date: Tue Nov 25 03:38:20 2014 +0000 Initialize alarm register in PcRtc module entrypoint to make UEFI SCT GetWakeupTime pass. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Feng Tian Reviewed-by: Eric Jin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16425 6f19259b-4bc3-4df7-8a09-765794883524 commit 0db3fade2cc1e8e24e676d900664f6aac9bbda6c Author: jaben carsey Date: Mon Nov 24 14:58:33 2014 +0000 ShellPkg: Add extended USB decoding for consistent device names Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16423 6f19259b-4bc3-4df7-8a09-765794883524 commit 431dac944143d3529cc90b497d135bcb8006c60c Author: jaben carsey Date: Mon Nov 24 14:53:53 2014 +0000 MdePkg Add USB Spec constants to Usb.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16422 6f19259b-4bc3-4df7-8a09-765794883524 commit 07100795bedb67abc20a4d0c2c650aaace04f178 Author: jaben carsey Date: Mon Nov 24 14:52:50 2014 +0000 MdeModulePkg: remove usb defined info Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16421 6f19259b-4bc3-4df7-8a09-765794883524 commit cc4c331207b6556e1aaae2b603e7024d775da812 Author: jaben carsey Date: Mon Nov 24 14:50:14 2014 +0000 ShellPkg: Add optional extended decode for Vendor Device Nodes for consistent map names Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16420 6f19259b-4bc3-4df7-8a09-765794883524 commit 7475d13829e8f2d063553987c0f9d822cc7a1e36 Author: Jeff Fan Date: Mon Nov 24 04:57:40 2014 +0000 Add typecast to fix VS2005 build issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16419 6f19259b-4bc3-4df7-8a09-765794883524 commit 915a379b1c45d4e15f67e7ec5e6bb6ac6bbf0aa4 Author: Scott Duplichan Date: Mon Nov 24 02:43:17 2014 +0000 BaseTools: Extend support for Windows hosted gcc to versions 4.4-4.7. Revision 16400 adds support for Windows hosted gcc versions 4.8 and 4.9. With this change, all of the GCCXX tool chains can be used from Windows. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16418 6f19259b-4bc3-4df7-8a09-765794883524 commit 8864869a7f2148c7ac4c4fd46bddf8bcfafbd3d0 Author: Chen Fan Date: Fri Nov 21 22:46:49 2014 +0000 EmulatorPkg/MpService: add enabled processor check for startupThisAP if processor number is the one of disabled processor, startupThisAP should return invalid prameter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16417 6f19259b-4bc3-4df7-8a09-765794883524 commit c156d27b397489814a85f700abb584fc835644a7 Author: Chen Fan Date: Fri Nov 21 22:46:36 2014 +0000 EmulatorPkg/MpService: StartupAllAPs should verify processor state before setting state if any enabled APs are not in idle state, StartupAllAPs() should return immediately, and must not change the other idled processor state. so we checked the state before changed them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16416 6f19259b-4bc3-4df7-8a09-765794883524 commit ca186b1d4f186779a11319b1fa45a29de20534dc Author: Chen Fan Date: Fri Nov 21 22:46:26 2014 +0000 EmulatorPkg/MpService: fix wrong unsigned to signed variable transition Because TimeoutInMicrosecsond is a unsigned value, converting it to signed value will cause the data region changed. so this patch fix that. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16415 6f19259b-4bc3-4df7-8a09-765794883524 commit a99b5e629b7f37dbe2c521e4f2a2b74e27af33b3 Author: Laszlo Ersek Date: Fri Nov 21 09:40:47 2014 +0000 OvmfPkg: CsmSupportLib: depend on OvmfPkg.dec explicitly SVN r16375 (git commit 72a11001, "OvmfPkg: CsmSupportLib: Set/use platform specific legacy interrupt device") added the gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId PCD to CsmSupportLib. Since that "namespace" GUID is declared in OvmfPkg/OvmfPkg.dec, and we've not used anything from OvmfPkg/OvmfPkg.dec in CsmSupportLib.inf thus far, this is a new [Packages] dependency and must be named. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16414 6f19259b-4bc3-4df7-8a09-765794883524 commit 787fc2a6006cb2d44c6a63485679b58aa4ee34ad Author: Eric Dong Date: Fri Nov 21 01:23:09 2014 +0000 MdeModulePkg: Refine the get default value logic. Based on the input request to get default value for questions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16413 6f19259b-4bc3-4df7-8a09-765794883524 commit 76c94bb2dd4a8ff4852ecfb1ed87f7c789b8ba39 Author: Chris Phillips Date: Thu Nov 20 23:08:00 2014 +0000 ShellPkg: Fix 'parse' command to use ," for SFO column delimiter Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16412 6f19259b-4bc3-4df7-8a09-765794883524 commit 66b280df282ae82888d2eb416bfeda3f65afa386 Author: Laszlo Ersek Date: Thu Nov 20 09:58:28 2014 +0000 OvmfPkg: AcpiPlatformDxe: make dependency on PCI enumeration explicit The ACPI payload that OVMF downloads from QEMU via fw_cfg depends on the PCI enumaration and resource assignment performed by MdeModulePkg/Bus/Pci/PciBusDxe. Namely, although the ACPI payload is pre-generated in qemu during machine initialization, in main() [vl.c] qemu_run_machine_init_done_notifiers() pc_guest_info_machine_done() [hw/i386/pc.c] acpi_setup() [hw/i386/acpi-build.c] acpi_build() acpi_add_rom_blob() rom_add_blob(... acpi_build_update ...) [hw/core/loader.c] fw_cfg_add_file_callback() [hw/nvram/fw_cfg.c] the ACPI data is rebuilt at the first time any of the related fw_cfg files are read, through the acpi_build_update() fw_cfg read-callback function: fw_cfg_read() [hw/nvram/fw_cfg.c] acpi_build_update() [hw/i386/acpi-build.c] acpi_build() (See qemu commit d87072ceeccf4f84a64d4bc59124bcd64286c070 and its containing series.) For this reason we must not dispatch AcpiPlatformDxe before PciBusDxe completes the enumeration. Luckily, the PI Specification 1.3 defines EFI_PCI_ENUMERATION_COMPLETE_GUID in Volume 5, "10.9 End of PCI Enumeration Overview", as an indicia to inform the platform when the PCI enumeration process has completed. PciBusDxe installs this protocol at the end of the PciEnumerator() function. Let's add this GUID to the Depex section of AcpiPlatformDxe, in order to state the dependency explicitly. On Xen, and on older QEMU where the linker/loader fw_cfg interface is unavailable, this introduces a harmless ordering constraint -- we'll always include PciBusDxe in OVMF, so the dependency will always be satisfied. I tested this change as follows: - I dumped the ACPI tables in a Fedora 20 guest, before and after the change, and compared them. The only thing that actually changed was the FACS address. (Which I promptly tested with S3 suspend/resume.) Plus, of course, the FACP checksum changed, because the FACP links the FACS. - Tested S3 in my Windows Server 2008 R2 and Windows Server 2012 R2 guests. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16411 6f19259b-4bc3-4df7-8a09-765794883524 commit bab9f949bf1a72f33f89331bbffa9362de254945 Author: Qiu Shumin Date: Thu Nov 20 01:31:36 2014 +0000 ShellPkg: Code refine to avoid potential dereference of pointer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16410 6f19259b-4bc3-4df7-8a09-765794883524 commit 771ee5017be405df3a05ae8dce67552cab3b18b1 Author: Eugene Cohen Date: Thu Nov 20 01:23:49 2014 +0000 MdePkg/MdeModulePkg: Implement the missing SetMemorySpaceCapabilities function. It is defined in the PI Specification version 1.3. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16409 6f19259b-4bc3-4df7-8a09-765794883524 commit 48af14fd140adb607f4ea45f7078094c55508f81 Author: Scott Duplichan Date: Wed Nov 19 18:21:37 2014 +0000 OvmfPkg: Fix build failure with gcc44, gcc45 OvmfPkg/XenBusDxe/XenHypercall.h:19:31: error: redefinition of typedef 'XENBUS_DEVICE' OvmfPkg/XenBusDxe/XenBusDxe.h:86:31: note: previous declaration of 'XENBUS_DEVICE' was here Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Acked-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16408 6f19259b-4bc3-4df7-8a09-765794883524 commit 3ddcceea359145e26c97335689febf8e78538f46 Author: jaben carsey Date: Wed Nov 19 16:18:40 2014 +0000 [PATCH] MdeModulePkg: update poor wording in MdeModulePkg DEC/UNI file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16407 6f19259b-4bc3-4df7-8a09-765794883524 commit eb774e2ef5b4b91f9c90598683daa7db84e53dab Author: Star Zeng Date: Wed Nov 19 07:13:35 2014 +0000 MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16406 6f19259b-4bc3-4df7-8a09-765794883524 commit ac30bca0a37b0f88781ff447183970a523d1f5c3 Author: Star Zeng Date: Wed Nov 19 07:11:59 2014 +0000 MdeModulePkg DxeCore: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16405 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a5d9a3682ec17479a6e8cc184370471f8136a3c Author: Jeff Fan Date: Wed Nov 19 05:15:06 2014 +0000 UefiCpuPkg : Fix CpuDxe build issue with VS2005 tool chain !!() cannot pass VS2005 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Chen Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16404 6f19259b-4bc3-4df7-8a09-765794883524 commit fdb5bc72b64e1a19894a55151b4d82c54f857958 Author: Liming Gao Date: Wed Nov 19 02:47:02 2014 +0000 MdePkg DxePcdLib: Updates DxePcdLib instance comments. Describe PCD service can’t be used at Runtime phase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16403 6f19259b-4bc3-4df7-8a09-765794883524 commit c9e0bba3855c18728199b99dada6d03102ca331c Author: Liming Gao Date: Wed Nov 19 02:30:21 2014 +0000 MdeModulePkg BaseSerialPortLib16550: Correct MemoryLimit and MemoryBase offset. Their offset in PCI-to-PCI Bridge Configuration Space. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Michael Kinney Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16402 6f19259b-4bc3-4df7-8a09-765794883524 commit 18a7dbbc020f0aec63ae71d034f32617da1eec9e Author: Star Zeng Date: Wed Nov 19 01:08:23 2014 +0000 MdeModulePkg Variable: Add missing warning annotation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16401 6f19259b-4bc3-4df7-8a09-765794883524 commit 285a175441e661cc9d68c939ab0799ba6803ba51 Author: Scott Duplichan Date: Tue Nov 18 02:38:20 2014 +0000 BaseTools: Modify gcc 4.8 and 4.9 tool chain definition to support building from Windows. Here is a new patch that adds Windows support for both gcc 4.8.x and gcc 4.9.x. This time testing is more thorough: boot testing using Duet for all 4 combinations of IA32/X64 and gcc 4.8.2 and gcc 4.9.1 passes. A Windows hosted gcc 4.8.2 has been added here: http://sourceforge.net/projects/edk2developertoolsforwindows/ The environment variable settings for Windows look like: set UEFI_BUILD_TOOLS=%cd%\tools set NASM_PREFIX=%UEFI_BUILD_TOOLS%\nasm211\ set GCC48_BIN=%UEFI_BUILD_TOOLS%\gcc482-x86\bin\ set GCC48_DLL=%UEFI_BUILD_TOOLS%\gcc482-x86\dll\;%GCC48_BIN% set GCC48_ARM_PREFIX=%UEFI_BUILD_TOOLS%\gcc482-arm\bin\ set GCC48_AARCH64_PREFIX=%UEFI_BUILD_TOOLS%\gcc482-aarch64\bin\ set GCC49_BIN=%UEFI_BUILD_TOOLS%\gcc491-x86\bin\ set GCC49_DLL=%UEFI_BUILD_TOOLS%\gcc491-x86\dll\;%GCC49_BIN% set GCC49_ARM_PREFIX=%UEFI_BUILD_TOOLS%\gcc491-arm\bin\ set GCC49_AARCH64_PREFIX=%UEFI_BUILD_TOOLS%\gcc491-aarch64\bin\ No change is needed for building from Linux. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16400 6f19259b-4bc3-4df7-8a09-765794883524 commit d808fc659d06c76489c40c6d6a6f1cf9710aa64e Author: Liming Gao Date: Tue Nov 18 02:19:47 2014 +0000 BaseTools: Correct NASM output file type for UNIXGCC and CYGGCC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16399 6f19259b-4bc3-4df7-8a09-765794883524 commit 5218c27950c4d238abe85ab17127755cb6e39fbf Author: Gabriel Somlo Date: Mon Nov 17 19:09:12 2014 +0000 OvmfPkg: PlatformBdsLib: Dynamic PCI Interrupt Line register setup Remove hard-coded list of PCI devices for which the Interrupt Line register is initialized. Instead, provide a "visitor" function to initialize the register only for present and applicable PCI devices. At this time, we match the behavior of SeaBIOS (file src/fw/pciinit.c, functions *_pci_slot_get_irq() and "map the interrupt" block from pci_bios_init_device()). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16398 6f19259b-4bc3-4df7-8a09-765794883524 commit 9840b1299de78458a42d35b8d1d6cbadd1f6da72 Author: Chen Fan Date: Mon Nov 17 14:54:09 2014 +0000 UefiCpuPkg/CpuDxe: Put APs in wait for SIPI state at ExitBootServices when gBS->ExitBootServices() is called, the APs should avoid to access the unsafed buff datas which were allocated by boot services. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Tested-by: Gabriel Somlo Reviewed-by: Jordan Justen Reviewed-by: Jeff Fan Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16397 6f19259b-4bc3-4df7-8a09-765794883524 commit f44200276423fdfbce4ddb4ba118b7efa8d2385a Author: Star Zeng Date: Mon Nov 17 02:30:44 2014 +0000 MdeModulePkg DxeCore/PiSmmCore/MemoryProfileInfo: Fix EBC and VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16396 6f19259b-4bc3-4df7-8a09-765794883524 commit 1db55d6a827cc2625a48a494e426e64f0b36ac0e Author: Star Zeng Date: Mon Nov 17 01:53:41 2014 +0000 MdePkg Base.h: Fix EBC build failure and add comments for RETURN_ADDRESS macro. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16395 6f19259b-4bc3-4df7-8a09-765794883524 commit 46133008955b67110fff82b2f3af123143e492a1 Author: Anthony PERARD Date: Fri Nov 14 17:35:49 2014 +0000 OvmfPkg/XenBusDxe: Fix a nasm warning about instruction not lockable. The fix, having "lock" and the locked instruction on the same line in the source. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16394 6f19259b-4bc3-4df7-8a09-765794883524 commit 860088f298de6acb26ea007e1f72db23fc613951 Author: Scott Duplichan Date: Fri Nov 14 17:35:42 2014 +0000 OvmfPkg/XenPvBlkDxe: fix VS2010 build failures This patch contain type casts and replace one * operation by a MultU64x32() call. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16393 6f19259b-4bc3-4df7-8a09-765794883524 commit 017a48664a4f8718d00102eb94ac6b21185e5c21 Author: Scott Duplichan Date: Fri Nov 14 17:35:35 2014 +0000 OvmfPkg/XenBusDxe: fix VS2010 build failures This patch contain only type cast. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Acked-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16392 6f19259b-4bc3-4df7-8a09-765794883524 commit cec6ad0a4082545fa9f8d2b8e7612daa96f6672d Author: Anthony PERARD Date: Fri Nov 14 17:35:29 2014 +0000 OvmfPkg/XenBusDxe: Fix some types. This patch replace some types in GrantTable and the argument Index of XenHypercallHvmGetParam to what the types should be. This avoid to have type cast in code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16391 6f19259b-4bc3-4df7-8a09-765794883524 commit c47a842e411b79b717e00dd456ea79a893b3079e Author: Anthony PERARD Date: Fri Nov 14 17:35:21 2014 +0000 OvmfPkg/XenBusDxe: In XenStore, replace type of Len from UINTN to UINT32. Since a message to XenStore have a lenght of type UINT32, have XenStore.c deal only with UINT32 instead of a mixmatch with UINTN. This patch replaces the type of Len in WRITE_REQUEST and the type of the argument Len of XenStoreWriteStore and XenStoreReadStore. This patch should avoid to have type cast were it does not make sense to have them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16390 6f19259b-4bc3-4df7-8a09-765794883524 commit d547f31c32d72e68a3611f7c6db6a8236fe56c0f Author: Laszlo Ersek Date: Fri Nov 14 13:47:14 2014 +0000 SecurityPkg: VariableServiceSetVariable(): fix dbt <-> GUID association SVN r16380 ("UEFI 2.4 X509 Certificate Hash and RFC3161 Timestamp Verification support for Secure Boot") broke the "dbt" variable's association with its expected namespace GUID. According to "MdePkg/Include/Guid/ImageAuthentication.h", *all* of the "db", "dbx", and "dbt" (== EFI_IMAGE_SECURITY_DATABASE2) variables have their special meanings in the EFI_IMAGE_SECURITY_DATABASE_GUID namespace. However, the above commit introduced the following expression in VariableServiceSetVariable(): > - } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > - ((StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE) == 0) || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE1) == 0))) { > + } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > + ((StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE) == 0) || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE1) == 0)) > + || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE2)) == 0) { Simply replacing the individual expressions with the predicates "GuidMatch", "DbMatch", "DbxMatch", and "DbtMatch", the above transformation becomes: > - } else if (GuidMatch && > - ((DbMatch) || (DbxMatch))) { > + } else if (GuidMatch && > + ((DbMatch) || (DbxMatch)) > + || DbtMatch) { In shorter form, we change GuidMatch && (DbMatch || DbxMatch) into GuidMatch && (DbMatch || DbxMatch) || DbtMatch which is incorrect, because this way "dbt" will match outside of the intended namespace / GUID. The error was caught by gcc: > SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c: In function > 'VariableServiceSetVariable': > > SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c:3188:71: error: > suggest parentheses around '&&' within '||' [-Werror=parentheses] > > } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > ^ > cc1: all warnings being treated as errors Fix the parentheses. This change may have security implications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16389 6f19259b-4bc3-4df7-8a09-765794883524 commit afc18ead283886bfe4b3e21d0a315aead31228af Author: Laszlo Ersek Date: Fri Nov 14 10:24:33 2014 +0000 CryptoPkg: OpenSslSupport.h: edk2-ize offsetof() macro for gcc-4.8 / X64 Code added in SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp signature verification.") introduced many new uses of the offsetof() macro. Since the offsetof() macro in "OpenSslSupport.h" casts a pointer to an "int", it triggers a large number of error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] errors when building CryptoPkg with gcc-4.8 for X64. Remedy this by directing offsetof() to the OFFSET_OF() macro in "MdePkg/Include/Base.h" (which matches how "OpenSslSupport.h" resolves the va_*() macros too). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16388 6f19259b-4bc3-4df7-8a09-765794883524 commit 017c285ef1c326853c4a1390b741cecb57677162 Author: Laszlo Ersek Date: Fri Nov 14 10:24:21 2014 +0000 CryptoPkg: TimestampTokenVerify(): fix gcc-4.8 / Ia32 build failure SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp signature verification.") introduced the following build failure: > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c: In function > 'TimestampTokenVerify': > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:538:3: error: passing > argument 2 of 'd2i_TS_TST_INFO' from incompatible pointer type [-Werror] > TstInfo = d2i_TS_TST_INFO (NULL, &TstTemp, (int)TstSize); > ^ > In file included from CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:22:0: > CryptoPkg/Include/openssl/asn1t.h:803:10: note: expected 'const unsigned > char **' but argument is of type 'UINT8 **' > stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ > ^ > CryptoPkg/Include/openssl/asn1t.h:799:2: note: in expansion of macro > 'IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname' > IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ > ^ > CryptoPkg/Include/openssl/asn1t.h:778:42: note: in expansion of macro > 'IMPLEMENT_ASN1_FUNCTIONS_fname' > #define IMPLEMENT_ASN1_FUNCTIONS(stname) > IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) > ^ > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:136:1: note: in expansion of > macro 'IMPLEMENT_ASN1_FUNCTIONS' > IMPLEMENT_ASN1_FUNCTIONS (TS_TST_INFO) > ^ > cc1: all warnings being treated as errors Note that the cast (const unsigned char **) &TstTemp does not match the general edk2 coding style, but it *does* match other similar casts in this file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16387 6f19259b-4bc3-4df7-8a09-765794883524 commit faba4a14de81d4f20aa07336e7433835edd760f8 Author: Scott Duplichan Date: Fri Nov 14 10:24:08 2014 +0000 OvmfPkg: VirtioScsiDxe: drop 64-bit shift in PopulateRequest() (VS2010) "Lun" has type UINT64 in this function. The result of the expression (UINT8) ((Lun >> 8) | 0x40) depends only on bits [15:8] of "Lun", therefore we can cast "Lun" to UINT32 before shifting it. This eliminates an intrinsic when building with VS2010 for Ia32 / NOOPT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [lersek@redhat.com: added commit message] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16386 6f19259b-4bc3-4df7-8a09-765794883524 commit 75f8e3aaff4d77ec2a04c14633d63b67c651edda Author: Scott Duplichan Date: Fri Nov 14 10:23:55 2014 +0000 OvmfPkg: QemuVideoDxe: the VBE shim needs no 64-bit shifts (VS2010) The SegmentC local variable has type EFI_PHYSICAL_ADDRESS for (justified) style reasons. However, the 64-bit bit-shifts that it undergoes result in intrinsic calls when built with VS2010 for Ia32 / NOOPT. The concrete value of SegmentC, 0xC0000, and the results of the bitops that are based on it, are statically computeable. Cast SegmentC to UINT32 before subjecting it to bitwise operations; we can see in advance that this won't lead to range loss. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [lersek@redhat.com: dropped now superfluous outermost parens; commit msg] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16385 6f19259b-4bc3-4df7-8a09-765794883524 commit f7e899c7c74e5983e40e32257b33918ea6f466f0 Author: Scott Duplichan Date: Fri Nov 14 10:23:43 2014 +0000 OvmfPkg: flash driver: drop needlessly wide multiplication (VS2010) The current types of subexpressions used in QemuFlashPtr() are as follows. (We also show the types of "larger" subexpressions, according to operator binding.) mFlashBase + (Lba * mFdBlockSize) + Offset ^ ^ ^ ^ | | | | (UINT8*) EFI_LBA UINTN UINTN (UINT64) --------------------------------- ------ (UINT8*) UINTN ------------------------------------------ (UINT8*) When building with VS2010 for Ia32 / NOOPT, the 64-by-32 bit multiplication is translated to an intrinsic, which is not allowed in edk2. Recognize that "Lba" is always bounded by "mFdBlockCount" (an UINTN) here -- all callers of QemuFlashPtr() ensure that. In addition, the flash chip in question is always under 4GB, which is why we can address it at all on Ia32. Narrow "Lba" to UINTN, without any loss of range. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [commit message by lersek@redhat.com] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16384 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c5901528147af6f2d095a7b7d4bb73e19eeb365 Author: Laszlo Ersek Date: Fri Nov 14 10:23:33 2014 +0000 OvmfPg: flash driver: drop gratuitous 64-by-32 bit divisions (VS2010) In the InitializeVariableFvHeader() function, all three of "Offset", "Start" and "BlockSize" have type UINTN. Therefore the (Offset / BlockSize) and (Start / BlockSize) divisions can be compiled on all platforms without intrinsics. In the current expressions (EFI_LBA) Offset / BlockSize (EFI_LBA) Start / BlockSize "Offset" and "Start" are cast to UINT64 (== EFI_LBA), which leads to 64-by-32 bit divisions on Ia32, breaking the VS2010 / NOOPT / Ia32 build. The simplest way to fix them is to realize we don't need casts at all. (The prototypes of QemuFlashEraseBlock() and QemuFlashWrite() are visible via "QemuFlash.h", and they will easily take our UINTN quotients as UINT64.) Suggested-by: Scott Duplichan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16383 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e62c89c3ae0da2eeabb37c5ab299b928ebbbb30 Author: Laszlo Ersek Date: Fri Nov 14 10:23:21 2014 +0000 OvmfPg: flash driver: fix type of EFI_SIZE_TO_PAGES argument (VS2010) The MarkMemoryRangeForRuntimeAccess() function passes the Length parameter (of type UINT64) to the macro EFI_SIZE_TO_PAGES(). When building for the Ia32 platform, this violates the interface contract of the macro: [...] Passing in a parameter that is larger than UINTN may produce unexpected results. In addition, it trips up compilation by VS2010 for the Ia32 platform and the NOOPT target -- it generates calls to intrinsics, which are not allowed in edk2. Fix both issues with the following steps: (1) Demote the Length parameter of MarkMemoryRangeForRuntimeAccess() to UINTN. Even a UINT32 value is plenty for representing the size of the flash chip holding the variable store. Length parameter is used in the following contexts: - passed to gDS->RemoveMemorySpace() -- takes an UINT64 - passed to gDS->AddMemorySpace() -- ditto - passed to EFI_SIZE_TO_PAGES() -- requires an UINTN. This also guarantees that the return type of EFI_SIZE_TO_PAGES() will be UINTN, hence we can drop the outer cast. (2) The only caller of MarkMemoryRangeForRuntimeAccess() is FvbInitialize(). The latter function populates the local Length variable (passed to MarkMemoryRangeForRuntimeAccess()) from PcdGet32(PcdOvmfFirmwareFdSize). Therefore we can simply demote the local variable to UINTN in this function as well. - There's only one other use of Length in FvbInitialize(): it is passed to GetFvbInfo(). GetFvbInfo() takes an UINT64, so passing an UINTN is fine. Suggested-by: Scott Duplichan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16382 6f19259b-4bc3-4df7-8a09-765794883524 commit 42e2ff2eb4cda6013ab995757d867f566404cc55 Author: Garrett Kirkendall Date: Fri Nov 14 08:44:41 2014 +0000 MdeModulePkg/Core/PiSmmCore/PiSmmCore.c: Fix compiler warning about variable set but unused Fix compiler warning about variable set but unused by returning status of last operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Garrett Kirkendall Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16381 6f19259b-4bc3-4df7-8a09-765794883524 commit 20333c6d566748d7c78c1b546ba8f37c6d253dea Author: Qin Long Date: Fri Nov 14 08:41:12 2014 +0000 UEFI 2.4 X509 Certificate Hash and RFC3161 Timestamp Verification support for Secure Boot Main ChangeLogs includes: 1. Introduce the new GUID and structure definitions for certificate hash and timestamp support; 2. Update Image Verification Library to support DBT signature checking; 3. Update the related SecureBoot Configuration Pages; Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16380 6f19259b-4bc3-4df7-8a09-765794883524 commit 2e70cf8ade0dd1e023274f7358c7c72cfd17460c Author: Gabriel Somlo Date: Fri Nov 14 00:39:04 2014 +0000 OvmfPkg: PlatformBdsLib: Platform dependent PCI/IRQ initialization Merge PciInitialization() and AcpiInitialization() into a single function, PciAcpiInitialization(), and use a PCD set during PEI to detect the underlying platform type (PIIX4 or Q35/MCH) and therefore the addresses of the registers to be initialized. Add LNK[A-H] routing target initialization for the Q35 platform. Additionally, initialize PCI_INTERRUPT_LINE registers for the typical set of PCI devices included by QEMU with the Q35 machine type. The corresponding PIIX4 initialization of PCI_INTERRUPT_LINE registers is cleaned up and the list of PIIX4 PCI devices updated to the list typically included with QEMU. NOTE: The list of PCI devices for which we initialize PCI_INTERRUPT_LINE is hard-coded, and, depending on how QEMU devices are configured on the command line, may miss some devices, or (harmlessly) attempt to initialize devices which are not present in the system. A subsequent patch will replace this hard-coded list with a mechanism to correctly initialize PCI_INTERRUPT_LINE for applicable present PCI devices only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16379 6f19259b-4bc3-4df7-8a09-765794883524 commit 988e59868bcaa2c3efbb31bb1d1891ce11c82a10 Author: Gabriel Somlo Date: Fri Nov 14 00:38:53 2014 +0000 OvmfPkg: AcpiTimerLib: Switch additional stages to PCD-based Dxe instance Link DXE_SMM_DRIVER, UEFI_DRIVER, UEFI_APPLICATION, and SMM_CORE against a valid, non-asserting version of PcdLib, then switch them over to using the "Dxe" instance of AcpiTimerLib (instead of the "Base" version). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16378 6f19259b-4bc3-4df7-8a09-765794883524 commit f122712b42af3d63902c2c141e90d2c200df6790 Author: Gabriel Somlo Date: Fri Nov 14 00:38:35 2014 +0000 OvmfPkg: AcpiTimerLib: Use global variable during PEI_CORE and PEIM Since in OVMF both PEI_CORE and PEIM run from RAM, and thus may utilize global variables, use the "Base" AcpiTimerLib instance (instead of BaseRom) to take advantage of the improved efficiency of storing the timer register IO address in a global variable. This leaves only SEC using the BaseRomAcpiTimerLib instance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16377 6f19259b-4bc3-4df7-8a09-765794883524 commit 170ef2d91612350fd1d1bac9d77b3ce0bffda714 Author: Gabriel Somlo Date: Fri Nov 14 00:38:17 2014 +0000 OvmfPkg: AcpiTimerLib: Split into multiple phase-specific instances Remove local power management register access macros in favor of factored-out ones in OvmfPkg/Include/OvmfPlatforms.h Next, AcpiTimerLib is split out into three instances, for use during various stages: - BaseRom: used during SEC, PEI_CORE, and PEIM; - Dxe: used during DXE_DRIVER and DXE_RUNTIME_DRIVER; - Base: used by default during all other stages. Most of the code remains in AcpiTimerLib.c, to be shared by all instances. The two platform-dependent methods (constructor and InternalAcpiGetTimerTick) are provided separately by source files specific to each instance, namely [BaseRom|Base|Dxe]AcpiTimerLib.c. Since pre-DXE stages can't rely on storing data in global variables, methods specific to the "BaseRom" instance will call platform detection macros each time they're invoked. The "Base" instance calls platform detection macros only from its constructor, and caches the address required by InternalAcpiTimerTick in a global variable. The "Dxe" instance is very similar to "Base", except no platform detection macros are called at all; instead, the platform type is read via a dynamic PCD set from PlatformPei. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16376 6f19259b-4bc3-4df7-8a09-765794883524 commit 72a1100171a627ce26789c193ca7036eb8a5364a Author: Gabriel Somlo Date: Fri Nov 14 00:38:00 2014 +0000 OvmfPkg: CsmSupportLib: Set/use platform specific legacy interrupt device Use a PCD set from PEI to determine the legacy interrupt device number appropriate for the underlying platform type during protocol initialization. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16375 6f19259b-4bc3-4df7-8a09-765794883524 commit d55004dac9c762fa01c5656f7a2e6132ed7bfe38 Author: Gabriel Somlo Date: Fri Nov 14 00:37:39 2014 +0000 OvmfPkg: Add PCD for Host Bridge dev. ID (PcdOvmfHostBridgePciDevId) Set from PEI, this PCD allows subsequent stages (specifically DXE_DRIVER and DXE_RUNTIME_DRIVER) to infer the underlying platform type (e.g. PIIX4 or Q35/MCH) without the need to further query the Host Bridge for its Device ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16374 6f19259b-4bc3-4df7-8a09-765794883524 commit 97380beb15249f6abf4250ccccbae0f740649985 Author: Gabriel Somlo Date: Fri Nov 14 00:37:26 2014 +0000 OvmfPkg: PlatformPei: Platform specific ACPI power management setup Set up ACPI power management using registers determined based on the underlying (PIIX4 or Q35/MCH) platform type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16373 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e48c72c4cbbd24be3ec9835a7a428dce8064567 Author: Gabriel Somlo Date: Fri Nov 14 00:37:16 2014 +0000 OvmfPkg: Factor out platform detection (q35 vs. piix4) Introduce macros to detect the underlying platform and access its ACPI power management registers, based on querying the host bridge device ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16372 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a50c2728540b9c487c9eccf19548f5322851212 Author: Chen Fan Date: Thu Nov 13 18:30:18 2014 +0000 UefiCpuPkg/CpuDxe: install Mp Service protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16371 6f19259b-4bc3-4df7-8a09-765794883524 commit dee9376ffc6e5522bb5e50512b521952a5421fa5 Author: Jordan Justen Date: Thu Nov 13 18:30:09 2014 +0000 UefiCpuPkg/CpuDxe: Startup APs This sequence should happen: * CpuMp.c: Allocate a stack for the APs * ApStartup.c: Send Start IPI to wake APs in 16-bit real mode * MpAsm.S: AP enters CpuDxe driver code without stack - AP grabs a lock - AP sets up stack - AP calls CpuMp.c:ApEntryPointInC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16370 6f19259b-4bc3-4df7-8a09-765794883524 commit cd8c700b03e38e9389a8f13e193a431072802593 Author: Chen Fan Date: Thu Nov 13 18:29:54 2014 +0000 UefiCpuPkg/MpService: avoid dead lock caused by CheckAllAPsStatus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16369 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e724fc1981b3c47bb16432c4c414a50c9e3a519 Author: Chen Fan Date: Thu Nov 13 18:29:40 2014 +0000 UefiCpuPkg/MpService: avoid reset AP still hold a lock Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16368 6f19259b-4bc3-4df7-8a09-765794883524 commit 232eb4c82637e92b65ebbfc89a45e9daa8535171 Author: Chen Fan Date: Thu Nov 13 18:29:31 2014 +0000 UefiCpuPkg/MpService: free the unused cpu data buffer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16367 6f19259b-4bc3-4df7-8a09-765794883524 commit ac9dbb3b03313c7426c5bb15663b20b57ca771ce Author: Chen Fan Date: Thu Nov 13 18:29:13 2014 +0000 UefiCpuPkg/CpuDxe: introduce ResetApStackless() If timeout expires before AP returns from Procedure, the AP should be terminated, we introduce ResetApStackLess() to send init IPI to let AP exit Procedurce and re-available. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16366 6f19259b-4bc3-4df7-8a09-765794883524 commit fe078dd57f5e935c28eac7348b758ca6fb5e696f Author: Chen Fan Date: Thu Nov 13 18:29:01 2014 +0000 UefiCpuPkg/CpuDxe: split out StartupCode from StartApsStackless() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16365 6f19259b-4bc3-4df7-8a09-765794883524 commit e4aaf764281d12cb8bfe605393a5520e00715838 Author: Chen Fan Date: Thu Nov 13 18:28:48 2014 +0000 UefiCpuPkg/MpService: avoid next timer getting into CheckAllAPsStatus() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16364 6f19259b-4bc3-4df7-8a09-765794883524 commit d16cf36d2a226cf6a527099407b6b0b70a0f9faa Author: Chen Fan Date: Thu Nov 13 18:28:33 2014 +0000 UefiCpuPkg/MpService: Simply Lock usage Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16363 6f19259b-4bc3-4df7-8a09-765794883524 commit acb2172d15ed793c8ae0484700d42dcc105f2ea1 Author: Chen Fan Date: Thu Nov 13 18:28:20 2014 +0000 UefiCpuPkg/MpService: move settimer out to InitMpSystemData Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16362 6f19259b-4bc3-4df7-8a09-765794883524 commit 9908a829d0c1c92ca9bf462c0d9210f63784c131 Author: Chen Fan Date: Thu Nov 13 18:28:10 2014 +0000 UefiCpuPkg/CpuDxe: Ap do loop routine to execute procedure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16361 6f19259b-4bc3-4df7-8a09-765794883524 commit b7c05ba5173f4ae8ccfc901755aa79dcc97ebde2 Author: Chen Fan Date: Thu Nov 13 18:27:52 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:SwitchBSP() by now, SwitchBSP() always return UNSUPPORTED Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16360 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fee172fb75ba07df4638abfd0cfc0ce83fc1073 Author: Chen Fan Date: Thu Nov 13 18:27:34 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:StartupAllAPs() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16359 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f4f0af8724c56ed6fac052b5086e33511aa9a80 Author: Chen Fan Date: Thu Nov 13 18:27:21 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:StartupThisAP() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16358 6f19259b-4bc3-4df7-8a09-765794883524 commit fa7ce675b991bca6e18fcda8446737717ae3c1f6 Author: Chen Fan Date: Thu Nov 13 18:27:09 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:EnableDisableAP() Due to the implementation of AcquireSpinLock() is not MP safe, so we should use AcquireSpinLockOrFail directly instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16357 6f19259b-4bc3-4df7-8a09-765794883524 commit e7938b5a869fc42df7f026752f39ea85090eb3f9 Author: Chen Fan Date: Thu Nov 13 18:26:53 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:GetProcessorInfo() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16356 6f19259b-4bc3-4df7-8a09-765794883524 commit d894d8b704324da8ed902677703ed9d4f7c85076 Author: Chen Fan Date: Thu Nov 13 18:26:42 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:GetNumberOfProcessors() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16355 6f19259b-4bc3-4df7-8a09-765794883524 commit cfa2fac1f667b227a29a2219321b651c7a143071 Author: Chen Fan Date: Thu Nov 13 18:26:32 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol: WhoAmI() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16354 6f19259b-4bc3-4df7-8a09-765794883524 commit 03673ae11e255b9467e8f317175495b1ff79f965 Author: Chen Fan Date: Thu Nov 13 18:26:23 2014 +0000 UefiCpuPkg/CpuDxe: introduce MP_SYSTEM_DATA for Mp Service Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16353 6f19259b-4bc3-4df7-8a09-765794883524 commit 003973d98cf1ef84ab810cb4f3870acd3a7f40a6 Author: Chen Fan Date: Thu Nov 13 18:26:13 2014 +0000 UefiCpuPkg/CpuDxe: introduce EFI_MP_SERVICES_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16352 6f19259b-4bc3-4df7-8a09-765794883524 commit e343f8f7b35a400bb1d6e0edd7dddc53dd9e436d Author: Chen Fan Date: Thu Nov 13 18:26:03 2014 +0000 UefiCpuPkg/CpuDxe: Switch Ap Stack to NewStack All APs use the same common stack to initialization. after initialization, APs should switch to the stack of its own. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16351 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a26a597a38d36c670a5c1ce0bf54c8a413a1868 Author: Chen Fan Date: Thu Nov 13 18:25:48 2014 +0000 UefiCpuPkg/CpuDxe: introduce two PCD value introduce PCD value: PcdCpuMaxLogicalProcessorNumber and PcdCpuApStackSize, used for initialize APs stacks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16350 6f19259b-4bc3-4df7-8a09-765794883524 commit 533263ee5a7fe83ad5a0d2da74ff30815c5ab63c Author: Jordan Justen Date: Thu Nov 13 18:25:29 2014 +0000 UefiCpuPkg/CpuDxe: Add StartApsStackless routine This routine starts the APs and directs them to run the specified code. The specified code is entered without a stack being available. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16349 6f19259b-4bc3-4df7-8a09-765794883524 commit a1e8986d97d8b3ce3ef2ff9d81f2d6ddf9d8dd1f Author: Jordan Justen Date: Thu Nov 13 18:25:10 2014 +0000 UefiCpuPkg/CpuDxe: Move GDT structures into CpuGdt.h We'll want to use the structures for AP startup. Note: It seems previously we were not using '#pragma pack ()' in CpuGdt.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16348 6f19259b-4bc3-4df7-8a09-765794883524 commit fab82c1873b792bce33fb22c32db71324fc0ac3b Author: Jordan Justen Date: Thu Nov 13 18:24:59 2014 +0000 UefiCpuPkg/CpuDxe: Add stackless assembly AP entry points The AP startup code simply jumps into this code with the CpuDxe driver without setting up a stack for the processor. Therefore, this code must setup the stack before calling into C code. This is the basic flow: * AP enters CpuDxe driver code (AsmApEntryPoint) without stack - AP grabs a lock - AP sets up stack - AP calls CpuMp.c:ApEntryPointInC - If ApEntryPointInC returns, the lock is freed, and another AP may run - The AP C code may call AsmApDoneWithCommonStack to indicate that the AP is no longer using the stack, and another may therefore proceed to use the stack and then call ApEntryPointInC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16347 6f19259b-4bc3-4df7-8a09-765794883524 commit 1535c888c6f06bb35881e83cd7ee49fb8554942b Author: Jordan Justen Date: Thu Nov 13 18:24:43 2014 +0000 UefiCpuPkg/CpuDxe: Add ApEntryPointInC This is the function the AP assembly code will expect to call after getting a lock and setting up the stack. Only one AP will enter this routine at a time. If ApEntryPointInC exits, then the assembly code will loop around to grab the lock, setup the stack, and call ApEntryPointInC again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16346 6f19259b-4bc3-4df7-8a09-765794883524 commit 6022e28cf744a885c278dad256d50670741ea123 Author: Jordan Justen Date: Thu Nov 13 18:24:25 2014 +0000 UefiCpuPkg/CpuDxe: Add no-op InitializeMpSupport Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16345 6f19259b-4bc3-4df7-8a09-765794883524 commit 37ec4d9af79197dcc93810f230af7a3fe2d0d243 Author: Ard Biesheuvel Date: Thu Nov 13 16:41:51 2014 +0000 ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable Even if the CPU id registers indicate hardware support for the System Register interface to the GIC, higher exception levels may disable that interface and only allow access through MMIO. So move the enabling of the SRE bit to the GIC version detection routine: if we trigger an exception, we would have anyway at a later stage, so the net effect is the same. However, if setting the bit doesn't stick, it means we can switch to MMIO and proceed normally otherwise. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16344 6f19259b-4bc3-4df7-8a09-765794883524 commit 77d5dac5c62ec8c8e732571ed70c9204bddf7695 Author: Olivier Martin Date: Thu Nov 13 11:06:00 2014 +0000 ArmPkg/ArmGic: Removed 'GCC' toolchain to build assembly files ARMCC6 toolchain (LLVM based) understands the GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16343 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b589522873f1ce1c221e0d6502788230162e86f Author: Jaben Carsey Date: Wed Nov 12 21:28:51 2014 +0000 [PATHC] ShellPkg: control code flow with a PCD Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16342 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d3b9d332db5c2350cd567fa37a2d90170168b6a Author: Jordan Justen Date: Wed Nov 12 20:33:36 2014 +0000 OvmfPkg/XenPvBlkDxe: Don't include system inttypes.h EDK II code should not include system include files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Anthony PERARD git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16341 6f19259b-4bc3-4df7-8a09-765794883524 commit a23eb77b45f4940b04a49cbd6d40ce46f8c677f6 Author: Scott Duplichan Date: Wed Nov 12 10:01:41 2014 +0000 ArmPlatformPkg: fix undefined reference to memcpy Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16340 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ac68e8b549b646607149919a2780bcd7234d92d Author: Qin Long Date: Wed Nov 12 08:51:45 2014 +0000 CryptoPkg Updates to support RFC3161 timestamp signature verification. The main changes includes: 1. Enabling SHA384 and SHA512 digest algorithm; (Sha512.c) 2. RFC 3161 timestamp signature verification support; (CryptTs.c) 3. Fixed one ASN.1 length encoding issue in Authenticode verification routine. (CryptAuthenticode.c) 4. Add the corresponding test cases in Cryptest utility (SHA384 & SHA512 & Timestamp verification) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Ting Ye git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16339 6f19259b-4bc3-4df7-8a09-765794883524 commit bcbdc75535d376d710cd864fb3cf5129c7dfcaff Author: Yingke Liu Date: Wed Nov 12 08:26:03 2014 +0000 BaseTools: Fix a cleanall issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16338 6f19259b-4bc3-4df7-8a09-765794883524 commit 6da5153cfcb6c3f04226183deeb242ca7ffad678 Author: Fu Siyuan Date: Wed Nov 12 05:14:07 2014 +0000 Fix a bug in DHCP6 driver when using DUID LLT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Dong Eric Reviewed-by: Wu Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16337 6f19259b-4bc3-4df7-8a09-765794883524 commit 09fc7dbb9498cc7d56a7427fcacb4e77b47e87e5 Author: Star Zeng Date: Wed Nov 12 03:30:11 2014 +0000 EdkCompatibilityPkg: Add UEFI memory and SMRAM profile support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16336 6f19259b-4bc3-4df7-8a09-765794883524 commit 84edd20bd0756ef5719835498d4283435d6b5e77 Author: Star Zeng Date: Wed Nov 12 03:27:48 2014 +0000 MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16335 6f19259b-4bc3-4df7-8a09-765794883524 commit dad83a8c1207e585b2cb417d0680fe2e9452d262 Author: Star Zeng Date: Wed Nov 12 03:18:09 2014 +0000 MdePkg: Add RETURN_ADDRESS macro into Base.h. Based on compiler intrinsic function. MSVC: _ReturnAddress GCC: __builtin_return_address Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16334 6f19259b-4bc3-4df7-8a09-765794883524 commit 1531a469ebc1e0130af04aa10c533b497fc3198a Author: Qiu Shumin Date: Wed Nov 12 01:07:23 2014 +0000 ShellPkg: Add type cast to avoid build failure in VS2005. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16333 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b980b679643eb4d46370f25ec26e287bb5e15bc Author: Daryl McDaniel Date: Tue Nov 11 23:15:32 2014 +0000 AppPkg: Disable Lua builds by default. Update the ReadMe file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Bruce Maynard git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16332 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b2cf923c0ffdb00cc05373d3f295f0ad086c978 Author: Daryl McDaniel Date: Tue Nov 11 22:56:58 2014 +0000 StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with VS2005. AppPkg.dsc: Remove IPF support and add NOOPT build target. StdLib.dsc: Add NOOPT build target. daConsole.c: Cast a comparison to BOOLEAN before assigning it to a BOOLEAN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16331 6f19259b-4bc3-4df7-8a09-765794883524 commit 8200fcfe54808ec0704f405c8f8e718e6452143e Author: Yingke Liu Date: Tue Nov 11 07:33:50 2014 +0000 BaseTool: Support EDKII style GUID definition for VFR function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16330 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a2928934b37e798a15ecc8546b8432057d090bf Author: Olivier Martin Date: Tue Nov 11 00:52:46 2014 +0000 ArmPkg/ArmArchTimerLib: Promotes 32bit value to prevent overflow Both MicroSeconds and PcdArmArchTimerFreqInHz are 32-bit values on AArch32 so their multiplication produces 32-bit result that might cause wrong calculation. Example: With MicroSeconds = 200 us, PcdArmArchTimerFreqInHz = 24MHz. 200*24000000 = 0x1_1E1A_3000 => So 0x1E1A_3000 when the type is UINT32. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16329 6f19259b-4bc3-4df7-8a09-765794883524 commit 284fb5c811fb7784ee3afa753dbdf5b389c4cdce Author: Olivier Martin Date: Tue Nov 11 00:52:11 2014 +0000 ArmPkg/CompilerIntrinsicesLib: Fixed memmove() and memset() - Fixed memmove when going backward: the copy started one byte after the end of the region to copy - memset: - removed unused register - fixed arguments size and character arguments were actually reversed - Added memmove() to ARM32 GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16328 6f19259b-4bc3-4df7-8a09-765794883524 commit fb7ea6114a780b2fe0da56156d65fa7659ffe2e2 Author: Olivier Martin Date: Tue Nov 11 00:51:11 2014 +0000 ArmPkg: Ensured the stack is always quad-word aligned From the AArch64 Procedure Call Standard (ARM IHI 0055B): 5.2.2.1 Universal stack constraints At all times the following basic constraints must hold: - SP mod 16 = 0. The stack must be quad-word aligned. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16327 6f19259b-4bc3-4df7-8a09-765794883524 commit 6382e5df4e320b8b7db40bccbeccbd89d368d52f Author: Ronald Cron Date: Tue Nov 11 00:49:50 2014 +0000 EmbeddedPkg/Lan9118Dxe: Remove link check in SNP initialization The UEFI specification does not require the initialisation and reset interface to check if an Ethernet cable is connected or not, and provides the GetStatus() interface to do this. Furthermore, the 'Managed Network Protocol' take care of the cable connection check in edk2 network stack. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16326 6f19259b-4bc3-4df7-8a09-765794883524 commit bb5420bb2b5fa146de1ddf2da5932b214e5743a9 Author: Leif Lindholm Date: Tue Nov 11 00:43:03 2014 +0000 ArmPlatformPkg: Increase more ARM address Pcd entries to 64-bit. Some AArch64 platforms have RAM and flash devices >4GB. Update some additional Pcd entries to 64-bit, and change the corresponding PcdGet32 calls to PcdGet64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16325 6f19259b-4bc3-4df7-8a09-765794883524 commit 2a7e98a8cceb4546c602e6e50bafacf8a0595d59 Author: Daryl McDaniel Date: Mon Nov 10 23:05:45 2014 +0000 StdLib: Fix a "potentially uninitialized variable" error. gdtoa/gdtoa.c: Several "goto" paths allowed the initialization of a variable to be bypassed. Initialized it at the top of the function in order to eliminate the error. Updated the file header and copyright notices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16324 6f19259b-4bc3-4df7-8a09-765794883524 commit 931b2cff42df2042e504421b71b8710a4dc32bda Author: Olivier Martin Date: Mon Nov 10 10:20:25 2014 +0000 ShellPkg: Fixed variable set but never used This warning/error raised by ARM toolchain prevents to build the EFI Shell for ARM 32-bit with this toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16323 6f19259b-4bc3-4df7-8a09-765794883524 commit ace354f10ba7ca424a96512b634ebee8225014f1 Author: Ruiyu Ni Date: Mon Nov 10 08:47:49 2014 +0000 Fix a bug in DebugAgent that hang happens when the ACK for GO is lost. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16322 6f19259b-4bc3-4df7-8a09-765794883524 commit 1ff1dd0ff97b05bf88e50120ba49b435601d5ee8 Author: Feng Tian Date: Mon Nov 10 05:46:21 2014 +0000 MdeModulePkg/AtaAtapiPassThru: don't write read-only AHCI MMIO register Per AHCI 1.1 spec, AE bit of GHC register is read-only if CAP.SAM is 1 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16321 6f19259b-4bc3-4df7-8a09-765794883524 commit 33985e3b52ee2e4b5064331134d983e55a7da904 Author: Chao Zhang Date: Mon Nov 10 05:01:15 2014 +0000 Fix execution status & DEBUG message level mismatch. EFI_D_ERROR is used only when failure/case can’t be resolved by code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Dong Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16320 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f6c3a1fb628be2b8fb68add9f166d8fa51a9c70 Author: Anthony PERARD Date: Sat Nov 8 02:41:35 2014 +0000 OvmfPkg XenBusDxe: Convert X64/TestAndClearBit.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/TestAndClearBit.asm to X64/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16319 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428 Author: Anthony PERARD Date: Sat Nov 8 02:41:28 2014 +0000 OvmfPkg XenBusDxe: Convert X64/InterlockedCompareExchange16.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/InterlockedCompareExchange16.asm to X64/InterlockedCompareExchange16.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16318 6f19259b-4bc3-4df7-8a09-765794883524 commit 60aafa1bdee040c366da84f58a660df505fbff92 Author: Anthony PERARD Date: Sat Nov 8 02:41:15 2014 +0000 OvmfPkg XenBusDxe: Convert X64/hypercall.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/hypercall.asm to X64/hypercall.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16317 6f19259b-4bc3-4df7-8a09-765794883524 commit 31c0aa2fd09b9ca7764ae43458d379995baa8637 Author: Anthony PERARD Date: Sat Nov 8 02:41:07 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/TestAndClearBit.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/TestAndClearBit.asm to Ia32/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16316 6f19259b-4bc3-4df7-8a09-765794883524 commit 09c3757bc429b3066133a87ad8271e21fad46518 Author: Anthony PERARD Date: Sat Nov 8 02:40:58 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/InterlockedCompareExchange16.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/InterlockedCompareExchange16.asm to Ia32/InterlockedCompareExchange16.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16315 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e7ca01de038f0f4ee3df8fabf0caa2eb804379c Author: Anthony PERARD Date: Sat Nov 8 02:40:44 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/hypercall.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/hypercall.asm to Ia32/hypercall.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16314 6f19259b-4bc3-4df7-8a09-765794883524 commit 16a5fed65808adf648004b34f98718301d718fa2 Author: darylm503 Date: Fri Nov 7 20:18:01 2014 +0000 AppPkg: Add the Lua interpreter and library. StdLib: Add support and include files for Lua. The sources for the Lua standalone interpreter, as well as its library, have been added to AppPkg/Applications/Lua. The Lua library, LuaLib, can be used to embed Lua into new applications. The Lua header files, needed for both building and embedding, are located in StdLib/Include/Lua. The original versions of these header files, in the source directory, have been converted into stubs that reference the include files in StdLib. This allows us to keep the Lua sources as close to the distributed version as possible. Documentation is contained in the Lua/doc directory. Further information is available at www.lua.org. Contributed-under: TianoCore Contribution Agreement 1.0 Signed Off by: Bruce Maynard Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16313 6f19259b-4bc3-4df7-8a09-765794883524 commit c058d59f40b4a95c218cd171ff976bee1ff487e2 Author: jyao1 Date: Fri Nov 7 13:43:05 2014 +0000 Add safe string function to base lib. Contributed-under: TianoCore Contribution Agreement 1.0 signed off by: Yao, Jiewen reviewed by: Ni, Ruiyu reviewed by: Long, Qin reviewed by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16312 6f19259b-4bc3-4df7-8a09-765794883524 commit 848834cbd167c828e43e4dd0f316b6f00d2f6834 Author: Laszlo Ersek Date: Thu Nov 6 14:21:21 2014 +0000 OvmfPkg: set video resolution of text setup to 640x480 On a physical screen such a low graphics resolution would lead to huge glyphs (the text resolution is 80x25, centered, with 8x19 pixel glyphs). But in a virtual machine it just saves screen real estate on the client, by removing the black bands. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16311 6f19259b-4bc3-4df7-8a09-765794883524 commit b1220e28202221fa987492f65f538f7acb8b7e7f Author: Laszlo Ersek Date: Thu Nov 6 14:21:15 2014 +0000 OvmfPkg: BDS: drop custom boot timeout, revert to IntelFrameworkModulePkg's PlatformBdsEnterFrontPage() already implements a keypress wait (for entering the setup utility at boot) with a nice progress bar, only OVMF has not been using it. Removing our custom code and utilizing PlatformBdsEnterFrontPage()'s builtin wait has the following benefits: - It simplifies OVMF's BDS code. - Because now we call PlatformBdsEnterFrontPage() unconditionally, it actually has a chance to look at the EFI_OS_INDICATIONS_BOOT_TO_FW_UI bit of the "OsIndications" variable, improving compliance with the UEFI specification. References: - https://bugzilla.redhat.com/show_bug.cgi?id=1153927 - http://thread.gmane.org/gmane.comp.bios.tianocore.devel/10487 - The progress bar looks nice. (And it keeps the earlier behavior intact, when the user presses a key on the TianoCore splash screen.) In any case, we set the timeout to 0 (which doesn't show the progress bar and proceeds to the boot options immediately) in order to keep the boot time down. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16310 6f19259b-4bc3-4df7-8a09-765794883524 commit b90ffb9fc8360345138f50988a8a1bd339f80da1 Author: Laszlo Ersek Date: Thu Nov 6 14:21:09 2014 +0000 OvmfPkg: BDS: drop superfluous "connect first boot option" logic This is again obviated by our earlier BdsLibConnectAll() call. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16309 6f19259b-4bc3-4df7-8a09-765794883524 commit 547222da31347418296baff7aa879c244bf9c106 Author: Laszlo Ersek Date: Thu Nov 6 14:21:03 2014 +0000 OvmfPkg: BDS: optimize second argument in PlatformBdsEnterFrontPage() call The second parameter of said function is "ConnectAllHappened", and if set to TRUE, the function sets "gConnectAllHappened" to TRUE. This global variable in turn controls whether Intel BDS code *itself* calls BdsLibConnectAllDriversToAllControllers() in various places -- if the indicator is TRUE, then the "connect all" is assumed to have been performed, and Intel BDS doesn't do it itself. OVMF should pass TRUE as "ConnectAllHappened", because a few lines before our call to PlatformBdsEnterFrontPage(), we already connect everything with BdsLibConnectAll(), which includes the effects of BdsLibConnectAllDriversToAllControllers(): PlatformBdsPolicyBehavior() [OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c] BdsLibConnectAll() [IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c] BdsLibConnectAllDriversToAllControllers() PlatformBdsEnterFrontPage() [IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16308 6f19259b-4bc3-4df7-8a09-765794883524 commit 5126ef789dd31312fa6722f9c9b77a9d7700371d Author: Laszlo Ersek Date: Thu Nov 6 14:20:58 2014 +0000 OvmfPkg: BDS: don't overwrite the BDS Front Page timeout The PlatformBdsEnterFrontPage() function's first parameter, "TimeoutDefault", determines the behavior of the setup utility: - If (TimeoutDefault == 0), then the usual boot order is to be acted upon immediately. - If (TimeoutDefault == 0xFFFF), then the setup utility is entered unconditionally. - If (0 < TimeoutDefault && TimeoutDefault < 0xFFFF), then the PlatformBdsEnterFrontPage() function displays a progress bar, waiting for TimeoutDefault seconds. If the user presses a key, then the setup utility is entered, otherwise the normal boot option processing takes place. The TimeoutDefault parameter is supposed to be set from gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut which has the following (matching) documentation in "IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec": The number of seconds that the firmware will wait before initiating the original default boot selection. A value of 0 indicates that the default boot selection is to be initiated immediately on boot. The value of 0xFFFF then firmware will wait for user input before booting. OVMF does this actually -- see the Timeout variable in PlatformBdsPolicyBehavior() -- but right before calling PlatformBdsEnterFrontPage(), OVMF hardwires TimeoutDefault to 0xFFFF. This has been acceptable until now, because OVMF implements its own "wait for keypress at the splash screen" logic in PlatformBdsPolicyBehavior(), completely avoiding the progress bar mentioned above. OVMF only calls PlatformBdsEnterFrontPage() when the user presses a key during its own "splash screen wait", and *then* it indeed makes sense to enter the setup utility unconditionally. However, even that way, the Timeout = 0xffff; assignment is superfluous, because 0xFFFF is already the default value of PcdPlatformBootTimeOut in "IntelFrameworkModulePkg.dec", and OvmfPkg doesn't override it in its DSC files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16307 6f19259b-4bc3-4df7-8a09-765794883524 commit 260ab573d0f988e79187dba5d6aa347cc545bfd6 Author: Laszlo Ersek Date: Thu Nov 6 14:20:52 2014 +0000 OvmfPkg: BDS: drop useless return statement Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16306 6f19259b-4bc3-4df7-8a09-765794883524 commit 157421066ac009d31dafdc5462eceb26f337b536 Author: Laszlo Ersek Date: Thu Nov 6 14:20:44 2014 +0000 OvmfPkg: BDS: remove dead call to PlatformBdsEnterFrontPage() This call has been dead since the conception of OvmfPkg (git commit 49ba9447 / SVN r8398), and only confuses readers -- let's remove it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16305 6f19259b-4bc3-4df7-8a09-765794883524 commit e0763f87575cbd58bc38c4220e59010265a620e1 Author: Eric Dong Date: Thu Nov 6 08:56:54 2014 +0000 Try to read key strike even when the TimeOuts value is zero, this will avoid BDS not get user input when TimeOuts value set to zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16304 6f19259b-4bc3-4df7-8a09-765794883524 commit 8fd82c235df3b473c1572081a2b8bb00273bd2d6 Author: Jeff Fan Date: Thu Nov 6 06:13:22 2014 +0000 Remove un-used PPI reference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16303 6f19259b-4bc3-4df7-8a09-765794883524 commit b85f57995e010db57dc46be445c444d42a8939f2 Author: Olivier Martin Date: Wed Nov 5 18:56:17 2014 +0000 BaseTools/GenFw: Fixed R_AARCH64_CALL26/R_AARCH64_JUMP26 when referring to start of a section When R_AARCH64_CALL26/R_AARCH64_JUMP26 relocations referred to static functions, they sometime refer to the start of the '.text' section + addend. It means the addend is different of '0'. The non-patched code (before applying the relocation) already contains the correct offset. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16302 6f19259b-4bc3-4df7-8a09-765794883524 commit be91c7706958e822885ebec36b48483b142755cd Author: Gao, Liming Date: Wed Nov 5 12:09:22 2014 +0000 MdeModulePkg: Add InSmm() API in PiSmmCoreSmmServicesTableLib instance Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Fan, Jeff git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16301 6f19259b-4bc3-4df7-8a09-765794883524 commit 658bf43ecfe96df1cdc005a15f0af1dcc79de09b Author: jcarsey Date: Tue Nov 4 22:33:16 2014 +0000 ShellPkg: Fix timezone command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16300 6f19259b-4bc3-4df7-8a09-765794883524 commit f9080cdd088852935fac889fc9fd180a62459e80 Author: Chen Fan Date: Tue Nov 4 09:17:37 2014 +0000 MdePkg: fix comments typo about EFIAPI for X64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16299 6f19259b-4bc3-4df7-8a09-765794883524 commit 4fe43eb3e99590c05ab0e4f73dd9d734b0e110ac Author: Jeff Fan Date: Tue Nov 4 01:29:20 2014 +0000 1. Remove any references on other files from DebugTimer.c, to avoid un-used symbols linked. 2. Add GLOBAL_REMOVE_IF_UNREFERENCED for all global variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16298 6f19259b-4bc3-4df7-8a09-765794883524 commit 26830e857906951617d9c75f404139e40e52e62f Author: Jordan Justen Date: Fri Oct 31 22:05:50 2014 +0000 EDK II Contributions.txt: Update patch format information Update to show what the patch looks like in email form. NOTE: This does not modify the wording of the "TianoCore Contribution Agreement 1.0" section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16297 6f19259b-4bc3-4df7-8a09-765794883524 commit 489c5c67d0b20cb508429ac7ec9dcc613c12dd72 Author: Anthony PERARD Date: Fri Oct 31 21:25:44 2014 +0000 OvmfPkg/XenBusDxe: Fix initialisation of gXenBusDevicePathTemplate .. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16296 6f19259b-4bc3-4df7-8a09-765794883524 commit 43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe Author: Anthony PERARD Date: Fri Oct 31 21:25:36 2014 +0000 OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData .. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16295 6f19259b-4bc3-4df7-8a09-765794883524 commit e26a83cd29073c6528aee29226c4795ae1b1fd40 Author: Anthony PERARD Date: Fri Oct 31 21:25:23 2014 +0000 OvmfPkg/Xen*: Pass struct XENSTORE_TRANSACTION argument as a pointer As EDK II does not allow calls with a struct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16294 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f148aee19d34f12372f924aae776e3781b66a59 Author: Anthony PERARD Date: Fri Oct 31 21:25:11 2014 +0000 OvmfPkg/Include/...Xen: Convert __i386__/__x86_64__ to MDE_CPU_IA32/MDE_CPU_X64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16293 6f19259b-4bc3-4df7-8a09-765794883524 commit d8cfdb5fb1638173f98084cf48860036f7b86b22 Author: Jordan Justen Date: Fri Oct 31 20:55:16 2014 +0000 OvmfPkg Sec: Convert X64/SecEntry.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/SecEntry.asm to X64/SecEntry.nasm Note: Manually collapsed .inf sources Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16292 6f19259b-4bc3-4df7-8a09-765794883524 commit ba29ed0963627618efb8e80acc36c7a24894ed00 Author: Jordan Justen Date: Fri Oct 31 20:55:06 2014 +0000 OvmfPkg Sec: Convert Ia32/SecEntry.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/SecEntry.asm to Ia32/SecEntry.nasm Note: Manually collapsed .inf sources Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16291 6f19259b-4bc3-4df7-8a09-765794883524 commit f0a071731713f9a36f10a6335fd1cd33c07cf542 Author: Jordan Justen Date: Fri Oct 31 20:54:54 2014 +0000 OvmfPkg QemuFwCfgLib: Convert X64/IoLibExAsm.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/IoLibExAsm.asm to X64/IoLibExAsm.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16290 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a2976125d7f55ca0ef93c88680a4c2abbaa7ca5 Author: Jordan Justen Date: Fri Oct 31 20:54:41 2014 +0000 OvmfPkg QemuFwCfgLib: Convert Ia32/IoLibExAsm.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/IoLibExAsm.asm to Ia32/IoLibExAsm.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16289 6f19259b-4bc3-4df7-8a09-765794883524 commit ad8ae98d2fa2f9e2bb1ecd7941fb1b7ccda9fa6f Author: Jordan Justen Date: Fri Oct 31 20:54:31 2014 +0000 OvmfPkg LoadLinuxLib: Convert X64/JumpToKernel.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/JumpToKernel.asm to X64/JumpToKernel.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16288 6f19259b-4bc3-4df7-8a09-765794883524 commit 529fd9aeb426eac63cb04dbbc98e5cf792dcfdde Author: Jordan Justen Date: Fri Oct 31 20:54:16 2014 +0000 OvmfPkg LoadLinuxLib: Convert Ia32/JumpToKernel.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/JumpToKernel.asm to Ia32/JumpToKernel.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16287 6f19259b-4bc3-4df7-8a09-765794883524 commit b81cc7d6249671a2c1e36f6c8ac01da0e0b7c612 Author: Olivier Martin Date: Fri Oct 31 20:32:02 2014 +0000 StdLib: Fix more GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Normalized comment formatting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16286 6f19259b-4bc3-4df7-8a09-765794883524 commit fe7ad7f6af29af4f4e0a690c11df49922ca93940 Author: Jordan Justen Date: Fri Oct 31 19:55:15 2014 +0000 BaseTools: Add ConvertMasmToNasm.py script This script is intended to assist with MASM to NASM syntax conversions. The output should be manually inspected and adjusted as needed, since this script does not provide a perfect conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Acked-by: Yingke D Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16285 6f19259b-4bc3-4df7-8a09-765794883524 commit beaaa3b715381d05c454619a66dd6d27c0b420e5 Author: Olivier Martin Date: Fri Oct 31 17:50:33 2014 +0000 StdLib: Fix more GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Normalized comment formatting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16284 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d5b818c78b0341155007d37a2a3d22f9b4f5d18 Author: jcarsey Date: Fri Oct 31 16:40:46 2014 +0000 [Patch] ShellPkg: Remove unused PCD from INF file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16283 6f19259b-4bc3-4df7-8a09-765794883524 commit ba0a34f15f3a3633c1e8d179ab13595413530b29 Author: Olivier Martin Date: Fri Oct 31 14:05:09 2014 +0000 MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang When compiling with Clang, we still use GNU as for the assembler, so we still need to define the GCC_ASM* macros. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16282 6f19259b-4bc3-4df7-8a09-765794883524 commit f7fe68db7dad70646523a6ae2442f592651df8d9 Author: Chao Zhang Date: Fri Oct 31 10:59:25 2014 +0000 Remove redundant ASSERT in TcgDxe & TreeDxe. Some asserts are removed directly, some are replaced by debug output. ASSERT for SetupEventLog is kept. It is the foundation of TcgProtocol and TrEEProtocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16281 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ebffb67c8eca68cf5eb36bd308b305ab84fdd99 Author: Star Zeng Date: Fri Oct 31 10:26:54 2014 +0000 MdeModulePkg/SecurityPkg Variable: Add boundary check for while (IsValidVariableHeader (Variable)). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16280 6f19259b-4bc3-4df7-8a09-765794883524 commit a75cf433d167aba7674e4b230f59ee915ebe64a8 Author: Star Zeng Date: Fri Oct 31 07:20:26 2014 +0000 MdePkg/IntelFrameworkPkg HobLib: Update BuildResourceDescriptorWithOwnerHob() to align the behavior of BuildResourceDescriptorHob(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16279 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f103c08bac599bd68d28fb5dde982049469b983 Author: Fu Siyuan Date: Fri Oct 31 00:38:39 2014 +0000 Fix a bug introuduced by r16104, not all NIC device implement both memory and IO bar. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16278 6f19259b-4bc3-4df7-8a09-765794883524 commit b176333801d0f4e7593579ec3d86163224ed6ed8 Author: lhauch Date: Thu Oct 30 17:09:25 2014 +0000 Update edksetup.bat to support Microsoft Visual Studio 2013 when building the Nt32Pkg emulation platform (enabled using the --nt32 flag). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16277 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e565888ee40264bfad5a700e0d62f4824d81c18 Author: Olivier Martin Date: Thu Oct 30 01:05:22 2014 +0000 StdLib: Fix GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Fifo.c::FIFO_Dequeue: Replaced instances of "Self->ElementSize" with preexisting variable "SizeOfElement". IIOutilities.c::IIO_GetInChar: Fixed variable of wrong, but compatible, type and made updating of housekeeping variables dependent upon successful completion of reading from the buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16276 6f19259b-4bc3-4df7-8a09-765794883524 commit b07ae3d6073f9ec69ae4316b0832fc96325c01d4 Author: Olivier Martin Date: Wed Oct 29 18:55:29 2014 +0000 ArmPlatformPkg/Documentation: Removed BaseTools-Pending-Patches.patch All the required pending BaseTools patches have been merged. This patch is not required anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16275 6f19259b-4bc3-4df7-8a09-765794883524 commit 5de8a35c62406054f85df87ab67e018a3f4f88c6 Author: Anthony PERARD Date: Wed Oct 29 06:52:13 2014 +0000 OvmfPkg/XenPvBlkDxe: Add BlockIo. Implement the BlockIo protocol. Change in V4: - Replace the license by the commonly used file header text. Change in V3: - assert(Media->BlockSize % 512 == 0) - Use Sector instead of Offset to issue IOs. Change in V2: - Remove blockIo2 headers. - Fix few comment. - file header, copyright - Rewrite few comment and error messages - No more callback - Improving block read/write, increase to the max size in one request (instead of only 8pages) - Fix lastblock when it's a cdrom - Do uninitialisation when fail to install fail - few comment - Licenses Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16274 6f19259b-4bc3-4df7-8a09-765794883524 commit 5cce85240450b4f878cc45b2eb16b7b4be74e511 Author: Samuel Thibault Date: Wed Oct 29 06:51:58 2014 +0000 OvmfPkg/XenPvBlkDxe: Add BlockFront client. This is the code that will do the actual communication between OVMF and a PV block backend, where the block device lives. The protocol used is describe in the blkif.h header. This implementation originally comes from Mini-OS, a part of the Xen Project. Change in V4: - add file header to BlockFront.h (license, copyright, brief desc) Change in V3: - Improve comment of XenBusReadUint64. - Moving blkif.h to this patch with the necessary #pragma pack(4) applied for Ia32. - Add a note about the license in the commit message - Add "The protocol used is describe in the blkif.h header." in the commit message - Have a mandatory sector-size multiple of 512 or fail to initialize. - use Sector instead of Offset for IO request. with Sector been 512-byte unit. - print something if EventChannelNotify return an error. Change in V2: - trigger CoW is probably not needed on OVMF (as opposed to Mini-OS), removed the test. - comments - renamed XenbusReadInteger to XenBusReadUint64 - remove callback from IoData, use simple status instead - return a status from the synchronus io - Close protocol if blockfront init fail. - fix few debug print - Rename XenbusIo to XenBusIo - XenPvBlkWaitForBackendState will return an error if the new backend states is not the expected state. - Add the license License: This patch adds some files which are under the MIT license. Signed-off-by: Samuel Thibault Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16273 6f19259b-4bc3-4df7-8a09-765794883524 commit de671da8e43c424ebdcf816c45fd06c43ff44aba Author: Anthony PERARD Date: Wed Oct 29 06:51:42 2014 +0000 OvmfPkg/XenPvBlkDxe: Xen PV Block device, initial skeleton A ParaVirtualize block driver. Change in V4: - Replace the license by the commonly used file header text. - Add brief description for the driver. Change in V3: - enable compilation for Ia32 and Ia32X64 - fix version (driver binding) Change in V2: - Add minimal support for controller name - Remove stuff about BlockIo2 - Little cleanup - Licenses and file headers - Rename XenbusIo into XenBusIo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16272 6f19259b-4bc3-4df7-8a09-765794883524 commit e86895d9e489dafe904622867b197acff6ef4355 Author: Anthony PERARD Date: Wed Oct 29 06:51:26 2014 +0000 OvmfPkg/XenBusDxe: Add Event Channel into XenBus protocol. This patch adds three event channel related functions: - EventChannelAllocate: Allocate an event channel port that can be bind from a specified domain. - EventChannelNotify: Send an event to the remote end of a channel. - EventChannelClose: Close a local event channel port. Change in V3: - eventchannel, update protocol to return error code. - expand patch description - Add comments in the XenBus Protocol header. Change in V2: - coding style - adding comment to functions - Rename Xenbus to XenBus. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16271 6f19259b-4bc3-4df7-8a09-765794883524 commit 86d968e05ee062b10fe8d597b34f5eab2e2878bd Author: Anthony PERARD Date: Wed Oct 29 06:51:18 2014 +0000 OvmfPkg/XenBusDxe: Introduce XenBus support itself. This is a bus-like on top of XenStore. It will look for advertised ParaVirtualized devices and initialize them by producing XenBus protocol. Change in V4: - Replace the license by the commonly used file header text. - Clean XenBus.h header (remove copyright that does not belong to the file anymore; and rewrite the brief description of the file) - Fix description on the function Change in V3: - Insert to ChildList later, once populated. - Remove XENBUS_XENSTORE_NODE macro. - add comment to XenBusAddDevice and XenBusEnumerateBus about concurrency calls. - Add a description to the introduced member to the protocol. Change in V2: - comment, file header - Fix comment style - Error handling in the main init function - coding style - Fix error path in add device. Origin: FreeBSD 10.0 License: This patch adds XenBus.c which is under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16270 6f19259b-4bc3-4df7-8a09-765794883524 commit c23c037fb3b47574950a19d4753fbeccff5e3d42 Author: Anthony PERARD Date: Wed Oct 29 06:51:04 2014 +0000 OvmfPkg/XenBusDxe: Add XenStore function into the XenBus protocol Change in V3: - Have XenStoreWaitWatch/XenBusWaitForWatch return a XENSTORE_STATUS instead of VOID. - Add description of the introducted member of the protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16269 6f19259b-4bc3-4df7-8a09-765794883524 commit 02a6bcff71e2f11be851b3bd62518a62e58e71f5 Author: Anthony PERARD Date: Wed Oct 29 06:50:57 2014 +0000 OvmfPkg/XenBusDxe: Add an helper AsciiStrDup. .. because we need it in the patch titled: "OvmfPkg/XenBusDxe: Introduce XenBus support itself." Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16268 6f19259b-4bc3-4df7-8a09-765794883524 commit a9090a94bb4a8dae61eb79428a5769916d621940 Author: Anthony PERARD Date: Wed Oct 29 06:50:50 2014 +0000 OvmfPkg/XenBusDxe: Add XenStore client implementation XenStore is a key/value database, which is running on another virtual machine. It can be accessed through shared memory. This is a client implementation. Change in V3: - moving xs_wire.h from patch #1 to this patch - fix return value of XenStoreListDirectory - Use a timeout to print a debug message if the other side of the xenstore ring does not notify through the event channel. This is done with the new XenStoreWaitForEvent function. - Have XenStoreReadReply check status of XenStoreProcessMessage and return an error if needed. - Have XenStoreTalkv return the status of XenStoreReadReply. - Have a loop to check for the quiescent of the response ring in the XenStoreInitComms function. (with a timeout of 5 seconds) - use the recently introduced XenStore 'closing' feature. Change in V2: - Change comment style, from freebsd to ovmf - Fix type of EventChannel - Fix debug print, no more cast - Implement XenStoreDeinit. - Clean up comments - Fix few codding style issue - Add FAIL xenstore status value. Origin: FreeBSD 10.0 License: This patch adds several files under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16267 6f19259b-4bc3-4df7-8a09-765794883524 commit 6342f1fea881996666b4f1a9e7f132c484e03ff0 Author: Anthony PERARD Date: Wed Oct 29 06:50:35 2014 +0000 OvmfPkg/XenBusDxe: Add TestAndClearBit. This atomically test's and clear's a bit. Change in V3: - adding IA32 support. (not yet reviewed) both XenBusDxe/Ia32/TestAndClearBit.{S,asm} are new Change in V2: - Adding .asm version - Comment the function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16266 6f19259b-4bc3-4df7-8a09-765794883524 commit f1259bba3647beb30b7c5e2e7dbe6ba060814912 Author: Anthony PERARD Date: Wed Oct 29 06:50:24 2014 +0000 OvmfPkg/XenBusDxe: Add Event Channel Notify. This first function is used to notify the other side that there is something to do. The other side is another Xen domain. Change in V4: - Replace the license by the commonly used file header text. Change in V3: - Return error code from hypercall instead of ASSERT for XenEventChannelNotify - moving event_channel.h to this patch. Change in V2: - file header - coding style - adding comment to functions - Licenses License: This patch adds event_channel.h which is under MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16265 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fd142464fc5b0fcb8b7fdfac379c1054ec81654 Author: Steven Smith Date: Wed Oct 29 06:50:14 2014 +0000 OvmfPkg/XenBusDxe: Add Grant Table functions. There are used to grant access of pages to other Xen domains. This code originaly comes from the Xen Project, and more precisely from MiniOS. Change in V4: - Add license to GrantTable.h Change in V3: - Add a comment about the use of the BAR of the device. Change in V2: - Adding locks - Redo the file header - Add functions comment - Add license Signed-off-by: Steven Smith Signed-off-by: Grzegorz Milos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16264 6f19259b-4bc3-4df7-8a09-765794883524 commit bba9d16231fe9f7d67e0530e720530d91a88ad73 Author: Anthony PERARD Date: Wed Oct 29 06:49:55 2014 +0000 OvmfPkg/XenBusDxe: Add InterlockedCompareExchange16. This patch is inspired by InterlockedCompareExchange32 from the BaseSynchronizationLib. The function will be used in the "OvmfPkg/XenBusDxe: Add Grant Table functions" patch. Change in V3: - Implement both .S and .asm, to get rid of GCC specific asm. - Implement 32bit part of the assembly Change in V2: - Add intel compilation code MSFT code is not compied over because I don't know how it works. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16263 6f19259b-4bc3-4df7-8a09-765794883524 commit 12a16f2d1c610942a3420c86e7a3c6bcc7a6eedf Author: Anthony PERARD Date: Wed Oct 29 06:49:38 2014 +0000 OvmfPkg: Introduce XenBus Protocol. This protocol will be used for communication between a PV driver (like a PV block driver) and the XenBus/XenStore. Change in V5: - Replace the license by the commonly used file header text. Change in V3: - Add disclaimer about the volatile nature of the protocol. - Add a description on the two introduced members to the protocol. Change in V2: - Comment, file header - Protocol License - Declare xen interface version earlier - Rename protocol from Xenbus to XenBus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16262 6f19259b-4bc3-4df7-8a09-765794883524 commit 956622c4c9b25becf57ccc1771ffbc92b78ed005 Author: Anthony PERARD Date: Wed Oct 29 06:49:22 2014 +0000 OvmfPkg/XenBusDxe: Open PciIo protocol. The PciIo interface will be used in "OvmfPkg/XenBusDxe: Add Grant Table functions" to get the memory address of the BAR 1 and use the space to map shared memory. Change in V3: - add a commit description. Change in V2: - Coding style - Error handler Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16261 6f19259b-4bc3-4df7-8a09-765794883524 commit abcbbb14a44a83b4cdf90137307a62e7b58e6720 Author: Anthony PERARD Date: Wed Oct 29 06:49:10 2014 +0000 OvmfPkg/XenBusDxe: Add support to make Xen Hypercalls. Change in V4: - Replace the license by the commonly used file header text. - add file header to XenHypercall.h (license, copyright, brief desc) Change in V3: - adding IA32 support. (not reviewed yet) both XenBusDxe/Ia32/hypercall.{S,asm} file are new Change in V2: - file header, copyright - Add License - Add push/pop instruction. - fix types - Comment of exported functions - Improve coding style - Add error handling in the main init function (of the drivers) - Comment assembly Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16260 6f19259b-4bc3-4df7-8a09-765794883524 commit a154f420147b0a3f449bb52da1e76dabef3478a5 Author: Anthony PERARD Date: Wed Oct 29 06:48:59 2014 +0000 OvmfPkg/XenBusDxe: Add device state struct and create an ExitBoot services event. The ExitBoot event is used to disconnect from the device before the next operating system start using them. Change in V3: - use the variable mMyDevice to prevent the driver from starting twice (if there is two different PCI devices). - free(dev) on exit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16259 6f19259b-4bc3-4df7-8a09-765794883524 commit e65e8802e56eee33c3c2c77c1b60d5ba6746eb3b Author: Anthony PERARD Date: Wed Oct 29 06:48:50 2014 +0000 OvmfPkg: Add basic skeleton for the XenBus bus driver. This includes Component Name and Driver Binding. Change in V4: - Replace the license by the commonly used file header text. - Add brief description for the driver. Change in V3: - enable compilation for Ia32 and Ia32X64 - fix version (driver binding) Change in V2: - Simple support of controller name. - Cleaning up comments, files header. - Add Licenses - Rename XenbusDxe to XenBusDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16258 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b621f9581234eb01d988f9715172e635345b192 Author: Anthony PERARD Date: Wed Oct 29 06:48:29 2014 +0000 OvmfPkg: Add public headers from Xen Project. This patch imports publics headers in order to use features from Xen like XenStore, PV Block... There is only the necessary header files and there are only a few modifications in order to facilitate future merge of more recent header (that would be necessary to access new features). There is little modification compared to the original files: - Removed most of the unused part of the headers - Use of ZeroMem() instead of memset() - using #pragma pack(4) for IA32 compilation. - Replace types to be more UEFI compliant using a script. OVMF, when built for IA32 arch, uses the gcc switch -malign-double. This change the alignment of fields in some struct compare to what is espected by Xen and any backends. To fix the alignment, the #pragma pack(4) directive is used around the struct that need it. Command to run to change types: find OvmfPkg/Include/IndustryStandard/Xen -type f -name '*.h' -exec sed --regexp-extended --file=fix_type_in_xen_includes.sed --in-place {} \; Avoid changing the 'long' that is not a type (with the first line). $ cat fix_type_in_xen_includes.sed /as long as/b s/([^a-zA-Z0-9_]|^)uint8_t([^a-zA-Z0-9_]|$)/\1UINT8\2/g s/([^a-zA-Z0-9_]|^)uint16_t([^a-zA-Z0-9_]|$)/\1UINT16\2/g s/([^a-zA-Z0-9_]|^)uint32_t([^a-zA-Z0-9_]|$)/\1UINT32\2/g s/([^a-zA-Z0-9_]|^)uint64_t([^a-zA-Z0-9_]|$)/\1UINT64\2/g s/([^a-zA-Z0-9_]|^)int8_t([^a-zA-Z0-9_]|$)/\1INT8\2/g s/([^a-zA-Z0-9_]|^)int16_t([^a-zA-Z0-9_]|$)/\1INT16\2/g s/([^a-zA-Z0-9_]|^)int32_t([^a-zA-Z0-9_]|$)/\1INT32\2/g s/([^a-zA-Z0-9_]|^)int64_t([^a-zA-Z0-9_]|$)/\1INT64\2/g s/([^a-zA-Z0-9_]|^)void([^a-zA-Z0-9_]|$)/\1VOID\2/g s/([^a-zA-Z0-9_]|^)unsigned int([^a-zA-Z0-9_]|$)/\1UINT32\2/g s/([^a-zA-Z0-9_]|^)int([^a-zA-Z0-9_]|$)/\1INT32\2/g s/([^a-zA-Z0-9_]|^)unsigned char([^a-zA-Z0-9_]|$)/\1UINT8\2/g s/([^a-zA-Z0-9_]|^)char([^a-zA-Z0-9_]|$)/\1CHAR8\2/g s/([^a-zA-Z0-9_]|^)unsigned long([^a-zA-Z0-9_]|$)/\1UINTN\2/g s/([^a-zA-Z0-9_]|^)long([^a-zA-Z0-9_]|$)/\1INTN\2/g Change in V4: - Add a README in Xen headers directory to explain what have been done to it. It is mostly a copy/past from the commit description with some rewording. - replace unsigned char by UINT8 as there is no unsigned char in UEFI types. Change in V3: - Remove unused header sched.h - moving xs_wire.h in a later patch, where it's first needed - moving io/blkif.h in a later patch (XenPvBlkDxe: Add BlockFront client) - moving event_channel.h in a later patch (XenBusDxe: Add Event Channel Notify) - using #pragma pack(4) for IA32 - headers trimed down, removed most of the unused struct/define/... License: This patch adds many files under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16257 6f19259b-4bc3-4df7-8a09-765794883524 commit 08dfaee2f20e5ade0585628ccb492235a699da93 Author: Anthony PERARD Date: Wed Oct 29 06:48:15 2014 +0000 OvmfPkg: Add the MIT license to License.txt. The MIT license will be used for several source files that are necessary for the Xen PV drivers. So this patch makes it explicit by adding the license with a note about which directory will have source files under this license. Change in V3: New patch Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16256 6f19259b-4bc3-4df7-8a09-765794883524 commit 4888d15e74628fd373605d5d853fa3b172aeadc3 Author: Star Zeng Date: Wed Oct 29 03:31:46 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg FwVol: Move the check of FV Header signature and file system to GetFwVolHeader() to avoid reading the whole unexpected FvHeader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16255 6f19259b-4bc3-4df7-8a09-765794883524 commit 24903bc48a324d42b284805ede9c5ee1db906e44 Author: Daryl McDaniel Date: Tue Oct 28 19:20:48 2014 +0000 StdLib: Some deployed versions of the Simple Text Input Protocol randomly return either NUL characters or Scan Codes when just typing normal text. These changes filter out NUL characters and make Scan Code and error handling more robust. StdLibPrivateInternalFiles/Include/Device/Console.h: Change UnGetKey, in the ConInstance structure, from an EFI_INPUT_KEY structure to a CHAR16 variable. Include/sys/termios.h: Add CHAR_SUB and CHAR_ESC for translation of '^Z' and the Escape Scan Code into the EOF and ESC characters, respectively. LibC/Uefi/Devices/Console/daConsole.c: Add da_ConRawRead() function to simplify the read logic. Discard NUL characters from the input stream. In Blocking mode, retry until a non-NUL character is received. In NonBlocking mode, a NUL causes an EAGAIN error to be returned. Translate the Escape Scan Code into an ESC character. If Scan Codes are ignored, retry if in Blocking mode else return an EAGAIN error. UnGetKey becomes a single wide character instead of a structure. Change da_Poll() to use da_ConRawRead(). LibC/Uefi/InteractiveIO/IIOutilities.c: BUG fix. Return the processed input character instead of the raw character. Allows EOF propagation. LibC/Uefi/InteractiveIO/CanonRead.c: Enable EOF propagation. LibC/Uefi/InteractiveIO/IIOechoCtrl.h: Use symbols defined in termios.h instead of hard-coded constant numbers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16254 6f19259b-4bc3-4df7-8a09-765794883524 commit 8dd618d2110bea0d3c3073b66eb51bc622e81c68 Author: Olivier Martin Date: Mon Oct 27 15:38:55 2014 +0000 ArmPkg/ArmLib: Removed duplicated invalidate TLB function ArmInvalidateInstructionAndDataTlb() was doing the same thing as ArmInvalidateTlb(). Both invalidate Data and Instruction TLBs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16253 6f19259b-4bc3-4df7-8a09-765794883524 commit d2e7e385fc57e2fab5465a2b622212f634d52845 Author: Ronald Cron Date: Mon Oct 27 15:38:20 2014 +0000 EmbeddedPkg: Clarify the declaration of SerialPortGetControl() Rework the PL011UartGetControl() function removing a TODO by the way. Update of the header comment blocks of (PL011Uart|SerialPort)GetControl() functions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16252 6f19259b-4bc3-4df7-8a09-765794883524 commit ab716191081e676179c5d386c706e05e2d940db5 Author: Ronald Cron Date: Mon Oct 27 15:37:37 2014 +0000 EmbeddedPkg: Clarify the declaration of SerialPortSetControl() Rework of PL011UartSetControl() as a consequence as well as update of function header comment blocks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16251 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f81a62094a12a435e677a1b6e5fbedc76a6a978 Author: Ronald Cron Date: Mon Oct 27 15:36:58 2014 +0000 EmbeddedPkg: Add scope of SerialPortExtLib.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16250 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f38945fea0905452e7680ed3ea554487a1f6c9b Author: Olivier Martin Date: Mon Oct 27 15:28:07 2014 +0000 ArmPlatformPkg/ArmJunoPkg: Added Juno development board support ARM 64bit development platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16249 6f19259b-4bc3-4df7-8a09-765794883524 commit cfdab71f926328bc82ac47f2d85bd823451af9d1 Author: Harry Liebel Date: Mon Oct 27 11:13:26 2014 +0000 ArmPlatformPkg/ArmShellCmdRunAxf: Added 'runaxf' cmd to shell (..cont) Added missing file from the previous commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16248 6f19259b-4bc3-4df7-8a09-765794883524 commit ced216f8b994bbc5a9a7a377668bf8f5a0d782e2 Author: Harry Liebel Date: Mon Oct 27 10:52:11 2014 +0000 ArmPlatformPkg/ArmShellCmdRunAxf: Added 'runaxf' cmd to shell Use the command to load and start a ARM Executable File from mass storage. This is basically just an ELF file. The program is copied to memory and the Entrypoint is called. Control is not expected to return back to the Shell. This has only been tested on AArch64 with a limited set of AXF binaries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16247 6f19259b-4bc3-4df7-8a09-765794883524 commit 53ae06f50dea91865edfacde1edc70c9e76b90d2 Author: Olivier Martin Date: Mon Oct 27 10:46:16 2014 +0000 ArmPlatformPkg/ArmVExpressDxe: Fixed duplicated GUID ArmFvpDxe.inf was using the same file guid as ArmHwDxe.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reported-By: Leif Lindholm git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16246 6f19259b-4bc3-4df7-8a09-765794883524 commit 9db0a779461043b6d81a6e7d24deba2cfe3e31e2 Author: Ronald Cron Date: Mon Oct 27 10:44:30 2014 +0000 EmbeddedPkg: Remove unused TemplateSerialPortLib MdePkg/Library/BaseSerialPortLibNull can be used instead as a template. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16245 6f19259b-4bc3-4df7-8a09-765794883524 commit daefd574f9d6c62df9149197af48219dc7cabf59 Author: Ronald Cron Date: Mon Oct 27 10:42:51 2014 +0000 ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file Implement the resizing of the file with SetInfo(). Implement the renaming of a file with SetInfo(). Allow to seek past the end of a file. The support of file resizing implies a rework of the read, write and close functions. So does the support of seeking past the end of a file. That why those two changes are done in the same patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16244 6f19259b-4bc3-4df7-8a09-765794883524 commit 11bbc25789c65514005c1ed7eaca38c095e0187a Author: Ronald Cron Date: Mon Oct 27 10:42:13 2014 +0000 EmbeddedPkg/Lan9118Dxe: Rework filter init, enabling and disabling Correct the setting of the hardware filters according to what it asked to the driver through the ReceiveFilters() interface function. Keep track of the hardware settings in the "ReceiveFilterSetting" field of the EFI_SIMPLE_NETWORK_MODE structure. From now, after initialization, all filters are disabled and thus no packet received. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16243 6f19259b-4bc3-4df7-8a09-765794883524 commit e52aee5d31c78a45a30fae5fbb54d1cf0bbabe1c Author: Ronald Cron Date: Mon Oct 27 10:41:29 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fix interrupt's mask returned by GetStatus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16242 6f19259b-4bc3-4df7-8a09-765794883524 commit fdd12bd56985bfc6090b972ddc07418eb4f7212a Author: Ronald Cron Date: Mon Oct 27 10:40:33 2014 +0000 ArmPkg/SemihostFs: Fix open file issues revealed by SCT Fix return codes in case of errors. Fix translation from EFI open mode to semi-hosting open mode to avoid the truncate to zero length of an already existing file opened in read/write or read/write/create mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16241 6f19259b-4bc3-4df7-8a09-765794883524 commit 0f0a6fe907e6233f95546599ee3fe48d91259dce Author: Ronald Cron Date: Mon Oct 27 10:39:52 2014 +0000 EmbeddedPkg/Lan9118Dxe: Switch back the driver in stopped state after shutdown Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16240 6f19259b-4bc3-4df7-8a09-765794883524 commit 0150e14dba3e34ed8e9225fcb6e3d9b30200423c Author: Ronald Cron Date: Mon Oct 27 10:39:12 2014 +0000 EmbeddedPkg/Lan9118Dxe: Add or fix input parameter checks Add or fix checking of the input parameters of the functions that constitute the EFI_SIMPLE_NETWORK_PROTOCOL interface provided by the LAN9118 driver. In case of invalid calls, the returned error codes are now compliant with the UEFI specificationi and the SCT tests checking for those error codes do not fail anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16239 6f19259b-4bc3-4df7-8a09-765794883524 commit 5521b5cc73e21957023b634cb7f75e415bba0225 Author: Ronald Cron Date: Mon Oct 27 10:38:18 2014 +0000 ArmPkg/SemihostLib: Add library functions Add library functions to rename a file and get a temporary name for a file through the semi-hosting interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16238 6f19259b-4bc3-4df7-8a09-765794883524 commit c20f8ec6619d6bd6717364e12211f03f5f499676 Author: Ronald Cron Date: Mon Oct 27 10:37:20 2014 +0000 ArmPkg/Semihostlib: Rename semi-hosting open option Change mnemonic SEMIHOST_FILE_MODE_CREATE with mnemonic SEMIHOST_FILE_MODE_UPDATE. The bit referred to by this mnemonic is for the semi-hosting open mode code the equivalent of the + in the ISO C fopen mode terminology. This allows to select the so called update mode for which both read and write are allowed on the open file. The mnemonic SEMIHOST_FILE_MODE_UPDATE is more in line with the ISO C fopen mode terminology. A description of the ISO C fopen modes can be found here : http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16237 6f19259b-4bc3-4df7-8a09-765794883524 commit a537c71726627da40d786b1644d68cc7c3654d31 Author: Olivier Martin Date: Mon Oct 27 10:35:57 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fixed dereferencing optional NULL pointer TxBuff argument is optional in SNP.GetStatus(). This argument can be NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16236 6f19259b-4bc3-4df7-8a09-765794883524 commit c9263c7dd26a17c1f1990f2554e8ec0f469e0080 Author: Ronald Cron Date: Mon Oct 27 10:34:56 2014 +0000 EmbeddedPkg: Fix crash when retrieving LAN9118 network statistics Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16235 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f81082e38c230f8d5643dc7bbc2290b59ab168a Author: Olivier Martin Date: Mon Oct 27 10:30:53 2014 +0000 ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16234 6f19259b-4bc3-4df7-8a09-765794883524 commit d71338597e75002d5e2b63701834b07dae1af3a0 Author: Olivier Martin Date: Mon Oct 27 10:29:50 2014 +0000 ArmPkg/ArmGic: Added GicV3 support to ArmGicLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16233 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f525769b9254bebea76512cfd348d8637e898e5 Author: Olivier Martin Date: Mon Oct 27 10:28:44 2014 +0000 ArmPkg/ArmGic: Added GicV3 detection Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Harry Liebel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16232 6f19259b-4bc3-4df7-8a09-765794883524 commit d5c6b7fca306f5034f1200261bf9f77c52498cd5 Author: Olivier Martin Date: Mon Oct 27 10:27:27 2014 +0000 ArmPkg/ArmGic: Introduced ArmGicGetSupportedArchRevision() This function returns the revision of the GIC Architecture. Some GICv3 controllers can work in GICv2 mode. Switching to an older GIC revision is driven by the higher level exception level. This function allows code to support any GIC revision at runtime. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16231 6f19259b-4bc3-4df7-8a09-765794883524 commit f1e2b7283ea6fa12691edee22aca403c3b3af24c Author: Star Zeng Date: Mon Oct 27 00:42:57 2014 +0000 MdePkg/IntelFrameworkPkg HobLib: Add BuildResourceDescriptorWithOwnerHob() API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16230 6f19259b-4bc3-4df7-8a09-765794883524 commit 956f71b611b7677bc0605b95c4e67af413aaab86 Author: Gao, Liming Date: Fri Oct 24 08:35:43 2014 +0000 Clean not in pub spec comments status codes returned for functions of EFI_TCG_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16229 6f19259b-4bc3-4df7-8a09-765794883524 commit e83d4bf602eb229ee8eb3ff15f7b4fa2fe1e0661 Author: Tian, Hot Date: Thu Oct 23 01:35:44 2014 +0000 Update some package owners Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16228 6f19259b-4bc3-4df7-8a09-765794883524 commit 36bdec3cd94346c9ccae4df02ae5890409498cf8 Author: Chao, Zhang Date: Wed Oct 22 07:30:22 2014 +0000 Add comments to clarify mPubKeyStore buffer MemCopy. There is no memory overflow issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao, Zhang Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16227 6f19259b-4bc3-4df7-8a09-765794883524 commit 0414ec24bad8adf62982fe2c15d7f55a7a0fda6b Author: Hess Chen Date: Wed Oct 22 06:44:45 2014 +0000 BaseTools/UPT: Remove Macro Expend for UserExtension section Remove Macro Expend for UserExtension section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16226 6f19259b-4bc3-4df7-8a09-765794883524 commit 43654b1cb92269a6d6374f33f729efe91ed9d788 Author: Reza Jelveh Date: Wed Oct 22 05:52:48 2014 +0000 MdeModulePkg/AtaAtapiPassThru: When D2H FIS received at PIO DATA-IN transfer, check PxTFD.Error register to confirm if there is a real error for better device compatibilities with Qemu and Marvel9230 sata controllers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reza Jelveh Signed-off-by: Feng Tian Reviewed-by: A. Sava Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16225 6f19259b-4bc3-4df7-8a09-765794883524 commit 2cb6eabe0b358fe0d4e4dd602f84b5f5d3e39a6c Author: Elvin Li Date: Wed Oct 22 05:01:58 2014 +0000 Add DebugCommunicationLibUsb3 for USB3.0 source level debug support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Ruiyu Ni Reviewed-by: Feng Tian Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16224 6f19259b-4bc3-4df7-8a09-765794883524 commit fbb393ab7a9c33ca4ae81fb3f91a7d2a5671bd62 Author: Lee Leahy Date: Wed Oct 22 03:03:18 2014 +0000 [MdePkg] Code clean-up: Remove trailing spaces Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Lee Leahy Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16223 6f19259b-4bc3-4df7-8a09-765794883524 commit ca2be854872373f18fc1cdf5277973fcd9179e7a Author: Eric Dong Date: Tue Oct 21 05:50:06 2014 +0000 Check the question value before call CHANGED. Only when question value has been changed, browser will call CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16222 6f19259b-4bc3-4df7-8a09-765794883524 commit 79e1ffbdd4cb6ea4d1ec8c25a1f6c905a57458f0 Author: Eric Dong Date: Tue Oct 21 05:48:00 2014 +0000 Clean up the code. Action statement should not have text two opcode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16221 6f19259b-4bc3-4df7-8a09-765794883524 commit 8c83d0c0b9bd102cd905c83b2644a543e9711815 Author: Chao, Zhang Date: Tue Oct 21 00:35:49 2014 +0000 Add PubKey index check before touching PubKey cache. Internal PubKey Variable PubkeyIndex is always 0, causing Index – 1 overflow. Update corresponding comments. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao, Zhang Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16220 6f19259b-4bc3-4df7-8a09-765794883524 commit edb5073413d7b5e60cb69ffd3cb1ccb99decbf6a Author: Laszlo Ersek Date: Wed Oct 15 14:15:21 2014 +0000 ArmVirtualizationPkg: FdtPL011SerialPortLib: support UEFI_APPLICATION The library already supports UEFI_DRIVER, we just need to relax the restriction list. This allows ArmVirtualizationPkg platforms to build applications, like the UEFI shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16219 6f19259b-4bc3-4df7-8a09-765794883524 commit c373687eb8032ba7436adbed1de68b065cf568ee Author: Eric Dong Date: Wed Oct 15 06:20:09 2014 +0000 Add comments for FSVariable driver which used by Duet platform only, trust all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16218 6f19259b-4bc3-4df7-8a09-765794883524 commit 741a1e5895a2f617acb2e391a48c653f7dbe44ab Author: Eric Dong Date: Wed Oct 15 05:19:08 2014 +0000 Add comments for FSVariable driver which used by Duet platform only, trust all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16217 6f19259b-4bc3-4df7-8a09-765794883524 commit 55501e13510038786f735a681c43a3354b363355 Author: Eric Dong Date: Wed Oct 15 05:17:41 2014 +0000 Prevent EBDA area being overwritten, get the size info from the address 0x40E. If can’t get the size info, then use the default value for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16216 6f19259b-4bc3-4df7-8a09-765794883524 commit bf5a9493fa9d7013015ac511714d4efdca23ae34 Author: Ruiyu Ni Date: Wed Oct 15 04:49:04 2014 +0000 AtaBusDxe: Fix ReadBlockEx andWriteBlockEx to still signal event when the BufferSize is 0. DiskIoDxe: Fix ReadDiskEx and WriteDiskEx to not modify the user’s buffer when the BufferSize is 0. DiskIoDxe: Fix ReadDiskEx and WriteDiskEx hang issue when the submitted blockio2 task is completed before submitting another blockio2 task. DiskIoDxe: Fix FlushEx to free the flush task item in callback (memory leak issue). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16215 6f19259b-4bc3-4df7-8a09-765794883524 commit 4202afa45dea319f80d753dc1b2ebbbcfb55dc29 Author: Jordan Justen Date: Tue Oct 14 16:24:41 2014 +0000 EDK II: Add Maintainers.txt file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16214 6f19259b-4bc3-4df7-8a09-765794883524 commit 71bcf79963d1d9d8bc10b54c82dfe75dfc588d4a Author: Ryan Harkin Date: Tue Oct 14 16:08:15 2014 +0000 EDK II: Add .gitignore While edk2 is still maintained in SVN, Many edk2 developers use git for their main workflow, using the official mirrors. Add a .gitignore to the EDK II root, BaseTools and Conf directories to prevents files generated as part of the build from cluttering up "git status" output. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin [removed Linaro-specific bits, rework for upstream] Signed-off-by: Leif Lindholm Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16213 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b7c06072eec16b6ac0707d036d865a87f78658a Author: Leif Lindholm Date: Tue Oct 14 14:46:32 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Enable specifying firmware version string on build If FIRMWARE_VER is defined on the build command line, set gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString based on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16212 6f19259b-4bc3-4df7-8a09-765794883524 commit 5e574a01ca816e1e1dc0863c61b92d7638a6d5fd Author: Star Zeng Date: Tue Oct 14 06:53:18 2014 +0000 MdeModulePkg PeiCore: Update the code of PeiAllocatePages() to correctly consider the overhead sizeof (EFI_HOB_MEMORY_ALLOCATION). It can fix the confused ERROR log like below. "AllocatePages failed: No 0x1 Pages is available. There is only left 0x1 pages memory resource to be allocated." Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16211 6f19259b-4bc3-4df7-8a09-765794883524 commit 544ccd1051108dcaf9eced3d57f465dd24a4e43e Author: Olivier Martin Date: Tue Oct 14 06:30:17 2014 +0000 Removes dead code from the PlatformBdsLibNull,leaving this unused code might confuse the user. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16210 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c4d470eed976b91e9bcec47502f5f4b8d06b939 Author: Qiu Shumin Date: Tue Oct 14 01:16:38 2014 +0000 ShellPkg: Comments update and code refine. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16209 6f19259b-4bc3-4df7-8a09-765794883524 commit 43ac100ee416233cb4c3c81b33b2f5e7196d4afe Author: Olivier Martin Date: Mon Oct 13 10:55:38 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Added support for Intel BDS Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16208 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d5b88f372180dc3a8622fda19ae0ac1fb076ae8 Author: Olivier Martin Date: Sat Oct 11 02:19:36 2014 +0000 Removes dependencies on SMBIOS in the IntelFrameworkModulePkg’s BDS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16207 6f19259b-4bc3-4df7-8a09-765794883524 commit ebb923532915eb33371d97cf8f2e706139ae75a2 Author: Olivier Martin Date: Fri Oct 10 11:25:04 2014 +0000 ArmPkg/ArmLib/AArch64: Initialize the new N+1-level page table before registering it Prior to this change, when a new page table was created at level N+1, the reference to the table was added to the level N translation table, before being initialized. It means if virtual addresses were in the address range defined by this new table the CPU would crash as the address range was not initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16206 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a70a690ea534c77639b92c811f6a6378b2bbea0 Author: Olivier Martin Date: Fri Oct 10 11:24:11 2014 +0000 ArmPkg/UncachedMemoryAllocationLib: Track uncached memory allocations Keeping track of uncached memory allocations prevents doing expensive cache operations (eg: clean & invalidate) on newly allocated regions by reusing regions where possible Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16205 6f19259b-4bc3-4df7-8a09-765794883524 commit 9180ab73e6d4a72c420292c1454f94d391737fa1 Author: Olivier Martin Date: Fri Oct 10 11:22:50 2014 +0000 ArmPkg/ArmPsciResetSystemLib: Made the library only using SMC Only ArmVirtualizationPkg based platforms are expected to use the dynamic method to choose between SMC and HVC to invoke PSCI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16204 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a0e4800a328f5d7893e080f65edcc6bd0bc07e5 Author: Harry Liebel Date: Fri Oct 10 10:39:36 2014 +0000 ArmPlatformPkg/Bds: Reduce boot device entries If a storage device is used for Variable storage or access is provided by the Simple Filesystem Protocol do not list it again for RAW memory map access in the 'Add Boot device' menu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16203 6f19259b-4bc3-4df7-8a09-765794883524 commit 2618ea2c05f56ff9cfe2048e899d4bed1719d995 Author: Star Zeng Date: Fri Oct 10 04:52:38 2014 +0000 MdeModulePkg FaultTolerantWriteDxe: Remove unnecessary @para from function header comments of ReadWorkSpaceData(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16202 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d3edd9d26300256a19472fbf82e090bbab3b5b4 Author: Star Zeng Date: Fri Oct 10 02:27:14 2014 +0000 MdeModulePkg FaultTolerantWriteDxe: Remove assumptions below in FTW driver. 1. Work space and spare block must be in a FVB with FV header. Updated to work space and spare block could be in independent FVBs that are without FV header. 2. NV region, work space and spare block must have same BlockSize. Updated to NV region, work space and spare block could have different BlockSize. 3. Works space size must be <= one block size. Update to work space size could be <= one block size (not span blocks) or > one block size (block size aligned). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16201 6f19259b-4bc3-4df7-8a09-765794883524 commit d2a867217d63a5ef83c2877f842fd0e2c33259ba Author: Star Zeng Date: Thu Oct 9 09:37:58 2014 +0000 MdeModulePkg DxeCore: Add FVH signature check before VerifyFvHeaderChecksum in FwVol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16200 6f19259b-4bc3-4df7-8a09-765794883524 commit 65ef0b0d01c5f65c2e52cf13873c6b0494347333 Author: Qiu Shumin Date: Thu Oct 9 01:25:32 2014 +0000 ShellPkg: Add a typecast to 'BOOLEAN' to avoid build failure in VS2005. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16199 6f19259b-4bc3-4df7-8a09-765794883524 commit e456bb84e0ae952d8416a7378b768b116974d26d Author: Gabriel Somlo Date: Wed Oct 8 20:38:05 2014 +0000 ShellPkg: fix "incompatible pointer type" build error Following commit 7fe3fbad05cd6ef23e83ab5da8c5a82ff9bb456e, building OvmfPkg on Linux breaks with an "incompatible pointer type" error. This patch adds a cast to supress the warning and allow the build to complete Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16198 6f19259b-4bc3-4df7-8a09-765794883524 commit 842949fa8099a9c627ffe9f62f36214898c33a12 Author: jcarsey Date: Tue Oct 7 19:58:43 2014 +0000 ShellPkg: hexedit command does not return lasterror equal to 0 when exiting from editor Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16197 6f19259b-4bc3-4df7-8a09-765794883524 commit 88963516461abf48243acee848703981187ed97c Author: jcarsey Date: Tue Oct 7 19:57:23 2014 +0000 Dmpstore command does not return lasterror equal to 0 when ‘-s’ flag used to dump variables in file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16196 6f19259b-4bc3-4df7-8a09-765794883524 commit 75e34de46c170ae32ec7537eb2de11f81cfa305b Author: Jaben Carsey Date: Fri Oct 3 15:49:59 2014 +0000 ShellPkg: Fix Meta Data misspelling Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16195 6f19259b-4bc3-4df7-8a09-765794883524 commit 475387e9de0bed70b57165d0a389f3aee97d4058 Author: Jaben Carsey Date: Thu Oct 2 16:41:28 2014 +0000 ShellPkg: Update SetVar to use existing attributes for updating existing variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16194 6f19259b-4bc3-4df7-8a09-765794883524 commit 7fe3fbad05cd6ef23e83ab5da8c5a82ff9bb456e Author: Jaben Carsey Date: Thu Oct 2 16:40:49 2014 +0000 ShellPkg: Update MV. now supports across file system moves. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16193 6f19259b-4bc3-4df7-8a09-765794883524 commit 57446bb979d7466055977d1b816e6958b8ae997c Author: Laszlo Ersek Date: Thu Oct 2 08:08:14 2014 +0000 OvmfPkg: SecureBootConfigDxe: remove stale fork In the previous patch we disabled its use; there are no more clients. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Gary Lin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16192 6f19259b-4bc3-4df7-8a09-765794883524 commit 8714a6314f7b95ec389533552aa2034238f0b602 Author: Laszlo Ersek Date: Thu Oct 2 08:08:05 2014 +0000 OvmfPkg: disable stale fork of SecureBootConfigDxe OvmfPkg forked SecureBootConfigDxe from SecurityPkg in SVN r13635 (git commit 8c71ec8f). Since then, the original (in "SecurityPkg/VariableAuthenticated/SecureBootConfigDxe") has diverged significantly. The initial diff between the original and the fork, when the fork was made (ie. at SVN r13635), reads as follows: > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr OvmfPkg/SecureBootConfigDxe/SecureBootConfig.vfr > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr 2014-09-30 23:35:28.598067147 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfig.vfr 2014-08-09 02:40:35.824851626 +0200 > @@ -51,7 +51,7 @@ > questionid = KEY_SECURE_BOOT_ENABLE, > prompt = STRING_TOKEN(STR_SECURE_BOOT_PROMPT), > help = STRING_TOKEN(STR_SECURE_BOOT_HELP), > - flags = INTERACTIVE | RESET_REQUIRED, > + flags = INTERACTIVE, > endcheckbox; > endif; > > @@ -158,7 +158,7 @@ > questionid = KEY_SECURE_BOOT_DELETE_PK, > prompt = STRING_TOKEN(STR_DELETE_PK), > help = STRING_TOKEN(STR_DELETE_PK_HELP), > - flags = INTERACTIVE | RESET_REQUIRED, > + flags = INTERACTIVE, > endcheckbox; > endif; > endform; > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf 2014-09-30 23:35:28.598067147 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf 2014-09-30 23:35:28.577067027 +0200 > @@ -1,5 +1,8 @@ > ## @file > -# Component name for SecureBoot configuration module. > +# Component name for SecureBoot configuration module for OVMF. > +# > +# Need custom SecureBootConfigDxe for OVMF that does not force > +# resets after PK changes since OVMF doesn't have persistent variables > # > # Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
> # This program and the accompanying materials > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c OvmfPkg/SecureBootConfigDxe/SecureBootConfigImpl.c > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c 2014-09-30 23:35:28.599067153 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfigImpl.c 2014-09-30 23:35:28.578067033 +0200 > @@ -2559,7 +2559,7 @@ > NULL > ); > } else { > - *ActionRequest = EFI_BROWSER_ACTION_REQUEST_RESET; > + *ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT; > } > break; The commit message is not overly verbose: OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset We don't force a platform reset for OVMF when PK is changed in custom mode setup. But the INF file hunk is telling: Need custom SecureBootConfigDxe for OVMF that does not force resets after PK changes since OVMF doesn't have persistent variables We do have persistent variables now. Let's disable the (now obsolete) OvmfPkg fork, and revert to the (well maintained) SecurityPkg-provided config driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Gary Lin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16191 6f19259b-4bc3-4df7-8a09-765794883524 commit 23a2df76783ad7694918916f28e24cd1a1f84daf Author: Olivier Martin Date: Tue Sep 30 00:59:04 2014 +0000 MdeModulePkg/ScsiDiskDxe: Fix the build warning/error "unreachable statement" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16190 6f19259b-4bc3-4df7-8a09-765794883524 commit 831537d6ca574a6bf579a4797dd66eed3548a016 Author: Olivier Martin Date: Mon Sep 29 09:02:57 2014 +0000 Removes some unused assigned variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16189 6f19259b-4bc3-4df7-8a09-765794883524 commit cec6685c7d343a14cae47c878c5239da49566b2c Author: Nikolai Saoukh Date: Mon Sep 29 08:48:24 2014 +0000 Both printed fields are 64 bit long for IA32 too. It is better to print them as such. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16188 6f19259b-4bc3-4df7-8a09-765794883524 commit e7a2064ec72db92ba644a5f8deace5d7e05ec3d2 Author: Olivier Martin Date: Mon Sep 29 08:46:31 2014 +0000 Removes some unused assigned variables. Some compiler (GCC in this case) raises a warning/error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16187 6f19259b-4bc3-4df7-8a09-765794883524 commit 3dfe9247cef656a40407a46af5e2e4e04757a646 Author: Chen Fan Date: Sun Sep 28 06:22:10 2014 +0000 EmulatorPkg/MpService: remove redundant switch-case statement we had set the AP procedure in StartupAllAPs(), so do not need to set AP procedure twice. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16186 6f19259b-4bc3-4df7-8a09-765794883524 commit 5152f6426cb80b70eb7c39e372105e050946eb85 Author: Chen Fan Date: Sun Sep 28 06:22:03 2014 +0000 EmulatorPkg/MpService: Check Processor State when Set Procedure Due to the state of processor could be set blocked by SingleThread parameter, so we ought to add a READY state check, only let the processor in READY state to invoke procedure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16185 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a160a74a54002e7e49d391f19bbcf1142978a45 Author: Chen Fan Date: Sun Sep 28 06:21:55 2014 +0000 EmulatorPkg/MpService: use simple pointer access Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16184 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ab6d73c0e240d573cdce317a15317f235d24ac4 Author: Chen Fan Date: Sun Sep 28 06:21:46 2014 +0000 EmulatorPkg/MpService: Fix a NULL reference when making a CreateEvent() to call CpuCheckAllAPsStatus(), the Context parameter was NULL in CpuCheckAllAPsStatus(), so we must not use the Context as the ProcessorData pointer. and should recalculate it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16183 6f19259b-4bc3-4df7-8a09-765794883524 commit 90be22219668cae514cdb56934cb139089367dae Author: jyao1 Date: Sun Sep 28 01:07:13 2014 +0000 Fix an issue on FixedMtreProgramming - AND/OR mask incorrect. Contributed-under: TianoCore Contribution Agreement 1.0 signed-off by: Yao, Jiewen reviewed by: Rangarajan, Ravi P git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16181 6f19259b-4bc3-4df7-8a09-765794883524 commit 365614e21e03949d528a3ca266d6d2ed1dff942e Author: Dong, Guo Date: Fri Sep 26 03:24:56 2014 +0000 Roll back the dependency change in MOR driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16179 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a0ca7877dc700013d80c6a97afb7b02b9cb5e81 Author: Nikolai Saoukh Date: Thu Sep 25 02:29:18 2014 +0000 BaseTools: Use '/' as path separator for objcopy --add-gnu-debuglink Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16172 6f19259b-4bc3-4df7-8a09-765794883524 commit c404616199df383226df1b70940008c01cfaec81 Author: Jordan Justen Date: Thu Sep 25 02:29:10 2014 +0000 OvmfPkg: Fix VS2005 build warnings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16171 6f19259b-4bc3-4df7-8a09-765794883524 commit ce88384500b3fb82c324ebf8553bfc55aedb3bc2 Author: Jordan Justen Date: Thu Sep 25 02:29:00 2014 +0000 OvmfPkg/AcpiPlatformDxe: Fix VS2012 IA32 build warning Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16170 6f19259b-4bc3-4df7-8a09-765794883524 commit e0ba625fc641314438a9a46079b52a4a30d8679e Author: Leif Lindholm Date: Wed Sep 24 21:07:53 2014 +0000 BaseTools: Actually plug in BaseTools build on AArch64 Support for building BaseTools on AArch64 is available in the tree, but not currently "plugged in". This patch adds the required snippet. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16169 6f19259b-4bc3-4df7-8a09-765794883524 commit b22203212a892137e8da9501d42f58c022d61289 Author: Ye Ting Date: Wed Sep 24 09:35:54 2014 +0000 Enhance TargetName check when save iSCSI configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting Reviewed-by: Wu, Jiaxin Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16168 6f19259b-4bc3-4df7-8a09-765794883524 commit d28c4ed72bb390b1152c114b0b34374428956871 Author: Ye Ting Date: Wed Sep 24 09:35:32 2014 +0000 Enhance TargetName check when save iSCSI configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting Reviewed-by: Wu, Jiaxin Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16167 6f19259b-4bc3-4df7-8a09-765794883524 commit f55d71ec95660eefd9bf7a5ef54534e80e42e71b Author: Qiu Shumin Date: Wed Sep 24 07:49:20 2014 +0000 The binaries of ShellBinPkg are generated with ShellPkg project 16163. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16166 6f19259b-4bc3-4df7-8a09-765794883524 commit efda1df8d565950694d1e2a5bb7c3e6bf0fe88c5 Author: Ard Biesheuvel Date: Wed Sep 24 07:48:26 2014 +0000 Users of the LP64 data model should declare SIXTY_FOUR_BIT_LONG, not SIXTY_FOUR_BIT when building OpenSSL. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-By: Olivier Martin Reviewed-by: Andrew Fish Signed-off-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16165 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fd8de32af59ffc80454483001ff07d431525fd4 Author: Qiu Shumin Date: Wed Sep 24 05:06:59 2014 +0000 ShellPkg: Make the argument type match the function expected parameter type to avoid build fail in GCC45. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16163 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a9612ceb28d1c0c61d6b38412ee2deda323ee14 Author: Eric Dong Date: Tue Sep 23 08:06:23 2014 +0000 Refine get default value process for browser. Before get default value for each questions, call ExtractConfig function to get the altcfg string for all formset. Later when question try to get default value from AltCfg string, just get the value from the saved altcfg string instead of call ExtractConfig function to get it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16162 6f19259b-4bc3-4df7-8a09-765794883524 commit 427d61ad4ad1462b5f4370a78eb58c1ba73680b4 Author: Qiu Shumin Date: Tue Sep 23 06:20:59 2014 +0000 ShellPkg: Refine code style to avoid potential NullPointer dereference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16161 6f19259b-4bc3-4df7-8a09-765794883524 commit b4dfada85dad3ff3022f83d0ac1cd6b0c185cdd5 Author: Gao, Liming Date: Tue Sep 23 01:32:56 2014 +0000 BaseTools: Update nmake Makefile to handle the file path with “:\\”. DOS del command doesn’t handle “:\\” in the file path. This patch converts “:\\” to “:\”. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16160 6f19259b-4bc3-4df7-8a09-765794883524 commit 77eef0d5a82bf2a49cc6bb25077ba73e922ea160 Author: Qiu Shumin Date: Tue Sep 23 01:14:30 2014 +0000 ShellPkg: Fix setting hot key for boot option fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16159 6f19259b-4bc3-4df7-8a09-765794883524 commit 387536e472aa0eb4a169f8456167fef53524fbe0 Author: Laszlo Ersek Date: Mon Sep 22 21:11:22 2014 +0000 OvmfPkg: AcpiPlatformDxe: implement QEMU's full ACPI table loader interface Recent changes in the QEMU ACPI table generator have shown that our limited client for that interface is insufficient and/or brittle. Implement the full interface utilizing OrderedCollectionLib for addressing fw_cfg blobs by name. In order to stay compatible with EFI_ACPI_TABLE_PROTOCOL, we don't try to identify QEMU's RSD PTR and link it into the UEFI system configuration table. Instead, once all linker/loader commands have been processed, we process the AddPointer commands for a second time. In the second pass, we look at the targets of these pointer commands. The key idea (by Michael Tsirkin) is that any ACPI interpreter will only be able to locate ACPI tables by following absolute pointers, hence QEMU's set of AddPointer commands will cover all of the ACPI tables (and more, see below). Some of QEMU's AddPointer commands (ie. some fields in ACPI tables) may point to areas in fw_cfg blobs that are not ACPI tables themselves. Examples are the BGRT.ImageAddress field, and the TCPA.LASA field. We tell these apart from ACPI tables by performing the following checks on pointer target "candidates": - length check against minimum ACPI table size, and remaining blob size - checksum verification. If a target area looks like an ACPI table, and is different from RSDT and DSDT (which EFI_ACPI_TABLE_PROTOCOL handles internally), we install the table (at which point EFI_ACPI_TABLE_PROTOCOL creates a deep copy of the relevant segment of the pointed-to fw_cfg blob). Simultaneously, we keep account if each fw_cfg blob has ever been referenced as the target of an AddPointer command without that AddPointer command actually identifying an ACPI table. In this case the containing fw_cfg file (of AcpiNVS memory type) must remain around forever, because we never install that area with EFI_ACPI_TABLE_PROTOCOL, but some field in some ACPI table that we *do* install still references it, by the absolute address that we've established during the first pass. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16158 6f19259b-4bc3-4df7-8a09-765794883524 commit 56947bc0810a8b85e9cb7fa7fd6ea23a7276bf7b Author: Laszlo Ersek Date: Mon Sep 22 21:11:15 2014 +0000 OvmfPkg: AcpiPlatformDxe: remove current ACPI table loader In the next patch we rewrite the client code for QEMU's fw_cfg ACPI table loader interface. In order to avoid randomly intermixed hunks in that patch, first remove the old code cleanly. We remove the InstallQemuLinkedTables() function and empty the InstallAllQemuLinkedTables() function. We also remove CheckRsdp(). InstallAllQemuLinkedTables() will return constant EFI_NOT_FOUND to AcpiPlatformEntryPoint(), causing the latter to proceed to OVMF's builtin tables. This way the history remains bisectable and the new client gets a clean start in the next patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16157 6f19259b-4bc3-4df7-8a09-765794883524 commit 10de33ec2d6d80c93ad5ca2e24dad83c5d1fad57 Author: Laszlo Ersek Date: Mon Sep 22 21:11:09 2014 +0000 OvmfPkg: AcpiPlatformDxe: actualize QemuLoader.h comments We used to state in this header file that we only cared about the Allocate command. This is no longer the case; update the comments accordingly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16156 6f19259b-4bc3-4df7-8a09-765794883524 commit 48cc4d0c61e08ebaeadb29f5c24dd3f48a76da20 Author: Laszlo Ersek Date: Mon Sep 22 21:11:02 2014 +0000 OvmfPkg: resolve OrderedCollectionLib with base red-black tree instance The "complete" QEMU fw_cfg ACPI loader will need to look up downloaded blobs by name, in order to implement the AddPointer and AddChecksum commands. Introduce OrderedCollectionLib to support such indexing. BaseOrderedCollectionRedBlackTreeLib is a BASE module, hence add the OrderedCollectionLib resolution to the main [LibraryClasses] section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16155 6f19259b-4bc3-4df7-8a09-765794883524 commit e7ae4a7cb32f8d8a2c14f3fd80138944184789e1 Author: Hess Chen Date: Mon Sep 22 07:37:28 2014 +0000 BaseTools/ECC: Ignore duplicate check for 'NULL' library Update a checkpoint to ignore duplicate check for 'NULL' library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16154 6f19259b-4bc3-4df7-8a09-765794883524 commit 875cc5bb9710ca63c91d5b74b2653c6804a07923 Author: Hess Chen Date: Mon Sep 22 07:06:12 2014 +0000 BaseTools/Upt: Fix several bugs 1. Fix a bug of generating additional EOL in file header. 2. Fix a bug of format error for Defines section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16153 6f19259b-4bc3-4df7-8a09-765794883524 commit b15aae9f2e33b8a24d2c1abd86422763642bc9c6 Author: Samer El-Haj-Mahmoud elhaj Date: Mon Sep 22 05:54:41 2014 +0000 Fix X64 native function call prolog. Prepare space for at least 4 arguments, even if the native function's arguments are less than 4. From MSDN x64 Software Conventions, Overview of x64 Calling Conventions: “The caller is responsible for allocating space for parameters to the callee, and must always allocate sufficient space for the 4 register parameters, even if the callee doesn’t have that many parameters. This aids in the simplicity of supporting C unprototyped functions, and vararg C/C++ functions.” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed by: Jiewen Yao Reviewed by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16152 6f19259b-4bc3-4df7-8a09-765794883524 commit c609f3d7f9eddd9d1bfe0d0e1a41f1deda5593bc Author: Eric Dong Date: Mon Sep 22 05:37:16 2014 +0000 Correct the convert hex string to decimal value logic. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16150 6f19259b-4bc3-4df7-8a09-765794883524 commit 76d475117dfa86d54cea393f00779301b318ff88 Author: Hess Chen Date: Fri Sep 19 02:04:08 2014 +0000 BaseTools/Upt: Fix several bugs 1. Fix a bug of packaging a full path file in zip at Linux. 2. Fix a format error of generating Hob/Event/BootMode information. 3. Fix a bug of generating additional “GUID” subtype for “UNDEFINED” guid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16149 6f19259b-4bc3-4df7-8a09-765794883524 commit a6e84d95f50a10e23ee9861270fb84057b5af2e9 Author: Ni Ruiyu Date: Fri Sep 19 01:39:45 2014 +0000 ShellPkg: ShellPkg: Fix the cp fail while coping directory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16148 6f19259b-4bc3-4df7-8a09-765794883524 commit 0faec4cf5256beff7b2e9cd4431a32f200515872 Author: Qiu Shumin Date: Fri Sep 19 01:34:44 2014 +0000 ShellPkg: Remove the redundant quotes around the parameter for 'alias'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16147 6f19259b-4bc3-4df7-8a09-765794883524 commit 715096c2448412e54a95092942a397bd4d697524 Author: Qiu Shumin Date: Fri Sep 19 01:32:05 2014 +0000 ShellPkg: Refine code style to avoid potential uninitialized local variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16146 6f19259b-4bc3-4df7-8a09-765794883524 commit ee1c2b77f48bf1c16f51b44c5df2be5b70ac8d33 Author: Olivier Martin Date: Thu Sep 18 21:18:22 2014 +0000 EmbeddedPkg: Introduced NULL library for SerialPortExtLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16145 6f19259b-4bc3-4df7-8a09-765794883524 commit b1a633434ddc5fc28de817debd963f7845fb78c7 Author: Ard Biesheuvel Date: Thu Sep 18 21:16:47 2014 +0000 ArmPkg/TimerDxe: add workaround for KVM timer interrupt handling KVM on ARM currently masks the timer interrupt on the timer side when delivering an interrupt to the guest. This itself is a workaround for an issue where the interrupt is reraised and trapped by the host as soon as the guest is entered, resulting in the guest being starved. Work around this by calling ArmGenericTimerEnable () after servicing each interrupt. The virtual version of ArmGenericTimerCounterLib will then make sure to unmask the interrupt again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16144 6f19259b-4bc3-4df7-8a09-765794883524 commit 601e3607864e680aaabea81f6eb3c49d9edd17e9 Author: Olivier Martin Date: Thu Sep 18 21:15:29 2014 +0000 ArmPlatformPkg: Introduced ArmPlatformSysConfigLib NULL library Some platforms do not have SysConfig controller used by the ARM Versatile Express. Some peripheral drivers currently rely on SysConfigLib (eg: PL031 RTC driver, LCD driver). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16143 6f19259b-4bc3-4df7-8a09-765794883524 commit efb419ea76fb685688507fc6491f3969ee10cd67 Author: Daryl McDaniel Date: Thu Sep 18 19:13:22 2014 +0000 StdLib: Produce DevMedia as a library class alternative to DevShell. AppPkg: Replace existing DevShell dependencies with DevMedia. These patches will NOT cause existing code which uses DevShell to break. During an interim period, either DevShell or DevMedia may be used. In the future, DevShell will be removed from the code base. During the interim, DevShell and DevMedia refer to the same library. StdLib/LibC/Uefi/Devices/daShell.inf Make this library also satisfy the DevMedia library class. StdLib/StdLib.inc Add a library class definition for DevMedia AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.inf AppPkg/Applications/Python/PythonCore.inf AppPkg/Applications/Sockets/GetAddrInfo/GetAddrInfo.inf AppPkg/Applications/Sockets/GetHostByAddr/GetHostByAddr.inf AppPkg/Applications/Sockets/GetHostByDns/GetHostByDns.inf AppPkg/Applications/Sockets/GetHostByName/GetHostByName.inf AppPkg/Applications/Sockets/GetNameInfo/GetNameInfo.inf AppPkg/Applications/Sockets/GetNetByAddr/GetNetByAddr.inf AppPkg/Applications/Sockets/GetNetByName/GetNetByName.inf AppPkg/Applications/Sockets/GetServByName/GetServByName.inf AppPkg/Applications/Sockets/GetServByPort/GetServByPort.inf AppPkg/Applications/Sockets/RecvDgram/RecvDgram.inf AppPkg/Applications/Sockets/SetHostName/SetHostName.inf AppPkg/Applications/Sockets/SetSockOpt/SetSockOpt.inf AppPkg/Applications/Sockets/TftpServer/TftpServer.inf AppPkg/Applications/Sockets/WebServer/WebServer.inf Change LibraryClass dependency from DevShell to DevMedia Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16142 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f5872b1f4013f58c6d2f446d885edd6c8ea6d21 Author: Michael Casadevall Date: Thu Sep 18 18:11:24 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add ArmVirtualizationQemu platform This adds support for executing UEFI in a QEMU/mach-virt emulated environment. The following assumptions are made about the target: - DRAM base at 0x4000_0000, containing the device tree blob - DRAM size at least 1 MB - device tree uses 64-bit physical base addresses and sizes - ARM architected timer - Cortex-A15 CPU (if built for 32-bit) The following information is retrieved from the device tree: - PL011 UART base address - GIC base addresses - virtual timer interrupt - PL031 RTC base address - DRAM size, must be at least 128 MB - virtio MMIO transports - PSCI 0.2 availability (for reset and poweroff) The device tree image is relocated and installed as a configuration table so an EFI stub enabled kernel can be booted directly without the need for a bootloader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16141 6f19259b-4bc3-4df7-8a09-765794883524 commit f1f0ba19f96d34c83e7afed33a5794101f556132 Author: Laszlo Ersek Date: Thu Sep 18 18:07:52 2014 +0000 ArmVirtualizationPkg: add device tree based PL011 SerialPortLib This adds 2 implementations of SerialPortLib for device tree based platforms using a PL011 UART: - an 'early' one which is completely stateless and uses only fixed PCDs - a normal one which takes its base address from a HOB containing the base address discovered in the PEI phase Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-with-remarks-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16140 6f19259b-4bc3-4df7-8a09-765794883524 commit de5f5e93446b592cdf19550cc94c785f0fc453da Author: Laszlo Ersek Date: Thu Sep 18 18:06:22 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: introduce gEarlyPL011BaseAddressGuid This GUID will identify a customized HOB that carries the base address of the PL011 serial port, for clients that cannot access PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16139 6f19259b-4bc3-4df7-8a09-765794883524 commit a36d531f5d565e6cb5496ea53824e36487a227dd Author: Michael Casadevall Date: Thu Sep 18 18:05:03 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: add ArmVirtualizationPlatformLib library This is an implementation of ArmPlatformLib that discovers the size of system DRAM from a device tree blob located at the address passed in gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, which should equal the value in gArmTokenSpaceGuid.PcdSystemMemoryBase. As the device tree blob is passed in system DRAM, this library can only be used if sufficient DRAM is available (>= 128 MB) and if not using shadowed NOR. The reason for this is that it makes it easier to guarantee that such a device tree blob at base of DRAM will not be clobbered before we get a chance to preserve it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16138 6f19259b-4bc3-4df7-8a09-765794883524 commit ad10693231b9bc5ba7bab0f20ce1bf8d8f868c52 Author: Ard Biesheuvel Date: Thu Sep 18 17:59:58 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add VirtFdtDxe driver This driver enumerates the device nodes in the device tree located at the base address passed in gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, and installs drivers for devices it cares about (GIC interrupt controller, RTC, architected timer interrupt) Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16137 6f19259b-4bc3-4df7-8a09-765794883524 commit 433b31ddeeeb5f521b2159c0ae317a16129aac0a Author: Ard Biesheuvel Date: Thu Sep 18 17:58:01 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add PlatformPeiLib library This is a fork of the ARM PlatformPeiLib for virtual machines. The main purpose of having this specific implementation is that it allows us to preserve the device tree blob if it was passed to us in system DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16136 6f19259b-4bc3-4df7-8a09-765794883524 commit ad6f3dafb86b93066ea9e0301629bae0cf7e3018 Author: Ard Biesheuvel Date: Thu Sep 18 17:56:44 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: introduce PCDs for device tree base address Introduce gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress and PcdDeviceTreeInitialBaseAddress, which will be used by virtual machine ports that discover the system configuration from a flattened device tree DTB image. The latter is FixedPcd only, and should contain the initial offset of the DTB, the former may be declared as dynamic, and updated at runtime if the DTB is relocated before the DXE phase. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16135 6f19259b-4bc3-4df7-8a09-765794883524 commit ad90df8ac0182c70fc28218156982a4443d23982 Author: Ard Biesheuvel Date: Thu Sep 18 17:55:17 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add private HobLib implementation for DXE phase To allow a dynamically discovered UART base address, we parse the device tree early and store the base address in a HOB. To prevent circular constructor dependencies from interfering with bringing up the serial port using this dynamic base address, use our own private HobLib with no dependencies on DebugLib either directly or indirectly through UefiLib. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16134 6f19259b-4bc3-4df7-8a09-765794883524 commit 86d96aef474803bf912cd7eeb66a96481f3ada44 Author: Ard Biesheuvel Date: Thu Sep 18 17:53:36 2014 +0000 ArmVirtualizationPkg: add driver for QEMU's NOR flash This adds an implementation of NorFlashPlatformLib that exposes the two 64 MB NOR flash banks that are provided by QEMU's mach-virt emulation both in 32-bit and 64-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16133 6f19259b-4bc3-4df7-8a09-765794883524 commit 85dddd220dbd22f24a8e206cda9b8e1b0ae7b843 Author: Ard Biesheuvel Date: Thu Sep 18 17:52:37 2014 +0000 ArmVirtualizationPkg: add Include/ArmPlatform.h This include file contains platform specific defines, and is shared by various modules. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16132 6f19259b-4bc3-4df7-8a09-765794883524 commit ae97201c55603b69289c5d2349238ea97b2cd35e Author: Fu, Siyuan Date: Thu Sep 18 11:44:36 2014 +0000 1. Update PXE driver to support PXEv6 boot cross subnet. 2. Update IP6 driver to use previous configured prefix length if a pre-exist IP6 address with unspecified prefix length. 3. Add NULL check for Dhcp protocol pointer before it decline the address in Ip6ConfigSetStatefulAddrCallback() function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16131 6f19259b-4bc3-4df7-8a09-765794883524 commit 44833d441beec53e8eaf5acb7d26c018f704247b Author: Eric Dong Date: Thu Sep 18 08:45:26 2014 +0000 Add more check for the code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16129 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d3d422dffd3b5b2dcbfc88728caf31d119fc7e2 Author: Feng Tian Date: Thu Sep 18 06:06:25 2014 +0000 MdeModulePkg/UsbBusDxe: Update Device->NumOfInterface at error handling path to avoid system hang when DisconnectController is invoked to free resource occupied by usb device whose interface descriptor format doesn't follow usb spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16128 6f19259b-4bc3-4df7-8a09-765794883524 commit a308e0588b3ad87b94611391e9e7a04a8eb05ebf Author: Ruiyu Ni Date: Thu Sep 18 01:58:03 2014 +0000 Roll back check in r15180 which caused the shell always returns EFI_ABORTED no matter what exit-code is specified for "exit" command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Carsey Jaben git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16127 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b6b543e77f3237c63e691f35d0bb259ddc287b4 Author: Qiu Shumin Date: Thu Sep 18 01:21:01 2014 +0000 ShellPkg: Fix the support for command line comments. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16126 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d66ee4d177307ca59f08d242e592ec95a325d26 Author: Stefan Kaeser Date: Wed Sep 17 20:58:16 2014 +0000 StdLib: Fix parameter type errors. Fix casts of parameters to sprintf() so that they have the correct type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Stefan Kaeser Reviewed-by: daryl.mcdaniel@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16125 6f19259b-4bc3-4df7-8a09-765794883524 commit ec53da7bfa351186f02496971a39215e1158fb96 Author: Gao, Liming Date: Wed Sep 17 08:47:01 2014 +0000 BaseTools: Update the BaseTools/Source/Python/Makefile to check for dependent files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Hauch, Larry git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16124 6f19259b-4bc3-4df7-8a09-765794883524 commit 75eb337f6040933b0fedf04459f5fbd5b2f8f7c9 Author: Ni Ruiyu Date: Wed Sep 17 08:41:31 2014 +0000 ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16123 6f19259b-4bc3-4df7-8a09-765794883524 commit 0960ba17e596812f211ba334cc6699d45bada328 Author: Qiu Shumin Date: Wed Sep 17 07:58:31 2014 +0000 ShellPkg: Remove redundant quotes in file path string for Shell command parameters. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16122 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a3395f06b95ad5a0a78e23d293929e6809e09e5 Author: Qiu Shumin Date: Wed Sep 17 07:52:35 2014 +0000 ShellPkg: Remove redundant quotes for command 'FOR' in Shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16121 6f19259b-4bc3-4df7-8a09-765794883524 commit 926be9d10cab8f841af5d5b619eb11e8a7a19af9 Author: Qiu Shumin Date: Wed Sep 17 07:48:27 2014 +0000 ShellPkg: Use compare operator for non-Boolean comparisons. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16120 6f19259b-4bc3-4df7-8a09-765794883524 commit 4152ed237940ca064db8d0be55d10d92a02a3a06 Author: Ronald Cron Date: Tue Sep 16 18:21:24 2014 +0000 ShellPkg: Add support for GCC stack protector Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16116 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a8a47e22aba630d3a43d6be491d03ea38420770 Author: Harry Liebel Date: Tue Sep 16 17:46:07 2014 +0000 ShellPkg: Specify AArch64 intrinsics library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16115 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d10d18db9a84d66c27aa8c1e94e7502e7eb1ff6 Author: Gao, Liming Date: Tue Sep 16 09:03:00 2014 +0000 Update Build Tool version from 0.51 to 0.60 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16114 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b9500a1c9e620c9aac565679e2eb77255ba3306 Author: Yingke Liu Date: Tue Sep 16 08:33:40 2014 +0000 Support DSC and FDF file out of WORKSPACE by GenFds. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16113 6f19259b-4bc3-4df7-8a09-765794883524 commit 122d9317cf4ebc474586fcd726b59f15b7b3feb0 Author: Eric Dong Date: Tue Sep 16 07:01:03 2014 +0000 Refine the code, remove the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16112 6f19259b-4bc3-4df7-8a09-765794883524 commit e0a1413d6cc16f782b18c9b4dc628f19c7e901bb Author: Ard Biesheuvel Date: Tue Sep 16 00:56:50 2014 +0000 ArmPlatformPkg: separate PlatformPei and PlatformPeiLib This separates PlatformPei and PlatformPeiLib so the latter can be overridden by a specific platform. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16110 6f19259b-4bc3-4df7-8a09-765794883524 commit fffa852209a521fa340d79ed682693f87ef4205b Author: Olivier Martin Date: Tue Sep 16 00:55:47 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fixed typo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16109 6f19259b-4bc3-4df7-8a09-765794883524 commit 021da07b666c1b1ecac7e82ab9e416a1ddd964c0 Author: Ard Biesheuvel Date: Tue Sep 16 00:51:17 2014 +0000 ArmPsciResetSystemLib: read PSCI method in constructor As this library is used in the implementation of a Runtime Service, make sure to access dynamic PCDs only in the constructor. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16108 6f19259b-4bc3-4df7-8a09-765794883524 commit 2efbf710e27a78494cef38673b85ed360ec3b600 Author: Ard Biesheuvel Date: Tue Sep 16 00:41:45 2014 +0000 ArmPlatformPkg/NorFlashDxe: use MmioWrite () not memory stores When writing to the flash, make sure to use MmioWrite () wrappers instead of letting the compiler generate the store instructions. This is needed because under virtualization, store instructions with multiple outputs (i.e., store pair or store with writeback) cannot be emulated efficiently when operating on MMIO ranges. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16107 6f19259b-4bc3-4df7-8a09-765794883524 commit 438f3ad68f53b372dfbe9ef324d3f51bfd48ca53 Author: Andrew Fish Date: Tue Sep 16 00:38:12 2014 +0000 BaseTools/Source/C: Only used '-Wno-self-assign' when BaseTools are built on DARWIN Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-By: Olivier Martin Tested-By: Olivier Martin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16106 6f19259b-4bc3-4df7-8a09-765794883524 commit 04910ceb352b54fe8edac4c20d9a6515cd5fdad5 Author: Star Zeng Date: Mon Sep 15 09:33:16 2014 +0000 MdeModulePkg XhciPei/UsbBusPei: Enhance code for better device compatibility. 1. Add delay after set device address and get configuration descriptor. 2. Sync the change at R15876 in XhciDxe to do not access transfer ring when endpoint is isochronous type or control type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16105 6f19259b-4bc3-4df7-8a09-765794883524 commit c4a7d20890eb3002926ec669fb229cea3b3528fb Author: Fu, Siyuan Date: Mon Sep 15 03:37:58 2014 +0000 1. Use the PciIo->GetBarAttributes to find the logical bar index of the memory mapped bar and IO mapped bar. 2. Remove unused code for undi 3.0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16104 6f19259b-4bc3-4df7-8a09-765794883524 commit 6c22c0a35defc2177b7a24d588ae2ad7588010a9 Author: lhauch Date: Fri Sep 12 22:59:04 2014 +0000 The current Makefile only checks the primary python file, such as build.py and does not check other files in tool’s directory tree. This modification adds all of the other files within the tool’s directory tree that would be a cause to rebuild the tool. The format in the Makefile for listing these other files was selected to allow the nightly build script to detect changes in the additional files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16103 6f19259b-4bc3-4df7-8a09-765794883524 commit cfffccd9df1ed205721dd21038880a4fa72a5102 Author: Tapan Shah Date: Fri Sep 12 16:46:23 2014 +0000 ShellPkg: Fix ASSERT when bcfg moving boot option with source location = total number of boot options Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16102 6f19259b-4bc3-4df7-8a09-765794883524 commit 84cc912aee71218ea8e4f5a0c597067e956dcd8f Author: Feng, Bob C Date: Fri Sep 12 08:46:30 2014 +0000 This patch is going to fix the issue of the mis-match between the index of Platform DynamicPcd list and Dynamic Pcd generated token number. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16101 6f19259b-4bc3-4df7-8a09-765794883524 commit 010f55d3fb450d2878b73c7376f882edfcf1801e Author: Nikolai Saoukh Date: Fri Sep 12 08:38:23 2014 +0000 UefiCpuPkg: error: invalid instruction mnemonic 'retf' .S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16100 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ae7dcb976a948ce7dea16a4e83f7e5ca1e1d291 Author: Yingke Liu Date: Fri Sep 12 06:57:22 2014 +0000 BaseTools: Fix the regression issue after enbaling s_* an d_* macros in FDF. Add the missing 'MacroDict' field in FfsInfStatement. The issue is that BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 448, in __ExtendMacro__ String = GenFdsGlobalVariable.MacroExtend(String, self.MacroDict) AttributeError: OptRomInfStatement instance has no attribute 'MacroDict' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16099 6f19259b-4bc3-4df7-8a09-765794883524 commit b6341b26989a482466877bd77b7008706dd6aaeb Author: Nikolai Saoukh Date: Fri Sep 12 02:59:34 2014 +0000 UefiCpuPkg: error: invalid instruction mnemonic 'retf' .S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Andrew Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16098 6f19259b-4bc3-4df7-8a09-765794883524 commit c99106b745ccb2c7b66b50117b594eb1a942d4fb Author: Fu, Siyuan Date: Fri Sep 12 00:51:58 2014 +0000 Fix a bug that Dhcp6CalculateLeaseTime() function use incorrect offset on the IaAddress pointer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16097 6f19259b-4bc3-4df7-8a09-765794883524 commit 0164fc8e76b6ca9023c893940ddb00ef0b6bee5a Author: daryl.mcdaniel Date: Thu Sep 11 21:42:26 2014 +0000 StdLib: Fix some build problems and obscure bugs. StdLib\ BsdSocketLib\ ns_print.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. Add a cast from char to (unsigned int) to match its sprintf format. res_debug.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. EfiSocketLib\ Socket.c Update copyright & correct formatting Include\ sys\ EfiCdefs.h Update copyright date Change type of LONGN and ULONGN to INTN and UINTN, respectively. errno.h Update copyright date Add enum member '__ESUCCESS = 0' fcntl.h Update copyright date Improve comment for O_EXCL stat.h Update copyright date Reorder the S_* flags Put the S_* predicate macros in the same order as their flag definitions Add a function header comment to the stat() function declaration. errno.h Update copyright date Define new ESUCCESS error code wchar.h Update copyright date Correct the description of the Nptr parameter to the wcstol, wcstoll, wcstoul, and wcstoull functions. x86\float.h Update copyright date Define 'long double' limits for non-Microsoft compilers LibC\ Containers\Queues\Fifo.c Rewrite to make more robust and secure (zeros out old data) StdLib\realpath.c Update copyright date Reformat descriptive comment for realpath() Add terminating CRLF Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Erik Bjorge Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16096 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fc9f4d8b4c828e9164c48279422f69a214a3bcf Author: Laszlo Ersek Date: Thu Sep 11 19:11:37 2014 +0000 OvmfPkg: resolve BcfgCommandLib class for ShellPkg/.../Shell.inf SVN r16092 ('ShellPkg: Add a new library for "bcfg" command') introduced a new library class (and an instance for it) called BcfgCommandLib. SVN r16093 ('ShellPkg: Use the new library for "bcfg" command') rebased ShellPkg to the new library, introducing a new [LibraryClasses] dependency. Library classes must be resolved to library instances in client platform descriptions (DSC's). Since OVMF is a client platform, import the same library resolution as seen in "ShellPkg/ShellPkg.dsc" (added in SVN r16092). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16095 6f19259b-4bc3-4df7-8a09-765794883524 commit 0acb3d286258f50aec7dea6f86f4567078705ffa Author: Abner Chang Date: Thu Sep 11 06:44:17 2014 +0000 Add support for ${s_*} and ${d_*} macros for in FDF file for the INF files, and for each statement in the build rules. The following keywords are supported: "src", "s_path", "s_dir", "s_name", "s_base", "s_ext", "dst", "d_path", "d_name", "d_base", "d_ext" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Abner Chang Reviewed-by: Yingke Liu Reviewed-by: Larry Hauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16094 6f19259b-4bc3-4df7-8a09-765794883524 commit fba9b6ba24bbbed0666f4e184c95f6b15a581d49 Author: Jaben Carsey Date: Wed Sep 10 20:55:37 2014 +0000 ShellPkg: Use the new library for "bcfg" command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Chris Phillips Reviewed-by: Erik Bjorge Reviewed by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16093 6f19259b-4bc3-4df7-8a09-765794883524 commit 7b01f0f312247afbbeb08880670ae8db81c637cf Author: Jaben Carsey Date: Wed Sep 10 20:30:38 2014 +0000 ShellPkg: Add a new library for "bcfg" command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Chris Phillips Reviewed-by: Erik Bjorge Reviewed by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16092 6f19259b-4bc3-4df7-8a09-765794883524 commit 259ea52b19b027f2998ee700a9883be9c8f69f61 Author: Ard Biesheuvel Date: Wed Sep 10 18:49:43 2014 +0000 ArmPlatformPkg/PL031RealTimeClockLib: use virtual address of runtime services This library accesses SystemTable->RuntimeServices at runtime, which means it should take care to use its updated value after SetVirtualAddressMap () is called. Replace references to gRT with mRT, which we initialize to gRT and update to its virtual value on a virtual address change event. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16091 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a1e861e2925b9c006bcf8f95bd0d720a8c48328 Author: Ard Biesheuvel Date: Wed Sep 10 18:48:47 2014 +0000 ArmPkg/TimerDxe: Read timer frequency from CPU The PCD gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz is used in the SEC phase (if applicable) to write the platform's counter frequency to the CNTFRQ system register, as this needs to be done by the highest exception level implemented. Under virtualization, we should be able to rely on the host to have initialized this register to a sane value, as we run at EL1 and only use the virtual timer, so the PcdArmArchTimerFreqInHz PCD has little meaning here. So in either case, by the time we enter the DXE phase, we can use the CNTFRQ system register to read the frequency instead of looking at the PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16090 6f19259b-4bc3-4df7-8a09-765794883524 commit ca3026d361970847d87a5c6ebb8108b28486e9ec Author: Ard Biesheuvel Date: Wed Sep 10 18:47:30 2014 +0000 ArmPkg: Introduced ArmPsciResetSystemLib This implementation of EfiResetSystemLib uses ARM PSCI calls to perform reboot and poweroff, using either HVC or SMC calls. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16089 6f19259b-4bc3-4df7-8a09-765794883524 commit 58e92b394ee359d2768abdace4dab7baf73c1231 Author: Ard Biesheuvel Date: Wed Sep 10 18:46:23 2014 +0000 ArmPkg: Add ArmHvcLib This is a utility library closely modeled after ArmSmcLib, that allows hypervisor call (HVC) instructions to be issued from C code. Change-Id: I5f5c65f83e910ff98dbb2f5b031dad8c4f663daa Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16088 6f19259b-4bc3-4df7-8a09-765794883524 commit ae9bc0576c6aac3ee2f1aaa4e44f611eb706ec90 Author: Ard Biesheuvel Date: Wed Sep 10 18:45:08 2014 +0000 ArmPkg: Add PSCI 0.2 constants for system poweroff and reset Change-Id: I683a603300812578c15cf3c1e0ccb7574fdb5caf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16087 6f19259b-4bc3-4df7-8a09-765794883524 commit 432dc3c1355dd0b514a052b01ca75254fef523fd Author: Ard Biesheuvel Date: Wed Sep 10 18:44:19 2014 +0000 ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper This fixes a bug in the stack handling in the RVCT .asm version of the SMC wrapper. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16086 6f19259b-4bc3-4df7-8a09-765794883524 commit e5367bfb614f9d4b56f3cf5d8fd16f367d0ea86d Author: Andrew Fish Date: Wed Sep 10 16:48:59 2014 +0000 BaseTools: Fix XCODE5 to work properly with NASM The default object type for NASM is raw binary, and this will not link. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16085 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d443a166cc244d9534f6e9bec9080eb4a32b9d5 Author: Nikolai Saoukh Date: Wed Sep 10 06:14:26 2014 +0000 MdeModulePkg/UsbBusDxe: Fixed Clang build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16084 6f19259b-4bc3-4df7-8a09-765794883524 commit 323d3d111843cb4fbdf4f9918f72d305e63bc091 Author: Qiu Shumin Date: Wed Sep 10 01:03:43 2014 +0000 ShellPkg: Replace the usage of StrnCpy with CopyMem to avoid potential buffer overflow and refine the code style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Signed-off-by: Yao Jiewen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16083 6f19259b-4bc3-4df7-8a09-765794883524 commit c9f4d4838ce92a6c2fb4faf5f46faa3b057b4dee Author: daryl.mcdaniel Date: Tue Sep 9 22:37:02 2014 +0000 AppPkg: Add the Arithchk utility and clean up some build problems. AppPkg\ AppPkg.dsc Update copyright date Add Component ArithChk.inf Applications\ Main\ Main.inf Remove DevShell dependency Python\ Python-2.7.2\Modules\ socketmodule.c Initialize addro, in sock_sendto(), before use. ArithChk\ ArithChk.inf arithchk.c NEW This is a direct port of the arithchk program which is included as part of the NetBSD gdtoa library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16082 6f19259b-4bc3-4df7-8a09-765794883524 commit c21e7a7832f76260a27c5bde30f9593355909279 Author: Andrew Fish Date: Tue Sep 9 21:59:08 2014 +0000 StdLib: Changes needed to support XCODE5 I had to make the following changes to make this build work: >build -p AppPkg/AppPkg.dsc -a X64 -t XCODE5 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16081 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e9b2bddff2217eb23bf9eb5d1052ecfebc39204 Author: Ard Biesheuvel Date: Tue Sep 9 17:59:19 2014 +0000 EmbeddedPkg: Split off FDT loading functionality from FdtLib Split off the recently added functionality to load device tree images and install them as configuration tables, as it introduces a dependency on UefiBootServicesTableLib, preventing FdtLib from being used during SEC and PEI phases. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16080 6f19259b-4bc3-4df7-8a09-765794883524 commit f8d7d6e151e9377412bd368cf8901ac21d6edb36 Author: Ard Biesheuvel Date: Tue Sep 9 16:11:30 2014 +0000 ArmPkg,ArmPlatformPkg: Allow dynamic PCDs for memory base and size This changes the definition and a bunch of references to gArmTokenSpaceGuid.PcdSystemMemoryBase and gArmTokenSpaceGuid.PcdSystemMemorySize so they can be declared as dynamic PCDs by the platform. Also, move the non-SEC call to ArmPlatformInitializeSystemMemory() earlier, so a platform has a chance to set these PCDs before they are first referenced. The purpose is allowing dynamically instantiated virtual machines to declare the system memory by passing a device tree. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16079 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f6d34b434c0f063c68bdd4445da9097358b9afc Author: Ard Biesheuvel Date: Tue Sep 9 16:10:18 2014 +0000 ArmPkg: Move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib Move TimerDxe and ArmArchTimerLib to ArmGenericTimerCounterLib, and update all platforms to select the physical counter instance they have been using implicitly all along. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16078 6f19259b-4bc3-4df7-8a09-765794883524 commit 2785509b57d9ff92321c1083aab4a5ffc9519961 Author: Ard Biesheuvel Date: Tue Sep 9 16:08:42 2014 +0000 ArmPkg/TimerDxe: Register the virt and hyp timer interrupts at init time. Change-Id: I1162dc60140278c0b3da837bf325e3789ababf54 Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16077 6f19259b-4bc3-4df7-8a09-765794883524 commit bcf37cf6002ba538b63172a496b142ab322eff95 Author: Ard Biesheuvel Date: Tue Sep 9 16:07:43 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib implementation using virtual timer This adds an implementation of ArmGenericTimerCounterLib using the virtual architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16076 6f19259b-4bc3-4df7-8a09-765794883524 commit cece12d3f60fbf6e389e28e32f04c0990676c7ac Author: Ard Biesheuvel Date: Tue Sep 9 16:06:10 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib implementation using physical timer This adds an implementation of ArmGenericTimerCounterLib using the physical architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16075 6f19259b-4bc3-4df7-8a09-765794883524 commit e71512520739030324ca0ce6de5c6462eddeea5d Author: Ard Biesheuvel Date: Tue Sep 9 16:04:39 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib interface This introduces ArmGenericTimerCounterLib by adding the include file ArmPkg/Include/Library/ArmGenericTimerCounterLib.h. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16074 6f19259b-4bc3-4df7-8a09-765794883524 commit d4bb43cee15895da3d53009396f1a53aae15c056 Author: Ard Biesheuvel Date: Tue Sep 9 16:03:21 2014 +0000 ArmPkg: Renamed ArmArchTimerLib.h to ArmArchTimer.h The ArmArchTimerLib.h include file is not directly related to the TimerLib instance ArmArchTimerLib, so the name is confusing. Rename to ArmArchTimer.h instead. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16073 6f19259b-4bc3-4df7-8a09-765794883524 commit dc63be2495680e5e156caabbb76041605d628604 Author: Ard Biesheuvel Date: Tue Sep 9 16:00:47 2014 +0000 ArmPkg: allow dynamic GIC base addresses Allow the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase to be redeclared as PcdsDynamic by the platform, so virtual machines can set these properties during boot. As the PcdGet32() calls now call into the PCD database, cache the values that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16072 6f19259b-4bc3-4df7-8a09-765794883524 commit e1e2e66cd6e4adf012138908c891b08a5baecc9e Author: Ard Biesheuvel Date: Tue Sep 9 15:59:38 2014 +0000 ArmPkg: allow dynamically discovered timer interrupts To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16071 6f19259b-4bc3-4df7-8a09-765794883524 commit c41bffd3805f6bd4cbe817c969d21485040f1e3a Author: Harry Liebel Date: Tue Sep 9 15:58:33 2014 +0000 ArmPlatformPkg/Bds: Fix delete boot option - We need to delete the boot option variable from storage not just adjust the BootOrder variable. - The Linux tool 'efibootmgr' still showed the previously removed boot options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16070 6f19259b-4bc3-4df7-8a09-765794883524 commit 01289ec36fc530aebefa38085655d1d656b3339f Author: Harry Liebel Date: Tue Sep 9 15:57:18 2014 +0000 ArmPkg/ArmDisassemblerLib: ARMThumb and AArch64 fixes - Fix ARM Thumb mask operator. This was flagged by a toolchain as warning "use of logical '&&' with constant operand [-Wconstant-logical-operand]" - AArch64 should not be building the ARM32 disassemblers. - Add a AArch64 build target. The disassembler is still to be implemented. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16069 6f19259b-4bc3-4df7-8a09-765794883524 commit 07da1ac8c46425cb401cc5f356ab77b9cc1c334d Author: Anderw Fish Date: Tue Sep 9 06:50:51 2014 +0000 UefiCpuPkg: CpuExceptionHandlerLib: Make self modifying code work with Xcode CpuExceptionHandlerLib has code that contains absolute relocations, not supported by Xcode for X64, and it then copies this code to an alternate location in memory. It is very hard to write IP relative self-modifiying code. I had to update AsmVectorNumFixup() to also patch in the absolute addressess after the code was copied. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16068 6f19259b-4bc3-4df7-8a09-765794883524 commit 19ee4a904982cfacdcb8c578c5d421162fa9488d Author: Anderw Fish Date: Tue Sep 9 06:27:45 2014 +0000 SourceLevelDebugPkg: DebugAgentLib: Fix clang/Xcode 5 compile/link errors Move ExceptionStubHeaderSize from 16 to 32 bits to work around clang relocation limitation. Use movw, not move for 32-bit segment register operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16067 6f19259b-4bc3-4df7-8a09-765794883524 commit 41f80fbd9905cdc9a457e3cdf8110539f948c6b9 Author: Gabriel Somlo Date: Tue Sep 9 03:18:30 2014 +0000 OvmfPkg: AcpiTimerLib: Access power mgmt regs based on host bridge type Pick the appropriate bus:dev.fn for accessing ACPI power management registers (00:01.3 on PIIX4 vs. 00:1f.0 on Q35) based on the device ID of the host bridge (assumed always present at 00:00.0). With this patch, OVMF can boot QEMU's "-machine q35" x86 machine type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16066 6f19259b-4bc3-4df7-8a09-765794883524 commit 769e45317c60b07abe083d7da72ccfd69ad49d60 Author: Gao, Liming Date: Tue Sep 9 02:35:41 2014 +0000 MdeModulePkg: Fix XCODE Link Issue in DxeCore In XCODE tool chain, the 64-bit bit wise and operation is causing the compiler to emit an __umoddi3. This patch uses BaseLib API to replace 64-bit bit operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524 commit cc72674b58c3430c2f4a876ecf8a0474a717a235 Author: Qiu Shumin Date: Tue Sep 9 01:47:19 2014 +0000 ShellPkg: Replace assignment statement with 'StrnCpy' to append terminal NULL character in a string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16064 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d5d829c0e0614337de8ad1c6d85b713d25fe5c7 Author: lhauch Date: Fri Sep 5 14:15:40 2014 +0000 This file allows a developer to add a new tool in either the C or Python trees, add the executable (and any supporting files, such as the TestSigningPrivateKey.pem file) to this file and the build server will automatically make sure that the new files are added to the BaseTools\Bin\Win32 directory. The Win32 directory is located in https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 repository. Developer - Tool add process: 1) Developer adds code for the new tool. 2) Developer updates the Makefile in the C or Python directory a) The entry must make sure that the executable is generated in the BaseTools\Bin\Win32 directory and any supporting files are copied to the same directory as part of the build step. 3) Developer adds the .exe under the [Bin.Win32] section in the BinaryFiles.txt file. 4) Developer adds other files required to be present in the [ExtraFiles.Win32] section in the BinaryFiles.txt file. Build Server: 1) Build all binaries by calling nmake on the Source\C\Makefile and Source\Python\Makefile 2) After building the binaries, the build server verify that the files listed in BaseTools\Source\BinFiles.txt are also in the edk2-toolbinaries project, a. If a file is not under source control, then the build server will add file as long as it is present. File format: [SectionName.TargetDir] File1 File2 … Where: SectionName is one of Bin, ExtraFiles or CxFreeze TargeDir is the name of the subdirectory in the BaseTools\Bin directory tree. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16063 6f19259b-4bc3-4df7-8a09-765794883524 commit a753677e3330d512ba93d797e6ed946b686e0a96 Author: Jaben Carsey Date: Fri Sep 5 02:05:16 2014 +0000 ShellPkg: Not add redundant quotes any longer to parameters with spaces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: : Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16062 6f19259b-4bc3-4df7-8a09-765794883524 commit 33fe83084113c7239bbdedb6ea64194fd4984e52 Author: Qiu Shumin Date: Fri Sep 5 01:01:24 2014 +0000 ShellPkg: Refine the code style and comment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: : Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16061 6f19259b-4bc3-4df7-8a09-765794883524 commit 37a4164af3a9f09f5e8afa3d639fcb514fe92ce7 Author: Jaben Carsey Date: Thu Sep 4 20:55:29 2014 +0000 ShellPkg: Update BCFG command for correct use and errors on moving Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16060 6f19259b-4bc3-4df7-8a09-765794883524 commit 15f8eef78458da1d6270d79724f8e91b56a35371 Author: Jordan Justen Date: Thu Sep 4 15:17:57 2014 +0000 MdePkg NASM Thunk16: Add missing ASM_PFX for InternalAsmThunk16 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16059 6f19259b-4bc3-4df7-8a09-765794883524 commit eabcdf3a3467778f10f3c919e135be531758b5bd Author: Jordan Justen Date: Thu Sep 4 15:17:48 2014 +0000 MdePkg NASM Thunk16: Work around NASM 2.09.04 - 2.10rc1 bug Without this change, NASM 2.09.04 will hang with OVMF+CSM on both IA32 and X64. Tested on OVMF+CSM on GCC49 with NASM 2.07, 2.09.04 and 2.11. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16058 6f19259b-4bc3-4df7-8a09-765794883524 commit 49d9b71df24a5f598df39afc6c13845e00e8f52b Author: Hess Chen Date: Thu Sep 4 08:32:44 2014 +0000 BaseTools/AutoGen: Remove redundant copy action for binary module Remove redundant copy action for binary module to copy binary files to output directory only when the binary module is a library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16057 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a51ad8d20911f31b526a566945f1915c2c41db2 Author: Jaben Carsey Date: Wed Sep 3 17:44:53 2014 +0000 Updates the logic to allow RM and CP to have silent/quiet mode work successfully. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16056 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c064c3189dbf0892167f99245431946b7a74266 Author: Dong, Guo Date: Wed Sep 3 09:19:30 2014 +0000 SecurityPkg VariableRuntimeDxe: Bug fix and and refine debug message. Correct NV variable base address for flash memory attribute set to EFI_MEMORY_RUNTIME. Refine the debug error message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16055 6f19259b-4bc3-4df7-8a09-765794883524 commit e7bafeb9a8254b10d0c8be51b32d3d104672dded Author: Dong, Guo Date: Wed Sep 3 09:16:04 2014 +0000 MdeModulePkg VariableRuntimeDxe: Bug fix and and refine debug message. Correct NV variable base address for flash memory attribute set to EFI_MEMORY_RUNTIME. Refine the debug error message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16054 6f19259b-4bc3-4df7-8a09-765794883524 commit 710db4e899d878ddfbad5da8f1cab0ab746e6dcb Author: Harry Liebel Date: Wed Sep 3 09:04:00 2014 +0000 ShellPkg: Fix dynamic command help - Use Shell Help print function that understands Shell Man Page format. - Move Dynamic help print above the catchall case otherwise the help is printed multiple times in case of man page format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16053 6f19259b-4bc3-4df7-8a09-765794883524 commit 4be58c16a0a2609611b22822ab91b1fd9a47cfe4 Author: Harry Liebel Date: Wed Sep 3 09:03:10 2014 +0000 ShellPkg: Add DXE_DRIVER class type to some libraries Shell Libraries can now be used from Platform Drivers with the introduction of the Shell Dynamic Command Protocol. Adding DXE_DRIVER class allows to use these libraries with this class of driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16052 6f19259b-4bc3-4df7-8a09-765794883524 commit 08ae2c0eec0ac1161115f7bd04dfb1a15d9c25eb Author: Gao, Liming Date: Wed Sep 3 08:56:12 2014 +0000 CryptoPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16051 6f19259b-4bc3-4df7-8a09-765794883524 commit 4cfde6dea6c5040d830411d7cc5e12f627ec6bb5 Author: Gao, Liming Date: Wed Sep 3 08:51:17 2014 +0000 SecurityPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16050 6f19259b-4bc3-4df7-8a09-765794883524 commit 537dafa90aad4eb22c38167d703a300f9682fbb2 Author: Gao, Liming Date: Wed Sep 3 08:50:27 2014 +0000 NetworkPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16049 6f19259b-4bc3-4df7-8a09-765794883524 commit d72b4e2770d3a37634df5aa9702e42e47dc6ac9e Author: Gao, Liming Date: Wed Sep 3 08:49:15 2014 +0000 SourceLevelDebugPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16048 6f19259b-4bc3-4df7-8a09-765794883524 commit ec482fa9baaa2c2b023163f1b414800c45149b00 Author: Gao, Liming Date: Wed Sep 3 08:48:53 2014 +0000 UefiCpuPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16047 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ac6a4df5575b4034f3ba5b1904f2eb274042767 Author: Gao, Liming Date: Wed Sep 3 08:48:29 2014 +0000 PcAtChipsetPkg: Convert non DOS format files to DOS format and rename the same module name. 1. Module UNI and Package UNI files are not DOS format. Convert them to DOS format. 2. BaseAcpiTimerLib and DxeAcpiTimerLib has the same module name. Update them to the different name, and add the module uni file with the updated module name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16046 6f19259b-4bc3-4df7-8a09-765794883524 commit 46dd58879de57e4f395e3245108fff85bb5ee871 Author: Gao, Liming Date: Wed Sep 3 08:45:37 2014 +0000 IntelFrameworkModulePkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16045 6f19259b-4bc3-4df7-8a09-765794883524 commit 35c77daed97acbd189b332b256525e010ce3de1a Author: Gao, Liming Date: Wed Sep 3 08:39:12 2014 +0000 MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 1. Module UNI and Package UNI files are not DOS format. Convert them to DOS format. 2. Remove unused SectionExtractionDxeModStrs.uni and SectionExtractionPeiModStrs.uni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16044 6f19259b-4bc3-4df7-8a09-765794883524 commit f9925e17a79b6bee8928a69cc93f16e3ca01adb8 Author: Gao, Liming Date: Wed Sep 3 08:37:09 2014 +0000 IntelFrameworkPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16043 6f19259b-4bc3-4df7-8a09-765794883524 commit f7ce802f6fbd473beaf9a328643b1edc37ec2d3a Author: Gao, Liming Date: Wed Sep 3 08:33:28 2014 +0000 MdePkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16042 6f19259b-4bc3-4df7-8a09-765794883524 commit cf2b2bdef3d6b5c64b5aa528bb255db81c13d965 Author: Hess Chen Date: Wed Sep 3 08:25:10 2014 +0000 BaseTools/UPT: Replace os.linesep with '\r\n' when generating UNI files. Replace os.linesep with '\r\n' when generating UNI files to make sure all files are under DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16041 6f19259b-4bc3-4df7-8a09-765794883524 commit b5fd61fe8c85a8aec09becd851a782631a8a4aeb Author: Star Zeng Date: Wed Sep 3 06:48:38 2014 +0000 IntelFspPkg/IntelFspWrapperPkg: Fix some typos. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16040 6f19259b-4bc3-4df7-8a09-765794883524 commit 51b8553fd27f8b235c028f7249ec4dd5f0398689 Author: Hess Chen Date: Wed Sep 3 02:09:19 2014 +0000 BaseTools/CommonLib: Add a step to convert ":\\" to ":\" Convert ":\\\\" to ":\\", because it doesn't work with WINDOWS_EXTENSION_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16039 6f19259b-4bc3-4df7-8a09-765794883524 commit 7f79b01e8ef43901785dbccc1f4676cdf9a53d31 Author: Jaben Carsey Date: Tue Sep 2 20:17:38 2014 +0000 ShellPkg: Refactor string manipulation This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16038 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ac6e336ff573f6105d4f776bdf7db1d189c7093 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Sep 2 20:16:47 2014 +0000 Cleanup UefiShellDebug1CommandsLib strings to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc...) * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16037 6f19259b-4bc3-4df7-8a09-765794883524 commit 073fe5871e9a20e694ec49801d2d5c422fc4f8c4 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Sep 2 20:03:36 2014 +0000 Update SmbiosView Shell command to display additional CPU Family and Socket designations, and fix a couple of typos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16036 6f19259b-4bc3-4df7-8a09-765794883524 commit a3d236df1441f07d727e3aa98f865d4695e0a9f4 Author: Scott Duplichan Date: Tue Sep 2 19:50:09 2014 +0000 ShellPkg: Prevent StrnCpy from overwriting null terminator when source is larger than destination. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16035 6f19259b-4bc3-4df7-8a09-765794883524 commit 8edfdee0dc05e5dfc343fca5fffe334d0b359020 Author: Tian, Hot Date: Tue Sep 2 07:50:29 2014 +0000 Minor format update: add missing space in copyright line Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16034 6f19259b-4bc3-4df7-8a09-765794883524 commit 7886a51135b98d5d75184ccdc6d10f449f727607 Author: Long Qin Date: Tue Sep 2 07:08:30 2014 +0000 Update CryptoPkg package version to 0.94. Signed-off-by: Long Qin Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16033 6f19259b-4bc3-4df7-8a09-765794883524 commit 8fcdb5d4ae9454dd79e043799b9153d4cac8cadb Author: Dong, Guo Date: Tue Sep 2 07:05:34 2014 +0000 Update SecurityPkg package version to 0.94. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16032 6f19259b-4bc3-4df7-8a09-765794883524 commit 76052fab298b25c423c0f768eeded4b37899aa0a Author: Feng Tian Date: Tue Sep 2 05:54:02 2014 +0000 Update MdeModulePkg package version to 0.94. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16031 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f70975877b398014664a0d07ec4d50d1909cce3 Author: Jeff Fan Date: Tue Sep 2 05:34:36 2014 +0000 Update IntelFrameworkModulePkg package version to 0.94. Signed-off-by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16030 6f19259b-4bc3-4df7-8a09-765794883524 commit ba4c19c51cacd84d633856e39e2319617741fc89 Author: Jeff Fan Date: Tue Sep 2 05:27:55 2014 +0000 Update IntelFrameworkPkg package version to 0.94. Signed-off-by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16029 6f19259b-4bc3-4df7-8a09-765794883524 commit ff9f93947d9eb33fee4106507193982edb99733f Author: Gao, Liming Date: Tue Sep 2 05:10:46 2014 +0000 Update MdePkg package version from 1.04 to 1.05 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16028 6f19259b-4bc3-4df7-8a09-765794883524 commit f079cdde10001bda108dd031becfe7b8e382e3ae Author: Fu Siyuan Date: Tue Sep 2 03:16:10 2014 +0000 Update NetworkPkg package version to 0.95. Signed-off-by: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16027 6f19259b-4bc3-4df7-8a09-765794883524 commit 18744a5f611f42c325483ffea83ce216bededc7a Author: Olivier Martin Date: Mon Sep 1 17:41:38 2014 +0000 ARM Packages: Removed unused PcdArmPrimaryCore This PCD has been replaced by ArmPlatformIsPrimaryCore() function. Althrough this PCD is still used in some occasions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16026 6f19259b-4bc3-4df7-8a09-765794883524 commit 03e9db1575f063f968f5d369ec648e22df252a87 Author: Jordan Justen Date: Mon Sep 1 17:24:08 2014 +0000 MdePkg BaseLib NASM Thunk16: Initialize _16GdtrBase to 0 Previously we were setting it to the start of the GDT in the UEFI driver's copy of BaseLib. This address is irrelavent, since the C code will initialize it to the cooresponding address after the Thunk16 code has been placed in low memory. Additionally, initializing this was causing a link error for the XCLANG toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16025 6f19259b-4bc3-4df7-8a09-765794883524 commit 7458df400cc77fde6940bde211285c37ee642dc4 Author: Jordan Justen Date: Mon Sep 1 17:23:57 2014 +0000 MdePkg BaseLib NASM Thunk16: Remove remaining 'DB' code Convert remaining 'DB' code to assembly code by: * Move instruction immediate data labels to end of instruction * Use strict keyword to make sure immediate data size is not optimized Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16024 6f19259b-4bc3-4df7-8a09-765794883524 commit f6888eea465a8e293cb46b56c16f9f63eed43f3d Author: Jordan Justen Date: Mon Sep 1 17:23:51 2014 +0000 MdePkg BaseLib NASM Thunk16: Use bits 16 for 16-bit code By using 'bits 16', we can write code for 16-bit use the actual assembly syntax rather than 'DB' and sometimes writing code with seemingly incorrect operands because we know it will run correctly when the processor is running in 16-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16023 6f19259b-4bc3-4df7-8a09-765794883524 commit a8458d6cb3e05157f17c842ddd645dc269c8c12d Author: Jordan Justen Date: Mon Sep 1 17:23:39 2014 +0000 MdePkg BaseLib NASM Thunk16: Use NASM local labels http://www.nasm.us/doc/nasmdoc3.html#section-3.9 A local label is a label beginning with the period, and it's actual name is prefixed by the previous non-local label. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16022 6f19259b-4bc3-4df7-8a09-765794883524 commit fbb5393cb7a496c3e659115257546ed7682f4376 Author: Jordan Justen Date: Mon Sep 1 17:23:33 2014 +0000 MdePkg BaseLib Thunk16: Replace X64 GAS Thunk16 with NASM version This is a translation of X64/Thunk16.asm to NASM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16021 6f19259b-4bc3-4df7-8a09-765794883524 commit 6dab5c8a8a97b70ff329034c2947cff834c0316e Author: Jordan Justen Date: Mon Sep 1 17:23:22 2014 +0000 MdePkg BaseLib Thunk16: Replace IA32 GAS Thunk16 with NASM version This is a translation of Ia32/Thunk16.asm to NASM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16020 6f19259b-4bc3-4df7-8a09-765794883524 commit 02eef553114dea1e4d55071e91398a0625e4e18c Author: Jordan Justen Date: Mon Sep 1 17:23:10 2014 +0000 MdePkg Base.h: Always define ASM_PFX Some compilers may define __USER_LABEL_PREFIX__ to determine the prefix used with ASM_PFX. Otherwise, IA32 will use a single underscore '_' character, and all other architectures will use an empty prefix. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16019 6f19259b-4bc3-4df7-8a09-765794883524 commit b3f9cdaebb8a136c0ff8add4291a8b77dbf4721a Author: Jordan Justen Date: Mon Sep 1 17:22:58 2014 +0000 BaseTools tools_def: Indicate that NASM 2.07 or later is required Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16018 6f19259b-4bc3-4df7-8a09-765794883524 commit ff0279814ae3ed14914c0fa2eefe89d33a4bd6c3 Author: Jordan Justen Date: Mon Sep 1 17:22:51 2014 +0000 BaseTools build_rule: Add .nasm => .obj build rule Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16017 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a5a74358278c241f07f27b3c6f9cb3d33d6c936 Author: Jordan Justen Date: Mon Sep 1 17:07:19 2014 +0000 BaseTools tools_def: Add NASM_FLAGS Note: Only tested with the GCC49 toolchain so far. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16016 6f19259b-4bc3-4df7-8a09-765794883524 commit b4e2799be116bc6bccf97231c0ca19ebdb696148 Author: Ard Biesheuvel Date: Mon Sep 1 15:58:51 2014 +0000 ArmPlatformPkg: allow dynamically discovered PL031 RTC Allow the PCDs gArmPlatformTokenSpaceGuid.PcdPL031RtcBase and gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy PCDs to be declared as PcdsDynamic by the platform so they can be overridden during boot. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16015 6f19259b-4bc3-4df7-8a09-765794883524 commit f6f0612bec9b5e9180ee82ed94eee6b211636ee5 Author: Ard Biesheuvel Date: Mon Sep 1 15:57:51 2014 +0000 ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore Remove the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase from PrePeiCoreUniCore.inf, as they are not in fact used by the module. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16014 6f19259b-4bc3-4df7-8a09-765794883524 commit e754c233a17e24a9da0f1841d9927179e2d748ff Author: Olivier Martin Date: Mon Sep 1 13:24:01 2014 +0000 ArmPkg/BdsLib/Arm: Check Linux image and parameters are not overlapping Check Linux image and parameters are not overlapping with each other. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16013 6f19259b-4bc3-4df7-8a09-765794883524 commit 5779aaafe95e5cf8d9f1b192725bba60c4b9e245 Author: Olivier Martin Date: Mon Sep 1 13:21:54 2014 +0000 ArmPkg/BdsLib/Arm: Clean Data cache before disabling it It is actually the same sequence as AArch64. Without cleaning the data cache prior to disable the cache, the LR value pushed on the stack when entering in ArmCleanInvalidateDataCache() might have been overwritten by this specific cache line maintenance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16012 6f19259b-4bc3-4df7-8a09-765794883524 commit f4b491b56f827052d0823c3217fa2049fd479a7d Author: Ronald Cron Date: Mon Sep 1 13:20:41 2014 +0000 HalRuntimeServicesExampleLib/Rtc.c : Added missing comments Added the header comment block to the function "RtcTimeFieldsValid()" and reworked the alignment of the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16011 6f19259b-4bc3-4df7-8a09-765794883524 commit 947a10b1552cd512c16d562384253a6f52aa5178 Author: Ronald Cron Date: Mon Sep 1 13:19:43 2014 +0000 ArmPlatformPkg/Bds: Corrected a bug in IsPrintableString() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16010 6f19259b-4bc3-4df7-8a09-765794883524 commit 4477336d058015b2e05e890aad2d79bac636789c Author: Ronald Cron Date: Mon Sep 1 13:17:23 2014 +0000 ArmPlatformPkg/Bds: Correct copy of an unaligned Unicode string When a Unicode string is not stored in a 2-byte aligned memory area, the StrnCpy() or StrCpy() functions can not be used to copy the string. The string is now copied using CopyMem(). In the same function, a copy with "AsciiStrnCpy()" has also be replaced with a copy using "CopyMem()" as the size of the string to copy is in normal cases known. Another copy using "AsciiStrnCpy()" has been corrected in order not to run off the array the string is copied into and to ensure that the copied string has a final zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16009 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ce5ea60a96d01daaac4665ca1e27798c37759bb Author: Ruiyu Ni Date: Mon Sep 1 08:48:01 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16008 6f19259b-4bc3-4df7-8a09-765794883524 commit 3957a5a548bd8f8556da9d652795f99134799cef Author: Gao, Liming Date: Sun Aug 31 07:58:31 2014 +0000 ShellPkg Build failure of AllocateZeroPool usage. This patch updates AllocateZeroPool() to AllocateCopyPool() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16007 6f19259b-4bc3-4df7-8a09-765794883524 commit 12d37ace00de68076f487a4cfcf84f8f1de6acd0 Author: Feng, Bob C Date: Sat Aug 30 12:59:03 2014 +0000 This patch is going to fix the issue of only Default SkuId is built into the External Pcd DataBase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16006 6f19259b-4bc3-4df7-8a09-765794883524 commit 284065b0a190584412d78cf77dbd833170b3814a Author: Jaben Carsey Date: Fri Aug 29 22:01:54 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16005 6f19259b-4bc3-4df7-8a09-765794883524 commit 99ab5fc36c544e0b6294bcf40dcada5d76ac2792 Author: Jaben Carsey Date: Fri Aug 29 21:57:42 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16004 6f19259b-4bc3-4df7-8a09-765794883524 commit 531733377ac25083c7a54067a5330fb59f79bdfd Author: Jaben Carsey Date: Fri Aug 29 21:17:46 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16003 6f19259b-4bc3-4df7-8a09-765794883524 commit 81957f8dfccd493ed77b5240b1c0c06f22defd2b Author: Jaben Carsey Date: Fri Aug 29 21:17:27 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16002 6f19259b-4bc3-4df7-8a09-765794883524 commit e87b40b2c71bcc943a1f9a186dc725789eeaf733 Author: Jaben Carsey Date: Fri Aug 29 21:17:03 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16001 6f19259b-4bc3-4df7-8a09-765794883524 commit 28b27e1850f07c41d2129dc25ceb2c3c1f2959a1 Author: Jaben Carsey Date: Fri Aug 29 21:15:05 2014 +0000 The binaries of ShellBinPkg are generated with ShellPkg project 15999. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16000 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ba9b812daf1695bc5f6ac99504e53569297c2bf Author: Tapan Shah Date: Fri Aug 29 20:43:08 2014 +0000 Register pre-defined command aliases in sorted order. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15999 6f19259b-4bc3-4df7-8a09-765794883524 commit 227a4b1c489308275bfbb955c4fd2f3f36e7a04d Author: Tapan Shah Date: Fri Aug 29 20:41:14 2014 +0000 Add CTRL+C support for ‘devices’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15998 6f19259b-4bc3-4df7-8a09-765794883524 commit 89732f464eafc76057e804718284c2667f04c312 Author: Tapan Shah Date: Fri Aug 29 20:40:21 2014 +0000 Cleanup UefiShellLevel1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15997 6f19259b-4bc3-4df7-8a09-765794883524 commit 54206ae7ef7cf8d10991727cc5a6e459f2ce36f6 Author: Tapan Shah Date: Fri Aug 29 20:38:27 2014 +0000 Add CTRL+C support for ‘drivers’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15996 6f19259b-4bc3-4df7-8a09-765794883524 commit 376e759308c07c98b7b26d1291f5f78677280e00 Author: Tapan Shah Date: Fri Aug 29 20:37:32 2014 +0000 Add CTRL+C support for ‘dh’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15995 6f19259b-4bc3-4df7-8a09-765794883524 commit 4bed6d8e5ddc654693582978c29f27bef0d46808 Author: Tapan Shah Date: Fri Aug 29 20:36:23 2014 +0000 Cleanup UefiShellDriver1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15994 6f19259b-4bc3-4df7-8a09-765794883524 commit bbe94d7ab3cc7d0a3c3f00ef7aa1fc019baf09d5 Author: Tapan Shah Date: Fri Aug 29 20:34:34 2014 +0000 Add CTRL+C support for ‘devtree’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15993 6f19259b-4bc3-4df7-8a09-765794883524 commit b7cd151207602029a4985802c7a7998d21e8a6a0 Author: Tapan Shah Date: Fri Aug 29 20:33:31 2014 +0000 Cleanup UefiShellInstall1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15992 6f19259b-4bc3-4df7-8a09-765794883524 commit 288638f0aa07a271481305f07dc6b8fef3b81331 Author: Tapan Shah Date: Fri Aug 29 20:32:15 2014 +0000 Add CTRL+C support for ‘attrib’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15991 6f19259b-4bc3-4df7-8a09-765794883524 commit 078308324f0739361f66ec8ab0ee06a1960d4a6f Author: Tapan Shah Date: Fri Aug 29 20:30:58 2014 +0000 Cleanup UefiShellLevel2CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15990 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a3146d46cea07829a0948f0848db04784541cea Author: Tapan Shah Date: Fri Aug 29 20:24:58 2014 +0000 Add CTRL+C support for ‘ls’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15989 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b5268c8f7223422de1ad5b278355586f088cdde Author: Tapan Shah Date: Fri Aug 29 20:22:48 2014 +0000 Add new aliases called ‘move’ and ‘mount’ for ‘mv’ and ‘map’ commands respectively. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15988 6f19259b-4bc3-4df7-8a09-765794883524 commit 6cef9b9fc33f5cd97c1933823f333e1dd015d88b Author: Tapan Shah Date: Fri Aug 29 20:19:36 2014 +0000 Add new alias called ‘cat’ for ‘type’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15987 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ac0f0709f198d46ebbf7c3cf99e2da379b976aa Author: Tapan Shah Date: Fri Aug 29 20:17:57 2014 +0000 Cleanup UefiShellNetwork1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15986 6f19259b-4bc3-4df7-8a09-765794883524 commit a1eaacffd05f212789df4e9124fc8630c9d97abb Author: Tapan Shah Date: Fri Aug 29 20:16:24 2014 +0000 Cleanup UefiShellLevel3CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15985 6f19259b-4bc3-4df7-8a09-765794883524 commit 16e5cd90ab8e2df099e66325e95b21f4a8aeb6af Author: Tapan Shah Date: Fri Aug 29 20:02:38 2014 +0000 Cleanup UefiDpLib ‘dp’ command help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15984 6f19259b-4bc3-4df7-8a09-765794883524 commit 8649abce5f2db8e59af64b5d9a9ff288caf7369a Author: Anderw Fish Date: Fri Aug 29 18:58:36 2014 +0000 EmulatorPkg: Unix: Use XCODE5 and lldb if Xcode 5 is detected The EmulatorPkg build.sh will use XCODE5 if that is the default toolchain, and default to using lldb if Xcode 5 is dectect. This will work for Xcode 6 and possibly future version of Xcode too. /usr/bin/clang is just a wrapper that calls the currently selected Xcode version. xcode-select is used used to display or set the current version of Xcode used by the command line tools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15983 6f19259b-4bc3-4df7-8a09-765794883524 commit 4880fc9ff7a60f939a0a36b6e081b57dda533d00 Author: Anderw Fish Date: Fri Aug 29 18:52:42 2014 +0000 EmulatorPkg: Unix: Add LLDB support for Xcode 5 Xcode5 retired gdb, so this patch adds support for using, and loading symbols in, lldb. It also supports building with Xcode 5. The lldb script also supports dumping out the build generated guid database and it prints guids out with thier Cname if available. lldbefi.py also contains some EFI specific type formatters. Symbols are loaded via the lldbefi.py script setting a breakpoint on SecGdbScriptBreak() and runing a breakpoint action Python function that uses the arguments to SecGdbScriptBreak() to load symbols. The location of SecGdbScriptBreak() in Host.c was updated to move symbol loading control into the lldb Python script, since lldb only uses the arguments to SecGdbScriptBreak() and not the files generated by the emulator. The +1 on the SecGdbScriptBreak() argument makes it string size, not string length, as this is what the lldb script is looking for. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15982 6f19259b-4bc3-4df7-8a09-765794883524 commit e320062406d72820016be97786fb94ab577a13d1 Author: Anderw Fish Date: Fri Aug 29 18:45:26 2014 +0000 EmulatorPkg: Unix: Fix uninitiailzed variable bug. clang warns on this error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15981 6f19259b-4bc3-4df7-8a09-765794883524 commit 9358dc21e765a6976cdcdcfe4d72f0efb0e26ec1 Author: Anderw Fish Date: Fri Aug 29 18:34:04 2014 +0000 BaseTools: Cleanup XCODE build rules Update C-Code-File rule since XCODE never needs the SYMRENAME step. Add *.S16 to Mash16-Code-File rule to supoprt 16-bit assmebly with XCODE Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15980 6f19259b-4bc3-4df7-8a09-765794883524 commit 4484f397d3e5b28c0f52263309054e3531181c98 Author: Anderw Fish Date: Fri Aug 29 18:29:46 2014 +0000 BaseTools: Add the XCODE5 tools target to supoprt Xcode 5 Xcode 5 changed the arguments required to supoprt X64 EFIAPI so it is a new target. XCODE5 supports Xcode 5.* and Xcode 6.*, and will probably support future versions of Xcode as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15979 6f19259b-4bc3-4df7-8a09-765794883524 commit b37bcfd6bd0254cd7a67ca6af3743d28eaffceec Author: Laszlo Ersek Date: Fri Aug 29 17:27:20 2014 +0000 OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size When setting up the list of GOP modes offered on QEMU's stdvga ("VGA") and QXL ("qxl-vga") video devices, QemuVideoBochsModeSetup() filters those modes against the available framebuffer size. (Refer to SVN r15288 / git commit ec88061e.) The VBE_DISPI_INDEX_VIDEO_MEMORY_64K register of both stdvga and QXL is supposed to report the size of the drawable, VGA-compatibility framebuffer. Instead, up to and including qemu-2.1, this register actually reports the full video RAM (PCI BAR 0) size. In case of stdvga, this happens to be correct, because on that card the full PCI BAR 0 is usable for drawing; there is no difference between "drawable framebuffer size" and "video RAM (PCI BAR 0) size". However, on the QXL card, only an initial portion of the video RAM is suitable for drawing, as compatibility framebuffer; and the value currently reported by VBE_DISPI_INDEX_VIDEO_MEMORY_64K overshoots the valid size. Beyond the drawable range, the video RAM contains buffers and structures for the QXL guest-host protocol. Luckily, the size of the drawable QXL framebuffer can also be read from a register in the QXL ROM BAR (PCI BAR 2), so let's retrieve it from there. Without this fix, OVMF offers too large resolutions on the QXL card (up to the full size of the video RAM). If a GOP client selects such a resolution and draws into the video RAM past the compatibility segment, then the guest corrupts its communication structures (which is invalid guest behavior). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Gerd Hoffmann Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15978 6f19259b-4bc3-4df7-8a09-765794883524 commit fd9abd045e41387ef8e5cfbb4588220cf7a1261d Author: Elvin Li Date: Fri Aug 29 09:01:52 2014 +0000 Allocate EfiReservedMemoryType of memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15977 6f19259b-4bc3-4df7-8a09-765794883524 commit d7325a8c4913360fd736025d498193162d0ac58d Author: Gao, Liming Date: Fri Aug 29 04:49:15 2014 +0000 Correct OpenSSL version in Cryptest.uni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15976 6f19259b-4bc3-4df7-8a09-765794883524 commit de4caceb8b22426e6a8d9e364f63e298cffb4e63 Author: Qiu Shumin Date: Fri Aug 29 01:30:43 2014 +0000 ShellPkg: Remove 'STATIC' from function declarations to avoid source level debugging problem. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: : Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15975 6f19259b-4bc3-4df7-8a09-765794883524 commit 41921ad5c35c098a8ba54f8ffde9fa58dfb000f1 Author: Tapan Shah Date: Thu Aug 28 19:56:08 2014 +0000 ShellPkg: Fix ‘ren’ alias for ‘mv’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Erik Bjorge Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15974 6f19259b-4bc3-4df7-8a09-765794883524 commit c193724bd6ac640bb7d6c63ed2742b1a85093261 Author: Gao, Liming Date: Thu Aug 28 15:43:14 2014 +0000 Add the missing GUID in BdsDxe.inf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15973 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c103c557a58a89138baa0f69e0698ce41337232 Author: Gao, Liming Date: Thu Aug 28 14:49:14 2014 +0000 Don't initialize local variables in its declaration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15972 6f19259b-4bc3-4df7-8a09-765794883524 commit 97fa0ee9b1cffbb4b97ee35365afa7afcf50e174 Author: Yingke Liu Date: Thu Aug 28 13:53:34 2014 +0000 License header updated to match correct format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15971 6f19259b-4bc3-4df7-8a09-765794883524 commit cb9ec399fe8f0ba0d79d788891ac5829c33abc84 Author: Samer El-Haj-Mahmoud elhaj Date: Thu Aug 28 08:17:24 2014 +0000 Add IMAGE_ATTRIBUTE_UEFI_IMAGE definition from UEFI 2.4 specification. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15970 6f19259b-4bc3-4df7-8a09-765794883524 commit 141e0d2a0bbc039f8b97e7718afeafa7cbd3342c Author: Zeng, Star Date: Thu Aug 28 07:03:47 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15969 6f19259b-4bc3-4df7-8a09-765794883524 commit 48695d70bd22ccdf74156cf2a810d452a3e17481 Author: Zeng, Star Date: Thu Aug 28 07:03:27 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15968 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fbebd85996ccf54bcc59966dab6129b76223462 Author: Zeng, Star Date: Thu Aug 28 07:02:57 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15967 6f19259b-4bc3-4df7-8a09-765794883524 commit f9841f04ad2d3ce1157103f97ef7c2bc5979f1de Author: Zeng, Star Date: Thu Aug 28 06:58:44 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15966 6f19259b-4bc3-4df7-8a09-765794883524 commit f3ae2bcfefd93b65bfaa85883d8bac5d41cb7ba8 Author: Zeng, Star Date: Thu Aug 28 06:55:48 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15965 6f19259b-4bc3-4df7-8a09-765794883524 commit fe44bae59240a11430ebf3ab724bdad01101a7ff Author: Zeng, Star Date: Thu Aug 28 06:55:04 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15964 6f19259b-4bc3-4df7-8a09-765794883524 commit fea55a166188d251e1f60ab2ba58c2dccdd11fb2 Author: Zeng, Star Date: Thu Aug 28 06:53:43 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15963 6f19259b-4bc3-4df7-8a09-765794883524 commit 6036e94dc9402827130875258e99e486e82e7904 Author: Zeng, Star Date: Thu Aug 28 06:34:06 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15962 6f19259b-4bc3-4df7-8a09-765794883524 commit f7acc872414700af99ad2ab6b5b3140615bc255a Author: Star Zeng Date: Thu Aug 28 06:31:55 2014 +0000 MdePkg Acpi51.h:Correct the declaration of EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15961 6f19259b-4bc3-4df7-8a09-765794883524 commit f0dab4d0189dcbbc0713bc752d12589f6e350f42 Author: Dong, Guo Date: Thu Aug 28 06:18:03 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15960 6f19259b-4bc3-4df7-8a09-765794883524 commit 72b1863ebffcb7b5284ee0741ec7f1f9080e2539 Author: Dong, Guo Date: Thu Aug 28 06:17:17 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15959 6f19259b-4bc3-4df7-8a09-765794883524 commit bc012551321a42c14aa5cfb28ae946323d1aa381 Author: Star Zeng Date: Thu Aug 28 06:02:43 2014 +0000 MdeModulePkg DxeCore: Handle FFS file with FFS_ATTRIB_CHECKSUM set for not cache memory mapped IO FV. The code FvCheck() will check FFS file checksum to verify if FFS file is valid when the file is with FFS_ATTRIB_CHECKSUM set. The whole file will be read through when doing checksum check. So we can cache FFS file to memory buffer for following checksum calculating first. And then, the cached file buffer can be also used for FvReadFile. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15958 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ccea0ae2f2cb2ef3c7555eef6637ca5e7c85963 Author: Dong, Guo Date: Thu Aug 28 05:52:56 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15957 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a2f2ec353a7e693c7d3de8cba72cf698c9b186e Author: Dong, Guo Date: Thu Aug 28 05:52:36 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15956 6f19259b-4bc3-4df7-8a09-765794883524 commit 18bb9e19c0dd234e454ad8e81397143226238f6d Author: Dong, Guo Date: Thu Aug 28 05:51:39 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15955 6f19259b-4bc3-4df7-8a09-765794883524 commit dda856b3c16240b7c8731ae58af1faf11d979717 Author: Dong, Guo Date: Thu Aug 28 05:50:45 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15954 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ce12df36c11c76621a3e4c59c375f0690a23995 Author: Dong, Guo Date: Thu Aug 28 05:49:39 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15953 6f19259b-4bc3-4df7-8a09-765794883524 commit 606d38a59804ee2f5754430c64030f0c8e1fc498 Author: Dong, Guo Date: Thu Aug 28 05:49:11 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15952 6f19259b-4bc3-4df7-8a09-765794883524 commit aced95158dba795733c2ab63ae2a84863daa3c31 Author: Dong, Guo Date: Thu Aug 28 05:34:23 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15951 6f19259b-4bc3-4df7-8a09-765794883524 commit 60c944c7d63978eee337f52af360ca5d807c11b6 Author: Dong, Guo Date: Thu Aug 28 05:31:09 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15950 6f19259b-4bc3-4df7-8a09-765794883524 commit 5841ba45f2d9dee54c2cf20ea374761207f3bb92 Author: Dong, Guo Date: Thu Aug 28 05:28:51 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15949 6f19259b-4bc3-4df7-8a09-765794883524 commit ddb1ad5893747f8e9ef4796447da77847086c1fe Author: Dong, Guo Date: Thu Aug 28 05:28:22 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15948 6f19259b-4bc3-4df7-8a09-765794883524 commit 332be0dbfa15ad07465bbf849923af8d4dac1490 Author: Dong, Guo Date: Thu Aug 28 05:26:24 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15947 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ef3af3967fd3ae572dcff77f0b627cf23822c0f Author: Dong, Guo Date: Thu Aug 28 05:23:58 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15946 6f19259b-4bc3-4df7-8a09-765794883524 commit 7195ef83ac0bd026cd77f9f990d76f4247e4bc64 Author: Qiu, Shumin Date: Thu Aug 28 05:19:28 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15945 6f19259b-4bc3-4df7-8a09-765794883524 commit b414ac4ddda571df1bda112a888135021d9c87b9 Author: Qiu, Shumin Date: Thu Aug 28 05:19:04 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15944 6f19259b-4bc3-4df7-8a09-765794883524 commit 968ac38f12476d41c0a1e147005ad82b0563d86a Author: Qiu, Shumin Date: Thu Aug 28 05:18:38 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15943 6f19259b-4bc3-4df7-8a09-765794883524 commit 546f14bf7a5ed6e48a3ef188c5d39338a3952180 Author: Qiu, Shumin Date: Thu Aug 28 05:17:22 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15942 6f19259b-4bc3-4df7-8a09-765794883524 commit d4bf50f999af00ba16bc5b52bc834d629defe4c6 Author: Gao, Liming Date: Thu Aug 28 05:14:51 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15941 6f19259b-4bc3-4df7-8a09-765794883524 commit 865ef8430f3675ab1405b2f0b3cd6dd1a0942e20 Author: Gao, Liming Date: Thu Aug 28 05:14:21 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15940 6f19259b-4bc3-4df7-8a09-765794883524 commit a2078569b7d75edf88f6ecaaf408a254b5514591 Author: Gao, Liming Date: Thu Aug 28 05:13:58 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15939 6f19259b-4bc3-4df7-8a09-765794883524 commit f7523dee90d893a7612b5eff94b2bd33b277dde2 Author: Anderw Fish Date: Thu Aug 28 05:13:37 2014 +0000 BaseTools: Fix BaseTools C compiler flags for Xcode 5 -fno-merge-constants is not supported by clang, and it warns it will turn into a hard error in the future. -Wno-deprecated-declarations removes warnings about obsolete libraries that are not secure. -Wno-self-assign removes warnings from LZMA code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15938 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e363936ecb2e38ad4955c8d7718d2ff5204dbb0 Author: Gao, Liming Date: Thu Aug 28 05:13:05 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15937 6f19259b-4bc3-4df7-8a09-765794883524 commit 3387dccb34ec3090d36c336b639cae61df757554 Author: Gao, Liming Date: Thu Aug 28 05:12:05 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15936 6f19259b-4bc3-4df7-8a09-765794883524 commit abae030aecdce785016ddc85dccb72f7cd0caae0 Author: Gao, Liming Date: Thu Aug 28 05:11:45 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15935 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ddb2a23418d9bddad63ecb8505981db8543e325 Author: Gao, Liming Date: Thu Aug 28 05:11:06 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15934 6f19259b-4bc3-4df7-8a09-765794883524 commit e48e07424a72a2bdaa8dfe46198facaca02051d6 Author: Gao, Liming Date: Thu Aug 28 05:09:12 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15933 6f19259b-4bc3-4df7-8a09-765794883524 commit ed395cfecd7abddf69fc124799817a5a12a991d4 Author: Anderw Fish Date: Thu Aug 28 05:04:57 2014 +0000 BaseTools: Fix clang C++ build error Move argument default to constructor to remove clang warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15932 6f19259b-4bc3-4df7-8a09-765794883524 commit 07355bd5ccf46cabb0ad05f1a058c1cfcbad1081 Author: Anderw Fish Date: Thu Aug 28 05:02:35 2014 +0000 [BaseTools] clang warns that since BaseAddress is unsigned it can never be < 0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15931 6f19259b-4bc3-4df7-8a09-765794883524 commit 057ac410e3b8331666cd5246d8414b36e0f3d15f Author: Andrew Fish Date: Thu Aug 28 04:57:12 2014 +0000 BaseTools: add support Xcode 5 in the EmulatorPkg The XCODE32 target is used to build the x86_64 Mac OS X application for the emulator. The other Xcode targets build the EFIAPI needed for UEFI. This patch removes an obsolete command line argument. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15930 6f19259b-4bc3-4df7-8a09-765794883524 commit 459eba01480e14ed15ddb88b515a921c34ee1b0b Author: Anderw Fish Date: Thu Aug 28 03:38:21 2014 +0000 EmulatorPkg:Unix: Add support for X11 on Mac OS X via XQuartz Starting in OS X Mountain Lion X11 is not longer part of the OS install, so you must download it from http://xquartz.macosforge.org. To make XQuartz work with the EmulatorPkg an include path needs to be added. The build tools fail the build if you try to add an absolute inculde path to the X11 headers, so Unix/Host/X11IncludeHack, a symbolic link, was added to get the system building. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15929 6f19259b-4bc3-4df7-8a09-765794883524 commit 03d349ca584334ac9d92908172eaf621dd27a2ca Author: Gao, Liming Date: Thu Aug 28 03:21:49 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15928 6f19259b-4bc3-4df7-8a09-765794883524 commit 18df96da0c94c5a5d9856adb89c994b52e584dff Author: Gao, Liming Date: Thu Aug 28 03:21:06 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15927 6f19259b-4bc3-4df7-8a09-765794883524 commit a8ebaca2c19684289d144259cc73319fe4bc0238 Author: Gao, Liming Date: Thu Aug 28 03:20:46 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15926 6f19259b-4bc3-4df7-8a09-765794883524 commit f15d2c8fed6c9e29ae1695aa082647883f6a3583 Author: Gao, Liming Date: Thu Aug 28 03:19:58 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15925 6f19259b-4bc3-4df7-8a09-765794883524 commit f4260465a848be1e521b099872f0c5c8aed413e5 Author: lhauch Date: Wed Aug 27 16:14:42 2014 +0000 Updated GenBootSector, GenCrc32 and GenPage to remove duplicate “Build” word in the version output, updated the minor number and copyright as needed. Updated the VolInfo version output to remove the tool description from the --version output string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15924 6f19259b-4bc3-4df7-8a09-765794883524 commit c6c4df80de577bdf301363d83bc74dc0453f1ca9 Author: Olivier Martin Date: Wed Aug 27 10:13:36 2014 +0000 ArmPkg/TimerDxe: Fixed real time period Prior to this change, the TimerPeriod was re-initialize at the end of the interrupt handling with the value of the period. It means the real timer period was: Timer Interrupt Processing time + Timer Period Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15923 6f19259b-4bc3-4df7-8a09-765794883524 commit 09c1b24c2f6c95f8c0b952dfd3caa25fd8aa578b Author: Olivier Martin Date: Wed Aug 27 10:12:55 2014 +0000 ArmPkg/TimerDxe: Fixed the reloading of the period Prior to this change the period was restored to the default period. This change restores the latest 'set period'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15922 6f19259b-4bc3-4df7-8a09-765794883524 commit 33292af5f13b18ef5124f32a7bbf0b05b2d519c5 Author: Olivier Martin Date: Wed Aug 27 10:12:00 2014 +0000 ArmPkg/TimerDxe: Changed calculation to allow 1KHz granularity frequency Prior to this change the frequency was rounded to 1Mhz. This change rounds the timer frequency to 1KHz. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15921 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f1cbb011faf2435fa976e61ba7e1ab46a5a09d0 Author: Gao, Liming Date: Wed Aug 27 09:39:59 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15920 6f19259b-4bc3-4df7-8a09-765794883524 commit f5746cb0958e8d7c47b0a76277583c865b3477dc Author: Gao, Liming Date: Wed Aug 27 09:39:04 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15919 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b94012517942f6404536d89d88368a3aca54438 Author: Gao, Liming Date: Wed Aug 27 09:37:07 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15918 6f19259b-4bc3-4df7-8a09-765794883524 commit c92c179040e2b5ec056822ef1716f56e54f64dac Author: Gao, Liming Date: Wed Aug 27 09:33:09 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15917 6f19259b-4bc3-4df7-8a09-765794883524 commit eb1cace292ff0c66ca11eff4703c9fa16219c2a1 Author: Star Zeng Date: Wed Aug 27 08:31:44 2014 +0000 MdeModulePkg DxeCore: Don't cache memory mapped IO FV. Previous DxeCore FwVol code will cache whole FvMain FV from flash that may be uncached if platform reports FvMain FVB, it will impact DXE performance. The code already has file level cache, so don’t need to cache memory mapped IO FV. It can also reduce memory consumption of caching memory mapped IO FVs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15916 6f19259b-4bc3-4df7-8a09-765794883524 commit 436296125b1b013b211d7cfa80df5ea9421bfebd Author: Feng Tian Date: Wed Aug 27 04:08:06 2014 +0000 MdeModulePkg/UsbBusDxe: Fix a bug about the alternate setting number which should be up to 256. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15915 6f19259b-4bc3-4df7-8a09-765794883524 commit 275ea01efdf0aa7be0b5352ff185cc77aef129c0 Author: Eric Dong Date: Wed Aug 27 03:29:01 2014 +0000 Refine the fix for the bug that cause assert when do the reconnect in the callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15914 6f19259b-4bc3-4df7-8a09-765794883524 commit d1984abcb9a9fa7fe0b1e6ee13e71d943718bda8 Author: Ronald Cron Date: Tue Aug 26 15:06:45 2014 +0000 CryptoPkg: Add support of AARCH64 architecture Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15913 6f19259b-4bc3-4df7-8a09-765794883524 commit bccc877842e6a89eb02cd240c458d73eed1ca415 Author: Ronald Cron Date: Tue Aug 26 15:05:58 2014 +0000 CryptoPkg: Add support to build with ARM GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15912 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f7cd8de3b54430f39a01c4db5bbbd2ce5f4a42c Author: Ronald Cron Date: Tue Aug 26 15:05:22 2014 +0000 CryptoPkg: Update to build with RVCT Update RVCT compile options for the CryptoPkg to compile. Add support for stack protector with BaseStackCheckLib to link. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15911 6f19259b-4bc3-4df7-8a09-765794883524 commit ac790db940b6cc5205073e1c8cc9c3f1c01615d4 Author: Elvin Li Date: Tue Aug 26 12:28:15 2014 +0000 AcpiS3Save could try to check PcdIdentifyMappingPageTablePtr is NULL, if it is not, it means someone else has allocate memory for page table, AcpiS3Save could re-use this memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15910 6f19259b-4bc3-4df7-8a09-765794883524 commit b5040e4c55f6c5438cc8a1623f75afc5f76de43e Author: Elvin Li Date: Tue Aug 26 12:26:32 2014 +0000 1. CapsuleLongModeBuffer variable should not have EFI_VARIABLE_RUNTIME_ACCESS attribute. 2. CapsuleLongModeBuffer variable should be set to Read-Only. It should not be changed by someone else. 3. Introduce a new PCD PcdIdentifyMappingPageTablePtr to share the same range of page table between AcpiS3 and Capsule. 4. Capsule stack size is allocated from PcdCapsulePeiLongModeStackSize. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15909 6f19259b-4bc3-4df7-8a09-765794883524 commit 5b38a703b2f0d2cda329cbca63d087a4a9509b46 Author: Olivier Martin Date: Tue Aug 26 10:21:48 2014 +0000 EmbeddedPkg/FdtLib: Added support to load FDT from Firmware Volume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15908 6f19259b-4bc3-4df7-8a09-765794883524 commit 22044caa2cf9a484a01c6290fa5bcee5f157c8b4 Author: Olivier Martin Date: Tue Aug 26 10:20:47 2014 +0000 ArmPlatformPkg/NorFlashDxe: Clean the driver - Marked some functions as STATIC - Simplified some conditions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15907 6f19259b-4bc3-4df7-8a09-765794883524 commit bcb53c42d057b13a198781bdeca3c2cf55b13164 Author: Harry Liebel Date: Tue Aug 26 10:19:52 2014 +0000 ArmPlatformPkg: Provide mechanism to get BootMonFS file information (cont.) Add additional structure to get file meta-data information from BootMonFS based files. AXF files are processed by the Flash loader and the ELF header stripped. The relevant information is stored in the file-system. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15906 6f19259b-4bc3-4df7-8a09-765794883524 commit af16798ef77da84487ed8e64bc955fbd12ac9b1f Author: Olivier Martin Date: Tue Aug 26 10:18:28 2014 +0000 EmbeddedPkg/FdtLib: Added support to load Fdt from Semihosting The FDT is also installed into the UEFI configuration table to be used by the OS loader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15905 6f19259b-4bc3-4df7-8a09-765794883524 commit 749d91f7aaeb9dcc8afc0bf6d9444caff2c2ad62 Author: Harry Liebel Date: Tue Aug 26 10:17:05 2014 +0000 ArmPlatformPkg/Bds: Fix compiler warning - Fix RVCT warning: 'SecondEntry' may be uninitialised. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15904 6f19259b-4bc3-4df7-8a09-765794883524 commit d340ef7542df932198652d0d16109428337c4b30 Author: Olivier Martin Date: Tue Aug 26 10:16:16 2014 +0000 ArmPkg/ArmArchTimerLib: Remove non required [depex] and IoLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15903 6f19259b-4bc3-4df7-8a09-765794883524 commit da5daf369fd4c130e0dbf43c292cc57ee8eabcdf Author: Harry Liebel Date: Tue Aug 26 10:15:21 2014 +0000 ArmPlatformPkg/BootMonFs: Provide mechanism to get BootMonFS file information Add additional structure to get file meta-data information from BootMonFS based files. AXF files are processed by the Flash loader and the ELF header stripped. The relevant information is stored in the file-system. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15902 6f19259b-4bc3-4df7-8a09-765794883524 commit 91c38d4e94c1461f5824b83d3722fe46626aa0d3 Author: Ronald Cron Date: Tue Aug 26 10:14:17 2014 +0000 ARM Packages: Replace tabs by spaces for indentation Replace tabs by spaces for indentation to comply to EDK2 coding standards. Done in files with extension ".S", ".c", ".h", ".asm", ".dsc", ".inc", "*.inf", "*.dec" or ".fdf" and located in ArmPkg, ArmPlatformPkg, EmbeddedPkg, BeagleBoardPkg or Omap35xxPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15901 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c670b2119f85bebacd0b1f5c1c84a831ffd5352 Author: Olivier Martin Date: Tue Aug 26 10:12:06 2014 +0000 ArmPlatformPkg/Bds: Fixed condition on LOAD_OPTION_CATEGORY_BOOT The condition tries to identify if we were starting a EFI OS Loader or EFI Application. But LOAD_OPTION_CATEGORY_BOOT was used as a mask to check the attributes of the boot options while it is not a mask. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15900 6f19259b-4bc3-4df7-8a09-765794883524 commit 3abc11f65ef421ca520fa345945418312bcda279 Author: Eric Dong Date: Tue Aug 26 07:46:38 2014 +0000 Clean up the framework style code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15899 6f19259b-4bc3-4df7-8a09-765794883524 commit c4866c7710c250b83018de6a1fcde6433f87ff3e Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 07:16:29 2014 +0000 The original code does not initialize the global width constants before creating menu options. That caused an issue when long strings are used in the first HII form, but only when displayed for the first time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15898 6f19259b-4bc3-4df7-8a09-765794883524 commit fae62ff21a2127df1cf2672aecd1faad95b4a6e7 Author: Hess Chen Date: Tue Aug 26 07:14:38 2014 +0000 This patch is going to: 1. Support a force binary build mode by adding “--ignore-source” to command line options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15897 6f19259b-4bc3-4df7-8a09-765794883524 commit 421ccda3079077dd613308526e02d797f5cc356a Author: Hess Chen Date: Tue Aug 26 05:58:02 2014 +0000 This patch is going to: 1. Add a recovery mode for UPT failure 2. Add UNI file support 3. Add binary file header support 4. Add support for PCD error message 5. Add support for replace 6. Format generated INF/DEC files 7. Update dependency check 8. Other minor fixes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15896 6f19259b-4bc3-4df7-8a09-765794883524 commit f0aa06e385c41743ac805bed9469aac336a6ec4c Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 05:30:49 2014 +0000 Add PCI PMC and PMCSR register definitions from PCI Power Management Interface Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15895 6f19259b-4bc3-4df7-8a09-765794883524 commit ba0ef1e42df623526ac4ae453567459bd2003467 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 05:02:58 2014 +0000 Update EFI_DRIVER_HEALTH_HII_MESSAGE definition from UEFI 2.4 specification to replace Reserved with MessageCode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15894 6f19259b-4bc3-4df7-8a09-765794883524 commit a0a2cd1ea6933bdd54165b8e9a403e7e7f492822 Author: Feng, Bob C Date: Tue Aug 26 02:52:24 2014 +0000 This patch is going to correct the external PCD database generation rule to support the case that all binary driver are only listed in FDF file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15893 6f19259b-4bc3-4df7-8a09-765794883524 commit fad213a3db737a5601869d155abe499a7df66715 Author: Jordan Justen Date: Mon Aug 25 23:10:18 2014 +0000 EDK II Contributions.txt: Note acceptable contribution licenses We strongly prefer that contribtions be offered using the same license as the project/module. But, we should document other acceptable licenses for contributions. This will allow package owners to more easily know if they can accept a contribution under a different source license. NOTE: This does not modify the wording of the "TianoCore Contribution Agreement 1.0" section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Mark Doran git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15892 6f19259b-4bc3-4df7-8a09-765794883524 commit 460f337bc035b61dec3819f4b62a7181e3631b3f Author: Daryl McDaniel Date: Mon Aug 25 20:47:20 2014 +0000 AppPkg/Applications/Sockets/TftpServer: Make the include file names match the case of the files in the file system. Change “#include ” to “#include ”. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Leahy, Leroy P git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15891 6f19259b-4bc3-4df7-8a09-765794883524 commit d90aa46258726412d9b9d77cfeb879adad837067 Author: lhauch Date: Mon Aug 25 20:06:55 2014 +0000 BootSectImage.exe, EfiLdrImage.exe and Split.exe tools have incorrect output from the --version option. This patch fixes the --version option output and corrects the description displayed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15890 6f19259b-4bc3-4df7-8a09-765794883524 commit 59577231a763edbf3a765f0900b3db3dd610972c Author: Qiu Shumin Date: Mon Aug 25 17:56:27 2014 +0000 ShellPkg: Replace non-ASCII character in Pci.c to fix GCC build error For Invalid character ‘-’ in Pci.c line 806 and line 811, using ASCII encoding byte 0x2d to replace. Example error from GCC 4.9: ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c:806:5: error: converting to execution character set: Invalid or incomplete multibyte or wide character L"Ethernet (802.11a � 5 GHz)", ^ Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey Tested-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15889 6f19259b-4bc3-4df7-8a09-765794883524 commit a361d391601b82b4e9c1877f53c0dfe753febd43 Author: Qiu Shumin Date: Mon Aug 25 08:04:52 2014 +0000 Append the terminating null character at the end of the string to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15888 6f19259b-4bc3-4df7-8a09-765794883524 commit b69fd59e6f1a884e1f3e42f4fd07e59060782cc1 Author: Yingke Liu Date: Mon Aug 25 05:00:34 2014 +0000 Fix nmake cleanall bugs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15887 6f19259b-4bc3-4df7-8a09-765794883524 commit b3d07ff8d21ecab5a8060815e9abe73c904e3ed9 Author: Hess Chen Date: Mon Aug 25 01:16:34 2014 +0000 This patch is going to: 1. Add a checkpoint to check if an UNI file is a valid UTF-16 file 2. Add a checkpoint to check if a GUID/PPI/PROTOCOL/PCD is in a valid format. 3. Some other minor changes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15886 6f19259b-4bc3-4df7-8a09-765794883524 commit f056e4c18047e9a0157a915175d07afbd8b8c581 Author: Jaben Carsey Date: Fri Aug 22 17:02:11 2014 +0000 ShellPkg: Update 'pci' command for updated class codes This updated the strings to be compliant with PCI CODE AND ID ASSIGNMENT SPECIFICATION 1.5. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Chris Phillips Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15885 6f19259b-4bc3-4df7-8a09-765794883524 commit c173a7b9d6f239e3a002f4e9c37db98a8f98f771 Author: Chris Phillips Date: Fri Aug 22 17:00:49 2014 +0000 ShellPkg: Fixes and updates for the 'devices' command - Update 'devices -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'devices' output format for better alignment when there are many device handles: T D Y C I P F A CTRL E G G #P #D #C Device Name ==== = = = == == === ========================================================= Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15884 6f19259b-4bc3-4df7-8a09-765794883524 commit 83185c5a0e3e79fa22bf33c61d4e228cedd22ef5 Author: lhauch Date: Fri Aug 22 16:08:47 2014 +0000 Updated version, missed the last two commits and to add the SVN Revision property (last part of the version value). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15883 6f19259b-4bc3-4df7-8a09-765794883524 commit cea5e3b9bfd55f32d7f8b0df5d613e38597d28a1 Author: Jaben Carsey Date: Fri Aug 22 16:06:55 2014 +0000 ShellPkg: Refactor string manipulation This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15882 6f19259b-4bc3-4df7-8a09-765794883524 commit cd92f93847f8d79e2e4e1e81dead208d0feec5f6 Author: lhauch Date: Fri Aug 22 15:56:54 2014 +0000 Fixed the PATH again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15881 6f19259b-4bc3-4df7-8a09-765794883524 commit bd4fa6f53c489df94acd2a414f0cb2c11be6c7a4 Author: lhauch Date: Fri Aug 22 15:47:45 2014 +0000 Updated to check for NASM_PREFIXE system environment variable, also to fix an issue with path environment variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15880 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ece15ad809c0c7620af22d8bd5fa9877b8b3e55 Author: Dong, Guo Date: Fri Aug 22 05:05:22 2014 +0000 Update TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported to be used as patchable PCD instead of Fixed PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15879 6f19259b-4bc3-4df7-8a09-765794883524 commit 6809c8723efbc37566db9cd35b725aa81b304094 Author: Gao, Liming Date: Fri Aug 22 02:34:20 2014 +0000 Only reserve the aligned memory instead of reserving the unaligned memory in PeiMemoryAllocationLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15878 6f19259b-4bc3-4df7-8a09-765794883524 commit fa7fadf78e064d1d73d21d0487e2a31a394a88ae Author: Star Zeng Date: Fri Aug 22 01:23:28 2014 +0000 IntelFspPkg BaseCacheLib: State CacheAsRamLib in its inf, because it consumes DisableCacheAsRam() that is the interface of CacheAsRamLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15877 6f19259b-4bc3-4df7-8a09-765794883524 commit acedecdd5ec4f45c9b7d456d01017c43e9fd2fb2 Author: Elvin Li Date: Fri Aug 22 01:13:48 2014 +0000 Do not access transfer ring when endpoint is isochronous type and control type. And when one Endpoint is a unknown type, do not ASSERT(0) and process next endpoint. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15876 6f19259b-4bc3-4df7-8a09-765794883524 commit 5eadb80f09b246f6934468535dfcaedaccd59c0c Author: Jaben Carsey Date: Thu Aug 21 22:13:08 2014 +0000 ShellPkg: leave quotes around params Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15875 6f19259b-4bc3-4df7-8a09-765794883524 commit a0d367299fab5d7ce1a3b71aea176a500f9e7950 Author: Daryl McDaniel Date: Thu Aug 21 20:58:05 2014 +0000 StdLib/LibC/gdtoa: Initialize variables before use, update the Kmax definition. gdtoaimp.h: update the Kmax definition. strtodg.c: initialize variables before use. general: Remove conditional sections for VAX and IBM mainframe. Remove conditional sections for pre-ANSI (K&R) function prototypes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15874 6f19259b-4bc3-4df7-8a09-765794883524 commit 78d42190ce066d36909ec63b213b37dc04b9f2c4 Author: Chris Phillips Date: Thu Aug 21 20:28:32 2014 +0000 ShellPkg: Fixes and updates for the 'parse' command - Fix SFO file parsing to match UEFI Shell 2.1 spec - Update help output for easier viewing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15873 6f19259b-4bc3-4df7-8a09-765794883524 commit 73768087c464615d95ea95fb4a281cbfb17147a3 Author: Chris Phillips Date: Thu Aug 21 20:26:32 2014 +0000 ShellPkg: Fixes and updates for the 'memmap' command - Update 'memmap -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'memmap' output format for better alignment Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15872 6f19259b-4bc3-4df7-8a09-765794883524 commit d41a79a0daaac52b3c555695d4dd3873d6f019c0 Author: Chris Phillips Date: Thu Aug 21 20:18:47 2014 +0000 ShellPkg: Add support for UEFI Shell 2.1 spec command line comments Example: Shell> echo "You are ^#1!" # Testing echo You are #1! Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15871 6f19259b-4bc3-4df7-8a09-765794883524 commit a29117bf9e278763dfa6113492eb443be4ab67bc Author: Chris Phillips Date: Thu Aug 21 20:16:32 2014 +0000 ShellPkg: Fixes and updates for the 'drivers' command - Update 'drivers -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'drivers' output format for better alignment T D Y C I P F A DRV VERSION E G G #D #C DRIVER NAME IMAGE PATH === ======== = = = === === =================================== ========== Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15870 6f19259b-4bc3-4df7-8a09-765794883524 commit 53715dcd5065883f83152d17b128aa1be120c4fb Author: Chris Phillips Date: Thu Aug 21 19:59:49 2014 +0000 ShellPkg: Fix 'ls -sfo' and 'map -sfo' output format to match UEFI Shell 2.1 spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15869 6f19259b-4bc3-4df7-8a09-765794883524 commit bf47c6a11b1fca90fe17070e0197963d4d586603 Author: lhauch Date: Thu Aug 21 17:20:55 2014 +0000 Setting the svn property, svn:executable on the new scripts. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15868 6f19259b-4bc3-4df7-8a09-765794883524 commit bd63012c73486e306a90bc28805d8914b70c8859 Author: lhauch Date: Thu Aug 21 16:41:41 2014 +0000 Adding files for proposed replacement for edksetup.bat. This changes includes new scripts that breaks out some of the functionality in edksetup.bat and eliminates calling the toolsetup.bat file in BaseTools directory. Edk2Setup.bat is to be used for testing. If no bugs are reported by the end of September, 2014, the file will be renamed to edksetup.bat. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15867 6f19259b-4bc3-4df7-8a09-765794883524 commit 66c6d4d67ed870e9135c05a1f4deb03843c9faec Author: Andrew Fish Date: Thu Aug 21 09:23:58 2014 +0000 MdePkg: Introduced BaseStackCheckLib (cont.) Liming proposed different changes compare to the latest patch. This commit ensures the changes goes in his direction. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15866 6f19259b-4bc3-4df7-8a09-765794883524 commit 0923aa1c3ad1a68f4781a98897889f3976d1b83d Author: Hess Chen Date: Thu Aug 21 07:51:21 2014 +0000 This patch is going to: 1. Skip the content defined in USER EXTENSION section without raising an error. 2. Wrap os.utime to use two arguments. 3. Add GenFdsCommand for PlatformAutoGen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15865 6f19259b-4bc3-4df7-8a09-765794883524 commit 07b8564b113431f70ef4fcc469a42be5e4700263 Author: Yingke Liu Date: Thu Aug 21 07:12:33 2014 +0000 AutoGen.c can only be generated if the module has intermediate object files generated or links other libraries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15864 6f19259b-4bc3-4df7-8a09-765794883524 commit 231ea883ed13a43157e2ceca5869d02d5d727526 Author: Qiu Shumin Date: Thu Aug 21 05:35:25 2014 +0000 Allocate exact memory size for string buffer to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15863 6f19259b-4bc3-4df7-8a09-765794883524 commit acbd7f9f1738561520c3ee78d683e0164ecf5764 Author: Qiu Shumin Date: Thu Aug 21 05:26:25 2014 +0000 Append the terminating null character at the end of the string to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Tian Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15862 6f19259b-4bc3-4df7-8a09-765794883524 commit 709edd4444384da6ed85d7fbead14d41b9f9f7f9 Author: Ruiyu Ni Date: Thu Aug 21 03:45:30 2014 +0000 Check in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools (r15860), FatPkg (r86). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15861 6f19259b-4bc3-4df7-8a09-765794883524 commit fcd4fbf30d77873467ce8e2c386f33425b3ae668 Author: Yingke Liu Date: Thu Aug 21 01:39:18 2014 +0000 1. AutoGen.c should be generated if it is not empty even if there are no C source files. 2. If there are sub directories in current module, the corresponding directory in OUTPUT should be created. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Chen, Hesheng Reviewed-by: Feng, Bob C git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15860 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e398dc7392bcf5f855ab76192f226051b05a309 Author: Olivier Martin Date: Wed Aug 20 23:20:54 2014 +0000 StdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf. NOTE: Replaces the previous version which was a file from the wrong project. Applies the patch, submitted by Olivier Martin, to use va_arg for long double. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Daryl McDaniel Includes some cosmetic changes to enhance readability. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15859 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bc81f40096526647ce5c74dadea42d2ab9363f5 Author: Harry Liebel Date: Wed Aug 20 21:55:45 2014 +0000 StdLib/LibC: Fix ARM symbol problems StdLibPrivateInternalFiles: Add AArch64 support Disable 'memcpy' symbol for ARM in LibC. It is already provided by the ARM compiler intrinsics library. Add missing 'strtold' symbol. Use the same fallback as IPF for now. Use Include definitions as provided by ARM version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15858 6f19259b-4bc3-4df7-8a09-765794883524 commit df294f7ff0160dbb52a36642f5f482eb639feb76 Author: Harry Liebel Date: Wed Aug 20 21:51:49 2014 +0000 AppPkg: Enable ARM and AArch64 support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15857 6f19259b-4bc3-4df7-8a09-765794883524 commit 9792ff7c5d0d35b5fff06453a623dce80a2754e8 Author: Olivier Martin Date: Wed Aug 20 21:11:26 2014 +0000 StdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf. Applies the patch, submitted by Olivier Martin, to use va_arg for long double. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Daryl McDaniel Also initializes an array so that strings will be properly terminated. Includes some cosmetic changes to enhance readability. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15856 6f19259b-4bc3-4df7-8a09-765794883524 commit dfa8858555070f08ba9df2c2dde837f8c7620b51 Author: Daryl McDaniel Date: Wed Aug 20 20:38:43 2014 +0000 StdLib: Add a runtime helper function for VC++ 64-bit right shift on Ia32 target architectures. Add new file StdLib/LibC/CRT/Ia32/llshr.c Add references to the new file to StdLib/LibC/LibC.inf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15855 6f19259b-4bc3-4df7-8a09-765794883524 commit cb6032832355f5abe3967862603625f11b710418 Author: Olivier Martin Date: Wed Aug 20 18:02:38 2014 +0000 BaseTools: Added support for GCC stack protector for ARM architecture Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15854 6f19259b-4bc3-4df7-8a09-765794883524 commit bd1d062820f787200269b4deb5d80f98137e23a0 Author: Olivier Martin olivier.martin Date: Wed Aug 20 18:01:50 2014 +0000 ARM Packages: Added support for GCC stack protector Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Date: Wed Aug 20 18:00:38 2014 +0000 MdePkg: Introduced BaseStackCheckLib (cont.) This library only support GCC, RVCT and XCode for now. The new files were missing from SVN rev15851. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15852 6f19259b-4bc3-4df7-8a09-765794883524 commit 4bc7d5b5ecd3a48dbf68848a8ebc3bea48decdbe Author: Andrew Fish Date: Wed Aug 20 17:58:46 2014 +0000 MdePkg: Introduced BaseStackCheckLib This library only support GCC, RVCT and XCode for now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15851 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a539eb53651074bc376271a94dbc23b171745c6 Author: Olivier Martin Date: Wed Aug 20 17:57:34 2014 +0000 ArmPkg/ArmLib/ArmV7: Fixed ArmIsMpCore() The function was not returning the expected value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15850 6f19259b-4bc3-4df7-8a09-765794883524 commit febad023bfa78ed41e5d932f44e96a0f6c7b360a Author: Olivier Martin Date: Wed Aug 20 11:38:45 2014 +0000 ARM Packages: Removed malicious trailing spaces Some trailing spaces were missing from the previous patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15849 6f19259b-4bc3-4df7-8a09-765794883524 commit b5412eac9eaccaed53ab32f6c3dd016e71f44a0e Author: Dong, Guo Date: Wed Aug 20 09:37:26 2014 +0000 Update TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported to be used as patchable PCD instead of Fixed PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15848 6f19259b-4bc3-4df7-8a09-765794883524 commit df0cee8d8ce6fefc7b38ac238479300bb3051298 Author: Hess Chen Date: Wed Aug 20 07:41:38 2014 +0000 This patch is going to: 1. Fix a bug in GenFds for wrongly handling '"' of command line parameter. 2. Provide different input parameter mode for different OS. For Linux, using a list. For Windows, using a string. 3. Remove 3 un-existing function calling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15847 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a13a624136bf2b278851316d8eae23611d93ad2 Author: Star Zeng Date: Wed Aug 20 07:05:55 2014 +0000 MdeModulePkg PeiCore: Add NULL pointer check. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15846 6f19259b-4bc3-4df7-8a09-765794883524 commit f95e6f6b00f800e7f36cc761d9048735d595f21e Author: Eric Dong Date: Wed Aug 20 04:31:22 2014 +0000 IntelFrameworkModulePkg/SourceLevelDebugPkg: Fix the typo about word “hanlde” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15845 6f19259b-4bc3-4df7-8a09-765794883524 commit 4805b4b5ddf133ad75db9312cc6d63cd77b33215 Author: Yingke Liu Date: Wed Aug 20 02:26:07 2014 +0000 Fix an issue of building BaseTools from sources using VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Hauch, Larry Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15844 6f19259b-4bc3-4df7-8a09-765794883524 commit 64fabae54bf39a3b164e911b9d3ff6985dc66036 Author: Eric Dong Date: Wed Aug 20 02:06:12 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: improve coding style - The edk2 coding style prefers each variable declaration to stand on its own line. - Internal linkage (ie. STATIC) functions have caused problems with source level debugging before, so we generally avoid STATIC in MdePkg. - Even forward declarations of functions should carry full comment blocks. - Nullity checks in controlling expressions should be spelled out explicitly, as (Ptr != NULL). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15843 6f19259b-4bc3-4df7-8a09-765794883524 commit 30cad98e5fc4dfff73486b5b9e420a0a0b7a1bed Author: Qiu Shumin Date: Wed Aug 20 01:20:53 2014 +0000 ShellPkg: Fix typo in 'uni' files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15842 6f19259b-4bc3-4df7-8a09-765794883524 commit e7e0e42baca19cf7e5a7d2ac5574f97c0ecaf134 Author: Chris Phillips Date: Tue Aug 19 23:15:22 2014 +0000 ShellPkg: Move mHandleParsingHiiHandle init out of the constructor Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Signed-off-by: Eugene Cohen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15841 6f19259b-4bc3-4df7-8a09-765794883524 commit deb21fd0ea32eee860768ae309bf4e06e7edaea9 Author: Chris Phillips Date: Tue Aug 19 23:05:44 2014 +0000 ShellPkg: Fixes for timezone handling and 'date -sfo' - Update 'date -sfo' format to match UEFI Shell 2.1 spec - Fixes to correctly initialize Second - Set correct sign when setting timezone with the 'time -tz' command. Now matches UEFI spec calculation of "Localtime = UTC - TimeZone" - Display "LOCAL" when TimeZone == EFI_UNSPECIFIED_TIMEZONE - Allow a timezone of '_local' to be provided by user - Better invalid command line checking Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15840 6f19259b-4bc3-4df7-8a09-765794883524 commit 98c16be5886b84740a0e8f68998fbeba749c5f62 Author: Jaben Carsey Date: Tue Aug 19 21:00:34 2014 +0000 ShellPkg: Refactor string manipulation in UefiShellLib command This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15839 6f19259b-4bc3-4df7-8a09-765794883524 commit 8af89dae12d88f8897763b12636ddb373cf2ed46 Author: Jaben Carsey Date: Tue Aug 19 20:58:03 2014 +0000 ShellPkg: Check while string up to space, not the character Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15838 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eb5b4f28b0f0d28ab844b7d444c822f90784978 Author: Olivier Martin Date: Tue Aug 19 13:36:36 2014 +0000 ArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15837 6f19259b-4bc3-4df7-8a09-765794883524 commit 743a2a550c9e77419968500216c9383296910ebf Author: Olivier Martin Date: Tue Aug 19 13:36:00 2014 +0000 ArmPlatformPkg/Scripts: Update the profiling script to work on AArch64 with the latest DS-5 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15836 6f19259b-4bc3-4df7-8a09-765794883524 commit 04ad241e2081312be62a9f299311949e85ed725c Author: Olivier Martin Date: Tue Aug 19 13:35:14 2014 +0000 ArmPkg/BdsLib: Prevent a hang in BdsConnectDevicePath() when a sub-device path is not found Some device paths were making BdsConnectDevicePath() hang. To prevent these hangs we check if the handle returned by gBS->LocateDevicePath() is the same after each iteration. An example of a device path that hangs: PciRoot(0x0)/Pci(0x1,0x0)/USB(0x0,0x0)/USB(0x3,0x0)/HD(...) The connect controller function manages to find PciRoot()/Pci(0x1,0x0) but the USB driver does not produce USB(0x0,0x0)/USB(0x3,0x0) and returns EFI_SUCCESS on its initialization. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15835 6f19259b-4bc3-4df7-8a09-765794883524 commit 5e6322a53066b59c3d351d6ce3e07e07cd08e8dd Author: Olivier Martin Date: Tue Aug 19 13:34:12 2014 +0000 ArmPlatformPkg/Bds: Fixed typo issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15834 6f19259b-4bc3-4df7-8a09-765794883524 commit 3402aac7d985bf8a9f9d3c639f3fe93609380513 Author: Ronald Cron Date: Tue Aug 19 13:29:52 2014 +0000 ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 commit 62d441fb17d59958bf00c4a1f3b52bf6a0b40b24 Author: Ronald Cron Date: Tue Aug 19 13:22:20 2014 +0000 ARM Packages: Corrected non-DOS line endings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15832 6f19259b-4bc3-4df7-8a09-765794883524 commit 01ce3538131437b2deae873ce5aeccf05951ebac Author: Hess Chen Date: Tue Aug 19 08:22:04 2014 +0000 This patch is going to fix a build failure (running of GenFds) in Linux system caused by patch at r15816. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15831 6f19259b-4bc3-4df7-8a09-765794883524 commit e62fa17c58044af3a31239efe8996701a5cd5cbc Author: Eric Dong Date: Tue Aug 19 08:10:09 2014 +0000 Clean up the useless code in DriverSampleDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15830 6f19259b-4bc3-4df7-8a09-765794883524 commit 17e95ca9a7ab5cbffd75700fe9516abc20239c2a Author: Eric Dong Date: Tue Aug 19 07:20:19 2014 +0000 Refine the code logic, use dynamic allocate buffer instead of static array to fix potential buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15829 6f19259b-4bc3-4df7-8a09-765794883524 commit 69c0fbd2c51739ea0fb4b9b4a4796b674e6d1d6e Author: Sergey Isakov Date: Tue Aug 19 05:37:28 2014 +0000 MdeModulePkg/PartitionDxe: Simplify the error handling of DriverBindingSupported(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15828 6f19259b-4bc3-4df7-8a09-765794883524 commit d5eea98e200c2f82d6ff4854d5539e71688fd514 Author: Eric Dong Date: Tue Aug 19 02:44:24 2014 +0000 Refine the comments for the function header. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15827 6f19259b-4bc3-4df7-8a09-765794883524 commit 3449f56dac9cb423d648e45d4fa514c509b0b724 Author: Jordan Justen Date: Mon Aug 18 23:04:24 2014 +0000 UefiCpuPkg: Add ResetVector/FixupVtf This implements the older VTF ResetVector code often used on EDK II IA32 & X64 platforms. This VTF requires build time fixups in order to find the SEC entry point. The BaseTools GenFv tool has code that patches the jump target of the reset vector code to match the entry point of the SEC image in the PEI Firmware Volume. v2: * Rename from OldVtf to FixupVtf * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15826 6f19259b-4bc3-4df7-8a09-765794883524 commit 70e46f44cd13337106036b67ac9f79b9e4237e79 Author: Jordan Justen Date: Mon Aug 18 23:04:12 2014 +0000 OvmfPkg/ResetVector: Remove pre-built binaries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15825 6f19259b-4bc3-4df7-8a09-765794883524 commit 497cbb530a582e3d93ae4819a8ae25cffc7e7c1d Author: Jordan Justen Date: Mon Aug 18 23:04:00 2014 +0000 OvmfPkg: Build OVMF ResetVector during EDK II build process Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15824 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b9fdbfa7059553f629a9adfe60e3e68971a4b46 Author: Jordan Justen Date: Mon Aug 18 23:03:53 2014 +0000 OvmfPkg: Support building OVMF's ResetVector during the EDK II build Using NASM we build OVMF's ResetVector as part of the EDK II build process. v2: * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15823 6f19259b-4bc3-4df7-8a09-765794883524 commit eee1d2ca9078742157c843562f1188eb96473322 Author: Jordan Justen Date: Mon Aug 18 23:03:46 2014 +0000 UefiCpuPkg VTF0 X64: Build page tables in NASM code Previously, we would build the page tables in Tools/FixupForRawSection.py. In order to let NASM build VTF0 from source during the EDK II build process, we need to move this into the VTF0 NASM code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15822 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a1f324d946cb1be2dc1226752b1965d6633232f Author: Jordan Justen Date: Mon Aug 18 23:03:30 2014 +0000 UefiCpuPkg: Support building VTF0 ResetVector during the EDK II build Using NASM we build VTF0 as part of the EDK II build process. v2: * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15821 6f19259b-4bc3-4df7-8a09-765794883524 commit abb158ded41fffe92a6c0a4f6157d5153b011e00 Author: Jordan Justen Date: Mon Aug 18 23:03:17 2014 +0000 BaseTools: Add rules to build NASM source file into a binary v2: * Use EDK II tool name of NASMB rather than NASMBIN * Use EDK II extension of .nasmb rather than .nasmbin v3: * Create listing file * Don't change into source directory * Add ENV(NASM_PREFIX) before nasm for NASM_PATH Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15820 6f19259b-4bc3-4df7-8a09-765794883524 commit de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 Author: Daryl McDaniel Date: Mon Aug 18 23:00:50 2014 +0000 AppPkg/Applications/Python: Explicitly initialize variables before use to keep newer compilers happy. Explicitly initialize variables before any potential use. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15819 6f19259b-4bc3-4df7-8a09-765794883524 commit 838b31a68cba781fb64ae4deb97fa69b2ed6d4b8 Author: Chris Phillips Date: Mon Aug 18 20:00:08 2014 +0000 ShellPkg: Fix EFI_SHELL_PROTOCOL to contain new members from UEFI Shell 2.1 spec - Removes EFI_SHELL_PROTOCOL21 - Adds RegisterGuidName, GetGuidName, GetGuidFromName, and GetEnvEx to EFI_SHELL_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15818 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d8de12c31628da255155a544641ae7473581f04 Author: Gao, Liming Date: Mon Aug 18 05:43:06 2014 +0000 Update PeiCore to follow PI spec to retrieve GUIDED section data when ExtractionPpi is not found. Enhance PeiCore Security Policy to check AuthenticationStatus when SecurityPpi is not found. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15817 6f19259b-4bc3-4df7-8a09-765794883524 commit 03af27533236a08309b60ba1f3236234f3de46bc Author: Hess Chen Date: Mon Aug 18 04:59:01 2014 +0000 This patch is going to retire the top level makefile on BaseTools for supporting a pure binary build without any complier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15816 6f19259b-4bc3-4df7-8a09-765794883524 commit f5ba4007ae30597c5a8b5dde20f2e0bac3f4f7bc Author: Qiu Shumin Date: Mon Aug 18 00:48:22 2014 +0000 ShellPkg: Fix comments. Refine code style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15815 6f19259b-4bc3-4df7-8a09-765794883524 commit da03183cd0da9e0623990da1c525736598b9ca63 Author: Laszlo Ersek Date: Sat Aug 16 16:19:11 2014 +0000 MdePkg: library INF files should reference feature PCDs under [FeaturePcd] This patch updates users of PcdVerifyNodeInList and PcdValidateOrderedCollection. Suggested-by: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15814 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a650d1fd124b5b22787f2bde2c102e9f5e8e404 Author: Laszlo Ersek Date: Sat Aug 16 16:18:59 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: silence invalid VS2005 warnings VS2005 reports the following build failure: BaseOrderedCollectionRedBlackTreeLib.c(151) : warning C4244: 'return' : conversion from 'int' to 'BOOLEAN', possible loss of data BaseOrderedCollectionRedBlackTreeLib.c(840) : warning C4244: 'return' : conversion from 'int' to 'BOOLEAN', possible loss of data This is incorrect. The ISO C standard guarantees that the expressions in question can only return values 0 and 1, both of which can be represented by BOOLEAN (== UINT8, == unsigned char). Silence the incorrect warnings with explicit casts to BOOLEAN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15813 6f19259b-4bc3-4df7-8a09-765794883524 commit 75955444cb6a5d9a5e85775ec2e9a36aedec61c8 Author: Laszlo Ersek Date: Sat Aug 16 16:18:53 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: silence invalid gcc warning Gcc-4.4 reports the following build failure: BaseOrderedCollectionRedBlackTreeLib.c: In function 'OrderedCollectionInsert': BaseOrderedCollectionRedBlackTreeLib.c:586: error: 'Result' may be used uninitialized in this function This is incorrect. There are two areas of use of Result to consider: - In the very first while loop. The warning is likely not about this code area, because Result is assigned directly before use. - The last use of Result in the function. The build warning / error is incorrect. For Result to be uninitialized at that point, the very first while loop must not have been entered at all (because that loop assigns a value to Result). However, if that loop is never entered, then Parent is still NULL. And Parent==NULL implies that the use of Result is never reached, because we jump to the Done label just before it. Assign an irrelevant value of 0 to Result at the beginning of the function in order to silence the incorrect warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15812 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ccef56102cc104ad0bc881f5312f84fb4e569ef Author: Dong, Guo Date: Fri Aug 15 08:10:55 2014 +0000 1) Update code to use PcdFixedUsbCredentialProviderTokenFileName and PcdMaxVariableSize as patchable PCD instead of FixedAtBuild PCD. 2) Correct a typo in file comments of Tpm12Ownership.c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15811 6f19259b-4bc3-4df7-8a09-765794883524 commit a4faf336ea8e87d0b46e54ea64ce19c8574b69e5 Author: Fu, Siyuan Date: Fri Aug 15 05:33:34 2014 +0000 Use string pointer instead string buffer to avoid string copy operation. Use CopyMem() to guarantee the NULL terminal will always be appended to the destination string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15810 6f19259b-4bc3-4df7-8a09-765794883524 commit 1be2ed90a20618d71ddf34b8a07d038da0b36854 Author: Hess Chen Date: Fri Aug 15 03:06:48 2014 +0000 There is a limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. There is an OS API provided by Microsoft to add “\\?\” before the path header to support the long file path. Enable this feature on basetools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15809 6f19259b-4bc3-4df7-8a09-765794883524 commit b8a13d736961faff0d11241a0428abc44a084d6e Author: Chris Phillips Date: Thu Aug 14 20:42:40 2014 +0000 ShellPkg: Fix EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_GUID to match UEFI Shell 2.1 spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15808 6f19259b-4bc3-4df7-8a09-765794883524 commit 281b6b928d7490134d83e643c42092835309b9bc Author: lhauch Date: Thu Aug 14 20:22:33 2014 +0000 Roll-back from an accidental commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15807 6f19259b-4bc3-4df7-8a09-765794883524 commit ea648887161f34781135009a72f8e101b0110c40 Author: lhauch Date: Thu Aug 14 20:20:37 2014 +0000 Change svn:mime-type property on all Unicode files (extension .uni) in edk2 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Samer El-Haj-Mahmoud git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15806 6f19259b-4bc3-4df7-8a09-765794883524 commit c9df168fa0e1a797c72ee7eab2ec0cbfc3c5174b Author: Michael Kinney Date: Thu Aug 14 20:08:17 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: lhauch Fix the behavior of the –version flag in the Rsa2048Sha256 tools and update logic for showing program name, version, usage, and copyright information to match other BaseTools. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15805 6f19259b-4bc3-4df7-8a09-765794883524 commit e8a57ade2adbdb7830290c44bccd5b7137c80c09 Author: Jaben Carsey Date: Thu Aug 14 17:58:16 2014 +0000 ShellPkg add size cast to bit operations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15804 6f19259b-4bc3-4df7-8a09-765794883524 commit 83d1ffb92f165547d750586ef954c54f59b7fab3 Author: Gao, Liming Date: Thu Aug 14 14:30:32 2014 +0000 PcAtChipsetPkg: new AcpiTimerLib libraries. Two library instances are added to support BASE type and DXE type. Those libraries provides basic timer support using the ACPI timer hardware. The performance counter features are provided by the processors time stamp counter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15803 6f19259b-4bc3-4df7-8a09-765794883524 commit f61d69cc4425450450bf2b62a784a038b9bb8073 Author: Long, Qin Date: Thu Aug 14 10:16:57 2014 +0000 OpenSSL 0.9.8zb was released at 06-Aug-2014, including bug and security fixes. This patch is to catch the latest OpenSSL release. NOTE: The content of EDKII_openssl-0.9.8zb.patch is same with the old EDKII_openssl-0.9.8za.patch, and the extra changes are only name / directory modifications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15802 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a53a034ec75671b66247597c0f948f8dc29e33b Author: Michael Kinney Date: Thu Aug 14 06:31:34 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Dong, Guo Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15801 6f19259b-4bc3-4df7-8a09-765794883524 commit 65ce860e494eb6d2b84eebf90b0774353f1f755a Author: Michael Kinney Date: Thu Aug 14 06:30:10 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Yingke Liu Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15800 6f19259b-4bc3-4df7-8a09-765794883524 commit a402e1292443f76486c8ab3cd011221e28a00c7d Author: Michael Kinney Date: Thu Aug 14 06:29:07 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Feng Tian Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15799 6f19259b-4bc3-4df7-8a09-765794883524 commit fe7819402c285c2d006b79eb66981673fedf3d04 Author: Zeng, Star Date: Thu Aug 14 05:55:08 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg: Update PeiCore, SmbiosDxe and IsaSerialDxe to use PcdGetxx() instead of FixedPcdGetxx(). It changes some of the PCD declarations to add more supported PCD storage types and the change in the PCD access methods is associated with that. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Kinney, Michael D Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15798 6f19259b-4bc3-4df7-8a09-765794883524 commit a1360fa3de6dade1b9d204284356df52bc58e801 Author: Jeff Fan Date: Thu Aug 14 02:00:11 2014 +0000 Use StrnCat instead of StrCat to avoid target buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15797 6f19259b-4bc3-4df7-8a09-765794883524 commit 74a6d86079793bbd53e4d4fd67e6c3d1477f59fa Author: Gao, Liming Date: Wed Aug 13 08:39:54 2014 +0000 Add the missing parameter comments for BaseSerialPortLib16550 lib. MdePkg: Fix Clang build failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15796 6f19259b-4bc3-4df7-8a09-765794883524 commit ea5396f31a8db7344177b4dd5335ebd617861d58 Author: Ruiyu Ni Date: Wed Aug 13 06:31:08 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15795 6f19259b-4bc3-4df7-8a09-765794883524 commit c687b1464bb42a3c2d3eb2935ddd09752c6d2f2a Author: Ruiyu Ni Date: Wed Aug 13 06:18:06 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15794 6f19259b-4bc3-4df7-8a09-765794883524 commit df6bd1b65c15cb03a6aca59e477611d91608181c Author: Ruiyu Ni Date: Wed Aug 13 03:28:35 2014 +0000 Add UINT64 type cast when AND/OR with UINT64 Supports. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15793 6f19259b-4bc3-4df7-8a09-765794883524 commit 424d84556d4dfe3b05af00c06fd5d3480dccb111 Author: Laszlo Ersek Date: Tue Aug 12 07:29:17 2014 +0000 AppPkg: introduce OrderedCollectionTest In this patch a small application is added to AppPkg, with the following two goals: - demonstrate how to use OrderedCollectionLib, - allow users to test and "fuzz" BaseOrderedCollectionRedBlackTreeLib in particular, entering API "commands" interactively, or providing them from a script file. A shell script is included that generates such an API command script. Speaking about BaseOrderedCollectionRedBlackTreeLib specifically, OrderedCollectionTest validates the internal red-black properties of the tree after each read-write operation by setting the PcdValidateOrderedCollection feature flag to TRUE. The OrderedCollectionTest application's debugging environment is strictly specified in the DSC file, because OrderedCollectionTest is entirely useless for unit testing without full ASSERT() enablement. The OrderedCollectionTest application deliberately doesn't follow the edk2 coding style in the following: - const vs. CONST, - void vs. VOID, - assert() vs. ASSERT(), - calloc() and free() vs. AllocateZeroPool() and FreePool(), - integer types. This is because OrderedCollectionTest is a standard C application, not a UEFI application per se. In particular it relies on stdio. INTN, EFIAPI and CONST VOID are used only in two places, where we provide the comparator callbacks to OrderedCollectionLib. Proper range checking is ensured for integers. The application takes command input from stdin or a file (if the user requests it), sends command output to stdout or a file (if the user requests it), prints debug output to the console (as other AppPkg applications do when debugging is enabled for them), and prints diagnostics to stderr (like well behaved standard C programs should). Input/output selection is implemented manually because the old shell doesn't support input redirection at all, and because the new shell's input redirection does not co-operate with fgets() for the time being. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15792 6f19259b-4bc3-4df7-8a09-765794883524 commit cf556c6a587462cf916272597b34b9951279e7b6 Author: Laszlo Ersek Date: Tue Aug 12 07:29:04 2014 +0000 MdePkg: introduce BaseOrderedCollectionRedBlackTreeLib library instance edk2 should have a fast and easy-to-use associative array (a dictionary) type. Red-black trees have O(log(n)) worst case time complexity for lookup, insertion, and deletion (where n is the number of nodes in the tree). They support minimum and maximum lookup with the same time complexity, hence red-black trees double as priority queues as well. Given an iterator to a red-black tree node, getting the next or previous node (which corresponds to the ordered successor or the predecessor, respectively, according to the user-defined ordering) is O(log(n)) as well. The code reflects the Binary Search Trees and Red-Black Trees chapters of Introduction to Algorithms, by Cormen, Leiserson, Rivest. One point where the implementation diverges is the first phase of the Delete() operation. During that phase, the book's algorithm copies the key and other business *contents* of the successor node (in case the successor node is affected), and releases the successor node (instead of the node that the user requested to delete). While semantically correct, this would break the above iterator validity guarantee. This implementation replaces the copying of business contents between nodes with suitable relinking of nodes, so that all iterators (except the one whose deletion is being requested) remain valid. I had written this code originally in approx. 2002. I personally own the copyright of that version and am hereby relicensing it to Red Hat, under the BSDL. I had used the original code in a few personal projects since, for example in the lbzip2-0.x parallel (de)compressor, and now I've ported the library to edk2. Both during the original implementation and now during the porting I verified all the cases and their proofs as rigorously as I could, on paper. (NB, I couldn't find any errors in the 2002 code now.) During the porting to edk2, I documented all those cases in code comments as well (at least half of the source is documentation). These comments are not blind copies of diagrams from the Algorithms book, nor are they copies from my original code -- I've done them all fresh now, and I've only matched the results against the book. Reviewers are invited to sit down with a pen, some paper, the book, and the code. The Validate() function verifies the internal red-black properties of the tree. This function helps with unit testing, and is only invoked when requested with the PcdValidateOrderedCollection feature flag. A note about diagrams: edges represented by backslash (\) characters are often written as "\_", ie. with a following underscore. This is because line-trailing backslashes are processed very early in compilation (in translation phase 2), "splicing physical source lines to form logical source lines". Since the edk2 coding style requires "//" comments for such documentation, a trailing backslash would splice the next physical line into the "scope" of the comment. To prevent this, trailing backslashes are defanged by appending underscores, which should be visually bearable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15791 6f19259b-4bc3-4df7-8a09-765794883524 commit 250e4b0db1dd1755cc8785b1830b9c13f29aca8b Author: Kinney, Michael D Date: Tue Aug 12 07:28:52 2014 +0000 MdePkg: introduce OrderedCollectionLib library class This library class provides a set of APIs to manage an ordered collection of items: - Init(), - UnInit(), - Insert(), - Delete(), - IsEmpty(), - Next(), - Prev(), - Min(), - Max(), - Find(), - UserStruct(). There are many ways to implement an ordered collection. Depending on the frequency of the different actions, different internal implementations may have different performance, memory overhead, or code size. Developers can select the library instance for a platform or module in their DSC files that meets the needs of that platform or module. Commit-message-from: "Kinney, Michael D" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15790 6f19259b-4bc3-4df7-8a09-765794883524 commit 79966a6f35bcf374b80762e33bc47a1ad806ffc5 Author: Elvin Li Date: Tue Aug 12 05:19:34 2014 +0000 Fixed a bug in LegacyBiosDxe to allocate correct ranges of memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15789 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e684d3ca46cf93fbd767036ed75bd234edcb5df Author: jyao1 Date: Tue Aug 12 03:31:47 2014 +0000 Correct StrnCat length calculation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15788 6f19259b-4bc3-4df7-8a09-765794883524 commit 6c8cfb0751bd64020495f065407cae0b7c3dd6ce Author: Star Zeng Date: Tue Aug 12 01:41:25 2014 +0000 MdeModulePkg PeiCore: The DEBUG message (for HeapOffset and StackOffset) should be placed after HeapOffset is got. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15787 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f347d0f0a0db643c5ec134481aeab0232127ae2 Author: Laszlo Ersek Date: Mon Aug 11 22:00:01 2014 +0000 StdLib/LibC/Stdio: fix "missing braces around initializer" The member "fext._ub" is a structure (of type "struct __sbuf"), and the current initializer triggers StdLib/LibC/Stdio/vswscanf.c: In function 'vswscanf': StdLib/LibC/Stdio/vswscanf.c:75:10: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/Stdio/vswscanf.c:75:10: error: (near initialization for 'fext._ub') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15786 6f19259b-4bc3-4df7-8a09-765794883524 commit 599aa11f870264f6d86f3e1451afb6de07be1758 Author: Laszlo Ersek Date: Mon Aug 11 21:59:53 2014 +0000 StdLib/LibC/gdtoa: fix "missing braces around initializer" The member "u.L" is an array, and the current initializer triggers StdLib/LibC/gdtoa/strtof.c: In function '_strtof': StdLib/LibC/gdtoa/strtof.c:53:9: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/gdtoa/strtof.c:53:9: error: (near initialization for 'u.L') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15785 6f19259b-4bc3-4df7-8a09-765794883524 commit 1be8039054d81cd5e5f602a6f3cd13a062cc2900 Author: Gao, Liming Date: Mon Aug 11 07:05:49 2014 +0000 MdePkg: Fix Clang build failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15784 6f19259b-4bc3-4df7-8a09-765794883524 commit 31122d8c9ac34b8936cf09649cad6a8cbc93bbb9 Author: Gao, Liming Date: Mon Aug 11 06:38:28 2014 +0000 MdeModulePkg: BaseSerialPortLib16550 library to support PCI UART device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15783 6f19259b-4bc3-4df7-8a09-765794883524 commit 883e23d0d31205ce016d86d671704c198a47b204 Author: Gao, Liming Date: Mon Aug 11 06:23:51 2014 +0000 MdeModulePkg: new PlatformHookLib library with depex of SerialPortPpi. This library has one depex of SerialPortPpi. Then, the PEIM linked it has this depex so that it is dispatched after SerialPortPpi is installed. SerialPortPpi notifies the platform initialization done, then serial port will work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15782 6f19259b-4bc3-4df7-8a09-765794883524 commit 9bc250419d5125b657986ff43bc4ba9782f58571 Author: Gao, Liming Date: Mon Aug 11 05:40:40 2014 +0000 MdeModulePkg: DxeCore If GUIDED section has AUTH attribute only, DxeCore may wrongly set its AuthenticationStatus to 0 when its matched GUIDED extraction handler is not installed and Auth data is not verified. For this case, the return AuthenticationStatus should be EFI_AUTH_STATUS_NOT_TESTED. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15781 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a228334f067bab982a9c2a5c952192b45a06e57 Author: Elvin Li Date: Fri Aug 8 09:10:57 2014 +0000 Added SMBIOS 2.8.0 updates. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15780 6f19259b-4bc3-4df7-8a09-765794883524 commit ff8ad584f3cc2e7475cd80495d45b5fbca00ec4f Author: Chen Fan Date: Fri Aug 8 07:50:21 2014 +0000 SourceLevelDebugPkg/DebugAgent: fix trivial typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15779 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a45b15eae48d9bf498daf5b0c0771659d75faa2 Author: Jeff Fan Date: Fri Aug 8 05:52:01 2014 +0000 Add type cast on variable before operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15778 6f19259b-4bc3-4df7-8a09-765794883524 commit 31fc7b4d6a86e13687d57bd330a1e3e125ba1b94 Author: Jeff Fan Date: Fri Aug 8 05:51:21 2014 +0000 Add type cast on variable before operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15777 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ca7b36631dc6a241a6cff9539079da7628ccbe0 Author: Eric Dong Date: Fri Aug 8 03:20:29 2014 +0000 Clean the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15776 6f19259b-4bc3-4df7-8a09-765794883524 commit 954894f270e274269c914f09bce4e287273a99c1 Author: jyao1 Date: Fri Aug 8 02:15:41 2014 +0000 Rollback file GUID change, because it is VTF file and GUID is predefined. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Chris Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15775 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d1f4c621dd3a1ebc55394a24ff6695d39e0d95b Author: Andrew Fish Date: Fri Aug 8 00:57:50 2014 +0000 clang warns on guard macro not matching in .h file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15774 6f19259b-4bc3-4df7-8a09-765794883524 commit 2922e29ad86c1bb7b5e53e65eaf0098d866310d7 Author: Fu, Siyuan Date: Fri Aug 8 00:41:14 2014 +0000 Update network stack code to use StrnCpy instead of StrCpy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Dong, Eric Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15773 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f9bafeea6adcd690d899a58db9c1dd1b048df38 Author: jyao1 Date: Fri Aug 8 00:21:18 2014 +0000 Correct AsciiStrnCpy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15772 6f19259b-4bc3-4df7-8a09-765794883524 commit e1044f8074836b74188a2371ba70be05d0e0482b Author: Jaben Carsey Date: Thu Aug 7 20:02:40 2014 +0000 ShellPkg: Refactor string manipulation in cp command This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15771 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e1e5405544724406f07344a5911298c3df44129 Author: Feng Tian Date: Thu Aug 7 08:54:34 2014 +0000 1) Add type cast for better coding style. 2) replace StrCpy() usage in Variable driver with StrnCpy(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15770 6f19259b-4bc3-4df7-8a09-765794883524 commit e935092fa7e1401201e6faadb04b0ae239dd97a5 Author: Qiu Shumin Date: Thu Aug 7 08:32:54 2014 +0000 Add type cast for better coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15769 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e24145420fc1c4d38ca22437bec44ee32d1465b Author: qlong Date: Thu Aug 7 07:56:31 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Long Qin Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15768 6f19259b-4bc3-4df7-8a09-765794883524 commit 86110f65ab7bcd9ce738d2bb56dff2e1373b7b1e Author: Eugene Cohen Date: Thu Aug 7 07:44:37 2014 +0000 Fix OpensslLib build issue for ARM. The changes are: The changes are: 1. Add RVCT ARM build target 2. Add suppression of warnings to get openssl building (1295,550,1293,111,68,177,223,144,513,188) 3. Remove architectures that RVCT cannot build for (IA32, X64, and IPF) 4. Add the -DOPENSSL_NO_MD2 flag to prevent link errors from MD2 references; the comments in the .inf assumes that this flag exists but it wasn’t actually set Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15767 6f19259b-4bc3-4df7-8a09-765794883524 commit 58dbfc3c0fb3ceb3ebbbbe57fa745275f1d9cd03 Author: jyao1 Date: Thu Aug 7 05:03:10 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15766 6f19259b-4bc3-4df7-8a09-765794883524 commit b04aba1773d313e50383b11acc599242c2723986 Author: Daryl McDaniel Date: Wed Aug 6 18:29:02 2014 +0000 StdLib: The formatting for double float values, within the gdtoa library, is improper. When running Enquire.efi, several errors similar to the following are produced: Maximum exponent = 128 Maximum number = 3.40282347e+38 *** WARNING: Possibly bad output from printf above expected value around 3.40282347e38, bit pattern: 11111111 11111111 01111111 01111111 sscanf gave -inf, bit pattern: 00000000 00000000 10000000 11111111 difference= inf Overflow doesn’t seem to generate a trap The memory allocation tests will also fail, sometimes leaving all available memory consumed. The correct output in the above example is: Maximum exponent = 128 Maximum number = 3.40282347e+38 Overflow doesn't seem to generate a trap The root cause is that all operations on values of Long or ULong type, within the gdtoa library, must be 32-bit operations. A previous change replaced the Long and ULong definitions with INTN and UINTN, respectively. While this is correct for a lot of Linux and NetBSD code, it was not correct for this library. This fix reverts the definitions of ULong and Long back to 32-bit types. A descriptive comment has also been added to the U union. Additional white-space has been added to tidy up the definitions of the word0 and word1 macros. Verified with Enquire.efi and the ISO/IEC C Library compliance Validation Suite. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15765 6f19259b-4bc3-4df7-8a09-765794883524 commit 09fd5328a48faf4f4dfda78015842317cd41c98c Author: Jaben Carsey Date: Wed Aug 6 16:18:38 2014 +0000 Updates the UEFI Shell to produce the new protocol with additional 4 functions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15764 6f19259b-4bc3-4df7-8a09-765794883524 commit 7aae3c355fda9d4548983edfdd27e0460fb9376c Author: Jaben Carsey Date: Wed Aug 6 16:17:42 2014 +0000 ShellPkg: add size cast to bit operations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15763 6f19259b-4bc3-4df7-8a09-765794883524 commit a81fcd30c1aff139f0007c277c49c52bf55c303c Author: jyao1 Date: Wed Aug 6 13:27:14 2014 +0000 Eliminate duplicated file GUID. Eliminate duplicate GUID definition. Do explicit data cast. Use StrnCpy instead of StrCpy. Update GCC assembly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15762 6f19259b-4bc3-4df7-8a09-765794883524 commit e7a8edfdf6128729737ec9eda360689a972b7c27 Author: Jaben Carsey Date: Tue Aug 5 23:26:51 2014 +0000 ShellPkg: Remove double typedef for same struct Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15761 6f19259b-4bc3-4df7-8a09-765794883524 commit 477a79e1eb9cb9fbb035c633bc06144e5e87baed Author: Jaben Carsey Date: Tue Aug 5 23:17:18 2014 +0000 Updates the logic to allow devices to support SFO output mode Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15760 6f19259b-4bc3-4df7-8a09-765794883524 commit ae315cc26984d308dbe07b8e01dea7c56a78f79d Author: Jaben Carsey Date: Tue Aug 5 23:16:39 2014 +0000 Fix the use of ASSERT and other fixes to memory allocation failures (like free before return for errors) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15759 6f19259b-4bc3-4df7-8a09-765794883524 commit c12383d5ea53e0a82577a45afaccb16761528541 Author: Jaben Carsey Date: Tue Aug 5 20:57:08 2014 +0000 Updates the total size logic and the SFO output per UEFI Shell 2.1 changes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15758 6f19259b-4bc3-4df7-8a09-765794883524 commit 9954df7b634358be430fa738f89334386b2a1860 Author: Jaben Carsey Date: Tue Aug 5 20:56:40 2014 +0000 Updates the logic to allow DmpStore to specify a name independent of specifying a GUID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15757 6f19259b-4bc3-4df7-8a09-765794883524 commit cab102c36bac10af35cbcdf8cf2fb5aa931f2953 Author: Jaben Carsey Date: Tue Aug 5 20:56:07 2014 +0000 Updates the logic to allow help to ouput help information from a dynamic shell command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15756 6f19259b-4bc3-4df7-8a09-765794883524 commit a737ea734b9d64d6b10e399d5d0a8539604decdd Author: Jaben Carsey Date: Tue Aug 5 20:55:36 2014 +0000 Updates the logic to allow RM and CP to have silent/quiet mode work successfully. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15755 6f19259b-4bc3-4df7-8a09-765794883524 commit cf812a204c2d3fbf50cae81995bc17bae93e28e9 Author: Jaben Carsey Date: Tue Aug 5 20:09:25 2014 +0000 This searches for handles that produce the dynamic command protocol after searching the commands compiled into the shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eugene Cohen Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15754 6f19259b-4bc3-4df7-8a09-765794883524 commit 6306fd90b7056d69ea4519afc25121cc5bc9bce9 Author: Jaben Carsey Date: Tue Aug 5 18:03:49 2014 +0000 ShellPkg: Add Dynamic GUID registration into the current GUID<->String conversion process Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15753 6f19259b-4bc3-4df7-8a09-765794883524 commit 044ea4e54e0d2992d55582b6cfcb5d24156ae65d Author: Jaben Carsey Date: Tue Aug 5 17:52:18 2014 +0000 This adds the new APIs for UEFI Shell 2.1 and makes a new structure for shell implementations that are conformant to this new spec. It does not affect existing implementations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15752 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ce0e51851258a30f9cb148502edcb67a82cac16 Author: jyao1 Date: Tue Aug 5 03:59:56 2014 +0000 Eliminate duplicated file GUID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15751 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a1eb97d376a7d0539767f24bc37626745eb5575 Author: Jaben Carsey Date: Mon Aug 4 21:17:17 2014 +0000 ShellPkg: Add new UEFI Shell 2.1 protocol and fix comments in handle parsing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15750 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a6ac65dddb2d4cb4fa0abc130de63ee8073dc42 Author: Jaben Carsey Date: Mon Aug 4 20:28:55 2014 +0000 ShellPkg: Fix comments Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15749 6f19259b-4bc3-4df7-8a09-765794883524 commit b4e53e389d2a04678fb28bc445cd5b554bb175e0 Author: Olivier Martin Date: Mon Aug 4 14:18:13 2014 +0000 ArmPkg/ArmSmcLib: Fixed SMC helper functions The SMC helper functions were buggy as they were assuming that the values in x1-x7 registers were preserved across an SMC call, which is not the case. This patch fixes this issue. It also simplifies the code by providing only 1 version of the SMC helper function. We used to have 4 versions depending on the number of arguments. The problem with this approach was that the number of arguments also dictated the number of return values, which is completely unrelated. E.g. you can have an SMC call that takes 1 argument but returns 4 values. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15748 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a9dd4e8393177a48e5d8a773ce8aa42566045b9 Author: Olivier Martin Date: Mon Aug 4 14:12:57 2014 +0000 ArmPkg/IndustryStandard/ArmStdSmc.h: Update Standard Service SMC Calls Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15747 6f19259b-4bc3-4df7-8a09-765794883524 commit 48a42a1c701071632aa0180640fd2390e30abc01 Author: jyao1 Date: Mon Aug 4 13:32:52 2014 +0000 Add missing ACPI5.1 table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15746 6f19259b-4bc3-4df7-8a09-765794883524 commit 87280982b803cebd4b47980ec09eaa45a13d7676 Author: Harry Liebel Date: Mon Aug 4 08:44:11 2014 +0000 BaseTools: Add AArch64 ADR_PREL_LO21 and R_AARCH64_CONDBR19 relocations - ADR_PREL_LO21: support for loading a PC relative label offset. - R_AARCH64_CONDBR19: support for conditional branch instruction (ELF64 code: 280). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15745 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a00645100049d31dd8937b0ada6db40e56fe2c6 Author: jyao1 Date: Mon Aug 4 08:24:27 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15744 6f19259b-4bc3-4df7-8a09-765794883524 commit a0e0fb6d9fa37f430c483c04e6333e3c32308a56 Author: jyao1 Date: Mon Aug 4 06:34:41 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15743 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e07e87fe4c12718101b592bf8c88a9447fc0965 Author: Fu, Siyuan Date: Mon Aug 4 01:28:26 2014 +0000 The pointer argument should be set to NULL if not used not FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15742 6f19259b-4bc3-4df7-8a09-765794883524 commit 35d74819a0d07eca1705bced5aafa238961a2ae2 Author: Harry Liebel Date: Mon Aug 4 01:26:57 2014 +0000 The pointer argument should be set to NULL if not used not FALSE. FALSE evaluates to 0. This was flagged by LLVM compiler as a warning: "expression which evaluates to zero treated as a null pointer constant of type 'EFI_MTFTP4_OVERRIDE_DATA *' [-Wnon-literal-null-conversion]" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15741 6f19259b-4bc3-4df7-8a09-765794883524 commit a9e61a2511e93c0e7392f3a4837651876ab00e44 Author: Qiu Shumin Date: Mon Aug 4 01:06:19 2014 +0000 Update the en-US definition in 'UefiShellInstall1CommandsLib.uni', 'UefiShellLevel1CommandsLib.uni', 'UefiShellLevel3CommandsLib.uni' and 'UefiShellNetwork1CommandsLib.uni' to make them consistent. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15740 6f19259b-4bc3-4df7-8a09-765794883524 commit ae19003981f8d9c11a14a48f4f0e511eab5bb995 Author: Olivier Martin Date: Fri Aug 1 18:35:29 2014 +0000 ArmPlatformPkg/Bds: Signal EndOfDxe PI Event Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15739 6f19259b-4bc3-4df7-8a09-765794883524 commit 90152e593bf0f77c6cd01e08118e3c74dd8ee508 Author: Olivier Martin Date: Fri Aug 1 18:34:20 2014 +0000 EmbeddedPkg: FDT Configuration Table GUID Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15738 6f19259b-4bc3-4df7-8a09-765794883524 commit c3b6d97563982940a2af26671c371998684a2fd9 Author: Olivier Martin Date: Fri Aug 1 18:33:17 2014 +0000 ArmPlatformPkg: Removed the global ImageHandle when UefiBootServicesTableLib is included UefiBootServicesTableLib already defines gImageHandle that has been initialized with the value of ImageHandle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15737 6f19259b-4bc3-4df7-8a09-765794883524 commit d8162fb5aad91c4b6745acd6b706a95b5c7522ee Author: lhauch Date: Fri Aug 1 18:11:32 2014 +0000 CodeModule: BaseTools - tools_def.txt VS2010, VS2010x86, VS2012 and VS2012x86 update locations for rc.exe tool This change will point to the correct location of the rc.exe tool. RC.exe is used for building UEFI compliant drivers that must have a UEFI_HII_RESOURCE_SECTION generated as part of the .efi image file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15735 6f19259b-4bc3-4df7-8a09-765794883524 commit ffbc792ce5edf8ec6250c9808dc4bcad8cfd08b8 Author: Elvin Li Date: Fri Aug 1 05:08:40 2014 +0000 MdeModulePkg: Fix wrong check for SetAttribute in Consplitter Original code check if Attribute > 0x7FFFFFFF, this is wrong and fail to check valid case per UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15734 6f19259b-4bc3-4df7-8a09-765794883524 commit cebd6ef9048067ab53ab03e344f9df2cb506080d Author: Eric Dong Date: Fri Aug 1 04:44:16 2014 +0000 Support --version command line for VfrCompile Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15733 6f19259b-4bc3-4df7-8a09-765794883524 commit 46737a64d0e8f5dcc525973d3313f95920155265 Author: Chen Fan Date: Fri Aug 1 02:45:45 2014 +0000 IntelFrameworkModulePkg BdsLib: Fix potential memory leak when calling BdsLibGetVariableAndSize Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15732 6f19259b-4bc3-4df7-8a09-765794883524 commit e66e86ee2d090e4e372419ef4eb137ece874d99c Author: Jaben Carsey Date: Thu Jul 31 18:07:43 2014 +0000 ShellPkg: Add new dynamic command protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15731 6f19259b-4bc3-4df7-8a09-765794883524 commit a31a3b4a3e16d10fee4bac2fc56eee24cd1a90a4 Author: Chen Fan Date: Thu Jul 31 15:45:27 2014 +0000 EmulatorPkg/Mpservice: Add StateLock where missing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15730 6f19259b-4bc3-4df7-8a09-765794883524 commit 0dd40e14605814cc661da77ae4102c425cc4476c Author: Chen Fan Date: Thu Jul 31 15:45:21 2014 +0000 EmulatorPkg/Mpservice: Remove StackLock for Info.StateFlag Maybe we should add another lock for Info.StateFlag in the future rather than StackLock. at here, we get rid of it first. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15729 6f19259b-4bc3-4df7-8a09-765794883524 commit f9032449e84e8d85ee1af02f0ddc0c2880446cac Author: Chen Fan Date: Thu Jul 31 15:45:13 2014 +0000 EmulatorPkg/Mpservice: Remove addressof operator Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15728 6f19259b-4bc3-4df7-8a09-765794883524 commit e143c9e30c170cb49d287ab86a4478d926b99bf7 Author: Chen Fan Date: Thu Jul 31 15:45:04 2014 +0000 EmulatorPkg/Mpservice: CpuCheckAllAPsStatus: ProcedureLock => StateLock Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15727 6f19259b-4bc3-4df7-8a09-765794883524 commit f4a8ab280e061e80f43c37f272eb6e52ccb6ff96 Author: Laszlo Ersek Date: Thu Jul 31 15:44:52 2014 +0000 OvmfPkg/Csm/CsmSupportLib: fix "missing braces around initializer" Recent BaseTools changes trigger this gcc warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15726 6f19259b-4bc3-4df7-8a09-765794883524 commit 5967886d58e4ac7d46e0c6b7cc34fd9ba94fd6d1 Author: Laszlo Ersek Date: Thu Jul 31 15:44:43 2014 +0000 ShellPkg: UpdateStdInStdOutStdErr(): append BOM to new unicode file The >> operator redirects stdout to a file, using append mode and unicode encoding. Write the BOM when redirection happens to a new file (which starts out empty). This makes the >> operator behave similarly to the > operator, when the redirection target doesn't exist originally: OutUnicode && OutAppend && FileSize == 0 // >> to new unicode file vs. OutUnicode && !OutAppend // > to any unicode file (Note that (FileSize == 0) is equivalent to "new file" in this context, due to the earlier "Check that filetypes (Unicode/Ascii) do not change during an append".) Reported-by: Lowell Dennis Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15725 6f19259b-4bc3-4df7-8a09-765794883524 commit 94c2a04449a13ae76ad1f337b4e0db91cb6bd144 Author: Laszlo Ersek Date: Thu Jul 31 15:44:30 2014 +0000 ShellPkg: UpdateStdInStdOutStdErr(): extract WriteFileTag() Drop TagBuffer in the process. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15724 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a8e175b3329b9a31f937a67e1394653d8d587c4 Author: Eric Dong Date: Thu Jul 31 08:24:13 2014 +0000 Update vfr format for orderedlist opcode to consistent with other opcode, also compatible with old format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15723 6f19259b-4bc3-4df7-8a09-765794883524 commit 537bc124007a852b2c3b00cda91bad43f4045692 Author: Wang, Yu Date: Thu Jul 31 06:14:01 2014 +0000 Add VS2013 tool chain in BaseTools\Conf\tools_def.template. Also, two issues came up related to vs2013 build and caused the build to fail. Vs2013 issue #1: warning message about uninitialized variables or pointers like this: s:\incbld\ia32\intelframeworkmodulepkg\bus\isa\isabusdxe\isabus.c(395) : warning C4701: potentially uninitialized local variable 'DevicePathData' used s:\incbld\ia32\intelframeworkmodulepkg\bus\isa\isabusdxe\isabus.c(395) : warning C4703: potentially uninitialized local pointer variable 'DevicePathData' used LINK : fatal error LNK1257: code generation failed The following online messages shows discussions related to this vs2013 issue and how Microsoft engineer responded. They suggest a work around by adding the initialization for the variables. https://connect.microsoft.com/VisualStudio/feedback/details/816730/bogus-warning-from-vs-2013 Vs2013 issue #2: C:\Program Files\Windows Kits\8.1\include\um\winnt.h(5105) : error C2220: warning treated as error - no 'object' file generated C:\Program Files\Windows Kits\8.1\include\um\winnt.h(5105) : warning C4005: 'InterlockedCompareExchange64' : macro redefinition This happened for Nt32Pkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang, Yu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15722 6f19259b-4bc3-4df7-8a09-765794883524 commit d81c462d612d05ffdbafd5f6678f83b0f5fcfed2 Author: Elvin Li Date: Thu Jul 31 03:21:39 2014 +0000 MdeModulePkg: Removed valid text mode check in SetAttribute interface in GraphicsConsole. UEFI spec mentioned that the color mask can be set even when the device is in an invalid text mode. But the current code add text mode check. Removed the check now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15721 6f19259b-4bc3-4df7-8a09-765794883524 commit 784952b1898a5a8b65143a88b56b2b231ca21522 Author: Eric Dong Date: Wed Jul 30 01:19:21 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15720 6f19259b-4bc3-4df7-8a09-765794883524 commit f9e420d5d2a41707d495e39ebed23566e2d2e9b6 Author: Harry Liebel Date: Tue Jul 29 14:21:05 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Fix armcc warning causing build failure - Variable may be used before being set Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15719 6f19259b-4bc3-4df7-8a09-765794883524 commit 019680b3dcde5e1c88034e0bf92ffce509f211be Author: Ronald Cron Date: Tue Jul 29 14:19:57 2014 +0000 ArmPlatformPkg/Bds: Added boot options reordering Added the reordering of the boot options feature to the boot manager. The BootMenuSelectBootOption() has been split into DisplayBootOptions() that only displays the boot options and SelectBootOptions() that asks to select one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15718 6f19259b-4bc3-4df7-8a09-765794883524 commit 22a50a13e555102e1751c2f6665eb67855b43473 Author: Ronald Cron Date: Tue Jul 29 14:19:02 2014 +0000 ArmPlatformPkg/Bds: Corrected boot type detection Corrected the detection of file system and memory map boot option types. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15717 6f19259b-4bc3-4df7-8a09-765794883524 commit 66982010ed7350017f9f6f89b73137d4f92021df Author: Olivier Martin Date: Tue Jul 29 14:18:03 2014 +0000 ArmPlatformPkg/Bds: Do not ignore the error code in DefineDefaultBootEntries() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15716 6f19259b-4bc3-4df7-8a09-765794883524 commit 152286cea508549928b776e8a2ca62e089bc6790 Author: Ronald Cron Date: Tue Jul 29 14:17:05 2014 +0000 ArmPlatformPkg/Bds: Added TFTP boot option update Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15715 6f19259b-4bc3-4df7-8a09-765794883524 commit cf30b996d5d47835bf72921f351bb34c6790d8be Author: Ronald Cron Date: Tue Jul 29 14:16:10 2014 +0000 ArmPlatformPkg/Bds: Change the GetHIInput/EditHIInput to always return a valid IP address The new functions never return a invalid IP address. The user would be asked again if the IP address is mal-formed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15714 6f19259b-4bc3-4df7-8a09-765794883524 commit 889ac6a8b7d632c7c2dc203bd20b722b9ee57719 Author: Ronald Cron Date: Tue Jul 29 14:15:15 2014 +0000 ArmPlatformPkg/Bds: Got rid of RequestBootType argument Removed "RequestBootType" argument of the "*CreateDevicePathNode()" and "*UpdateDevicePathNode()" functions. A boolean field "Request BootType" has been added to the BDS_LOAD_OPTION_SUPPORT structure and is used by the "BootMenuAddBootOption()" and "BootMenuUpdateBootOption()" functions instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15713 6f19259b-4bc3-4df7-8a09-765794883524 commit ef0fa8e16bb50b04cd85cd0ef5ec8b16518fad0f Author: Harry Liebel Date: Tue Jul 29 14:13:21 2014 +0000 ArmPkg: Remove BasePeCoffLib ArmPkg contains unused and outdated code for runtime PE/COFF image relocation. - Use the version in MdePkg instead. - Remove references to this package from BeagleBoardPkg. ArmPkg/BasePeCoffLib was added to deal with MOVT instruction that was not part of the PE/COFF specification at that time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15712 6f19259b-4bc3-4df7-8a09-765794883524 commit 46d4d75cb2301d4af76a8fca6f9815e9699b3555 Author: Olivier Martin Date: Tue Jul 29 14:10:45 2014 +0000 ArmPkg/ArmLib.h: Fixed name of the argument Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15711 6f19259b-4bc3-4df7-8a09-765794883524 commit 3ab3d1388740fa3502e6cee5a1992b48e45b83c3 Author: Olivier Martin Date: Tue Jul 29 14:09:48 2014 +0000 ArmPkg/CpuDxe: Fixed some typo issues in the AArch64 exception code Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15710 6f19259b-4bc3-4df7-8a09-765794883524 commit f3c5066fa6e5e62c0584101d3a17c1e9ee523dd1 Author: Olivier Martin Date: Tue Jul 29 14:09:10 2014 +0000 ArmPkg/AArch64.h: Added Exception Syndrome Register definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15709 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a44c2273279b17f0c4a80be0ae8104d27333542 Author: Olivier Martin Date: Tue Jul 29 14:08:15 2014 +0000 ArmPkg/AArch64: Added ARM_HCR_TSC definition Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15708 6f19259b-4bc3-4df7-8a09-765794883524 commit 022cb42029bcbc8d5cec65bec981422868655d1c Author: Olivier Martin Date: Tue Jul 29 14:07:30 2014 +0000 ArmPkg/ArmPkg.dec: Added the interrupt numbers for the Hypervisor and Virtual Timers These numbers are mainly to reduce hardcoded numbers into the ACPI GTDT table. And also to match with the use of PcdArmArchTimerSecIntrNum and PcdArmArchTimerIntrNum into the GTDT ACPI Table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15707 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e119c677efc857a603b10ffc632ddfd5cd31b54 Author: Olivier Martin Date: Tue Jul 29 14:06:33 2014 +0000 ArmPkg/AArch64.h: Added SPSR and Timer register definitions These timer register definitions are AArch64 specific. It is the reason why they are into this file and not into Chipset/ArmArchTimer.h. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15706 6f19259b-4bc3-4df7-8a09-765794883524 commit c8ec22a266cdd134ac99c3021003710130613a40 Author: jyao1 Date: Tue Jul 29 02:21:52 2014 +0000 Add IntelFspPkg to support create FSP bin based on EDKII. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Ravi Rangarajan Reviewed by: Maurice Ma Reviewed by: Jiewen Yao Reviewed by: Giri Mudusuru Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15705 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d807dae4adf222ee0c1b3abe504c9a271a46062 Author: Eric Dong Date: Tue Jul 29 02:00:55 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f35b140e14cf1e95ec9621adedaa29890ac4fc9 Author: Jordan Justen Date: Mon Jul 28 18:12:11 2014 +0000 OvmfPkg/build.sh: Support IA32+X64 build Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15703 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c023eb357632f1506d559ed54303ccee71ddf16 Author: Paolo Bonzini Date: Mon Jul 28 17:37:46 2014 +0000 BuildEnv: remove useless check before setting $WORKSPACE As long as $EDK_TOOLS_PATH is properly set, the BaseTools/ directory is not necessary in the workspace. The BuildEnv file itself suggests setting the variable if BaseTools/ is not available. However, this only works if the user also sets $WORKSPACE. Otherwise, BuildEnv refuses to set WORKSPACE itself and does not even try to use the preset $EDK_TOOLS_PATH. Remove the check that fails, as it does not have any practical benefit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15702 6f19259b-4bc3-4df7-8a09-765794883524 commit d54934498fc69d456bf648068d20c8fd8453fca7 Author: Paolo Bonzini Date: Mon Jul 28 17:37:40 2014 +0000 edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkout Since WORKSPACE should point at the EDK2 tree, the right place to check its validity is edksetup.sh, not BaseTools/BuildEnv. This patch makes sure that BuildEnv is always invoked with a valid WORKSPACE. This lets us show better error messages, and ensures that we never dirty the user's environment. BuildEnv will maintain backwards-compatibility and, should the variable be missing, it will be able to set a default WORKSPACE. Only the sanity checks will be of lower quality. Note that the error message in SetupEnv will never be shown if SetWorkspace sets WORKSPACE=`pwd`. Suggested-by: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Jordan Justen Signed-off-by: Paolo Bonzini git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15701 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bc14212b3f640f34c343e38c508ecfd5e8409e5 Author: Paolo Bonzini Date: Mon Jul 28 17:37:35 2014 +0000 edksetup.sh: Look for BuildEnv under EDK_TOOLS_PATH EDK_TOOLS_PATH is basically a replacement for $WORKSPACE/BaseTools. It makes sense to check for BuildEnv there, then, if $WORKSPACE is absent but $EDK_TOOLS_PATH is present. With this patch, it is possible to separately package tools in /usr and use them compile EDK2 (doing "rm -rf BaseTools" in the EDK2 tree). This is desirable for OS distributions that need to distribute the tools in a "free software" repository and OVMF in a "non-free software" repository; bundling the same code in two different packages causes confusion. It is also simpler for distros because the build process for BaseTools and OVMF is completely different. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen Signed-off-by: Paolo Bonzini git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15700 6f19259b-4bc3-4df7-8a09-765794883524 commit dc4ad1532e59fd1a185d6b90d1c2a92cf8713f40 Author: Jordan Justen Date: Mon Jul 28 17:37:25 2014 +0000 EmulatorPkg: Add support for GCC48 & GCC49 toolchains Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15699 6f19259b-4bc3-4df7-8a09-765794883524 commit 595a5bc928d403325593f66771770fe45cf744b2 Author: Jordan Justen Date: Mon Jul 28 17:37:19 2014 +0000 OvmfPkg/build.sh: Add support for GCC49 toolchain Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15698 6f19259b-4bc3-4df7-8a09-765794883524 commit dafe0fedc5085b6f117068ef1faacb6176512d87 Author: Jordan Justen Date: Mon Jul 28 17:37:10 2014 +0000 BaseTools: Add GCC49 toolchain; align data sections to 0x40 GCC 4.9 may use 64-byte (0x40) alignment for data sections. Therefore we use a different link script for GCC 4.9. The only difference from the gcc4.4-ld-script is the alignment for data sections. When using the GCC48 toolchain with GCC 4.9, this error would be encountered by GenFw: > GenFw: ERROR 3000: Invalid > Unsupported section alignment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15697 6f19259b-4bc3-4df7-8a09-765794883524 commit 2412c2978ea5735035f1a2e6bfb845a620ee022e Author: Jeff Bobzin (jeff.bobzin Date: Mon Jul 28 16:58:34 2014 +0000 ShellPkg: fix typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Bobzin (jeff.bobzin@insyde.com) Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15696 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e1005eca7186cbe61aaae09108f6fdf29959f22 Author: Eric Dong Date: Mon Jul 28 07:52:57 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15695 6f19259b-4bc3-4df7-8a09-765794883524 commit d4193108b51f5aae16805eaf753dfc9b6d7b15f2 Author: Eric Dong Date: Mon Jul 28 07:45:49 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15694 6f19259b-4bc3-4df7-8a09-765794883524 commit 94866d4035b84523a61488f000dcaad13bfd4aa5 Author: Eric Dong Date: Mon Jul 28 07:43:23 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15693 6f19259b-4bc3-4df7-8a09-765794883524 commit 613382e922cdae321168791df0b00f84176ba9db Author: Eric Dong Date: Mon Jul 28 07:41:49 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15692 6f19259b-4bc3-4df7-8a09-765794883524 commit 47e255dfa3baeeb99e0ae3c8a5a4559e475a40c9 Author: Eric Dong Date: Mon Jul 28 07:36:46 2014 +0000 Fix build error with VS2013 toolchain for NT32 Package caused by function redefinition, use #if fix the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15691 6f19259b-4bc3-4df7-8a09-765794883524 commit 40578d09d1f9e8864e6d1eff95b9eeabee4b9947 Author: Eric Dong Date: Mon Jul 28 07:10:22 2014 +0000 Update the code to follow UEFI spec, process date/time/ref value type as buffer type when in an expression. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15690 6f19259b-4bc3-4df7-8a09-765794883524 commit f449affebd12c64e5ae2338caa7993e0daa10712 Author: jyao1 Date: Mon Jul 28 06:20:36 2014 +0000 Add ACPI5.1 header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15689 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a Author: Li, Elvin Date: Mon Jul 28 01:59:02 2014 +0000 Print the CodeType and Value of status code with fixed length. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li, Elvin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15687 6f19259b-4bc3-4df7-8a09-765794883524 commit 324c886410487f77e8643f6319f6cf751c65062b Author: Jordan Justen Date: Fri Jul 25 21:10:33 2014 +0000 BaseTools: Clear build versions to sync with buildtools/BaseTools Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15686 6f19259b-4bc3-4df7-8a09-765794883524 commit 8b7ebdb0055241e3e573fb7c561a969be33d591d Author: Gao, Liming liming.gao Date: Fri Jul 25 21:10:20 2014 +0000 Update GenFv tool to handle the file path with space. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming liming.gao@intel.com Review-by: Kinney, Michael D michael.d.kinney@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15685 6f19259b-4bc3-4df7-8a09-765794883524 commit 05154781676f8f591f4c0846ba6305ab9716c9e6 Author: Eric Dong Date: Fri Jul 25 21:10:10 2014 +0000 Report warning info if vfr file use the flags used for framework code only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15684 6f19259b-4bc3-4df7-8a09-765794883524 commit 15be099aa7ccc1ee4ace69f71eecae38beadfc9d Author: Eric Dong Date: Fri Jul 25 21:09:59 2014 +0000 Clean 1 build error and 1 warning for VfrCompiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15683 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d218f83f1d2aefb28d728ff01c89b10d103dc65 Author: Eric Dong Date: Fri Jul 25 21:09:48 2014 +0000 Report warning info if an action opcode has text two statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15682 6f19259b-4bc3-4df7-8a09-765794883524 commit 17e59b3346b7486fabbc57a13ef5b8c98d25a5a5 Author: Jaben Carsey Date: Fri Jul 25 18:46:23 2014 +0000 ShellPkg: Fix calls to SimpleTextOut->SetAttribute to not use reserved bits As the shell inverts foreground and background it needs to be sure that it properly masks off the reserved bits and this is important since the foreground and background are not the same numbers of bits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15681 6f19259b-4bc3-4df7-8a09-765794883524 commit 6cb9566f264e2fa2dcde695317945114e1b011c7 Author: Jaben Carsey Date: Fri Jul 25 15:57:20 2014 +0000 MdeModulePkg: Fix parameter verification for SetAttribute Check for 8th bit being reserved as per UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Michael Kinney Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15680 6f19259b-4bc3-4df7-8a09-765794883524 commit 54032ed9695764238d4a89873235bcbb42ba537e Author: lhauch Date: Fri Jul 25 14:07:00 2014 +0000 CodeModule: BaseTools - Adding the svn:external to the https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 This change allows users to checkout the edk2 project ignoring the svn:externals. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15679 6f19259b-4bc3-4df7-8a09-765794883524 commit d2f4e548e3d67666e0333dd60fc49f85a09acd01 Author: lhauch Date: Fri Jul 25 14:04:48 2014 +0000 CodeModule: BaseTools - Removing Win32 binaries to be replaced with an svn:external to the https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 This change allows users to checkout the edk2 project ignoring the svn:externals. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15678 6f19259b-4bc3-4df7-8a09-765794883524 commit 69c87efff4556df3aac9a12d869b0a9f131edd84 Author: Daryl McDaniel Date: Thu Jul 24 23:16:47 2014 +0000 StdLib/LibC/StdLib/Malloc.c: Revert cast removal to fix GCC build breakage. The cast to (void**) is needed for the last parameter of the AllocatePool call in malloc(). This is because type CPOOL_HEAD** is not automatically promoted to void**, as required by AllocatePool(). This was originally addressed in SVN revision 15474 but removed again in 15664. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed by: Stefan Kaeser git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15677 6f19259b-4bc3-4df7-8a09-765794883524 commit a33a2f62218e6e49a25d63474b7fe423d8ee4b71 Author: jyao1 Date: Thu Jul 24 06:52:43 2014 +0000 Add IntelFspWrapper to support boot EDKII on FSP bin. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Ravi Rangarajan Reviewed by: Maurice Ma Reviewed by: Giri Mudusuru Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15676 6f19259b-4bc3-4df7-8a09-765794883524 commit 34717ef034ed275a15683dafd29cb518af50fff0 Author: Elvin Li Date: Thu Jul 24 05:58:50 2014 +0000 Clear the whole EFI_PHYSICAL_ADDRESS CapsuleDataPtr64 to 0 at first to avoid rubbish data in high 32 bits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Review-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15675 6f19259b-4bc3-4df7-8a09-765794883524 commit 673c893016484fe8265e90d39719a0306be9bab2 Author: Eric Dong Date: Thu Jul 24 01:06:14 2014 +0000 Fix one memory leak. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15674 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fb4402246ffeaee2481a1dcf11df41c758ca2d5 Author: isakov-sl Date: Wed Jul 23 07:34:59 2014 +0000 Fixed one possible array out of bounds issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: isakov-sl@bk.ru Reviewed-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15673 6f19259b-4bc3-4df7-8a09-765794883524 commit 3facc089e552b84a526db48801e8a3fa00fabdec Author: Sergey Isakov Date: Wed Jul 23 02:13:14 2014 +0000 Fix wrong usage sizeof(SIZE). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov Signed-off-by: Jeff Fan Reviewed-by: Sergey Isakov Reviewed-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15672 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f6c5db258aee82f586b5b2858d0d979e89c916b Author: Elvin Li Date: Wed Jul 23 02:12:37 2014 +0000 Fix memory leak issues in BiosSnp module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15671 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c50db8adaf9d5ce071e27a518a46cd363ac5efe Author: Laszlo Ersek Date: Tue Jul 22 21:57:01 2014 +0000 OvmfPkg: build OVMF_VARS.fd, OVMF_CODE.fd, OVMF.fd OVMF_VARS.fd and OVMF_CODE.fd split the variable store and the firmware code in separate files. The PCDs' values continue to depend only on FD_SIZE_1MB vs. FD_SIZE_2MB. With the split files, it must be ensured on the QEMU command line that OVMF_VARS.fd and OVMF_CODE.fd be contiguously mapped so that they end exactly at 4GB. See QEMU commit 637a5acb (first released in v2.0.0). In this patch we must take care to assign each PCD only once. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15670 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c093f0c3ee8c0fde389faa2e70b596b960912d4 Author: Laszlo Ersek Date: Tue Jul 22 21:56:53 2014 +0000 OvmfPkg: extract varstore-related FD Layout Regions to an include file This saves code duplication between the Ia32, Ia32X64, and X64 flavors, and enables the next patch to include the varstore in new FD files by reference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15669 6f19259b-4bc3-4df7-8a09-765794883524 commit 70a2c7b11cbd6b1ad1fcb57b6f2011d534303984 Author: Chen Fan Date: Tue Jul 22 08:19:43 2014 +0000 EmulatorPkg/MpService: modify AP state should hold a mutex Add mutex when change AP state. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15668 6f19259b-4bc3-4df7-8a09-765794883524 commit f1bc233ae1255d64ce65948a208ab4b7810b01d4 Author: Tian, Feng Date: Tue Jul 22 03:06:43 2014 +0000 MdeModulePkg/AtaAtapiPassThru: Correct the algo of calculating PRDT number to avoid beyond the boundary of 32 bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15667 6f19259b-4bc3-4df7-8a09-765794883524 commit dcca25d17da32395b315804aaa811448dc317fed Author: Eric Dong Date: Mon Jul 21 09:59:06 2014 +0000 Refine code to follow good coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15666 6f19259b-4bc3-4df7-8a09-765794883524 commit d52b9d864efb0ba4b812538c45aef0b617bace39 Author: Star Zeng Date: Mon Jul 21 03:05:20 2014 +0000 MdePkg BaseLib: Fix a corner case of Source and Destination overlap. The overlap may happen when the address of Destination in UnicodeStrToAsciiStr() or Source in AsciiStrToUnicodeStr() is not two bytes aligned. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15665 6f19259b-4bc3-4df7-8a09-765794883524 commit dfa51bb619b455315a0476d0f2335da41268a2a2 Author: Daryl McDaniel Date: Thu Jul 17 20:54:49 2014 +0000 StdLib: Simple code cleanup StdLib/LibC/Main/Main.c Change Print to Debug statements. Ensure errno is initialized to 0 before calling main(). StdLib/LibC/StdLib/Malloc.c Aesthetic Cleanup: remove unnecessary cast, fix two whitespace alignment problems. StdLib/LibC/Uefi/InteractiveIO/NonCanonRead.c Change Include order. StdLib/Include/paths.h Add definition _PATH_LIB for the path to the library directory: /Efi/StdLib/lib. StdLib/LibC/Stdio/vfwscanf.c Align declarations and initializations. Initialize the multipurpose pointer, p, to NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15664 6f19259b-4bc3-4df7-8a09-765794883524 commit caf89d64ff700b3d8807f477c172feaaae85d5f3 Author: Daryl McDaniel Date: Thu Jul 17 01:55:23 2014 +0000 StdLib: Move GetPass.c out of Uefi and into PosixLib. Create LibPosix to contain all functions from PosixLib instead of individual libraries. Retains the ability to use the individual libraries, except GetPass, for backwards compatibility. StdLib/LibC/Uefi/GetPass.c COPY to StdLib/PosixLib/GetPass/GetPass.c DELETE StdLib/PosixLib/GetPass/GetPass.c NEW, COPIED from StdLib/LibC/Uefi/GetPass.c StdLib/PosixLib/PosixLib.inf Create a LibPosix library class to build all PosixLib functions into a single library. Move GetPass from LibC/Uefi to PosixLib.inf StdLib/LibC/Uefi/Uefi.inf Remove GetPass.c from sources. Remove IPF from VALID_ARCHITECTURES Update VERSION_STRING Align [Defines] on a two-character boundary Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15663 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b98d6ce44baea807223c67ddf97cc0dc9108741 Author: Long, Qin Date: Wed Jul 16 02:48:20 2014 +0000 Add comments for clarification about memset implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15662 6f19259b-4bc3-4df7-8a09-765794883524 commit f53da37ad034e0605509600803e627882fbf1e8e Author: Ronald Cron Date: Tue Jul 15 09:26:53 2014 +0000 ArmPkg/ArmLib.h: Removed GET_CORE_POS macro The platform independant GET_CORE_POS has been replaced by the platform dependent function ArmPlatformGetCorePosition(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15661 6f19259b-4bc3-4df7-8a09-765794883524 commit 8bf4ad4475c061a9ff4fc248ba7f11784d706342 Author: Ronald Cron Date: Tue Jul 15 09:25:57 2014 +0000 ArmPlatformPkg/Bds: Getting and editing IP addresses Reworked GetHIInputIP() function to use "NetLibStrToIp4()" library function to parse the IPv4 address instead of doing it by itself. Added function EditHIInputIP() in BdsHelper.c to edit an IPv4 address. To be used when updating a tftp boot option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15660 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d0ca2577c3788ee1087177df439246fe8f2b4fd Author: Olivier Martin Date: Tue Jul 15 09:24:25 2014 +0000 ARM Packages: Force the SEC modules to be 2K aligned for AArch64 The AArch64 Vector Table must be aligned on a 2K boundary. The FDF specification does not support 2K alignment but support 4K. A clear comment has been added to help integrator to understand why the assertion fails when porting to a new AArch64 platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15659 6f19259b-4bc3-4df7-8a09-765794883524 commit 9232ee533884b4b516b3979ce355e367a6254749 Author: Olivier Martin Date: Tue Jul 15 09:21:41 2014 +0000 ArmPkg/BdsLib: Removed PSCI discoverability from the Linux loader Some platforms might decide to not support PSCI in their FDT-aware Linux system even if their firmware supports it. It is the responsibility of the platform engineer to provide the appropriate FDT. The PCD gArmTokenSpaceGuid.PcdArmPsciSupport is not required anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15658 6f19259b-4bc3-4df7-8a09-765794883524 commit 6913a68302ad64e4e9981adf3bb572b9cf0d1dc0 Author: Olivier Martin Date: Tue Jul 15 09:18:44 2014 +0000 ArmPlatformPkg/ArmPlatformLib.h: Added documentation for ArmPlatformPeiBootAction() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15657 6f19259b-4bc3-4df7-8a09-765794883524 commit 2db16368d1554b3243c7b5c0f81aa226e8932722 Author: Ronald Cron Date: Tue Jul 15 09:17:36 2014 +0000 ArmPlatformPkg/Bds: Added update of Pxe boot option Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15656 6f19259b-4bc3-4df7-8a09-765794883524 commit e77d2f9db2d93896c882edfc1b239e04620503f1 Author: Eric Dong Date: Mon Jul 14 11:01:17 2014 +0000 Add check to make code more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15655 6f19259b-4bc3-4df7-8a09-765794883524 commit 93551a01feb97510c2417035cee75d63834e458d Author: Eric Dong Date: Mon Jul 14 06:14:20 2014 +0000 Check the validation when return from callback function to avoid use the invalid form set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15654 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ca7b0b8411811c2b71518c74f1666d17aa92f0f Author: Star Zeng Date: Mon Jul 14 01:38:19 2014 +0000 MdePkg PeiHobLib: Initialize Owner field of Resource HOB to 0 rather than random value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15653 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c71e1e05666d274a760e45866f65fafc2ccfbc6 Author: Jeff Fan Date: Fri Jul 11 02:36:56 2014 +0000 1. Save/restore ICR high 32bit value and check Delivery Status before sending IPI. It could be fix the interrupted issue between ICR high/low writes by SMI handler. 2. Save/restore CPU Interrupt state around sending IPI. It could avoid sending IPI be interrupted by CPU interrupt handler. 3. Add note for SetApicMode() API that must not be called from an interrupt handler or SMI handler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Kinney, Michael Reviewed-by: Mudusuru, Giri git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15652 6f19259b-4bc3-4df7-8a09-765794883524 commit d2ea3b8399243ff46d9c713d4a328aa81a773a3c Author: Fu, Siyuan Date: Thu Jul 10 07:46:34 2014 +0000 Fix a memory use after free bug in DHCP6 driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15651 6f19259b-4bc3-4df7-8a09-765794883524 commit cf1eb6e6f85952b0fad82b937054f611cf148d57 Author: Jeff Fan Date: Thu Jul 10 02:12:27 2014 +0000 Introduce one PCD PcdCpuInitIpiDelayInMicroSeconds to specify the delay value after sending out INIT IPI instead of hard code 10 MicroSeconds. Its default value is 10 millisecond per IA32 manual. Platform could customize this PCD value for performance requirement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Kinney, Michael git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15650 6f19259b-4bc3-4df7-8a09-765794883524 commit 5039b444fe8c2b8757de53b009d9f4c6bb0f9302 Author: Eric Dong Date: Thu Jul 10 01:52:28 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15649 6f19259b-4bc3-4df7-8a09-765794883524 commit 86b024546709d0b3ead8df3bf16fb4c866c05921 Author: Eric Dong Date: Thu Jul 10 01:25:41 2014 +0000 Fixed one code error, should use & instead of |. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15648 6f19259b-4bc3-4df7-8a09-765794883524 commit ffb91edfd5eef02d0f7e0326bfa7023e8ea9bb6d Author: Eugene Cohen Date: Wed Jul 9 11:14:36 2014 +0000 ArmPkg/ArmLib: Improved ArmConfigureMmu Performance Data & Instruction Caches can be kept enabled while the new translation table is filled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15647 6f19259b-4bc3-4df7-8a09-765794883524 commit 28087ef09f3ade5072ce1505a8acc8aff85787cd Author: Harry Liebel Date: Wed Jul 9 09:10:44 2014 +0000 MdePkg/BasePrintLib: Do not do operations with NULL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15646 6f19259b-4bc3-4df7-8a09-765794883524 commit 85e2e0854bd158a561ee829d84635a1ff8128581 Author: Eric Dong Date: Wed Jul 9 08:30:07 2014 +0000 Refine the readme.txt for Duet platform, update the GCC tool chain to GCC44. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15645 6f19259b-4bc3-4df7-8a09-765794883524 commit bffaa2614af780e1f4c67b9f545adfafca0a692b Author: Eric Dong Date: Wed Jul 9 08:28:05 2014 +0000 Update the bat file, avoid change the original binary file in SVN, copy a temp file to use. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15644 6f19259b-4bc3-4df7-8a09-765794883524 commit 720f84a9d3b53ee567aa90c2362f4c4912d271de Author: Olivier Martin Date: Wed Jul 9 05:19:24 2014 +0000 The UEFI specification does not say anything when the pointers passed to WaitForEvent() are NULL. Passing NULL pointer would cause a segmentation fault in the current code. This change prevents to get segmentation faults in this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15643 6f19259b-4bc3-4df7-8a09-765794883524 commit e364478661e2a5e9195ce4a9f00761e154e48bfa Author: Chen Fan Date: Wed Jul 9 03:51:56 2014 +0000 Fixed typos: hanlder should be handler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15642 6f19259b-4bc3-4df7-8a09-765794883524 commit ae026b0a9b7a5d7b8f31ce6fe1aa9475787c9f3f Author: Eric Dong Date: Wed Jul 9 02:49:24 2014 +0000 Refine the sample for action, should not use text two part. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15641 6f19259b-4bc3-4df7-8a09-765794883524 commit 63442a19ba0523a8bbfc9c90bd4baa33cdbb0eb5 Author: Eric Dong Date: Wed Jul 9 01:50:55 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15640 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d4deaaccb9b39106775d260ea0397c1991b0f04 Author: Eric Dong Date: Tue Jul 8 06:04:53 2014 +0000 Refine the save action for the browser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15639 6f19259b-4bc3-4df7-8a09-765794883524 commit a6908c99aa48551616c25cf594862d3629ce91c0 Author: Long, Qin Date: Tue Jul 8 03:03:24 2014 +0000 Update OpenSSL from 0.9.8w to the latest 0.9.8za. Main changes include: 1. Update the patch file for 0.9.8za; 2. Update the install scripts to align the path for 0.9.8za; 3. OpensslLib.inf : Update the OPENSSL_PATH for 0.9.8za; enable more OPENSLL FLAGS to disable those un-used algorithms for better build performance and size; 4. Update the HOWTO file to align new OpenSSL version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15638 6f19259b-4bc3-4df7-8a09-765794883524 commit 4918a06a65f0b700c73164cfb4e8c18274a5e5af Author: Star Zeng Date: Tue Jul 8 01:42:46 2014 +0000 MdeModulePkg XhciPei: Fix build failure "conversion from 'UINT32' to 'UINT8', possible loss of data". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15637 6f19259b-4bc3-4df7-8a09-765794883524 commit 720624cce0e74cdec8547a8d31b24b39210bf007 Author: Eric Dong Date: Mon Jul 7 06:30:33 2014 +0000 Refine code to follow good coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15636 6f19259b-4bc3-4df7-8a09-765794883524 commit 60050b31bc13cf76685bc25654d5a2d95a9a273f Author: Star Zeng Date: Mon Jul 7 05:59:53 2014 +0000 MdeModulePkg XhciPei: Initialize ScratchPhy and ScratchEntryPhy in XhcPeiInitSched(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15635 6f19259b-4bc3-4df7-8a09-765794883524 commit 414f5bd1d74ea60b39b8cd3e7739196d78091cb3 Author: Star Zeng Date: Mon Jul 7 05:58:25 2014 +0000 MdeModulePkg XhciDxe: Initialize ScratchPhy and ScratchEntryPhy in XhcInitSched(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15634 6f19259b-4bc3-4df7-8a09-765794883524 commit 737adca337df5376980030c88324259aa265b3ab Author: Eric Dong Date: Mon Jul 7 05:56:26 2014 +0000 Restore the question value before call the CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15633 6f19259b-4bc3-4df7-8a09-765794883524 commit 0cecbe565aaac481cc06bd9e97c0a1b7642334e6 Author: Jordan Justen Date: Fri Jul 4 20:50:41 2014 +0000 EmulatorPkg: Add structure braces { } to fix build warning The GCC parameter -Wno-missing-braces was recently removed. This caused build warnings where structures were instantiated without proper brace usage. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15632 6f19259b-4bc3-4df7-8a09-765794883524 commit f58ba9ed6f413bc03f1a6f9e2115b970582e844f Author: Jordan Justen Date: Fri Jul 4 20:50:24 2014 +0000 EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c: Convert to CRLF (dos text) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15631 6f19259b-4bc3-4df7-8a09-765794883524 commit 42589b9ac9b9166c21ed95ca2a10f7113cb9cac6 Author: Olivier Martin Date: Fri Jul 4 14:47:11 2014 +0000 EmbeddedPkg/Lan9118Dxe: Handle EFI_STATUS from PhySoftReset() & SoftReset() - Make the function PhySoftReset() return EFI_STATUS - EFI_STATUS was treated as a signed integer by the caller which is not correct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15630 6f19259b-4bc3-4df7-8a09-765794883524 commit 42de09370fddac6446e071d1b613f477b20fc6bc Author: Ronald Cron Date: Fri Jul 4 14:46:21 2014 +0000 ArmPlatformPkg/Bds: Added boot timeout setting Added boot timeout setting in UEFI boot manager menu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15629 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b0ac0dedf19041512de152f047cc5a943598521 Author: Olivier Martin Date: Fri Jul 4 14:41:30 2014 +0000 ArmPkg/ArmGic: Returned the InterruptId in ArmGicAcknowledgeInterrupt() The InterruptId has a different width for GicV2 and GicV3 (respectively 10bit and 24bit). The function prototype has been changed to return this value to make the caller GIC architecture version independent. Otherwise, we would have need to expose a different mask to allow the caller to retrieve this value from the read register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15628 6f19259b-4bc3-4df7-8a09-765794883524 commit f5241b5725aab99189c733df6b03687656f8b1e8 Author: Olivier Martin Date: Fri Jul 4 14:38:14 2014 +0000 ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15627 6f19259b-4bc3-4df7-8a09-765794883524 commit 793ca69f50b8f12d0c4f0d9ffa16ecbc967e4118 Author: Olivier Martin Date: Fri Jul 4 14:36:42 2014 +0000 ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicLib The support for GIcV2 was already existing. This change separate the GicV2 specific functions from the common Gic code (in preparation for GicV3 support). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15626 6f19259b-4bc3-4df7-8a09-765794883524 commit 60775c51a52ade2f4c63777cd037f99903c36068 Author: Olivier Martin Date: Fri Jul 4 11:27:28 2014 +0000 ArmPkg/ArmGic: Moved ArmGicDisableDistributor() to ArmGicLib.c The implementation is the same when we run in Secure or Non-Secure world. This change makes this function available for ArmGicSec.inf and ArmGicNonSec.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15625 6f19259b-4bc3-4df7-8a09-765794883524 commit 0458b423b66eab6979ee9124ad8489d8e0e2bb50 Author: Olivier Martin Date: Fri Jul 4 11:26:33 2014 +0000 ArmPkg/ArmGic: Move RegisterInterruptSource() to the common GicDxe file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15624 6f19259b-4bc3-4df7-8a09-765794883524 commit 69b5dc9f8e926b5341405b729e58426c2a121470 Author: Olivier Martin Date: Fri Jul 4 11:25:29 2014 +0000 ArmPkg/ArmGic: Move the installation and the registration to InstallAndRegisterInterruptService() It will allow reusing the same code for GICv2 and GICv3 only drivers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15623 6f19259b-4bc3-4df7-8a09-765794883524 commit 397bdc990b018cb2fff01413636b4a23c4b23624 Author: Olivier Martin Date: Fri Jul 4 11:20:45 2014 +0000 ArmPkg/ArmGic: Make the GicDxe driver depends on ArmGicLib (cont) ... and also rename the ArmGicLib sources to use an explicit 'Lib' suffix. The renaming did not work well with SVN. Files were missing from the initial commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15622 6f19259b-4bc3-4df7-8a09-765794883524 commit e700a1fc9158cd8f956bd9d2a1867f47ee6591cc Author: Olivier Martin Date: Fri Jul 4 11:16:48 2014 +0000 ArmPkg/ArmGic: Introduced helper functions to access the GIC controller Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15621 6f19259b-4bc3-4df7-8a09-765794883524 commit 4edcf21de4a12b80440b2e8fe53dc9df60173b2d Author: Olivier Martin Date: Fri Jul 4 11:14:20 2014 +0000 ArmPkg/ArmGic: Make the GicDxe driver depends on ArmGicLib ... and also rename the ArmGicLib sources to use an explicit 'Lib' suffix. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15620 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ca815a4952ca3ef3bdb01f5dd2a1ee0a57ac319 Author: Olivier Martin Date: Fri Jul 4 11:13:27 2014 +0000 ArmPkg/ArmGic: Move out the EndOfInterrupt from the interrupt acknowledgement Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15619 6f19259b-4bc3-4df7-8a09-765794883524 commit d80401a16f250486baab14f02b044cf2cc1ac949 Author: Olivier Martin Date: Fri Jul 4 11:11:53 2014 +0000 ArmPkg/Drivers/ArmGic: Introduced ArmGicEndOfInterrupt() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15618 6f19259b-4bc3-4df7-8a09-765794883524 commit e1f2dfec3483e276d267f5ca3540c1505d631c60 Author: Star Zeng Date: Fri Jul 4 03:30:46 2014 +0000 MdeModulePkg XhciDxe: XHCI multiple interface alternate setting support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15617 6f19259b-4bc3-4df7-8a09-765794883524 commit 8acb3f7b54ec6ebf9c01b8c570f5ec0c7530be80 Author: Eric Dong Date: Fri Jul 4 01:58:48 2014 +0000 Refine the save action for the BdsDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15616 6f19259b-4bc3-4df7-8a09-765794883524 commit dda74d6d62806a6d2d1ebd3792f2825412ff25ea Author: Paulo Alcantara Date: Thu Jul 3 20:05:22 2014 +0000 EmulatorPkg/EmuSimpleFileSystemDxe: Fix incorrect return values upon allocation failure In EmuSimpleFileSystemOpenVolume() function - in case an allocation failed with AllocatePool() - EFI_UNSUPPORTED was being returned instead of EFI_OUT_OF_RESOURCES, which is incorrect. Even worse, in EmuSimpleFileSystemDriverBindingStart(), an unitiliasied variable (Status) will be returned in case of an allocation failure with AllocateZeroPool(). This patch fixes both issues by correctly returning EFI_OUT_OF_RESOURCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15615 6f19259b-4bc3-4df7-8a09-765794883524 commit 4451c6eb6a352aa87f2d13db27462c354c76644e Author: Paulo Alcantara Date: Thu Jul 3 20:05:14 2014 +0000 EmulatorPkg/EmuSimpleFileSystemDxe: Fix minor typos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15614 6f19259b-4bc3-4df7-8a09-765794883524 commit 859b0db434b913f0798f78b1637fdb251e994875 Author: Star Zeng Date: Wed Jul 2 09:02:35 2014 +0000 SecurityPkg HashLibBaseCryptoRouterDxe/Tpm2DeviceLibRouterPei: Fixed GCC build failure after -Wno-missing-braces option in GCC removed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15613 6f19259b-4bc3-4df7-8a09-765794883524 commit a94733b0d6ff6531d50b981428b684dd9dbdb61f Author: Eric Dong Date: Wed Jul 2 05:54:41 2014 +0000 Correct the default value for date opcode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15612 6f19259b-4bc3-4df7-8a09-765794883524 commit d987459f8e0b78831c95188b5b0d712ed6a54c88 Author: Star Zeng Date: Wed Jul 2 03:20:49 2014 +0000 MdeModulePkg XhciPei/UsbBusPei: Add XHCI recovery support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15611 6f19259b-4bc3-4df7-8a09-765794883524 commit ef96ba3cbe6f9f3658f19407d4c2150dcd6eb457 Author: Star Zeng Date: Wed Jul 2 02:29:02 2014 +0000 MdeModulePkg SmmLockBoxSmmLib: Add debug message for the address of lockbox(smm) copy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15610 6f19259b-4bc3-4df7-8a09-765794883524 commit edc93a319184294dfa2f1764baceb02f49ccdcc5 Author: Olivier Martin Date: Tue Jul 1 09:27:19 2014 +0000 ArmPkg/BdsLib: Prevent memory leak whith TFTP In some case, the size of the downloaded TFTP image cannot be known. An arbitrary larger buffer is allocated to receive the image. We need to make sure when we free the buffer we free the size of the allocated buffer and not the size of the actual image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15609 6f19259b-4bc3-4df7-8a09-765794883524 commit a6217114e35fd10215513d8b026bd4e0c3770814 Author: Olivier Martin Date: Tue Jul 1 09:26:28 2014 +0000 ArmPkg/ArmCacheMaintenanceLib: Fixed comment (and coding style) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15608 6f19259b-4bc3-4df7-8a09-765794883524 commit 52659efb9c37066f6bf5f001374dd1a115cc1455 Author: Olivier Martin Date: Tue Jul 1 09:25:30 2014 +0000 EmbeddedPkg/SerialDxe: Fixed the mixture of RETURN_STATUS and EFI_STATUS Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15607 6f19259b-4bc3-4df7-8a09-765794883524 commit 6defc4db4c508adc52d7b5273ef22020b89e0ab5 Author: Olivier Martin Date: Tue Jul 1 09:24:07 2014 +0000 ArmPkg/CpuDxe/ArmV6: Return error status when ExceptionHandlersStart is not 32-byte aligned The function should detect and return the error in non-debug builds when the ASSERT does nothing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15606 6f19259b-4bc3-4df7-8a09-765794883524 commit e4ac870fe95adc7d178a79b73ad2792e0c8bfeb8 Author: Gao, Liming Date: Tue Jul 1 07:10:10 2014 +0000 Sync BaseTool trunk (version r2670) into EDKII BaseTools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Liu, Yingke D (yingke.d.liu@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15605 6f19259b-4bc3-4df7-8a09-765794883524 commit 148af3872273ef476230db1d0df5ea00167853a1 Author: Tapan Shah Date: Mon Jun 30 20:14:24 2014 +0000 ShellPkg: Fix Ctrl+C support for dmpstore command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15604 6f19259b-4bc3-4df7-8a09-765794883524 commit 48178d7ab12ad5157500b5b58331175edcd1d400 Author: Fu, Siyuan Date: Mon Jun 30 07:48:23 2014 +0000 Fix a bug in IP4 driver when computing the network broadcast adress. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15603 6f19259b-4bc3-4df7-8a09-765794883524 commit 9e2364ef1203f81c8572766d360fb7b10c2cda56 Author: Jeff Fan Date: Mon Jun 30 06:13:53 2014 +0000 Fix the potential address overflow issue when checking PE signature. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15602 6f19259b-4bc3-4df7-8a09-765794883524 commit 8c01a99b8472f231e746c7eb9bade0ddddf2b445 Author: Gao, Liming Date: Fri Jun 27 19:15:35 2014 +0000 OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Fix GCC44 build failure. Initialize the input parameter FwhInstance in function GetFvbInstance(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Gao, Liming" Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15601 6f19259b-4bc3-4df7-8a09-765794883524 commit 891d8445b51b416bfe18fde3ef750f443cecc7c0 Author: Tapan Shah Date: Fri Jun 27 08:50:27 2014 +0000 MdeModulePkg/PiSmmCore: Initialize missing LoadedImage protocol fields for SMM driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15600 6f19259b-4bc3-4df7-8a09-765794883524 commit d070eef803b596d46a5721a61c92876bdd078873 Author: Chen Fan Date: Fri Jun 27 07:30:21 2014 +0000 EmulatorPkg/CpuRuntimeDxe: Fix typos in MpService mMpSercicesTemplate => mMpServicesTemplate Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15599 6f19259b-4bc3-4df7-8a09-765794883524 commit 523f48e771b1088c6e2cfddc5c56cde1ef9a2ab0 Author: Eric Dong Date: Thu Jun 26 03:24:25 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15598 6f19259b-4bc3-4df7-8a09-765794883524 commit d0f65b21c58b958ba370e774c6fe3ddc5ff1f3c7 Author: Eric Dong Date: Thu Jun 26 03:18:44 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15597 6f19259b-4bc3-4df7-8a09-765794883524 commit 6afd9f45bb4b72ef3952d1b01e9dee909f414b5e Author: Eric Dong Date: Thu Jun 26 03:17:59 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15596 6f19259b-4bc3-4df7-8a09-765794883524 commit b5f8b5b03dde02d13cedc87d42bccd5c822e2801 Author: Eric Dong Date: Thu Jun 26 03:16:27 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15595 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a18908695b8fb1a0ce325bd29b43d51aa65e07f Author: Eric Dong Date: Thu Jun 26 01:39:25 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15594 6f19259b-4bc3-4df7-8a09-765794883524 commit 81cd2f536ef0097392b51f96405321ce7b01350c Author: Eric Dong Date: Thu Jun 26 01:38:46 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15593 6f19259b-4bc3-4df7-8a09-765794883524 commit 45295cf5a58578b84e5092c3a3dd145c069c1db5 Author: Eric Dong Date: Wed Jun 25 06:51:36 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15592 6f19259b-4bc3-4df7-8a09-765794883524 commit 79ecd2dbfa41c6e121eaf320689caf01d331a91c Author: Eric Dong Date: Wed Jun 25 06:49:53 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15591 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fee5304db562db9f0757af077da100336566cd9 Author: Eric Dong Date: Wed Jun 25 06:00:49 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15590 6f19259b-4bc3-4df7-8a09-765794883524 commit 393a3169c2a777e3ed899c85f7827258a13f0755 Author: Eric Dong Date: Wed Jun 25 05:44:37 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15589 6f19259b-4bc3-4df7-8a09-765794883524 commit 53db912ea1ef7be5cb40e7dbff55d3bc059d9f90 Author: Eric Dong Date: Wed Jun 25 05:16:52 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15588 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f497dc147a1f05a13b8753a88b3e23e23a6b8a0 Author: Andrew Fish Date: Wed Jun 25 04:54:47 2014 +0000 MdeModulePkg/DxeMain: Zero ImageContext local variable before passing it down to PeCoffLoaderRelocateImageExtraAction() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15587 6f19259b-4bc3-4df7-8a09-765794883524 commit 84043adfe24d18d46ead4a3d743f61efdc0c9824 Author: Laszlo Ersek Date: Wed Jun 25 03:35:58 2014 +0000 OvmfPkg: add missing braces to aggregate and/or union initializers Lack of these braces causes build errors when -Wno-missing-braces is absent. Spelling out more braces also helps understanding the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15586 6f19259b-4bc3-4df7-8a09-765794883524 commit ffccb935fab8103ab4efef1d9f949aeb581c83df Author: Dong, Guo Date: Wed Jun 25 02:02:22 2014 +0000 Update code to always publish EFI_IMAGE_EXECUTION_INFO_TABLE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Fu, Siyuan Reviewed-by: Gao, Liming Reviewed-by: Zhang, Chao B git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15585 6f19259b-4bc3-4df7-8a09-765794883524 commit 83c7a556a254048388d457d7a5a988ddff408b68 Author: Chris Phillips Date: Tue Jun 24 18:39:15 2014 +0000 ShellPkg: Fix 'mv' command to not attempt moving a file from write-protected media Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15584 6f19259b-4bc3-4df7-8a09-765794883524 commit b34039b2e17e682d78feb92afba20132cc7d1e0b Author: Gao, Liming Date: Tue Jun 24 02:25:23 2014 +0000 Add DEBUG message for all fields in AcpiS3Context. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15583 6f19259b-4bc3-4df7-8a09-765794883524 commit 66c777086b9564f7b4ccdf606b1092f44763ae54 Author: Gao, Liming Date: Tue Jun 24 02:24:13 2014 +0000 Add DEBUG message for all fields in AcpiS3Context. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15582 6f19259b-4bc3-4df7-8a09-765794883524 commit e837e22a94b3766f40047fde655e08996c601af5 Author: Gao, Liming Date: Tue Jun 24 02:22:47 2014 +0000 Correct comment typo in AsmReadCr0() function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15581 6f19259b-4bc3-4df7-8a09-765794883524 commit e71cb45263cd3e03887d24de81653f3b4b02d510 Author: Tapan Shah Date: Mon Jun 23 18:36:44 2014 +0000 ShellPkg: Move UpdateMapping() out of Map command and added to UefiShellCommandLib library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15580 6f19259b-4bc3-4df7-8a09-765794883524 commit b0fdce95f7c35f169d7aec8e95e96955c2194887 Author: Olivier Martin Date: Fri Jun 20 18:24:51 2014 +0000 ARM Packages: Fixed missing braces (the warning was disabled by GCC) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15578 6f19259b-4bc3-4df7-8a09-765794883524 commit ec6b8eda8fcb2e53fb90ee8d38c58cbe6d602665 Author: Olivier Martin Date: Fri Jun 20 18:23:37 2014 +0000 ArmPlatformPkg/SP804TimerLib: Checked both Metronome and Performance timers are initialized Prior to this change if Metronome timer was already initialized the initialization of the Performance timer was skipped. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15577 6f19259b-4bc3-4df7-8a09-765794883524 commit 97be2801745630eab090446211289a6315040a30 Author: Tycho Nightingale Date: Fri Jun 20 07:18:08 2014 +0000 PcAtChipsetPkg: Enable timer interrupt through I/O APIC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tycho Nightingale Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15576 6f19259b-4bc3-4df7-8a09-765794883524 commit 7d84fbbb5e504002646e17746dbb79a6f33d5f14 Author: Ruiyu Ni Date: Fri Jun 20 06:17:54 2014 +0000 Do not create boot option for logical block io device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15575 6f19259b-4bc3-4df7-8a09-765794883524 commit a618eaa1f45d53073784460ec2c8d9c3d097b789 Author: Laszlo Ersek Date: Thu Jun 19 06:13:29 2014 +0000 OvmfPkg: AcpiPlatformDxe: don't rely on unstable QEMU interface The fw_cfg file "etc/acpi/tables" is not a stable guest interface -- QEMU could rename it in the future, and/or introduce additional fw_cfg files with ACPI payload. Only the higher-level "etc/table-loader" file is considered stable, which contains a sequence of commands to assist firmware with reading QEMU ACPI tables from the FwCfg interface. Because edk2 provides publishing support for ACPI tables, OVMF only uses the Allocate command to find the names of FwCfg files to read and publish as ACPI tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15574 6f19259b-4bc3-4df7-8a09-765794883524 commit 374df8fc59622f78de0cefaf073c44076cc44f7e Author: Laszlo Ersek Date: Thu Jun 19 06:13:22 2014 +0000 OvmfPkg: AcpiPlatformDxe: exclude RSD PTR from QEMU's fw_cfg payload In one of the next patches we'll start scanning all fw_cfg files that QEMU advertises as carrying ACPI tables, not just "etc/acpi/tables". The RSD PTR table is known to occur in the "etc/acpi/rsdp" fw_cfg file. Since edk2 handles RSD PTR automatically, similarly to RSDT and XSDT, let's exclude RSD PTR too from the manually installed tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15573 6f19259b-4bc3-4df7-8a09-765794883524 commit 2d1fe95066fb11e30f9028d70349669c24f6c289 Author: Laszlo Ersek Date: Thu Jun 19 06:13:12 2014 +0000 OvmfPkg: AcpiPlatformDxe: pass FwCfgFile to InstallQemuLinkedTables() Split InstallQemuLinkedTables() in two: - the function now takes the name of the fw_cfg file (from which ACPI tables are to be extracted) as a parameter, - the new function InstallAllQemuLinkedTables() calls the former with fw_cfg file names, and cumulatively tracks the ACPI tables installed by all invocations of the former. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15572 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a904296e42ea6b8c27a489db049aef05db629c2 Author: Laszlo Ersek Date: Thu Jun 19 06:13:01 2014 +0000 OvmgPkg: QemuFwCfgLib: export QEMU_FW_CFG_FNAME_SIZE Names of firmware configuration files always take 56 bytes (including at least one terminating NUL byte). Expose this constant to all consumers of QemuFwCfgLib because further interfaces may depend on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15571 6f19259b-4bc3-4df7-8a09-765794883524 commit 8819a096b1e4e449cfce224b74e5a943a450494e Author: Eric Dong Date: Thu Jun 19 01:58:09 2014 +0000 Fix GCC build fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15570 6f19259b-4bc3-4df7-8a09-765794883524 commit b0bc24aff5205e71aebbb7a15872974bb131d0f3 Author: Alex Williamson Date: Thu Jun 19 01:41:15 2014 +0000 The following call tree exposes a bug in the lifetime (ie. too late creation) of PciIoDevice->DevicePath. The bug can be triggered when PciBusDxe is built into OVMF, with qemu/KVM device assignment of a PCI-express device on the default 440FX machine type. OVMF correctly discovers that the device is PCIe and begins probing extended configuration space for the device. The root bridge has no way to access extended config space and correctly errors, sending us into the error reporting chain seen below. It's possible that this error path could also be reproduced on physical hardware when a PCI-to-PCIe bridge is present. GatherDeviceInfo() | GatherPpbInfo() | GatherP2CInfo() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] CreatePciIoDevice() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] AllocateZeroPool() LocateCapabilityRegBlock() [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoDevice->IsPciExp = TRUE LocatePciExpressCapabilityRegBlock() [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoConfigRead() via funcptr [MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c] RootBridgeIoPciRead() via funcptr [PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c] FAILS REPORT_STATUS_CODE_WITH_DEVICE_PATH() [MdePkg/Include/Library/ReportStatusCodeLib.h] ReportStatusCodeWithDevicePath() [MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c] ASSERT (DevicePath != NULL) <--+ CreatePciDevicePath() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] sets PciIoDevice->DevicePath ----------+ In English: - CreatePciIoDevice() allocates a zeroed out PCI_IO_DEVICE structure. - PciIoConfigRead() tries to access the (extended) config space, and fails. - PciIoConfigRead() wants to report a status code (read error) for the device path. - Unfortuantely, PciIoDevice->DevicePath is still NULL at that point. - The ASSERT() in ReportStatusCodeWithDevicePath() fires. Fix it by moving CreatePciDevicePath() into CreatePciIoDevice(), allowing PciIoDevice->DevicePath to be initialized before we begin probing the device capabilities: GatherDeviceInfo() | GatherPpbInfo() | GatherP2CInfo() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] CreatePciIoDevice() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] AllocateZeroPool() CreatePciDevicePath() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] sets PciIoDevice->DevicePath -----------+ LocateCapabilityRegBlock() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoDevice->IsPciExp = TRUE | LocatePciExpressCapabilityRegBlock() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoConfigRead() via funcptr | [MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c] RootBridgeIoPciRead() via funcptr | [PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c] FAILS | REPORT_STATUS_CODE_WITH_DEVICE_PATH() | [MdePkg/Include/Library/ReportStatusCodeLib.h] ReportStatusCodeWithDevicePath() | [MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c] ASSERT (DevicePath != NULL) <-----+ Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Alex Williamson Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15567 6f19259b-4bc3-4df7-8a09-765794883524 commit 183ecff5668f46073548a7d10291b41d35052b12 Author: Jaben Carsey Date: Wed Jun 18 16:37:16 2014 +0000 ShellPkg: Remove use of ASSERT to test parameters Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15566 6f19259b-4bc3-4df7-8a09-765794883524 commit c5ed01d9da9ccbc7504a9299414d15bda3652007 Author: Victor Gouveia Date: Wed Jun 18 09:01:33 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Victor Gouveia Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15565 6f19259b-4bc3-4df7-8a09-765794883524 commit 277fe9aa03ae0d52189a564db9363f17c1582e19 Author: Ruiyu Ni Date: Wed Jun 18 05:00:13 2014 +0000 Create boot option for all block IO devices no matter what the device path looks like. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15564 6f19259b-4bc3-4df7-8a09-765794883524 commit be9304f33f78a645512e76e6d44a69198d5f3c06 Author: Eric Dong Date: Wed Jun 18 02:19:50 2014 +0000 Support RouteConfig function for BdsDxe driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15563 6f19259b-4bc3-4df7-8a09-765794883524 commit 885f7fd0c767c2b39e6b60d20b575e7e95d4638d Author: Jaben Carsey Date: Mon Jun 16 21:58:50 2014 +0000 ShellPkg: Fix duplicate String IDs Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15562 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a70350fff479888871f2efbf688c8ca49aa92b5 Author: Andrew Fish Date: Mon Jun 16 08:31:41 2014 +0000 Fix build issues with Xcode in CryptoPkg and SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Ye Ting Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15561 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bf3ce9ff9912a3fbd64c199798bdfce4c9426ec Author: Andrew Fish Date: Mon Jun 16 08:30:41 2014 +0000 Fix build issues with Xcode in CryptoPkg and SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Ye Ting Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15560 6f19259b-4bc3-4df7-8a09-765794883524 commit 022ed0d7885af824ffce1ee700af6554df4c8d65 Author: Qiu Shumin Date: Fri Jun 6 08:47:18 2014 +0000 Use a compare operator for Non-Boolean comparison in 'map.c'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15559 6f19259b-4bc3-4df7-8a09-765794883524 commit 33eb033f8609d960ccf6c3ad9abb0acab5e1a08f Author: Jaben Carsey Date: Thu Jun 5 22:02:12 2014 +0000 ShellPkg: fix Comp command output The comp command was potentially displaying the incorrect offset into the file due to comparing 3 extra bytes for difference groups. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15558 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ab4497c38b44832bc1f8b5d8cf77a6a254efed1 Author: Tian, Feng Date: Wed Jun 4 06:35:29 2014 +0000 MdeModulePkg/NvmExpressDxe: Check if CSTS.RDY is 0 to wait NVMe Host controller disable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15557 6f19259b-4bc3-4df7-8a09-765794883524 commit e9bf5b1dd192c5f14bb9b6f10f39329f79c30f54 Author: Jeff Fan Date: Wed Jun 4 01:47:24 2014 +0000 Rename TimeoutInSeconds to Timeout to avoid confusion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Mike Maslenkin Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15556 6f19259b-4bc3-4df7-8a09-765794883524 commit b4a6629fd91efdd235691f7d00b720f1073b9ff9 Author: Olivier Martin Date: Tue Jun 3 16:44:09 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Set CNTFRQ to 100Mhz for the Fast Models The timer frequency for the FVP Architectural Timers have been aligned to 100Mhz. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15555 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f1103bd1e247b129a05d19899af56b5d245f19c Author: Olivier Martin Date: Tue Jun 3 16:43:26 2014 +0000 ArmPkg/AsmMacroIoLib: Add support for ARM Compiler 6.00 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15554 6f19259b-4bc3-4df7-8a09-765794883524 commit ec17f0f56a1b6345baef5d73e6ed7bc2016f4b78 Author: Olivier Martin Date: Tue Jun 3 16:42:18 2014 +0000 ArmPkg/CpuDxe: Stack Pointer is not 8-bytes aligned in AArch32 interrupt handling See section "2.1 The need to align SP to a multiple of 8 at conforming call sites" in "Advisory Note. SP must be 8-byte aligned on entry to AAPCS-conforming functions" Source: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0046b/IHI0046B_ABI_Advisory_1.pdf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15553 6f19259b-4bc3-4df7-8a09-765794883524 commit 27331bff97f4fb36bee3aad8e010576ca641304e Author: Olivier Martin Date: Tue Jun 3 16:39:23 2014 +0000 ArmPkg: Added new ARM Processor Feature Register definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15552 6f19259b-4bc3-4df7-8a09-765794883524 commit 01674afdad3460f1c1f5f7a941c4c5895c8c3f86 Author: Olivier Martin Date: Tue Jun 3 16:37:29 2014 +0000 ArmPkg/ArmLib: Drain Write Buffer before DCache maintenance operations. Cache maintenance operations by Set/Way require that the Write Buffer be drained before the cache is flushed. Without that, the flush can miss the most recent values written as they are still "pipelined". That has unfortunate consequences, especially where code is being copied to RAM. The fix is to add DSB instructions before the affected operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15551 6f19259b-4bc3-4df7-8a09-765794883524 commit 8b7f930a14d1d5480b707b60323e95450e7361c1 Author: Olivier Martin Date: Tue Jun 3 16:35:32 2014 +0000 ArmPlatformPkg/Ds5: Added script to profile EDK2 with ARM DSTREAM Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15550 6f19259b-4bc3-4df7-8a09-765794883524 commit 451b665890f69244f213d7aba4450394a21bc60c Author: Olivier Martin Date: Tue Jun 3 16:34:17 2014 +0000 ArmPkg/DefaultExceptionHandlerLib/Aarch64: Added friendly debug message Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15549 6f19259b-4bc3-4df7-8a09-765794883524 commit f747c71e301c7cf710d6511fbcc86a7ae6d475fa Author: Jaben Carsey Date: Wed May 28 17:31:22 2014 +0000 ShellPkg: fix display for map command with filtering This patch correctly displays map information when a filter was applied such as “map fs*” or “map f*”, including the use of “-c” to display the consist names first in this situation. It also moves a statement from both clauses of an “if/else” to above the “if” statement for efficiency. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15548 6f19259b-4bc3-4df7-8a09-765794883524 commit 0c41d28e598356f083c308f359d435e63a6e0ef9 Author: Jaben Carsey Date: Thu May 22 22:06:41 2014 +0000 ShellPkg: replace unrecognized Environment Variables with empty quotes so commands or applications know something existed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15547 6f19259b-4bc3-4df7-8a09-765794883524 commit b5ce69c3daf4b8e32a183fd0e53b657c70d6998a Author: Qiu Shumin Date: Thu May 22 08:32:50 2014 +0000 Update the comments for function 'InternalShellExecuteDevicePath' in ShellProtocol.c to make it consistent with parameter names. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15546 6f19259b-4bc3-4df7-8a09-765794883524 commit f3fc9d8dc987f9b78aeefd5800833c4c5bb8acf0 Author: Ruiyu Ni Date: Thu May 22 07:38:40 2014 +0000 Remove the RT attribute for HDDP variable and validate the variable content before using it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15545 6f19259b-4bc3-4df7-8a09-765794883524 commit ed2867debc8ee90ab65823e2fce73992044c795c Author: Ruiyu Ni Date: Thu May 22 07:34:35 2014 +0000 Remove the assertion which may cause IsDevicePathValid() hang in DEBUG build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15544 6f19259b-4bc3-4df7-8a09-765794883524 commit 21def103d55dd7b0fd5562634a21415afbb841e2 Author: Brendan Jackman Date: Wed May 21 05:59:47 2014 +0000 Add 'file not found' debug message to MTFTP. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-by: Fu, Siyuan Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15543 6f19259b-4bc3-4df7-8a09-765794883524 commit a145e28decc529bf26981ae57c3fc2ffe0b946f2 Author: Gabriel Somlo Date: Tue May 20 16:33:19 2014 +0000 OvmfPkg/SMBIOS: Add QEMU support to OVMF SMBIOS driver Locate QEMU SMBIOS data in fw_cfg and install it via the SMBIOS protocol. Starting with qemu-2.1, on pc/x86 machines of type >= 2.1, full SMBIOS tables are generated and inserted into fw_cfg (i.e., no per-field patching of locally generated structures is required). Aside from new code to extract a SMBIOS blob from fw_cfg, this patch utilizes the pre-existing infrastructure (already used by Xen) to handle final SMBIOS table creation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15542 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b23d767f6c762178503cf26e4c6d066fd311f25 Author: Gabriel Somlo Date: Tue May 20 16:33:11 2014 +0000 OvmfPkg/SMBIOS: Reuse handles supplied by underlying VM The SMBIOS specification requires some structure types to contain reference fields to other structures' handles. When InstallAllStructures() rebuilds the SMBIOS tables by traversing an existing source table, the use of SMBIOS_HANDLE_PI_RESERVED causes automatically generated, arbitrary handle numbers to be assigned to each cloned structure. This causes all reference handle fields to become invalid. This patch modifies InstallAllStructures() to reuse the original handle numbers supplied by the underlying VM, preserving the correctness of any included handle references. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Anthony PERARD git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15541 6f19259b-4bc3-4df7-8a09-765794883524 commit 90803342b1b6060f1ddbb1aaea54fdf86a7ff9ad Author: Laszlo Ersek Date: Tue May 20 16:33:00 2014 +0000 OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) The Windows 2008 R2 SP1 (and Windows 7) UEFI guest's default video driver dereferences the real mode Int10h vector, loads the pointed-to handler code, and executes what it thinks to be VGA BIOS services in an internal real-mode emulator. Consequently, video mode switching doesn't work in Windows 2008 R2 SP1 when it runs on the pure UEFI build of OVMF, making the guest uninstallable. This patch adds a VGABIOS "shim" to QemuVideoDxe. For the first stdvga or QXL card bound, an extremely stripped down VGABIOS imitation is installed in the C segment. It provides a real implementation for the few services that are in fact necessary for the win2k8r2sp1 UEFI guest, plus some fakes that the guest invokes but whose effect is not important. The C segment is not present in the UEFI memory map prepared by OVMF. We never add memory space that would cover it (either in PEI, in the form of memory resource descriptor HOBs, or in DXE, via gDS->AddMemorySpace()). This way the handler body is invisible to all non-buggy UEFI guests, and the rest of edk2. The Int10h real-mode IVT entry is covered with a Boot Services Code page, making that too unaccessible to the rest of edk2. (Thus UEFI guest OSes different from the Windows 2008 family can reclaim the page. The Windows 2008 family accesses the page at zero regardless of the allocation type.) The patch is the result of collaboration: Initial proof of concept IVT entry installation and handler skeleton (in NASM) by Jordan Justen. Service tracing and implementation, data collection/analysis, and C coding by yours truly. Last minute changes by Gerd Hoffmann: - Use OEM mode number (0xf1) instead of standard 800x600 mode (0x143). The resolution of the OEM mode (0xf1) is not standardized; the guest can't expect anything from it in advance. - Use 1024x768 rather than 800x600 for more convenience in the Windows 2008 R2 SP1 guest during OS installation, and after normal boot until the QXL XDDM guest driver is installed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15540 6f19259b-4bc3-4df7-8a09-765794883524 commit d8f36fb56834e26a03e8993ca76d2f3870dd0b39 Author: Olivier Martin Date: Mon May 19 16:41:25 2014 +0000 ArmPkg/BdsLib: Added support for TFTP servers without 'tsize' extension Some TFTP servers do not have 'tsize' extension. This change allows to download files from TFTP servers that do not have this extension by trying to download the file into a pre-allocated buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15539 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b5f577faf259dcb0955eb2263d34e7ebe773ff8 Author: Ruiyu Ni Date: Mon May 19 06:08:26 2014 +0000 Change PciIo::GetBarAttributes() to return unsupported for a unsupported bar even it's below 6 to follow the UEFI Spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15538 6f19259b-4bc3-4df7-8a09-765794883524 commit 36d6448c1ea7c32a45b719cdf04200227ae1ebb9 Author: Qiu Shumin Date: Mon May 19 00:39:48 2014 +0000 Handle multi instances device path while connecting console devices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15537 6f19259b-4bc3-4df7-8a09-765794883524 commit 67c49e4e28e050859b86dfe1a242b942a2705da3 Author: Olivier Martin Date: Fri May 16 00:11:35 2014 +0000 EmbeddedPkg/PrePiLib: Remove duplicated definition of EFI_STATUS_CODE_DATA_MAX_SIZE ... is already defined by MdeModulePkg\Include\Guid\StatusCodeDataTypeDebug.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15536 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bdb6d12a835a9b3d7729eaf51e3a4265a270cf5 Author: Ruiyu Ni Date: Thu May 15 07:22:27 2014 +0000 Change PciIo::GetBarAttributes() to return unsupported for a unsupported bar even it's below 6 to follow the UEFI Spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15535 6f19259b-4bc3-4df7-8a09-765794883524 commit ab82122dfebb90751b478b7c3cab9ed42051dbf4 Author: Tian, Feng Date: Thu May 15 07:09:14 2014 +0000 MdeModulePkg/AtaAtapiPassThru: Handle timeout 0 as indefinitely wait to strictly comply with UEFI spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Li, Elvin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15534 6f19259b-4bc3-4df7-8a09-765794883524 commit 129ff94661bd3a6c759b1e154c143d0136bedc7d Author: Olivier Martin Date: Thu May 15 01:13:05 2014 +0000 Fix some build issues (ARM toolchain). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Fu, Siyuan Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15533 6f19259b-4bc3-4df7-8a09-765794883524 commit 36d66acf275135699fea9243e58e25990ab0db7f Author: Olivier Martin Date: Wed May 14 22:11:04 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fixed LBA for FVB FVB (for instance for UEFI Variable) might not be at the start of the NOR Flash. 'Lba' needs to be fixed up for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15532 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c794bf4a04e483540e9490b8eaed2cfbc7499ea Author: Olivier Martin Date: Wed May 14 17:23:32 2014 +0000 ArmPlatformPkg/ArmVExpress-CTA15-A7.dsc: Fixed LAN controller name Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15531 6f19259b-4bc3-4df7-8a09-765794883524 commit 7282b505c5da686b95f6b2277bbd25a620d263ed Author: Jaben Carsey Date: Wed May 14 16:55:56 2014 +0000 ShellPkg: Add error messages to CP when destination file or directory cannot be opened/created Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15530 6f19259b-4bc3-4df7-8a09-765794883524 commit 09a43a5d5ce9285b27551d7909f038e350b360d9 Author: Jaben Carsey Date: Wed May 14 16:54:09 2014 +0000 ShellPkg: report error when EfiDecompress is run on a non-compressed file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15529 6f19259b-4bc3-4df7-8a09-765794883524 commit 271ce4bd70953bf4ca5be7db9d7e65e470384896 Author: Brendan Jackman Date: Wed May 14 16:41:04 2014 +0000 ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15528 6f19259b-4bc3-4df7-8a09-765794883524 commit 1aaa6f61a55a4db594d264ab8c0b0c9ddac1110e Author: Brendan Jackman Date: Wed May 14 16:39:43 2014 +0000 ArmPkg/BdsLib: Fix allocating kernel buffer in TFTP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15527 6f19259b-4bc3-4df7-8a09-765794883524 commit 48ef4e4276fcd748f10f9a12f8dad6cc3c62ee01 Author: Olivier Martin Date: Wed May 14 05:32:07 2014 +0000 ArmPkg/CpuDxe/AArch64: Fixed SyncCacheConfig() when first entry is in 3-level If the first entry of the memory map is in the third level (case when the region at 0x0 is smaller than 4KB) then its descriptor type would be TT_TYPE_BLOCK_ENTRY_LEVEL3 (=0x3) which has the same value as TT_TYPE_TABLE_ENTRY (=0x3). The first condition in GetFirstPageAttribute() needed the table level to not mix these two descriptor types. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15526 6f19259b-4bc3-4df7-8a09-765794883524 commit 7da62bc02d70f11d6294efc71ccebb65199655d0 Author: Eric Dong Date: Wed May 14 01:52:31 2014 +0000 Based on request, export ResetRequired info used by browser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15525 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ff8108177f541921ea6354ba6c6a3ffe6a1f333 Author: Qiu Shumin Date: Wed May 14 01:47:02 2014 +0000 Add code to connect device path of console devices correctly for Shell command 'connect -c'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15524 6f19259b-4bc3-4df7-8a09-765794883524 commit cd39fe082c886243b934b1ff4170ab32bbd0db2c Author: Olivier Martin Date: Tue May 13 21:16:42 2014 +0000 ShellPkg: Do not mix status when executing a command The function InternalShellExecuteDevicePath() did not differentiate an error occuring during the preparation of an image and an error occurring during its execution. A use case of the issue was when a EFI application was called in a EFI Shell script. If the EFI application was returning an error then the NSH script stopped its execution. While the EFI Shell specification says the script should continue its execution (see 4.2 Error Handling). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15523 6f19259b-4bc3-4df7-8a09-765794883524 commit 93e8d03cd178cde473672a29b4f0d7ff4d2ffdbc Author: Gao, Liming Date: Tue May 13 09:14:00 2014 +0000 Fix comment typos. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15522 6f19259b-4bc3-4df7-8a09-765794883524 commit 9145d31451064bd4b83d9ad3570f2cf75532b58d Author: Qiu Shumin Date: Tue May 13 01:44:02 2014 +0000 Update the comments for function 'ConvertPixelFormat' in UefiHandleParsingLib.c to make it consistent with parameter name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15521 6f19259b-4bc3-4df7-8a09-765794883524 commit 46d491d2587ee5cba735efb7e10ecdaec8aa5c70 Author: Gao, Liming Date: Mon May 12 09:41:58 2014 +0000 Update function descriptions of AIP EFI_ADAPTER_INFO_GET_SUPPORTED_TYPES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Qiu, Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15520 6f19259b-4bc3-4df7-8a09-765794883524 commit 690f491dbad5722ac25757f8177a41d7144d7a31 Author: Gao, Liming Date: Mon May 12 09:39:03 2014 +0000 Correct String language tag. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15519 6f19259b-4bc3-4df7-8a09-765794883524 commit 10ddca8db92de5a535ca1ab71b780260aae8003d Author: Mark Salter Date: Thu May 8 15:09:27 2014 +0000 ArmPkg/BdsLib: Fix booting with partial paths Boot entries created by efibootmgr may contain a partial device path to the EFI application to boot. These entries begin with a partition device path whereas entries created via ARM Boot Manager contain a full path to the EFI application. The ARM BDS code will fill in the missing parts of this partial device path as it does for removeable device paths. This allows the application to be loaded and started. However, the current code passes the original partial device path to gBS->LoadImage() and thus LoadImage is unable to find a DeviceHandle for the path. This means the application being booted cannot find the boot device from the Loaded Image Protocol structure. In the case of grub, this prevents the grub config file from being found. This patch fixes this by making sure the full path is propagated back to the caller of gBS->LoadImage() so that a proper DeviceHandle gets passed to the application being booted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mark Salter Signed-off-by: Olivier Martin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15518 6f19259b-4bc3-4df7-8a09-765794883524 commit 79e12331ef1e7c24b5be70d7bc79977ca103bab4 Author: Brendan Jackman Date: Thu May 8 15:08:39 2014 +0000 ArmPlatformPkg/BootMonFs: Cache the HW Description address This fixes a bug whereby the image description is written over file data when the file's size is close to a multiple of the block size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15517 6f19259b-4bc3-4df7-8a09-765794883524 commit e29771bb6e896d212f92ea32e67deacbecb51bea Author: Brendan Jackman Date: Thu May 8 15:06:06 2014 +0000 ArmPlatformPkg/BootMonFs: Fix flushing new files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15516 6f19259b-4bc3-4df7-8a09-765794883524 commit bf6091a95a6f27c500237b734670a4ec12430a94 Author: Brendan Jackman Date: Thu May 8 15:05:10 2014 +0000 ArmPlatformPkg/BootMonFs: Fix finding space for new files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15515 6f19259b-4bc3-4df7-8a09-765794883524 commit dcaf7c9012df9fb19b60454c9688d457e5fe2dc1 Author: Brendan Jackman Date: Thu May 8 15:04:16 2014 +0000 ArmPlatformPkg/BootMonFs: Don't write file header to media until Flush This prevents writing to a garbage location if the file has not been flushed before, as its BlockStart and BlockEnd are not set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15514 6f19259b-4bc3-4df7-8a09-765794883524 commit 35d3b52ddd168318892f8598611e6544b3f5a545 Author: Brendan Jackman Date: Thu May 8 15:03:05 2014 +0000 ArmPlatformPkg/BootMonFs: Fix permission check in SetFileInfo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15513 6f19259b-4bc3-4df7-8a09-765794883524 commit a9185e76185f045f5f64919f8ae165f3eb2f0dd6 Author: Brendan Jackman Date: Thu May 8 15:02:18 2014 +0000 ArmPlatformPkg/BootMonFs: Use DiskIO to read image descriptions Now that NorFlashDxe implements DiskIo directly and at a fine granularity this significantly improves performance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15512 6f19259b-4bc3-4df7-8a09-765794883524 commit cc135144b9e319947ecf60316fe645b58e10f183 Author: Olivier Martin Date: Thu May 8 15:00:42 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Remove the last 16MB of the 32bit DRAM region Trusted Firmware will declare this region of DRAM as secure. There is no way for the non-secure world to access this memory region. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15511 6f19259b-4bc3-4df7-8a09-765794883524 commit f8a9910c9bee387c143029c95524bc3d3286ae55 Author: Brendan Jackman Date: Thu May 8 14:59:50 2014 +0000 ARM Packages: Use .8byte instead of .dword for pointers Clang doesn't recognise .dword Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15510 6f19259b-4bc3-4df7-8a09-765794883524 commit 73ca50096eea3edc64e2c635b6b6d99fbb5572d5 Author: Brendan Jackman Date: Thu May 8 14:59:04 2014 +0000 ARM Packages: Use AND instead of BIC instruction with immediate AARCH64 does not have a BIC-with-immediate instruction. GAS assembles it as a AND with the immediate inverted, but Clang's integrated assembler emits an error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15509 6f19259b-4bc3-4df7-8a09-765794883524 commit 7eb1d8522a583b2a0a8eea5034be7b30ab14e0f8 Author: Brendan Jackman Date: Thu May 8 14:57:51 2014 +0000 ArmPkg/CpuDxe/AArch64: use STUR instruction for signed offset The AARCH64 LDR and STR instructions only support signed offsets for post- and pre-indexed addressing. For normal signed offset addressing, the mnemonic is STUR. GNU As automatically assembles STR with signed offset as STUR, but Clang's integrated assembler doesn't. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15508 6f19259b-4bc3-4df7-8a09-765794883524 commit 0db208eacaf2727262e91b0c13b21300f203500f Author: Brendan Jackman Date: Thu May 8 14:56:42 2014 +0000 ArmPkg/CpuDxe/AArch64/ExceptionSupport.S: Fix immediate syntax GNU as assembles instructions without the '#' before immediates. Clang doesn't. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15507 6f19259b-4bc3-4df7-8a09-765794883524 commit 919a3a026cdddcdd603d18e2c7dd5c72a340ee8b Author: Brendan Jackman Date: Thu May 8 14:55:52 2014 +0000 ARM Packages: use GCC_ASM_EXPORT to export functions This ensures the .type directive is used to mark them as function symbols Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15506 6f19259b-4bc3-4df7-8a09-765794883524 commit 45440744c45dabc709550023a4d3766f908e8f7c Author: Brendan Jackman Date: Thu May 8 14:54:46 2014 +0000 ArmLib/AArch64Support.S: remove export of unimplemented function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15505 6f19259b-4bc3-4df7-8a09-765794883524 commit ef7b3786058cd29d1a180fa162e5034dd5557933 Author: Brendan Jackman Date: Thu May 8 14:54:11 2014 +0000 ARM Packages: Remove GCC filter for AARCH64 assembly files Some non-GCC toolchain might support the GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15504 6f19259b-4bc3-4df7-8a09-765794883524 commit 5382a857be5061106f36d18640f685588cb827d5 Author: Olivier Martin Date: Thu May 8 14:53:02 2014 +0000 ArmPlatformPkg/Bds: Fix setting kernel command line Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15503 6f19259b-4bc3-4df7-8a09-765794883524 commit 452a9ee1a637baf7894943c9f850175f679f8ce6 Author: Brendan Jackman Date: Thu May 8 14:52:12 2014 +0000 ArmPlatformPkg/Drivers/NorFlashDxe: Directly implement DiskIO protocol This improves performance by accessing NOR with the fine granularity that the hardware permits, rather than the coarse granularity assumed by DiskIoDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15502 6f19259b-4bc3-4df7-8a09-765794883524 commit e691183822b324f30159d670b542746a83b55dde Author: Brendan Jackman Date: Thu May 8 14:50:44 2014 +0000 ArmPlatformPkg/ArmVExpressSecLibRTSM: Only use extended name of system registers for GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15501 6f19259b-4bc3-4df7-8a09-765794883524 commit 518c243d42731389502431a0fbf14b932f838888 Author: Harry Liebel Date: Thu May 8 14:48:55 2014 +0000 ArmPlatformPkg/NorFlashDxe: Optimise FVB protocol - Only read what needs reading, don't read the whole block. - Don't write back buffers containing no data after an erase. - Reduce number of NOR erases when writing data. Only erase the block when required. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15500 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fb7e718a8587cf836266e16b9d091e0cd5a8498 Author: Tapan Shah Date: Wed May 7 22:38:16 2014 +0000 ShellPkg: Add a support to query AdapterInfo protocol for Shell ‘dh’ command. This patch adds support to display driver handles which has AdapterInfo protocol installed using ‘dh’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15499 6f19259b-4bc3-4df7-8a09-765794883524 commit 62c058ca9f28bb58f301fb0edae53a007350a5ef Author: Olivier Martin Date: Wed May 7 12:58:55 2014 +0000 ShellBinPkg: Updated ARM and AArch64 EFI Shell binaries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15498 6f19259b-4bc3-4df7-8a09-765794883524 commit d551cc64cdf1f943744294819220b78a60b10822 Author: Fu Siyuan Date: Wed May 7 06:17:31 2014 +0000 1. Mark the network volatile variables as deprecated in code comments and remove related code to set/get these variable. 2. Remove the GetTime() call when receiving Udp4/6 packets. Signed-off-by: Fu Siyuan Reviewed-by: Ye, Ting Reviewed-by: Wu, Jiaxin Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15497 6f19259b-4bc3-4df7-8a09-765794883524 commit 5966402ed51c5b611bf437c812047dc9c432a47e Author: Star Zeng Date: Tue May 6 02:11:23 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg ACPI: Follow the new UEFI 2.4a spec to return EFI_ACCESS_DENIED for duplicated FADT, FACS or DSDT installation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15496 6f19259b-4bc3-4df7-8a09-765794883524 commit a06ec3e2af16c64709a77c8a354d6cec92185f1f Author: Ruiyu Ni Date: Mon May 5 07:33:21 2014 +0000 Add device path node/text conversion for NVMe device path node. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Jin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15495 6f19259b-4bc3-4df7-8a09-765794883524 commit 7447345a364e6aa5f5bd5219d25d28a2d6147bce Author: Jaben Carsey Date: Wed Apr 30 15:43:58 2014 +0000 ShellBinPkg: updating the binaries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15494 6f19259b-4bc3-4df7-8a09-765794883524 commit 609e0c581568c81aeb1d8cedab5e131629c1fd9c Author: Jaben Carsey Date: Wed Apr 30 15:32:27 2014 +0000 ShellPkg: Patch to enhance the output around GOP protocol This patch adds detailed information from the GOP protocol for commands (i.e. DH), that display details about the protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15493 6f19259b-4bc3-4df7-8a09-765794883524 commit b95eb5e097c74239abbbec38f9fde5faa1a68c98 Author: Tian, Feng Date: Wed Apr 30 03:38:05 2014 +0000 MdePkg/UefiScsiLib: Wrong function parameter comments in UefiScsiLib. It should be the number of transferred blocks rather than block size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15492 6f19259b-4bc3-4df7-8a09-765794883524 commit 73a9e82214f3b0935c8f05efa00a0997763f7294 Author: Tian, Feng Date: Wed Apr 30 03:36:14 2014 +0000 MdeModulePkg/ScsiDisk: Using back-off algorithm to dynamically adjust transfer length in a single SCSI/ATAPI transfer to reach best device compatibility. Besides this, the patch also fixed: 1) Wrong return value in SenseDataLength field of packet field of EFI_EXT_SCSI_PASS_THRU protocol, it should reflect real sense data length we got. 2) Wrong logic in ScsiDiskRequestSenseKeys that the logic makes SenseData pointer unaligned compared with BlockIo.Media.IoAlign field. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15491 6f19259b-4bc3-4df7-8a09-765794883524 commit 56dea5e177b4d9fc7e25b32c2e25963ad4068116 Author: Eric Dong Date: Mon Apr 28 06:53:29 2014 +0000 Config Access Protocol return value not follow spec, update code to follow it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15490 6f19259b-4bc3-4df7-8a09-765794883524 commit 1187b10f21de3d6f6e71e98e30c4b20a947e4541 Author: Ruiyu Ni Date: Mon Apr 28 06:30:14 2014 +0000 Early return when the "BootOrder" variable doesn't exist to avoid SetVariable() return EFI_NOT_FOUND. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15489 6f19259b-4bc3-4df7-8a09-765794883524 commit cd9944d72a2b51004efecdcf024a173721f1b3d1 Author: Larry Cleeton Date: Fri Apr 25 06:54:56 2014 +0000 Fix default VENDOR_CLASS in DHCP discover. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Larry Cleeton Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15488 6f19259b-4bc3-4df7-8a09-765794883524 commit 6add2be58309344ca9f7fa1f0098d6b11ee51463 Author: Olivier Martin Date: Thu Apr 24 19:31:53 2014 +0000 ArmPlatformPkg/ArmVExpress-CTA15-A7.fdf: Increased the size of FV after adding the Lan9118 driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15487 6f19259b-4bc3-4df7-8a09-765794883524 commit 02944eb70ed7e1cf639b8723a18c3b2fbf8fda06 Author: Olivier Martin Date: Thu Apr 24 19:30:11 2014 +0000 ArmPlatformPkg: Added Lan9118 support This is the on board Versatile Express Ethernet controller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15486 6f19259b-4bc3-4df7-8a09-765794883524 commit 46f2c53b544438c735708abba5dc66f83fd2dc4f Author: Olivier Martin Date: Thu Apr 24 19:29:11 2014 +0000 EmbeddedPkg: Added Lan9118 Dxe driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Brendan Jackman git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15485 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d6e1e5a069329d785844962a4628ac4bb09833c Author: Brendan Jackman Date: Thu Apr 24 19:27:46 2014 +0000 EmbeddedPkg/AndroidFastbootTransportTcpDxe: Implemented Android FastBoot over TCP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15484 6f19259b-4bc3-4df7-8a09-765794883524 commit 8bb7f03adeac67550af51472979f6f2a1162b217 Author: Olivier Martin Date: Thu Apr 24 10:37:48 2014 +0000 ArmPkg/ArmLib: Fixed AArch64 MMU code when a region overlaps 2 level-3 page tables Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15483 6f19259b-4bc3-4df7-8a09-765794883524 commit 50c455da008b74fea56489c5543fa585727b3211 Author: Gao, Liming Date: Thu Apr 24 02:19:23 2014 +0000 Correct the incorrect string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15482 6f19259b-4bc3-4df7-8a09-765794883524 commit aa4cf2ef963fe7eb0ba7a70bb7230bdde4edb6e8 Author: oliviermartin Date: Wed Apr 23 16:47:13 2014 +0000 ArmPkg/CpuDxe: Restore AArch64 system registers before returning from exception Current EDK2 source code does actually trigger nested interrupted (even if the PI spec says interrupt should not be nested). This issue has highlighted the lack of restoring ELR_EL2/ELR_EL1 register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off: Vijayakumar Subbu Signed-off: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15481 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e7f6f50cc7b05a0f6ec541ddce34211794d9c08 Author: Mauro Faccenda Date: Wed Apr 23 06:25:52 2014 +0000 Fix typo in function name PxeBcFlushStaionIp which should be PxeBcFlushStationIp. Signed-off-by: Mauro Faccenda Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15480 6f19259b-4bc3-4df7-8a09-765794883524 commit d78687fc47647a5f13c31bd9dcbbf7cc31b10a98 Author: Eric Dong Date: Wed Apr 23 02:57:25 2014 +0000 Update code logic to let BDS UI can shows more than one formsets in one HiiHandle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15479 6f19259b-4bc3-4df7-8a09-765794883524 commit 5aecd343253d06393f3e56be0fd3fe8aa95eef99 Author: Olivier Martin Date: Tue Apr 22 10:13:38 2014 +0000 ArmPlatformPkg/Bds: Do not print garbage if the command line argument is empty Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15478 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f467fd33b2fc682ed5f1932453d47110345534e Author: Eric Dong Date: Mon Apr 21 02:17:29 2014 +0000 Fix GCC build fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15477 6f19259b-4bc3-4df7-8a09-765794883524 commit e6106e892d5fb4662b5dccf2891451b0e4bfe3e5 Author: Eric Dong Date: Fri Apr 18 06:40:13 2014 +0000 Refine the check expression result logic. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15476 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e2f32894bb31ba19c89e3561f97068761f5b5c0 Author: Eric Dong Date: Fri Apr 18 03:17:54 2014 +0000 Enhance the browser parse opcode logic, skip the opcode which is not defined in UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15475 6f19259b-4bc3-4df7-8a09-765794883524 commit 147113644f043b1b9bd88da4e2b4e79150c78084 Author: Paulo Alcantara Date: Thu Apr 17 20:59:50 2014 +0000 StdLib: StdLib/Malloc.c This patch fixes the following warning: "expected ‘void **’ but argument is of type ‘struct CPOOL_HEAD **’" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15474 6f19259b-4bc3-4df7-8a09-765794883524 commit 0aa39d284043be61b5f1222afdffd39a5abaf3aa Author: Olivier Martin Date: Wed Apr 16 09:31:01 2014 +0000 ArmPlatformPkg/Bds: Do not free NULL pointer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15473 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ecb9d1beee525d804cff388117e5243347a8791 Author: Jordan Justen Date: Tue Apr 15 23:53:35 2014 +0000 EmulatorPkg/Unix GCC: Add additional library search paths IA32: add /usr/lib/i386-linux-gnu X64: add /usr/lib/x86_64-linux-gnu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15471 6f19259b-4bc3-4df7-8a09-765794883524 commit acbdfd42e5326834aa9b25091d4826ab908684d7 Author: Jordan Justen Date: Tue Apr 15 23:53:26 2014 +0000 EmulatorPkg/Unix GCC: Link to libdl libdl is used for the dlopen and dlclose calls. We were already linking to it, but it appears it may have been pulled in automatically by the linker before. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15470 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a25ad8bd5db304f4e81a56d44b572979dba295c Author: Andrew Fish Date: Tue Apr 15 23:53:19 2014 +0000 EmulatorPkg: Add missing DisplayEngineDxe driver The BDS depends on the DisplayEngineDxe driver, but this driver was not added to the EmulatorPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15469 6f19259b-4bc3-4df7-8a09-765794883524 commit bfae1330cc2e7749fcf349a3a633e2e77f5f01c9 Author: Eric Dong Date: Tue Apr 15 15:38:48 2014 +0000 Update question validation logic, move the check pointer from after user input to after finish call the CHANGING callback. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15468 6f19259b-4bc3-4df7-8a09-765794883524 commit 387208ab04f54edb75c0853cf1ba1443bd796347 Author: Star Zeng Date: Tue Apr 15 09:19:04 2014 +0000 MdeModulePkg/SecurityPkg: Update TreePei to handle FvInfo2 and update FwVol of PeiCore to always install both FvInfo and FvInfo2. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15467 6f19259b-4bc3-4df7-8a09-765794883524 commit a78167a64190eaccc99f84a1485ecb50a4fd0e6f Author: Olivier Martin Date: Mon Apr 14 10:25:08 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Update the Runtime Code and Data number of pages This information give a hint to reserve some contiguous pages for runtime regions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15466 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fd184d0322dbd12abfd18753bd2d29a6637cbf3 Author: Eric Dong Date: Mon Apr 14 10:03:00 2014 +0000 Call EFI_BROWSER_ACTION_RETRIEVE for each form instead of only call once before enter this formset. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15465 6f19259b-4bc3-4df7-8a09-765794883524 commit 214698e70011b61728bc5e701e5912e6ed650321 Author: Olivier Martin Date: Mon Apr 14 09:04:31 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Added support for the additional 6GB memory of DRAM on Foundation Model The FVP Foundation model has additional DRAM regions at 0x08_8000_0000. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15464 6f19259b-4bc3-4df7-8a09-765794883524 commit bbf904d1549edd87a96f49283e86347419d314c0 Author: Jaben Carsey Date: Fri Apr 11 19:15:02 2014 +0000 ShellPkg: Fix using root of drive This allows near complete use of drive roots “fs0:” and “fs0:\” as directories and arguments to commands. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15463 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f119dfc9068bed77462b1a00bc4763c861c7deb Author: Harry Liebel Date: Fri Apr 11 17:35:22 2014 +0000 ShellPkg: Fix compiler warning 'unused variable' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15462 6f19259b-4bc3-4df7-8a09-765794883524 commit df44112bdaeff35de546f474dc2b44dd242d8612 Author: Olivier Martin Date: Fri Apr 11 15:58:54 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Added support for the additional 2GB memory of DRAM on FVP The FVP Base and Foundation models have additional DRAM regions at 0x08_8000_0000. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15461 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e8ddb4a03f6a428332b55fc488473d65c430a74 Author: Olivier Martin Date: Fri Apr 11 15:58:13 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Removed unused dead code This code is only specific to the ARM Versatile Express hardware board. There is no concept of logic tile on the FVP model. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15460 6f19259b-4bc3-4df7-8a09-765794883524 commit 13354807d4881376475c3dfa567df6b515aea9e0 Author: Harry Liebel Date: Fri Apr 11 15:57:06 2014 +0000 ArmPlatformPkg/Bds: Fix loading Timeout from NV storage Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15459 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c8bb1eb3bd7b40010924f23824a9e8d91af015c Author: Olivier Martin Date: Fri Apr 11 11:02:59 2014 +0000 ArmPlatformPkg/Bds: Do not start all devices when starting an OS loader EFI OS Loader application will be responsible to start their needed drivers. While other EFI applications (eg: EFI Shell) expect to have all their drivers started when they run. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15458 6f19259b-4bc3-4df7-8a09-765794883524 commit 3b3b72d62bccf43d51fb1cac81a465aade973a8a Author: Olivier Martin Date: Fri Apr 11 11:01:56 2014 +0000 ArmPlatformPkg/Bds: Allow to update EFI application boot entries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15457 6f19259b-4bc3-4df7-8a09-765794883524 commit 5389972a63922952ee04784284668e04ac99772b Author: Olivier Martin Date: Fri Apr 11 11:00:47 2014 +0000 ArmPlatformPkg: Print arguments for EFI Application Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15456 6f19259b-4bc3-4df7-8a09-765794883524 commit 135b09a2c26d9c28f02c4d356a62ca8817344e15 Author: Olivier Martin Date: Fri Apr 11 10:59:48 2014 +0000 ArmPlatformPkg/Bds: Introduced helper function to detect if an Ascii/Unicode string is printable Some limitations: - it only supports unicode string that use ASCII character (< 0x100) - single character ASCII strings are interpreted as Unicode string - string cannot be longer than 2 x BOOT_DEVICE_OPTION_MAX (600 bytes) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15455 6f19259b-4bc3-4df7-8a09-765794883524 commit 6bcedcecb529a1bfa19df08e3a6ab300e7bf7764 Author: Olivier Martin Date: Fri Apr 11 10:59:06 2014 +0000 ArmPlatformPkg: Set PcdDefaultBootArgument to an empty unicode string Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15454 6f19259b-4bc3-4df7-8a09-765794883524 commit 55a9f75d149ea53d1c8b3da197ec344c2aedb848 Author: Olivier Martin Date: Fri Apr 11 10:57:47 2014 +0000 ArmPlatformPkg/Bds: Added support to detect if the binary is a EFI image Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15453 6f19259b-4bc3-4df7-8a09-765794883524 commit 06044819bb273fd0db56a988ed307cd70fa34358 Author: Olivier Martin Date: Fri Apr 11 10:57:00 2014 +0000 ArmPlatformPkg/Bds: Added support to pass parameters to EFI applications Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15452 6f19259b-4bc3-4df7-8a09-765794883524 commit 90a44ec4d85a03cf8feb4a95183aa3acfe246d13 Author: Olivier Martin Date: Fri Apr 11 10:56:02 2014 +0000 ArmPlatformPkg/Bds: Decoupled OptionalData for the EFI application boot entry from the Linux loader OptionalData for EFI Application does not contain any more specific information about the ArmPlatformPkg/Bds. OptionalData now only contains the data pass to the EFI application. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15451 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fc9aa46ccf2d942b98d921bb22987fd232f6248 Author: Olivier Martin Date: Fri Apr 11 10:55:02 2014 +0000 ArmPlatformPkg/Bds: Add support to handle Unicode parameters Most UEFI applications expect unicode string parameter. This change is allows to support Ascii or Unicode strings. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15450 6f19259b-4bc3-4df7-8a09-765794883524 commit e213ae45524e00441287176b962008a13a093804 Author: Eric Dong Date: Fri Apr 11 06:17:03 2014 +0000 Update logic, only question with interactive attribute should trig the callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15449 6f19259b-4bc3-4df7-8a09-765794883524 commit 061d5462249664ba32d87803365c3355614b35b8 Author: Eric Dong Date: Fri Apr 11 06:15:57 2014 +0000 Sync value for string opcode after call the Callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15448 6f19259b-4bc3-4df7-8a09-765794883524 commit 66a5771e7a6de31841f68fa7ac9545846d6d382a Author: Tian, Feng Date: Thu Apr 10 02:45:32 2014 +0000 MdeModulePkg/UsbMassStorage: Don't send READ_CAPACITY to unsupported usb mass storage type device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15447 6f19259b-4bc3-4df7-8a09-765794883524 commit d8adff447d234dd5bfafccfe3c1a5f2c858b6b02 Author: Eric Dong Date: Thu Apr 10 02:28:01 2014 +0000 Check the pointer before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15445 6f19259b-4bc3-4df7-8a09-765794883524 commit cc0b145e0f828a26715d4b483abee9b0a56ad6f7 Author: Fu Siyuan Date: Thu Apr 10 02:25:49 2014 +0000 Fix a bug in IP driver that the fragment overlap check may be skipped incorrectly. Signed-off-by: Fu Siyuan Reviewed-by: Ye, Ting Reviewed-by: Jin, Eric Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15443 6f19259b-4bc3-4df7-8a09-765794883524 commit 734b6c33ba6ec210eef3642e07479a5b9d445ef1 Author: Olivier Martin Date: Tue Apr 8 18:05:48 2014 +0000 ArmPlatformPkg/Bds: Check OptionalData is not NULL before accessing it Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15439 6f19259b-4bc3-4df7-8a09-765794883524 commit 1dbbfc176ffe8050d3de554acf246b2e21a6f650 Author: Olivier Martin Date: Tue Apr 8 18:03:25 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fixed driver to support UEFI Runtime mode - Added the NOR Flash region to the Runtime UEFI Memory Mapped IO - Caught the gEfiEventVirtualAddressChangeGuid event to fixup the NOR Flash pointers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15438 6f19259b-4bc3-4df7-8a09-765794883524 commit 2dff0c1ab2be86979ccb99db8b17bd3347b98b59 Author: Olivier Martin Date: Tue Apr 8 18:02:32 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fix coding mistakes that would prevent Runtime mode - No allocation during Runtime mode (post ExitBootServices()) - Allocate all the persistent data into runtime space - Do not access BootServices API during Runtime mode Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15437 6f19259b-4bc3-4df7-8a09-765794883524 commit 000f80f77ba442329b62dc28c0bdd13c3e083ab0 Author: Olivier Martin Date: Tue Apr 8 18:01:32 2014 +0000 ArmPlatformPkg/NorFlashDxe: Declare the driver as a UEFI Runtime driver NorFlash driver is required by UEFI Variable services to read/write Non-Volatile UEFI variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15436 6f19259b-4bc3-4df7-8a09-765794883524 commit 18ee5b6d78d2275abc05dd58bf5062364a4e640e Author: Olivier Martin Date: Tue Apr 8 17:59:00 2014 +0000 ArmPlatformPkg/PL031RealTimeClock: Fixed driver to support UEFI Runtime Services - Removed PCD base address from the macro definition. The base address needs to be fixup when the driver runs in UEFI Runtime mode - Added the PL031 controller memory region to the Runtime UEFI Memory Mapped IO - Caught the gEfiEventVirtualAddressChangeGuid event to fixup the PL031 Base address Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15435 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d34cac819eb5b36bf28728ef6f65d6e0439dac2 Author: Eric Dong Date: Tue Apr 8 06:17:33 2014 +0000 Refine the load form sets process for BrowserCallback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15434 6f19259b-4bc3-4df7-8a09-765794883524 commit ad43bc6b2e3507187f48e21aa6fc95f4cee222f3 Author: Laszlo Ersek Date: Sat Apr 5 21:26:09 2014 +0000 OvmfPkg: PlatformPei: protect SEC's GUIDed section handler table thru S3 OVMF's SecMain is unique in the sense that it links against the following two libraries *in combination*: - IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/ LzmaCustomDecompressLib.inf - MdePkg/Library/BaseExtractGuidedSectionLib/ BaseExtractGuidedSectionLib.inf The ExtractGuidedSectionLib library class allows decompressor modules to register themselves (keyed by GUID) with it, and it allows clients to decompress file sections with a registered decompressor module that matches the section's GUID. BaseExtractGuidedSectionLib is a library instance (of type BASE) for this library class. It has no constructor function. LzmaCustomDecompressLib is a compatible decompressor module (of type BASE). Its section type GUID is gLzmaCustomDecompressGuid == EE4E5898-3914-4259-9D6E-DC7BD79403CF When OVMF's SecMain module starts, the LzmaCustomDecompressLib constructor function is executed, which registers its LZMA decompressor with the above GUID, by calling into BaseExtractGuidedSectionLib: LzmaDecompressLibConstructor() [GuidedSectionExtraction.c] ExtractGuidedSectionRegisterHandlers() [BaseExtractGuidedSectionLib.c] GetExtractGuidedSectionHandlerInfo() PcdGet64 (PcdGuidedExtractHandlerTableAddress) -- NOTE THIS Later, during a normal (non-S3) boot, SecMain utilizes this decompressor to get information about, and to decompress, sections of the OVMF firmware image: SecCoreStartupWithStack() [OvmfPkg/Sec/SecMain.c] SecStartupPhase2() FindAndReportEntryPoints() FindPeiCoreImageBase() DecompressMemFvs() ExtractGuidedSectionGetInfo() [BaseExtractGuidedSectionLib.c] ExtractGuidedSectionDecode() [BaseExtractGuidedSectionLib.c] Notably, only the extraction depends on full-config-boot; the registration of LzmaCustomDecompressLib occurs unconditionally in the SecMain EFI binary, triggered by the library constructor function. This is where the bug happens. BaseExtractGuidedSectionLib maintains the table of GUIDed decompressors (section handlers) at a fixed memory location; selected by PcdGuidedExtractHandlerTableAddress (declared in MdePkg.dec). The default value of this PCD is 0x1000000 (16 MB). This causes SecMain to corrupt guest OS memory during S3, leading to random crashes. Compare the following two memory dumps, the first taken right before suspending, the second taken right after resuming a RHEL-7 guest: crash> rd -8 -p 1000000 0x50 1000000: c0 00 08 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 1000010: d0 33 0c 00 00 c9 ff ff c0 10 00 01 00 88 ff ff .3.............. 1000020: 0a 6d 57 32 0f 00 00 00 38 00 00 01 00 88 ff ff .mW2....8....... 1000030: 00 00 00 00 00 00 00 00 73 69 67 6e 61 6c 6d 6f ........signalmo 1000040: 64 75 6c 65 2e 73 6f 00 00 00 00 00 00 00 00 00 dule.so......... vs. crash> rd -8 -p 1000000 0x50 1000000: 45 47 53 49 01 00 00 00 20 00 00 01 00 00 00 00 EGSI.... ....... 1000010: 20 01 00 01 00 00 00 00 a0 01 00 01 00 00 00 00 ............... 1000020: 98 58 4e ee 14 39 59 42 9d 6e dc 7b d7 94 03 cf .XN..9YB.n.{.... 1000030: 00 00 00 00 00 00 00 00 73 69 67 6e 61 6c 6d 6f ........signalmo 1000040: 64 75 6c 65 2e 73 6f 00 00 00 00 00 00 00 00 00 dule.so......... The "EGSI" signature corresponds to EXTRACT_HANDLER_INFO_SIGNATURE declared in MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c. Additionally, the gLzmaCustomDecompressGuid (quoted above) is visible at guest-phys offset 0x1000020. Fix the problem as follows: - Carve out 4KB from the 36KB gap that we currently have between PcdOvmfLockBoxStorageBase + PcdOvmfLockBoxStorageSize == 8220 KB and PcdOvmfSecPeiTempRamBase == 8256 KB. - Point PcdGuidedExtractHandlerTableAddress to 8220 KB (0x00807000). - Cover the area with an EfiACPIMemoryNVS type memalloc HOB, if S3 is supported and we're not currently resuming. The 4KB size that we pick is an upper estimate for BaseExtractGuidedSectionLib's internal storage size. The latter is calculated as follows (see GetExtractGuidedSectionHandlerInfo()): sizeof(EXTRACT_GUIDED_SECTION_HANDLER_INFO) + // 32 PcdMaximumGuidedExtractHandler * ( sizeof(GUID) + // 16 sizeof(EXTRACT_GUIDED_SECTION_DECODE_HANDLER) + // 8 sizeof(EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER) // 8 ) OVMF sets PcdMaximumGuidedExtractHandler to 16 decimal (which is the MdePkg default too), yielding 32 + 16 * (16 + 8 + 8) == 544 bytes. Regarding the lifecycle of the new area: (a) when and how it is initialized after first boot of the VM The library linked into SecMain finds that the area lacks the signature. It initializes the signature, plus the rest of the structure. This is independent of S3 support. Consumption of the area is also limited to SEC (but consumption does depend on full-config-boot). (b) how it is protected from memory allocations during DXE It is not, in the general case; and we don't need to. Nothing else links against BaseExtractGuidedSectionLib; it's OK if DXE overwrites the area. (c) how it is protected from the OS When S3 is enabled, we cover it with AcpiNVS in InitializeRamRegions(). When S3 is not supported, the range is not protected. (d) how it is accessed on the S3 resume path Examined by the library linked into SecMain. Registrations update the table in-place (based on GUID matches). (e) how it is accessed on the warm reset path If S3 is enabled, then the OS won't damage the table (due to (c)), hence see (d). If S3 is unsupported, then the OS may or may not overwrite the signature. (It likely will.) This is identical to the pre-patch status. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15433 6f19259b-4bc3-4df7-8a09-765794883524 commit e9d19a80afe61145433fe7f7f4c563c355c5c461 Author: Chris Phillips Date: Fri Apr 4 13:45:36 2014 +0000 ShellPkg: Fix command-line parsing to start with Argv[0] when comparing passed-in options Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15432 6f19259b-4bc3-4df7-8a09-765794883524 commit 81514a8ad0a0456503663522536fec9395760311 Author: Olivier Martin Date: Thu Apr 3 20:05:30 2014 +0000 ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint The stack size in the entrypoint (ie: $ARCH/ModuleEntryPoint.S) is calculated such as StackSize = PrimaryCoreStack + (core_count - 1) * SecondaryCoreStack While we were declaring the stacksize into the stack hob as: StackSize = PrimaryCoreStack + (cluster * 8) * SecondaryCoreStack If the number of cluster (ie: PcdClusterCount) were not defined correctly then the stack size declaration were not correct. It could cause stack corruption if the allocator allocates memory in this range. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15431 6f19259b-4bc3-4df7-8a09-765794883524 commit cddd490b2345e1aad85859eb84c0ee18c7ee8fce Author: Olivier Martin Date: Thu Apr 3 20:04:39 2014 +0000 ArmPlatformPkg/ArmVExpress-FVP-AArch64: Fixed number of cores and cluster for Base and Foundation models Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15430 6f19259b-4bc3-4df7-8a09-765794883524 commit 79480c8d7c3f3e6f10ed7853ce8bace30503899f Author: Olivier Martin Date: Wed Apr 2 17:33:44 2014 +0000 ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15428 6f19259b-4bc3-4df7-8a09-765794883524 commit d8dc9f0af56c68492d8a1be52efc1a711d3497f4 Author: Olivier Martin Date: Wed Apr 2 17:32:29 2014 +0000 ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist The function was allocating a buffer for the read value from the UEFI Variable. But it was returning the pointer of the default value when the variable was not present. It could cause error when the default value and the returned value were free when these addresses were the same (double FreePool on the same address). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15427 6f19259b-4bc3-4df7-8a09-765794883524 commit e3ff137e3652a85944ba1ba91ad61f09ef1ff248 Author: Dong Guo Date: Tue Apr 1 06:02:10 2014 +0000 Add missing parameter comment in AddPubKeyInStore() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15426 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fef1a3492fd2bced485ff6845914d5681067f52 Author: Eric Dong Date: Tue Apr 1 05:55:06 2014 +0000 Check the parameter before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15425 6f19259b-4bc3-4df7-8a09-765794883524 commit d0a5723f505aaad41115aff8138bc9df5cda8468 Author: Jaben Carsey Date: Mon Mar 31 21:06:13 2014 +0000 ShellPkg: Allow opening of root drive nodes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15424 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b5168d852be0d641be73e8399622704998c183f Author: Jaben Carsey Date: Mon Mar 31 20:43:04 2014 +0000 ShellPkg: Fix potential memory leak when failing to fully create a structure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15423 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f4b148993b1099de49cf736356f628c3c1201da Author: Paolo Bonzini Date: Mon Mar 31 20:36:23 2014 +0000 OvmfPkg: add a catch-all match for PCI devices in the OpenFirmware path In many cases, the second node in /pci@i0cf8/XYZ@DD,FF node is enough to match a UEFI device path; a typical cases is a NIC that is assigned from the host to the guest. Add a catch-all case for PCI devices, and reuse it for NICs since it works well for those too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15422 6f19259b-4bc3-4df7-8a09-765794883524 commit e04cca1d05e2329a5beee18a302467ba7ae482ed Author: Paolo Bonzini Date: Mon Mar 31 20:36:15 2014 +0000 OvmfPkg: non-null PcdLib instance for the CSM VideoDxe VideoDxe is a UEFI_DRIVER, so it has by default a null instance of PcdLib. It accesses two PCDs that are now dynamic (gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution and gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution). Similar to r15362 (OvmfPkg: non-null PcdLib instance for GraphicsConsoleDxe, 2014-03-22), we need to specify a non-null instance of PcdLib. This patch unbreaks the CSM VideoDxe module for OvmfPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15421 6f19259b-4bc3-4df7-8a09-765794883524 commit 96bbdbc856930abf38d0cc289536ebd11043f80f Author: Laszlo Ersek Date: Mon Mar 31 20:36:06 2014 +0000 OvmfPkg: AcpiPlatformDxe: download ACPI tables from QEMU Recent qemu versions compose all ACPI tables on the host side, according to the target hardware configuration, and make the tables available to any guest firmware over fw_cfg. See version compatibility information below. The feature moves the burden of keeping ACPI tables up-to-date from boot firmware to qemu (which is the source of hardware configuration anyway). This patch adds client code for this feature. Benefits of the qemu-provided ACPI tables include PCI hotplug for example. Qemu provides the following three fw_cfg files: - etc/acpi/rsdp - etc/acpi/tables - etc/table-loader "etc/acpi/rsdp" and "etc/acpi/tables" are similar, they are only kept separate because they have different allocation requirements in SeaBIOS. Both of these fw_cfg files contain preformatted ACPI payload. "etc/acpi/rsdp" contains only the RSDP table, while "etc/acpi/tables" contains all other tables, concatenated. The tables in these two fw_cfg files are filled in by qemu, but two kinds of fields are left incomplete in each table: pointers to other tables, and checksums (which depend on the pointers). Qemu initializes each pointer with a relative offset into the fw_cfg file that contains the pointed-to ACPI table. The final pointer values depend on where the fw_cfg files, holding the pointed-to ACPI tables, will be placed in memory by the guest. That is, the pointer fields need to be "relocated" (incremented) by the base addresses of where "/etc/acpi/rsdp" and "/etc/acpi/tables" will be placed in guest memory. This is where the third file, "/etc/table-loader" comes in the picture. It is a linker/loader script that has several command types: One command type instructs the guest to download the other two files. Another command type instructs the guest to increment ("absolutize") a pointer field (having a relative initial value) in the pointing ACPI table, present in some fw_cfg file, with the dynamic base address of the same (or another) fw_cfg file, holding the pointed-to ACPI table. The third command type instructs the guest to compute checksums over ranges and to store them. In edk2, EFI_ACPI_TABLE_PROTOCOL knows about table relationships -- it handles linkage automatically when a table is installed. The protocol takes care of checksumming too. RSDP is installed automatically. Hence we only need to care about the "etc/acpi/tables" fw_cfg file, determining the boundaries of each ACPI table inside it, and installing those tables. Qemu compatibility information: --------------+---------------------+------------------------------------- qemu version | qemu machine type | effects of the patch --------------+---------------------+------------------------------------- up to 1.6.x | any pc-i440fx | None. OVMF's built-in ACPI tables | | are used. --------------+---------------------+------------------------------------- any | up to pc-i440fx-1.6 | None. OVMF's built-in ACPI tables | | are used. --------------+---------------------+------------------------------------- 1.7.0 | pc-i440fx-1.7 | Potential guest OS crash, dependent | (default for 1.7.0) | on guest RAM size. | | | | DO NOT RUN OVMF on the (1.7.0, | | pc-i440fx-1.7) qemu / machine type | | combination. --------------+---------------------+------------------------------------- 1.7.1 | pc-i440fx-1.7 | OVMF downloads valid ACPI tables | (default for 1.7.1) | from qemu and passes them to the | | guest OS. --------------+---------------------+------------------------------------- 2.0.0-rc0 | pc-i440fx-1.7 or | OVMF downloads valid ACPI tables | later | from qemu and passes them to the | | guest OS. -------------+---------------------+------------------------------------- Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15420 6f19259b-4bc3-4df7-8a09-765794883524 commit 209c3922b7c8a4f7ddb54c9dd369500937395e58 Author: Laszlo Ersek Date: Mon Mar 31 20:35:58 2014 +0000 OvmfPkg: AcpiS3SaveDxe: do not load if S3 is unsupported/disabled in qemu The previous patch ensures that the LockBox is protected during DXE (but the OS can still drop it) if S3 is unsupported or disabled. However, S3 related drivers not only save data in the lockbox, they allocate objects with Reserved and AcpiNVS memory types too, which the OS can't (must not) release. This is a waste when S3 is unsupported or disabled. In OVMF a good "choke point" for these drivers is the entry point of AcpiS3SaveDxe. The messages of the following commits are relevant to the data and control flow: - SVN r15290 (git commit 8f5ca05b) - SVN r15305 (git commit 5a217a06) - SVN r15306 (git commit d4ba06df) Prevent AcpiS3SaveDxe from loading when S3 is unsupported or disabled. This should keep away (most of the) dependent drivers too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Matt Fleming Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15419 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e8a31f5c918edecd150c52e531bbaff0d5e0680 Author: Laszlo Ersek Date: Mon Mar 31 20:35:50 2014 +0000 OvmfPkg: PlatformPei: lifecycle fixes for the LockBox area If (mBootMode == BOOT_ON_S3_RESUME) -- that is, we are resuming --, then the patch has no observable effect. If (mBootMode != BOOT_ON_S3_RESUME && mS3Supported) -- that is, we are booting or rebooting, and S3 is supported), then the patch has no observable effect either. If (mBootMode != BOOT_ON_S3_RESUME && !mS3Supported) -- that is, we are booting or rebooting, and S3 is unsupported), then the patch effects the following two fixes: - The LockBox storage is reserved from DXE (but not the OS). Drivers in DXE may save data in the LockBox regardless of S3 support, potentially corrupting any overlapping allocations. Make sure there's no overlap. - The LockBox storage is cleared. A LockBox inherited across a non-resume reboot, populated with well-known GUIDs, breaks drivers that want to save entries with those GUIDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Matt Fleming Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15418 6f19259b-4bc3-4df7-8a09-765794883524 commit cbbac2e1efea27460d330ea87fefc2d86cf6b8bd Author: Dong Guo Date: Mon Mar 31 01:54:51 2014 +0000 Remove unused [PcdsDynamic, PcdsDynamicEx] section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fan, Jeff Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15416 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a1f792dcf291d6e4c38d595e92de5c30d8ff9aa Author: Eric Dong Date: Fri Mar 28 05:51:51 2014 +0000 Check the input file pointer before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Guo, Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15412 6f19259b-4bc3-4df7-8a09-765794883524 commit c4571f04794154d405a69b79babfd74bcf9fc63a Author: Ruiyu Ni Date: Fri Mar 28 02:50:47 2014 +0000 Add check to avoid null pointer deference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15410 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a4b498ee1f10d2ed7ac4f29f99d69d1abb9f24b Author: Star Zeng Date: Fri Mar 28 02:47:46 2014 +0000 SecurityPkg Variable: Add NULL pointer check. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15409 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c7e997ef1c81be69e6b4a8e2fa8cec013ee0d5f Author: Elvin Li Date: Fri Mar 28 02:34:31 2014 +0000 Add NULL pointer check in I2chost. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15408 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b0786b4fa46f89287293b514afd1ef5d4c24d07 Author: Elvin Li Date: Fri Mar 28 02:13:41 2014 +0000 Add ASSERT to check if NewVariable is NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15407 6f19259b-4bc3-4df7-8a09-765794883524 commit d6e88a6c60f49c73bea31a0f653d85c6f358ff0d Author: Chris Phillips Date: Thu Mar 27 18:21:43 2014 +0000 ShellPkg: Fix file system change issue that results in ASSERT Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15406 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bc363714e6bb2192a10b7b921c682eddd7cf8ec Author: Dong Guo Date: Thu Mar 27 11:03:04 2014 +0000 Remove hide TPM support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15405 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a12e5825aa338f9a81fca3d451bb032fadaad33 Author: Dong Guo Date: Thu Mar 27 10:54:23 2014 +0000 Calculate enough space for 2 variables (public key and variable data) instead of directly setting them 1 by 1. Fixed a bug in public key reclaim(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15404 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c775600d5131cd9b55552f938750c7bdb36c478 Author: Eric Dong Date: Thu Mar 27 07:08:15 2014 +0000 Update code logic, remove ASSERT and use error handling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15403 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bf04a71bff3d414cd3f880ccf7243c12d0f7268 Author: Jeff Fan Date: Thu Mar 27 06:02:54 2014 +0000 Not to copy mailbox into new space when debug agent initialization for S3 Boot Script. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15402 6f19259b-4bc3-4df7-8a09-765794883524 commit 90651f777344979cc3a85f56f10a176ceacaf065 Author: Gao, Liming Date: Thu Mar 27 05:11:02 2014 +0000 Remove RT attribute for variable PlatDriOver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15401 6f19259b-4bc3-4df7-8a09-765794883524 commit 44372159a2312201b04f48418f391d6823807e01 Author: Olivier Martin Date: Wed Mar 26 19:35:17 2014 +0000 ArmPkg/ArmCpuLib: Added A57 Errata 806969 This rare errata only affects r0p0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15400 6f19259b-4bc3-4df7-8a09-765794883524 commit 19dc108b65f6049c10663b713cea4bca83f9d801 Author: Olivier Martin Date: Wed Mar 26 19:34:32 2014 +0000 ArmPkg/ArmLib: Correct Error Handling in AArch64 There are several instances of asserts which do not also handle the error condition in Release builds. Because these functions are called in different location of the code and their parameters might change during the execution, it is safer to handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15399 6f19259b-4bc3-4df7-8a09-765794883524 commit cf02da5203db848a4ddcd6e33c2dec28c4ca4b74 Author: Olivier Martin Date: Wed Mar 26 19:33:51 2014 +0000 ArmPkg/ArmCortexA5xLib: Fixed setting of SMP bit On CortexA5x the SMP bit is BIT6 of CPUECTLR_EL1 register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15398 6f19259b-4bc3-4df7-8a09-765794883524 commit 47d183db53d91a669b4b080036434e30cea01e29 Author: Olivier Martin Date: Wed Mar 26 19:32:48 2014 +0000 ArmPkg/ArmCortexA5x: Declared the helper functions to access the CPU Extended Control Register This register is A5x specific. It is the reason why the code moved from ArmLib to ArmCpuLib/ArmCortexA5xLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15397 6f19259b-4bc3-4df7-8a09-765794883524 commit 52d44f77c25a133d56871e7f42f9b4700ded6835 Author: Olivier Martin Date: Wed Mar 26 19:31:01 2014 +0000 ArmPkg/ArmLib: Added helper functions for accessing CPU ACTLR Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15396 6f19259b-4bc3-4df7-8a09-765794883524 commit b7dd4dbd26b122a2972a150bfee1cff66ec283c0 Author: Olivier Martin Date: Wed Mar 26 19:29:31 2014 +0000 ArmPkg/Chipset: Added ARMv8 CPU's PartNum PartNum is the field of MIDR that returns the CPU name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15395 6f19259b-4bc3-4df7-8a09-765794883524 commit ffcf17821526a7ad508210d22599de92fbf171ed Author: Olivier Martin Date: Wed Mar 26 19:28:35 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Add processor identifiers for Cortex A12/A7 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15394 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f25f7ddd0c3f8c9582ce523f7079d4a18218030 Author: Gao, Liming Date: Wed Mar 26 09:27:01 2014 +0000 Add check to make sure the data be valid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15393 6f19259b-4bc3-4df7-8a09-765794883524 commit f85acc224c8743cfc958a927f207ca846794a2cf Author: Star Zeng Date: Wed Mar 26 07:08:12 2014 +0000 PerfomancePkg Dp: Add missing EFIAPI for PrintToken(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15392 6f19259b-4bc3-4df7-8a09-765794883524 commit be9198c96d7815903a522da8d32cb7075144f693 Author: Ruiyu Ni Date: Wed Mar 26 04:23:48 2014 +0000 Remove RT attribute for variable LegacyDevOrder Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15391 6f19259b-4bc3-4df7-8a09-765794883524 commit d276ac10f184aea06b5b484c8eeef88c5d6df881 Author: Harry Liebel Date: Tue Mar 25 11:04:41 2014 +0000 ArmPkg/SemihostFs: Various fixes for the file system - Fix file deletion from the shell. - Fix file creation using the shell editor. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15390 6f19259b-4bc3-4df7-8a09-765794883524 commit 228fdff4bece78e53f44c79f5478dde7d51a8250 Author: Harry Liebel Date: Tue Mar 25 11:03:54 2014 +0000 ArmPkg/SemihostLib: Made arguments 'native' size The arguments passed to the semi-hosing backend should be of 'native' size to match register widths. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15389 6f19259b-4bc3-4df7-8a09-765794883524 commit b2bd493edbc9f31523210848ef39b4eb6a97f4a5 Author: Star Zeng Date: Tue Mar 25 06:56:55 2014 +0000 MdeModulePkg/SecurityPkg Variable: Calculate enough space for PlatformLang and Lang variables and use PcdUefiVariableDefaultLangDeprecate to turn off auto update between PlatformLang and Lang variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15388 6f19259b-4bc3-4df7-8a09-765794883524 commit a8d8d430510db36bc421dd0cb9f9d6d45f5907ac Author: Eric Dong Date: Tue Mar 25 05:04:21 2014 +0000 Support load 64 bit image from 32 bit core. Add more enhancement to check invalid PE format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jiewen, Yao Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15387 6f19259b-4bc3-4df7-8a09-765794883524 commit 5070befc3b9b013f36062c7cc08320c87c02f972 Author: Ruiyu Ni Date: Tue Mar 25 03:54:34 2014 +0000 Report the setting variable failure to platform through the status code when core cannot handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15386 6f19259b-4bc3-4df7-8a09-765794883524 commit 69fc8f080e07ea026e8fbb8610cfb89c099d6db2 Author: Ruiyu Ni Date: Tue Mar 25 02:38:54 2014 +0000 Report the setting variable failure to platform through the status code when core cannot handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15385 6f19259b-4bc3-4df7-8a09-765794883524 commit 5456c26c2f00715c172791cb9bcc766afac1982b Author: Olivier Martin Date: Mon Mar 24 15:30:48 2014 +0000 ArmPkg/CompilerIntrinsicsLib: Added memset() to AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15384 6f19259b-4bc3-4df7-8a09-765794883524 commit 785e3cf68191adc4920c7a23137da736afd33697 Author: Olivier Martin Date: Mon Mar 24 15:29:50 2014 +0000 EmbeddedPkg: Added Isp1761UsbDxe to EmbeddedPkg.dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15383 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ee57c2d7d45b500e522b3b9a1773cd2fdaa8dfa Author: Olivier Martin Date: Mon Mar 24 15:29:03 2014 +0000 ArmPkg/ArmLib: Removed unused AArch64 files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15382 6f19259b-4bc3-4df7-8a09-765794883524 commit 647517279d97297302780598122b80c8f4f855f1 Author: Olivier Martin Date: Mon Mar 24 15:26:22 2014 +0000 ArmPkg/ArmLib: Renamed Cp15CacheInfo into ArmCacheInfo CTR (Cache Type Register) has the same format on ARMv7 and AArch64. Renaming Cp15CacheInfo() into ArmCacheInfo() makes this function architecture independent. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15381 6f19259b-4bc3-4df7-8a09-765794883524 commit d9bd3f11cb47f8026a44721670f4abdfb9728a2a Author: Olivier Martin Date: Mon Mar 24 15:25:44 2014 +0000 ArmPkg/ArmLib: Removed unused ArmSwitchProcessorMode & ArmProcessorMode functions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15380 6f19259b-4bc3-4df7-8a09-765794883524 commit 0676fadd055203e784975f61b3f3c1778d4df499 Author: Olivier Martin Date: Mon Mar 24 15:25:01 2014 +0000 ArmPkg: Removed unused header files from source files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15379 6f19259b-4bc3-4df7-8a09-765794883524 commit c32aaba962242c2d32d5aff74ad593fcca7c5ac1 Author: Olivier Martin Date: Mon Mar 24 15:24:23 2014 +0000 ArmPkg: Fix typo in comment and trailing spaces Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15378 6f19259b-4bc3-4df7-8a09-765794883524 commit 2001537d53dbd0604f1457c56d4aae370a882d4f Author: Dong Guo Date: Sun Mar 23 23:47:18 2014 +0000 Comment PwdCredential driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15376 6f19259b-4bc3-4df7-8a09-765794883524 commit ddb2c493f7e7a565b52961222e8d544c613ca92e Author: Laszlo Ersek Date: Sat Mar 22 07:14:09 2014 +0000 OvmfPkg: PlatformDxe: connect RouteConfig() to platform data Establish the full stack of conversions when modifying the platform configuration: ConfigResp -- form engine / HII communication | [ConfigToBlock] | v MAIN_FORM_STATE -- binary representation of form/widget state | [FormStateToPlatformConfig] | v PLATFORM_CONFIG -- accessible to DXE and UEFI drivers | [PlatformConfigSave] | v UEFI non-volatile variable -- accessible to external utilities Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15375 6f19259b-4bc3-4df7-8a09-765794883524 commit cbd08bcc1787ae0166caa75cd340d45bb20295a7 Author: Laszlo Ersek Date: Sat Mar 22 07:14:03 2014 +0000 OvmfPkg: PlatformDxe: connect ExtractConfig() to platform data Establish the full stack of conversions in retrieving the platform configuration: MultiConfigAltResp -- form engine / HII communication ^ | [BlockToConfig] | MAIN_FORM_STATE -- binary representation of form/widget state ^ | [PlatformConfigToFormState] | PLATFORM_CONFIG -- accessible to DXE and UEFI drivers ^ | [PlatformConfigLoad] | UEFI non-volatile variable -- accessible to external utilities Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15374 6f19259b-4bc3-4df7-8a09-765794883524 commit 1df57ba3e66ad72f6ac67008aa9a99d4648e0200 Author: Laszlo Ersek Date: Sat Mar 22 07:13:57 2014 +0000 OvmfPkg: PlatformDxe: add save and discard buttons to the form The RouteConfig() function is also called now as expected. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15373 6f19259b-4bc3-4df7-8a09-765794883524 commit da07afaf5995e2e9c5c87c6389493fa892317dd0 Author: Laszlo Ersek Date: Sat Mar 22 07:13:50 2014 +0000 OvmfPkg: PlatformDxe: get available resolutions from GOP Generate the options for the drop-down list from the GOP resolutions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15372 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c08bbe59ca1e1667ffa4d0cf4d98b2a5d3a58f8 Author: Laszlo Ersek Date: Sat Mar 22 07:13:44 2014 +0000 OvmfPkg: QemuVideoDxe: serialize Start() against callbacks If Start() succeeds, the callback is only executed when the setup is complete (on the stack of RestoreTPL()), rather than on the stack of InstallMultipleProtocolInterfaces(), when the driver setup may yet be theoretically incomplete. If Start() fails, the protocol interface will have been uninstalled (rolled back) by the time the callback runs (again, on the stack of RestoreTPL()). Since protocol notification callbacks begin with locating the protocol interface in question, such attempts to locate will fail immediately and save some work in the callback. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15371 6f19259b-4bc3-4df7-8a09-765794883524 commit bc4c536628c619f1625fefb974d5cf189ce3e7ba Author: Jordan Justen Date: Sat Mar 22 07:13:38 2014 +0000 OvmfPkg/PlatformDxe: Silence warning seen with GCC48 IA32 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15370 6f19259b-4bc3-4df7-8a09-765794883524 commit 92e745505cd7244894a818d1ad747117245b5831 Author: Laszlo Ersek Date: Sat Mar 22 07:13:31 2014 +0000 OvmfPkg: PlatformDxe: add form widgets for video modes In this patch we populate the form with the two widgets related to video resolution: - A read-only string field displaying the preference for the next boot. - A drop-down list offering choices for changing the setting. This list is implemented with dynamically generated IFR opcodes. (In general, the current preference may be missing, or it may be invalid for the available video RAM size. The list of possible new settings is filtered with the video RAM size.) Because the form now becomes able to receive input, we must also implement ExtractConfig(). This function tells the HII engine about the state of the widgets. For now we set up both widgets with static data only: - The current preference always says "Unset". The driver code is still isolated from the backend (the UEFI variable store). - The list of possible resolutions offers 800x600 only. We don't interrogate the GOP yet. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15369 6f19259b-4bc3-4df7-8a09-765794883524 commit 276a7ea1477465baab954a9c8eec7b866554b465 Author: Laszlo Ersek Date: Sat Mar 22 07:13:24 2014 +0000 OvmfPkg: PlatformDxe: introduce state for the main form We'll need a C language (ie. structure) representation for the state of the visual elements on the form. We choose the Buffer Storage kind (see 29.2.5.6 "Storage" in UEFI 2.4A), because it's easy to work with. Note that the structure added in this patch has nothing to do with UEFI non-volatile variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15368 6f19259b-4bc3-4df7-8a09-765794883524 commit 877a4dbb02d5508008a7d63c05d39d82f47d449b Author: Laszlo Ersek Date: Sat Mar 22 07:13:18 2014 +0000 OvmfPkg: PlatformDxe: add an empty HII form ... which opens from the Device Manager window. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15367 6f19259b-4bc3-4df7-8a09-765794883524 commit bdaf30e4e6eb0172c4adecad6276e7bc26714b6a Author: Laszlo Ersek Date: Sat Mar 22 07:13:09 2014 +0000 OvmfPkg: PlatformDxe: set preferred video resolution from platform config The GraphicsConsoleDxe driver (in MdeModulePkg/Universal/Console) determines the preferred video resolution from the dynamic PCDs - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution Setting the graphics resolution during boot is useful when the guest OS (for lack of a dedicated display driver) continues to work with the original GOP resolution and framebuffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15366 6f19259b-4bc3-4df7-8a09-765794883524 commit 5267c89b4d114e16d5573f09c6f37af0b078abee Author: Laszlo Ersek Date: Sat Mar 22 07:13:02 2014 +0000 OvmfPkg: PlatformDxe: utility functions for saving / loading configuration The two functions introduced here allow the saving and loading of platform configuration to/from the non-volatile variable store. The PLATFORM_CONFIG structure and the two functions that take it / return it are generally meant for any DXE or UEFI driver that needs to access platform configuration. For now we keep this small "library" internal to PlatformDxe. The PLATFORM_CONFIG wire format is intended only to grow over time (as long as the variable GUID remains unchanged). At the introduction of new fields, new feature flags must be added, and recognized in PlatformConfigLoad(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15365 6f19259b-4bc3-4df7-8a09-765794883524 commit d945a8ba5bc082dfb037fc710dc616d35eb36de4 Author: Laszlo Ersek Date: Sat Mar 22 07:12:55 2014 +0000 OvmfPkg: introduce empty PlatformDxe This DXE driver will load/save persistent values for OVMF's config knobs, plus expose those knobs via HII. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15364 6f19259b-4bc3-4df7-8a09-765794883524 commit 732295d14974798bafa60bb590802f4ac4b3982f Author: Laszlo Ersek Date: Sat Mar 22 07:12:46 2014 +0000 OvmfPkg: introduce gOvmfPlatformConfigGuid This GUID should become a new "namespace" for UEFI variables that are specific to OVMF configuration (as opposed to standard UEFI global variables). We'll also use it as the GUID of the related HII form-set (ie. the interactive user interface). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15363 6f19259b-4bc3-4df7-8a09-765794883524 commit c4341e3a0e410f7c31a55edc4e7ea646c05f8c26 Author: Laszlo Ersek Date: Sat Mar 22 07:12:36 2014 +0000 OvmfPkg: non-null PcdLib instance for GraphicsConsoleDxe GraphicsConsoleDxe (a UEFI_DRIVER under MdeModulePkg/Universal/Console) determines the preferred video resolution from the dynamic PCDs - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution In one of the next patches, we'd like to change these PCDs. In order for GraphicsConsoleDxe to retrieve the new values dynamically, - it must be linked with the non-null instance of PcdLib, - OvmfPkg must provide dynamic defaults. We keep MdeModulePkg's 800x600 default resolution. (The UEFI specification requires video drivers to support 800x600.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15362 6f19259b-4bc3-4df7-8a09-765794883524 commit 5437d457b9894e5f00c6203d0660f9df053b7730 Author: Jiewen Yao Date: Fri Mar 21 02:51:42 2014 +0000 Fix current TPM device string missing. Use efivarstore instead of varstor, remove TPM disable. Signed-off-by: Jiewen Yao Reviewed-by: Guo Dong Reviewed-by: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15360 6f19259b-4bc3-4df7-8a09-765794883524 commit 553e86699d00ac8b7016fdfcb7fb747e89a1862d Author: Star Zeng Date: Fri Mar 21 01:16:07 2014 +0000 MdeModulePkg PCD: Fix PCD driver to return default data if size mismatch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15357 6f19259b-4bc3-4df7-8a09-765794883524 commit 68d151bbc9c2d48639e6de4a15d912158b10e9f7 Author: Dong Guo Date: Fri Mar 21 00:57:42 2014 +0000 Force UID modules build error to warn user that currently it is just a sample. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15356 6f19259b-4bc3-4df7-8a09-765794883524 commit eb5b60155a30428c12acd0b2c49b54159a4e55e8 Author: leroy.p.leahy Date: Thu Mar 20 22:05:51 2014 +0000 Fix TCP4/TCP6 connections. Connections were transitioning into the connected state and the polling was returning an error. Fix the polling routine to return success in this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: leroy.p.leahy@intel.com Reviewed-by: SREENIVASULA_REDDY@Dell.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15355 6f19259b-4bc3-4df7-8a09-765794883524 commit 774ccb4bcc9e4866ae9ab8422b99429c995c6039 Author: Jaben Carsey Date: Thu Mar 20 17:12:30 2014 +0000 ShellPkg: remove redudant code. call existing API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15354 6f19259b-4bc3-4df7-8a09-765794883524 commit 93b7308337a145632abdd2f1684e9bba60ffb448 Author: Jaben Carsey Date: Thu Mar 20 17:11:52 2014 +0000 ShellPkg: Remove unused function This function was not exposed outside the library and is not used internally. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15353 6f19259b-4bc3-4df7-8a09-765794883524 commit efb76d1a74db6b1dac07c1646dc4082d92b52b11 Author: Jaben Carsey Date: Thu Mar 20 17:10:57 2014 +0000 ShellPkg: Allow for LoadedImageProtocol information to be verbosely exported for commands like "dh" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15352 6f19259b-4bc3-4df7-8a09-765794883524 commit d120b4622e73140e32f6eeb8b18b36d75d3616b3 Author: Fu Siyuan Date: Thu Mar 20 08:19:28 2014 +0000 Removes MacString Rt attribute in Ip4Config/Mnp driver. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Yao, Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15351 6f19259b-4bc3-4df7-8a09-765794883524 commit 80e3a52238c5e946b1dc4c589ccf0fe285940c1d Author: Fu Siyuan Date: Thu Mar 20 06:04:50 2014 +0000 Use PXE_OPFLAGS_STATION_ADDRESS_WRITE when setting new MAC address for the NIC in SNP driver. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15350 6f19259b-4bc3-4df7-8a09-765794883524 commit 9bc5dabb10a29de5759de7f5ec3fe55307c5e226 Author: Star Zeng Date: Thu Mar 20 02:07:48 2014 +0000 MdeModulePkg/SecurityPkg Variable: Return error status to avoid inconsistency between PlatformLang and Lang. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15340 6f19259b-4bc3-4df7-8a09-765794883524 commit 25da08c8b2a73b375f57652104cfdbd0db82d31e Author: Dong Guo Date: Wed Mar 19 03:12:57 2014 +0000 Fix the return value bug when updating public key database variable failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15339 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e991a2f87e6146a203dc7ed138a77a1b9796c74 Author: Elvin Li Date: Wed Mar 19 02:42:36 2014 +0000 Did proper error handling when SetVariable failed, and put RTC write operation at the behind of SetVariable, if SetVariable failed, RTC content could not be changed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15338 6f19259b-4bc3-4df7-8a09-765794883524 commit ef4defca7a2b8b3bab11c51e92c7a82f9ab1de84 Author: Star Zeng Date: Tue Mar 18 09:10:13 2014 +0000 IntelFrameworkModulePkg AcpiS3SaveDxe: Remove ASSERT, add lock and remove RT for AcpiGlobalVariable variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15337 6f19259b-4bc3-4df7-8a09-765794883524 commit 4529d723108b6aa365927f85143d4897b4563477 Author: Elvin Li Date: Tue Mar 18 07:43:27 2014 +0000 Remove ASSERT when SetVariable for ConOutDev/ConInDev/ErrOutDev variables failed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15336 6f19259b-4bc3-4df7-8a09-765794883524 commit 304ae970ee25eed4c7ab4f153ceba8b37e1ee661 Author: Jaben Carsey Date: Mon Mar 17 17:18:08 2014 +0000 ShellPkg: Move a function into shared location Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15335 6f19259b-4bc3-4df7-8a09-765794883524 commit 560b2fb47aefebddcca6d5572438ad1c1ed5ce29 Author: Dong Guo Date: Mon Mar 17 08:38:32 2014 +0000 Add comments for PcdHideTpmSupport. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15334 6f19259b-4bc3-4df7-8a09-765794883524 commit e609aef97a174455a79f339b15f83713b99e3b03 Author: Ruiyu Ni Date: Mon Mar 17 08:24:07 2014 +0000 Do not reset system when the MemoryTypeInformation variable cannot be written. Remove the RT attribute for the MemoryTypeInformation variable because it’s not necessary. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15333 6f19259b-4bc3-4df7-8a09-765794883524 commit 4345d16427c4b88e2c4183b38eefb7015bc36bcf Author: Dong Guo Date: Mon Mar 17 08:23:54 2014 +0000 Remove unnecessary dependency in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15332 6f19259b-4bc3-4df7-8a09-765794883524 commit a81d26ab358a6a5d30bbd5f613d73f59c452959a Author: Gao, Liming Date: Mon Mar 17 07:24:15 2014 +0000 Add comments to describe PlatformDriOverrideDxe is used for test purpose. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15331 6f19259b-4bc3-4df7-8a09-765794883524 commit fd704cbd17f6388520bcb57e6c9fec2a32362ca4 Author: Gao, Liming Date: Mon Mar 17 07:22:50 2014 +0000 Remove ASSERT check for SetVariable in FirmwarePerformanceDataTableDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15330 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a8c6c962a4abc75224799bfd03f2f68bb2a89e3 Author: Dong Guo Date: Mon Mar 17 05:46:53 2014 +0000 Fix the return status when physical presence variable and MemoryOverwriteRequestControl variable are corrupt. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15329 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c12f2d77fe8ac958e6da4ceb92378227dd6c676 Author: Fu Siyuan Date: Mon Mar 17 05:32:32 2014 +0000 Remove ASSERT when failed to Get/Set “AttemptOrder” and “ClientId” variable. Removes RT attribute for “AttemptOrder” variable. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Yao, Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15328 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c9135a288234d15086a5b6f267dd4822d044064 Author: Laszlo Ersek Date: Thu Mar 13 17:35:03 2014 +0000 OvmfPkg: BDS: QemuBootOrder: don't leak unreferenced boot options The Boot#### variables that have become unreferenced in the new BootOrder variable won't ever be automatically reused for booting. They are "unreachable" resources that take up room in the variable store. Make an effort to remove them. This should plug the leak which, given sufficient reboots, exhausts the variable store with stale Boot#### variables and renders the VM unbootable. Reported-by: Michael Chang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15327 6f19259b-4bc3-4df7-8a09-765794883524 commit de5ae37bb23a67f936a9671e8a78c40f06fd5392 Author: Laszlo Ersek Date: Thu Mar 13 17:34:55 2014 +0000 OvmfPkg: BDS: remove historic (now defunct) boot mode hack When PI can distinguish the "full config" boot mode from "assume no changes", then the following BDS logic is correct: if BootMode == BOOT_WITH_FULL_CONFIGURATION: // // connect all devices // create & append each default boot option that's missing // BdsLibConnectAll BdsLibEnumerateAllBootOption else if BootMode == BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: // // just stick with current BootOrder and the Boot#### variables // referenced by it // In theory, the first branch is intended to run infrequently, and the "assume no changes" branch should run most of the time. However, some platforms can't tell these two boot modes apart. The following substitute had been introduced: // // Technically, always assume "full config", but the BootMode HOB is // actually meaningless wrt. to "full config" or "assume no changes". // ASSERT (BootMode == BOOT_WITH_FULL_CONFIGURATION); // // Key off the existence of BootOrder. Try to prepare an in-memory list // of boot options, based on BootOrder and the referenced Boot#### // variables. // Status = BdsLibBuildOptionFromVar() // // If that succeeded, we'll treat it as "assume no changes". If it // failed (*only* if it failed), we'll build default boot options, // calling it "full config": // if EFI_ERROR(Status): BdsLibConnectAll() BdsLibEnumerateAllBootOption(BootOptionList) What we have now in OVMF is a mixture of the hack, and the behavior that's theoretically correct for "full config": - We assert "full config" -- this is OK. - We call "connect all" and "enumerate all" deliberately -- this is OK too. It matches "full config" which we assert. - However, we also have the hack in place, which had been meant as an alternative. In order to clean this up, we either need to restore the hack to its original form (ie. comment out the unconditional calls again), or we ought to remove the hack altogether. The unconditional "connect all" + "enumerate all" calls are the correct approach for OVMF, because we want, in fact, to start with "full config". The QEMU boot order specification and the set of emulated devices might change "out of band", which excludes "assume no changes". In other words, removing the hack corresponds to the "real production" case that the comment hints at. Because SetBootOrderFromQemu() may change the BootOrder NvVar, we must preserve the BdsLibBuildOptionFromVar() function call, in order to refresh the in-memory list with the new boot priorities. (The last step of BdsLibEnumerateAllBootOption() is such a call too.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15326 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ffa9c616d41956d84b82e3c9792fd87e3d3e1ae Author: Ryan Harkin Date: Wed Mar 12 17:24:48 2014 +0000 ArmPlatformPkg/Bds: stop inputting more characters when string is full If EditHIInputStr() is called, say with a MaxCmdLine of 2, the user is currently allowed to enter 2 characters. If the second character is a carriage return/line feed, this is substituted with a NULL and the function returns. If the second character is a regular character, the loop terminated and the function returns. However, the buffer has not been NULL terminated. This patch prevents the user from entering a regular character as the final character and ensures that the only way out of the input is by pressing ESC or ENTER (or equivalent). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15325 6f19259b-4bc3-4df7-8a09-765794883524 commit cb77b48ad9ee73acfb78c1d800ace7417fb7a24e Author: Olivier Martin Date: Wed Mar 12 17:23:33 2014 +0000 ArmPlatformPkg/BootMonFs: Added support for new revision of the NOR Flash file system Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15324 6f19259b-4bc3-4df7-8a09-765794883524 commit 0698723204155fd5b9710e6a1de445782443b191 Author: Brendan Jackman Date: Mon Mar 10 18:13:13 2014 +0000 ShellPkg: ShellCommands/SetVar: Make '-rt' imply '-bs' It's invalid to set a variable that's available from runtime services but not from boot services. Currently if you pass '-rt' without '-bs' you get a generic 'Invalid Parameter' message. We should either print a more useful message in this case, or make '-rt' imply '-bs' (as this patch does). The Shell Spec is ambiguous on the matter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15323 6f19259b-4bc3-4df7-8a09-765794883524 commit 207256b79bf296c5db4d77c729ae79c63819e620 Author: jyao1 Date: Fri Mar 7 03:07:09 2014 +0000 Remove unused variable attribute flag. Signed off by: Jiewen Yao Reviewed by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15321 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f344fffc7fb541d11edf4cf657f84549b334244 Author: Shumin Qiu Date: Fri Mar 7 01:06:37 2014 +0000 1.Add code to check the pointer 'CorrectedPath' in Ls.c line 460 before referenced. 2.Not use explicit comparisons to TRUE or FALSE for Boolean variable in Ls.c. 3.Add doxygen tags in comment and return type for 'ToLower' in ShellProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15320 6f19259b-4bc3-4df7-8a09-765794883524 commit 7292c69b2ae18cda8cd21f25daff85da1e69a23d Author: Daryl McDaniel Date: Fri Mar 7 01:05:30 2014 +0000 StdLib: Modify the memory allocation routines to not be dependent upon the internal structure of the EDK II memory pool. StdLib/LibC/StdLib/Malloc.c Create a private data structure, CPOOL_HEAD, which contains housekeeping information for StdLib’s memory allocation functions. An instance of this structure is prepended to every chunk of allocated memory. The structure links the allocation into a doubly-linked list and keeps track of the size of each allocation unit. This information is then available for use by the realloc function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Rosenbaum, Lee G git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15319 6f19259b-4bc3-4df7-8a09-765794883524 commit de2eccc46a58280f259e60c6353b700e3a5aaddb Author: Mike Maslenkin Date: Wed Mar 5 08:45:13 2014 +0000 The size of platform memory above 1M is measured in kilobytes. This patch fixes truncation of this value. Actually 0 Mb memory size was set by reason of overflow of 16 bit word caused by wrong value used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mike Maslenkin Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15318 6f19259b-4bc3-4df7-8a09-765794883524 commit 81f2915669f734f34e3e83c83287e7371e298390 Author: Olivier Martin Date: Wed Mar 5 04:52:33 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Added Android FastBoot support That includes an implementation of FASTBOOT_PLATFORM_PROTOCOL for ARM Versatile Express. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15317 6f19259b-4bc3-4df7-8a09-765794883524 commit d3f99770c0aa0a4468062963ba5f1b7dd1ebcbbd Author: Olivier Martin Date: Wed Mar 5 04:51:31 2014 +0000 EmbeddedPkg/AndroidFastbootTransportUsbDxe: Implemented Android FastBoot over USB Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15316 6f19259b-4bc3-4df7-8a09-765794883524 commit 4257aa4d4b94489a86201fdf56cbd033a9bb518a Author: Olivier Martin Date: Wed Mar 5 04:33:37 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Added Isp1761 USB OTG driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15315 6f19259b-4bc3-4df7-8a09-765794883524 commit dbfd80d87363fe855eee7eadd029ff9c43e44bb2 Author: Olivier Martin Date: Wed Mar 5 04:32:48 2014 +0000 EmbeddedPkg/Isp1761UsbDxe: Driver for the NXP ISP1761's USB peripheral controller This driver doesn't support OTG - it simply sets the NXP ISP1761 in pure peripheral mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15314 6f19259b-4bc3-4df7-8a09-765794883524 commit d972f80b0866404f1141a3d2848cb7ecd023acfb Author: Olivier Martin Date: Wed Mar 5 04:31:04 2014 +0000 EmbeddedPkg/UsbDevice.h: Introduced USB Device Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15313 6f19259b-4bc3-4df7-8a09-765794883524 commit f6755908dee0d71926ec4f440edd384523746ef6 Author: Olivier Martin Date: Wed Mar 5 04:15:44 2014 +0000 EmbeddedPkg/AndroidFastboot: Introduce Android FastBoot Application This application enables Android FastBoot on UEFI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15312 6f19259b-4bc3-4df7-8a09-765794883524 commit ddd1436622131ced99193700dcd7dca5dc0aa315 Author: Olivier Martin Date: Wed Mar 5 04:14:02 2014 +0000 EmbeddedPkg/AndroidFastbootPlatform.h: Introduced Fastboot Platform Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15311 6f19259b-4bc3-4df7-8a09-765794883524 commit d8fd88626bc97303a423733fd0baa208e28728ec Author: Olivier Martin Date: Wed Mar 5 04:12:35 2014 +0000 EmbeddedPkg/AndroidFastbootTransport.h: Introduced Android Fastboot Transport protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15310 6f19259b-4bc3-4df7-8a09-765794883524 commit da78c88f4535dee0595a82678bec0d933fd7080e Author: Laszlo Ersek Date: Wed Mar 5 00:54:00 2014 +0000 OvmfPkg: raise DXEFV size to 8 MB This fixes build errors like: GenFds.py... the required fv image size 0x71b118 exceeds the set fv image size 0x700000 which is reported at least for: (a) -b DEBUG -D SECURE_BOOT_ENABLE -t GCC44, (b) -b DEBUG -D SECURE_BOOT_ENABLE -t GCC48 -D CSM_ENABLE Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15309 6f19259b-4bc3-4df7-8a09-765794883524 commit 34511266c2607b1d9ee99cff81649537d859a6ac Author: Jordan Justen Date: Tue Mar 4 08:04:20 2014 +0000 OvmfPkg: Add DebugAgentLib for Library class mapping for DXE_DRIVER This is needed for BootScriptExecutorDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15308 6f19259b-4bc3-4df7-8a09-765794883524 commit 939004009de251bfecec2a7c5c16d12f4a5adffe Author: Laszlo Ersek Date: Tue Mar 4 08:04:13 2014 +0000 OvmfPkg: S3 Resume: pull in BootScriptExecutorDxe This driver (from "MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf") is first loaded normally during DXE. When the EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL is installed by any DXE driver (purely as a form of notification), the driver reloads itself to reserved memory. During S3 Resume / PEI, the driver image is executed from there. In order to access the boot script saved during S3 Suspend, LockBox access is needed. The boot script is transferred internal to PiDxeS3BootScriptLib: Both S3SaveStateDxe and BootScriptExecutorDxe are statically linked against PiDxeS3BootScriptLib. Whichever is loaded first (during normal boot, in the DXE phase), allocates the root storage for the script. The address is then passed between the PiDxeS3BootScriptLib instances living in the two separate drivers thru the dynamic PcdS3BootScriptTablePrivateDataPtr PCD. Dependencies: BootScriptExecutorDxe gEfiLockBoxProtocolGuid [OvmfPkg/AcpiS3SaveDxe] S3BootScriptLib [PiDxeS3BootScriptLib] SmbusLib [BaseSmbusLibNull] LockBoxLib [OvmfPkg/Library/LockBoxLib] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15307 6f19259b-4bc3-4df7-8a09-765794883524 commit d4ba06dfdc3a0c2f6519d3dcaf4437e164d4ac91 Author: Laszlo Ersek Date: Tue Mar 4 08:04:04 2014 +0000 OvmfPkg: S3 Resume: fake LockBox protocol for BootScriptExecutorDxe BootScriptExecutorDxe, to be pulled in in the next patch, was written with the SMM implementation of LockBox in mind. That implementation is split in the following three parts: - client side (DXE/PEI) library, - SMM driver producing gEfiLockBoxProtocolGuid, - driver side (SMM) library. BootScriptExecutorDxe includes the client side LockBoxLib. So that the library can communicate with the SMM LockBox driver, BootScriptExecutorDxe has a Depex on gEfiLockBoxProtocolGuid, normally installed by the SMM LockBox driver. This is actually not a hard dependency, it just ensures correct load order between BootScriptExecutorDxe and MdeModulePkg/Universal/LockBox/SmmLockBox. The (client side) LockBox library instance in OVMF doesn't depend on a separate driver that produces gEfiLockBoxProtocolGuid. Nothing produces that GUID right now in OVMF. This prevents BootScriptExecutorDxe from loading. Install gEfiLockBoxProtocolGuid in our only S3-specific, custom DXE driver, in order to enable loading of BootScriptExecutorDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15306 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a217a0649b31db2f0e7a65e42f92fbebc3bef96 Author: Laszlo Ersek Date: Tue Mar 4 08:03:56 2014 +0000 OvmfPkg: S3 Suspend: save boot script after ACPI context The trigger to actually save the boot script is the installation of EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL, to be performed by any DXE driver. Installation of the protocol also locks down SMM (as its name indicates) and (in theory) prevents further LockBox access. We cannot install this protocol before BdsLibBootViaBootOption() is called (eg. in OVMF's PlatformBdsPolicyBehavior()), because BdsLibBootViaBootOption() calls EFI_ACPI_S3_SAVE_PROTOCOL.S3Save(), which needs LockBox access. We also can't install the protocol after BdsLibBootViaBootOption() returns, simply because control is never returned to us. Therefore modify our EFI_ACPI_S3_SAVE_PROTOCOL implementation so that the boot script is prepared and installed internally to S3Save(). (The boot script must contain at least one opcode, otherwise S3BootScriptLib runs into an assertion failure. We add a harmless (no-op) "information" opcode.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15305 6f19259b-4bc3-4df7-8a09-765794883524 commit b017b1b27a18af9519a0a18ed731d8d7c8cefa43 Author: Laszlo Ersek Date: Tue Mar 4 08:03:50 2014 +0000 OvmfPkg: S3 Suspend: enable creation/saving of an S3 Boot Script "MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf" produces the EFI_S3_SAVE_STATE_PROTOCOL which allows creation and saving of an S3 Boot Script, to be replayed in PEI during S3 Resume. The script contains opcodes and opcode arguments to configure CPU, PCI and IO resources. S3SaveStateDxe relies on the S3BootScriptLib library. The Null implementation is not useful for actually saving the boot script, we need the PiDxeS3BootScriptLib instance. The PiDxeS3BootScriptLib library instance depends on LockBoxLib, implemented for OVMF in one of the previous patches. PiDxeS3BootScriptLib also depends on SmbusLib. For now we opt for the Null instance of the latter. It means that SMBus commands in the boot script will have no effect when interpreted during S3 Resume. This should be fine for OvmfPkg and QEMU. EFI_S3_SAVE_STATE_PROTOCOL [S3SaveStateDxe] S3BootScriptLib [PiDxeS3BootScriptLib] SmbusLib [BaseSmbusLibNull] LockBoxLib [OvmfPkg/Library/LockBoxLib] When the EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL is installed by any DXE driver (purely as a form of notification), the S3SaveStateDxe driver saves the boot script to EfiACPIMemoryNVS, and links it into the LockBox. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15304 6f19259b-4bc3-4df7-8a09-765794883524 commit 389cbceb7fc0039ff68abf3df31886e6f85b8092 Author: Laszlo Ersek Date: Tue Mar 4 08:03:38 2014 +0000 OvmfPkg: S3 Suspend: save ACPI context "OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf" (originally: "IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf") produces the EFI_ACPI_S3_SAVE_PROTOCOL. When found, this protocol is automatically invoked by BdsLibBootViaBootOption(), in file "IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c", right before booting a boot option, to save ACPI S3 context. At that point during BDS, our AcpiPlatformDxe driver will have installed the FACS table (which AcpiS3SaveDxe has a use-time dependency upon). With regard to dependencies: AcpiS3SaveDxe implements EFI_ACPI_S3_SAVE_PROTOCOL by relying on LockBoxLib. BdsLibBootViaBootOption() EFI_ACPI_S3_SAVE_PROTOCOL [AcpiS3SaveDxe] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: Remove EmuNvramLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15303 6f19259b-4bc3-4df7-8a09-765794883524 commit 600c74bcd2c7be0d2d3e59364e3b676aa1e0ef7f Author: Laszlo Ersek Date: Tue Mar 4 08:03:31 2014 +0000 OvmfPkg: S3 Suspend: import specialized copy of AcpiS3SaveDxe "IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf" currently specifies a DepEx on gEfiMpServiceProtocolGuid (MP Services). The justification is the following code sequence: InstallAcpiS3Save() if PcdFrameworkCompatibilitySupport is set: InstallAcpiS3SaveThunk() if EFI_MP_SERVICES_PROTOCOL is available: GetVariable(ACPI_GLOBAL_VARIABLE) In English, the AcpiS3SaveDxe driver insists on the presence of MP Services *unconditionally* because, - if PcdFrameworkCompatibilitySupport is set (the default is false), - and MP Services are available (which is constant true under the above condition), then the AcpiS3SaveDxe driver would like to get the ACPI_GLOBAL_VARIABLE variable from the MP Services driver, rather than setting it itself. The DepEx prevents AcpiS3SaveDxe from loading under OvmfPkg, since we provide no MP Services implementation. This is particularly broken since the default PcdFrameworkCompatibilitySupport value is FALSE, making the entire code that would look at EFI_MP_SERVICES_PROTOCOL dead. Copy AcpiS3SaveDxe to OvmfPkg, substitute PcdFrameworkCompatibilitySupport with constant FALSE, and remove all code that becomes dead, including the DepEx. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15302 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a7cba79b7b6d58f79a01bf29c900cb3ca6b5187 Author: Laszlo Ersek Date: Tue Mar 4 08:03:23 2014 +0000 OvmfPkg: implement LockBoxLib The S3 suspend/resume infrastructure depends on the LockBox library class. The edk2 tree currently contains Null and SMM instances. The Null instance is useless, and the SMM instance would require SMM emulation by including the SMM core and adding several new drivers, which is deemed too complex. Hence add a simple LockBoxLib instance for OVMF. jordan.l.justen@intel.com: * use PCDs instead of EmuNvramLib - clear memory in PlatformPei on non S3 boots * allocate NVS memory and store a pointer to that memory - reduces memory use at fixed locations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15301 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fb6fc0f0538af2927905090c26a72d4de4112a4 Author: Laszlo Ersek Date: Tue Mar 4 08:03:06 2014 +0000 OvmfPkg: S3 Resume: pull in PEIM orchestrating S3 Resume "UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf" produces the EFI_PEI_S3_RESUME2 PEIM-to-PEIM Interface. When the platform-specific initialization code (in PEI) sets the Boot Mode to BOOT_ON_S3_RESUME, the DXE IPL (which is the last step in PEI) skips the DXE phase entirely, and executes the S3 Resume PEIM through the EFI_PEI_S3_RESUME2 interface instead. (See DxeLoadCore() in "MdeModulePkg/Core/DxeIplPeim/DxeLoad.c".) S3Resume2Pei depends on LockBoxLib. EFI_PEI_S3_RESUME2 [S3Resume2Pei] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15300 6f19259b-4bc3-4df7-8a09-765794883524 commit 74e5c15842b75be9e7d2057ac0345cbf524b2234 Author: Jordan Justen Date: Tue Mar 4 08:02:59 2014 +0000 OvmfPkg/PlatformPei: Allocate PEI FV as ACPI NVS if S3 is supported On S3 resume, we skip decompression of the PEI FV, and expect to jump directly into it. For this to work, we need the OS to leave the memory range untouched. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15299 6f19259b-4bc3-4df7-8a09-765794883524 commit 78a38b73c39569aacca5c7a4f44bb896305a301a Author: Laszlo Ersek Date: Tue Mar 4 08:02:52 2014 +0000 OvmfPkg: PlatformPei: reserve early page tables on X64 On X64, the reset vector code in "OvmfPkg/ResetVector/Ia32/PageTables64.asm" identity maps the first 4GB of RAM for PEI, consuming six frames starting at 8MB. This range is declared by the PcdOvmfSecPageTablesBase/Size PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek [jordan.l.justen@intel.com: Move to MemDetect.c; use PCDs] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15298 6f19259b-4bc3-4df7-8a09-765794883524 commit e249f906f10f527ba273542a49b64778fd6b4fa2 Author: Laszlo Ersek Date: Tue Mar 4 08:02:45 2014 +0000 OvmfPkg: PlatformPei: reserve SEC/PEI temp RAM for S3 resume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek [jordan.l.justen@intel.com: move to MemDetect.c; use PCDs] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15297 6f19259b-4bc3-4df7-8a09-765794883524 commit a781f7099bc2584fd065f1947bedd49adfea0fa5 Author: Jordan Justen Date: Tue Mar 4 08:02:37 2014 +0000 OvmfPkg/Sec: Don't decompress the FV on S3 resume Since we marked the FV at PcdOvmfPeiMemFvBase as ACPI NVS memory, we can use it on S3 resume. The FV at PcdOvmfDxeMemFvBase may have been overwritten by the OS, but we do not use it's contents on S3 resume. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15296 6f19259b-4bc3-4df7-8a09-765794883524 commit bd386eaf86f1f55dd28d2c5b26a8c80b2a9002a8 Author: Jordan Justen Date: Tue Mar 4 08:02:30 2014 +0000 OvmfPkg/PlatformPei: Skip various items for S3 resume We will not be running DXE on S3 resume, so we don't need to do these initialization items: * Reserve EMU Variable memory range * Declare Firmware volumes * Add memory HOBs v5: * Move MiscInitialization back to running on S3 resume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15295 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e54500fd48b56d8cf660c18656e10fe89ee3af7 Author: Jordan Justen Date: Tue Mar 4 08:02:16 2014 +0000 OvmfPkg: Add section of memory to use for PEI on S3 resume This 32k section of RAM will be declared to the PEI Core on S3 resume to allow memory allocations during S3 resume PEI. If the boot mode is BOOT_ON_S3_RESUME, then we publish the pre-reserved PcdS3AcpiReservedMemory range to PEI. If the boot mode is not BOOT_ON_S3_RESUME, then we reserve this range as ACPI NVS so the OS will not use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15294 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cdba6346b97562dad9809297cd7a32979a5a1d8 Author: Jordan Justen Date: Tue Mar 4 08:01:58 2014 +0000 OvmfPkg/PlatformPei: Detect S3 support for QEMU / KVM QEMU indicates whether S3 is supported or not in the fw-cfg interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15293 6f19259b-4bc3-4df7-8a09-765794883524 commit 14eb7a5be2d6415ca614fb62c28fd165eed3c572 Author: Laszlo Ersek Date: Tue Mar 4 08:01:49 2014 +0000 OvmfPkg QemuFwCfgLib: determine if S3 support is explicitly enabled Such a packaged query function will come in handy in the following patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: check for enabled rather than disabled] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15292 6f19259b-4bc3-4df7-8a09-765794883524 commit 979420df986e0b9ec3fe5cb2a1f72332a42c61c1 Author: Jordan Justen Date: Tue Mar 4 08:01:40 2014 +0000 OvmfPkg/PlatformPei: Add mBootMode driver variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15291 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f5ca05b0d423de6da0208979aa82ccacfa9ce01 Author: Laszlo Ersek Date: Tue Mar 4 08:01:32 2014 +0000 OvmfPkg: PlatformPei: detect S3 Resume in CMOS and set boot mode accordingly Data is transferred between S3 Suspend and S3 Resume as follows: S3 Suspend (DXE): (1) BdsLibBootViaBootOption() EFI_ACPI_S3_SAVE_PROTOCOL [AcpiS3SaveDxe] - saves ACPI S3 Context to LockBox ---------------------+ (including FACS address -- FACS ACPI table | contains OS waking vector) | | - prepares boot script: | EFI_S3_SAVE_STATE_PROTOCOL.Write() [S3SaveStateDxe] | S3BootScriptLib [PiDxeS3BootScriptLib] | - opcodes & arguments are saved in NVS. --+ | | | - issues a notification by installing | | EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL | | | | (2) EFI_S3_SAVE_STATE_PROTOCOL [S3SaveStateDxe] | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - closes script with special opcode <---------+ | - script is available in non-volatile memory | via PcdS3BootScriptTablePrivateDataPtr --+ | | | BootScriptExecutorDxe | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - Knows about boot script location by <----+ | synchronizing with the other library | instance via | PcdS3BootScriptTablePrivateDataPtr. | - Copies relocated image of itself to | reserved memory. --------------------------------+ | - Saved image contains pointer to boot script. ---|--+ | | | | Runtime: | | | | | | (3) OS is booted, writes OS waking vector to FACS, | | | suspends machine | | | | | | S3 Resume (PEI): | | | | | | (4) PlatformPei sets S3 Boot Mode based on CMOS | | | | | | (5) DXE core is skipped and EFI_PEI_S3_RESUME2 is | | | called as last step of PEI | | | | | | (6) S3Resume2Pei retrieves from LockBox: | | | - ACPI S3 Context (path to FACS) <------------------|--|--+ | | | +------------------|--|--+ - Boot Script Executor Image <----------------------+ | | | | (7) BootScriptExecutorDxe | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - executes boot script <-----------------------------+ | | (8) OS waking vector available from ACPI S3 Context / FACS <--+ is called Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: move code into BootModeInitialization] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15290 6f19259b-4bc3-4df7-8a09-765794883524 commit bb97e78852ffadafce09523b304c7e5b4f6b30ee Author: Laszlo Ersek Date: Mon Mar 3 08:41:15 2014 +0000 OvmfPkg: QemuVideoDxe: add further BOCHS modes This brings the list of BOCHS video modes to par with the QEMU QXL implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15289 6f19259b-4bc3-4df7-8a09-765794883524 commit ec88061ec82d3ebf6a83d562d17583b70e32ce13 Author: Laszlo Ersek Date: Mon Mar 3 08:41:08 2014 +0000 OvmfPkg: QemuVideoDxe: filter BOCHS modes vs. available frame buffer size In the next patch we'll add many new BOCHS modes, some of which require large frame buffers. The size of the QXL VGA compatibility framebuffer can be changed with the -global qxl-vga.vgamem_mb=$NUM_MB QEMU option. If $NUM_MB would exceed 32, then the following two QEMU options are necessary instead: -global qxl-vga.vgamem_mb=$NUM_MB \ -global qxl-vga.ram_size_mb=$((NUM_MB*2)) because the compatibility framebuffer can't cover more than half of PCI BAR #0. The latter defaults to 64MB in size, and is controlled by "ram_size_mb". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15288 6f19259b-4bc3-4df7-8a09-765794883524 commit cd1526101469cb639c7166c0b750c5ebb810a446 Author: Laszlo Ersek Date: Mon Mar 3 08:40:59 2014 +0000 OvmfPkg: QemuVideoDxe: clarify QEMU_VIDEO_MODE_DATA.ModeNumber The field name "ModeNumber" in QEMU_VIDEO_MODE_DATA is misleading -- it is not immediately obvious whether this field carries a client-visible mode number, in the GOP sense, or an internal, card type specific mode index. After checking all references, rename the field to "InternalModeIndex". Also, when filling in the card type independent QEMU_VIDEO_MODE_DATA array from the card type specific mode array, distinguish the GOP mode number from the internal mode index in the debug message. This patch effects no functional changes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15287 6f19259b-4bc3-4df7-8a09-765794883524 commit 96b5f3977773b71702f67d99f5b758c1a184d2bf Author: Laszlo Ersek Date: Mon Mar 3 08:40:52 2014 +0000 OvmfPkg: QemuVideoDxe: eliminate useless Private->HardwareNeedsStarting Currently, QemuVideoGraphicsOutputQueryMode() reports EFI_NOT_STARTED when this boolean field is set. However, QemuVideoGraphicsOutputQueryMode() is only available to callers after the GOP interface has been installed. That in turn implies that the following partial call tree has succeeded without errors: QemuVideoControllerDriverStart() QemuVideoGraphicsOutputConstructor() QemuVideoGraphicsOutputSetMode(... 0 ...) HardwareNeedsStarting = FALSE InstallMultipleProtocolInterfaces(... GOP ...) That is, when QemuVideoGraphicsOutputQueryMode() is reached, HardwareNeedsStarting is always FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15286 6f19259b-4bc3-4df7-8a09-765794883524 commit 847e4c3477d3ecb7362c3b31fe9889384557e8ae Author: Laszlo Ersek Date: Mon Mar 3 08:40:44 2014 +0000 OvmfPkg: QemuVideoDxe: plug remaining leaks in Stop() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15285 6f19259b-4bc3-4df7-8a09-765794883524 commit 99a6dce3c2abd348bba7ae62e25488a2381369f7 Author: Laszlo Ersek Date: Mon Mar 3 08:40:35 2014 +0000 OvmfPkg: QemuVideoDxe: disentangle UEFI driver model use in Stop() A bus driver needs to pay attention whether its Stop() function is being called on the "main" controller handle (NumberOfChildren == 0) or on the child handles (NumberOfChildren > 0). In QemuVideoDxe, all our resources are associated with the one child handle (and the Private data structure) *except* the top-level PciIo protocol reference. Be conscious of which mode Stop() is being called for. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15284 6f19259b-4bc3-4df7-8a09-765794883524 commit 42d0cad751d610a8e6680ffd468fc40c970e96c0 Author: Laszlo Ersek Date: Mon Mar 3 08:40:28 2014 +0000 OvmfPkg: QemuVideoDxe: simplify UEFI driver model use in Supported() / Start() A bus driver is allowed to ignore the actual value of RemainingDevicePath in Supported() and Start(), and to produce all child handles at once. This in effect means the following invariants for QemuVideoDxe: - (RemainingDevicePath == NULL), and - (Private->GopDevicePath != NULL) Simplify Supported() and Start() by substituting constant TRUE and FALSE (as appropriate) in expressions that check RemainingDevicePath and/or Private->GopDevicePath. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15283 6f19259b-4bc3-4df7-8a09-765794883524 commit d89186bc869bfedd9f83f8e52f995dfd04691521 Author: Laszlo Ersek Date: Mon Mar 3 08:40:19 2014 +0000 OvmfPkg: QemuVideoDxe: tidy up error checking/handling in & under Start() In QemuVideoControllerDriverStart(): - remove redundant zero-initialization of: - Private->Handle (2 locations) - Private->GopDevicePath (when at devpath end) - remove fields used for error handling only: - PciAttributesSaved - tigthen scope of temporaries: - MmioDesc - AcpiDeviceNode - supplement missing error checks: - AppendDevicePathNode() can fail with out-of-memory (2 locations) - when installing GopDevicePath - retval of QemuVideoGraphicsOutputConstructor() (can justifiedly fail with out-of-resources) - plug leaks on error: - free GopDevicePath (AppendDevicePathNode() allocates dynamically) - uninstall GopDevicePath - free Private->ModeData - call QemuVideoGraphicsOutputDestructor() - uninstall GOP In QemuVideoGraphicsOutputConstructor(), called by Start(): - supplement missing error checks: - QemuVideoGraphicsOutputSetMode() retval (it can fail with out-of-resources) - plug leaks on error: - free Mode->Info - free Mode In QemuVideoCirrusModeSetup() and QemuVideoBochsModeSetup(), both called by Start(): - supplement missing error checks: - AllocatePool() can fail in both In QemuVideoGraphicsOutputDestructor(), called by Start() on the error path: - plug leaks: - free Private->LineBuffer, which is allocated in Start() -> Constructor() -> SetMode() In QemuVideoGraphicsOutputSetMode(), called by Start() indirectly: - remove redundant zero-assignment to: - Private->LineBuffer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15282 6f19259b-4bc3-4df7-8a09-765794883524 commit 57a1b9c4252985ee5d631340fed453e73e0c9146 Author: jyao1 Date: Sat Mar 1 12:25:31 2014 +0000 Add comment for S3BootScriptSaveMemPoll API, since it does not match PI specification. Signed-off by: Jiewen Yao Reviewed by: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15280 6f19259b-4bc3-4df7-8a09-765794883524 commit a4ab7df48fbb4d953b7ddc6d27b5bf9a0502fa64 Author: Olivier Martin Date: Sat Mar 1 11:05:44 2014 +0000 ArmPlatformPkg/ArmVExpressDxe: Platform specific driver for ARM VExpress based platform This driver should be used when adding code specific to a platform based on ARM VExpress based board. ArmFvpDxe driver has been renamed into ArmVExpressDxe driver to support the hardware based platforms and the model based platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15279 6f19259b-4bc3-4df7-8a09-765794883524 commit 35a3e762614cd83a40209daaa39b82b81dc7db80 Author: Olivier Martin Date: Sat Mar 1 11:01:44 2014 +0000 EmbeddedPkg: Added support for AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15278 6f19259b-4bc3-4df7-8a09-765794883524 commit 27995cd5d6ea40639d6034b8b7cbb84f625f1a4a Author: Olivier Martin Date: Sat Mar 1 11:01:00 2014 +0000 ArmPkg: Tidy assembler code - Fixed typo - Removed unreachable 'dead' loop Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15277 6f19259b-4bc3-4df7-8a09-765794883524 commit f6c5a29bb9041caf66426ddced7454f9051124eb Author: Olivier Martin Date: Sat Mar 1 11:00:07 2014 +0000 ArmPkg/ArmLib: Rationalise ArmReadMidr and cognate functions. The function ArmReadMidr has been recently added, but that functionality was already present under other names such as Cp15IdCode and ArmMainIdCode. This change removes redundant code and moves the function to the Common library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15276 6f19259b-4bc3-4df7-8a09-765794883524 commit 992a1f830d94d87d98c1e2066f46f00200bdfd4c Author: Olivier Martin Date: Sat Mar 1 10:59:25 2014 +0000 ArmPkg/ArmLib: Fix compilation error with -O3 switch A warning is reported because ArmArchTimerReadReg may theoretically result in an unititialised value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15275 6f19259b-4bc3-4df7-8a09-765794883524 commit f0247796cbc23568121463683fefe7a211d439e3 Author: Olivier Martin Date: Sat Mar 1 10:58:46 2014 +0000 ArmPkg/ArmLib: ArmReadVBar implementation missing in AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15274 6f19259b-4bc3-4df7-8a09-765794883524 commit eaa84fd553eb2288f1e192430a1800bf45e51c56 Author: Olivier Martin Date: Sat Mar 1 10:57:55 2014 +0000 ArmPkg: Replace single dead loop. Several assembler macros use a loop at the label "dead" to trap an error. This is difficult to debug as there is no indication of how one arrived at the loop. This change replaces dead with distinct loops locally in the macro, which means the cause of the hang is detectable to the debugger. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15273 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ff0e414d13afd3cad5017a98bc1e257f64ed6d4 Author: Olivier Martin Date: Sat Mar 1 10:57:09 2014 +0000 ArmPkg/ArmLib: Move common definitions from ArmV7Lib.h & AArch64Lib.h to ArmLib.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15272 6f19259b-4bc3-4df7-8a09-765794883524 commit f716d7b8c5aca0d913edd8925808e474df4d3bdb Author: Shumin Qiu Date: Fri Feb 28 00:36:03 2014 +0000 Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15271 6f19259b-4bc3-4df7-8a09-765794883524 commit b9b77ab1ba0e5138307150a1a3caa4342d464f16 Author: Brendan Jackman Date: Wed Feb 26 09:46:40 2014 +0000 ShellPkg/ShellProtocol.c: Fix case sensitivity in GetAlias and SetAlias ShellCommandIsOnAliasList is case insensitive, but GetAlias and SetAlias use the UEFI variable services, which are case sensitive. Force alias names to lowercase to get around this. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15270 6f19259b-4bc3-4df7-8a09-765794883524 commit b572d3f0db2e1b837885907dbeff2cce7e733e04 Author: Eric Dong Date: Wed Feb 26 08:13:10 2014 +0000 When exit from GetFullStringFromHiiFormPackages function, should update the PointerProgress parameter if necessary. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15263 6f19259b-4bc3-4df7-8a09-765794883524 commit e8c737ae79a091418d9bd81501d0463dce6dcef7 Author: Jaben Carsey Date: Tue Feb 25 23:03:17 2014 +0000 ShellPkg: Add missing header files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Daryl McDaniel daryl.mcdaniel@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15262 6f19259b-4bc3-4df7-8a09-765794883524 commit e840822b2dbd83c886a86eeecf78db48dd009bf2 Author: Olivier Martin Date: Tue Feb 25 10:37:49 2014 +0000 ShellBinPkg: ARM binaries update based on 15257. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15261 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a8406adb367e8b0d2f107adfc6c141b953d938d Author: Shumin Qiu Date: Tue Feb 25 08:30:32 2014 +0000 Add code to check whether the pointer 'CorrectedPath' and 'FullPath' are NULL before used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15260 6f19259b-4bc3-4df7-8a09-765794883524 commit e27ecde731feeeb59d9e04e25c4bd77f187b5864 Author: Ari Zigler Date: Tue Feb 25 05:20:31 2014 +0000 Fix the bug for the structure definition of _EFI_ADAPTER_INFORMATION_PROTOCOL in AdapterInformation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ari Zigler Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15259 6f19259b-4bc3-4df7-8a09-765794883524 commit e794f18021ccd8fa8f7bbdb3bc85143282dbc12a Author: Jaben Carsey Date: Mon Feb 24 22:26:49 2014 +0000 ShellBinPkg: binary update based on 15257. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15258 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a6f286257da8a9082bcffb4bcbe62bb01468dfb Author: Olivier Martin Date: Mon Feb 24 19:21:38 2014 +0000 ArmPkg/AsmMacroIoLibV8.h: Correct 32 bit accesses in asm macros Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15257 6f19259b-4bc3-4df7-8a09-765794883524 commit 51ad04cbd1ecb31aa91a611a251573ab72553b4e Author: Olivier Martin Date: Mon Feb 24 19:20:16 2014 +0000 ARM Packages: Include 'AsmMacroIoLibV8.h' instead of the 32bit version Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15256 6f19259b-4bc3-4df7-8a09-765794883524 commit b83a92b34e1cea8b7f697bbad228c694278dfb8c Author: Garrett Kirkendall Date: Mon Feb 24 16:27:48 2014 +0000 ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Garrett Kirkendall Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15255 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f9c86067477e7e898773518a244a09ebb086385 Author: Olivier Martin Date: Mon Feb 24 14:14:13 2014 +0000 edksetup.bat: Fixed corrupts CYGWIN_HOME The .BAT file checks for existance of the directory c:\cygwin and, if it exists, always resets CYGWIN_HOME to that path. That means that if CYGWIN_HOME is set to say c:\cygwin64, it gets corrupted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15254 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ef23d9c2c2fe8e295f85d44591dd9f0d1fbc0bc Author: Olivier Martin Date: Mon Feb 24 14:09:00 2014 +0000 BaseTools: Rectify use of @ in .BAT files. Tracing of the .BAT files is obscured by use of the @ prefix and is confused by the "echo on" at the end of toolsetup.bat. Silent all the 'echo' with '@'. And remove '@' from the non 'echo' line to make easier to trace the batch files when 'echo on'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15253 6f19259b-4bc3-4df7-8a09-765794883524 commit c1cdcab9526506673b882017845a043cead8bc69 Author: Andrew Fish Date: Mon Feb 24 10:30:48 2014 +0000 EmbeddedPkg/PrePiLib: Fixed incorrect type casting A pointer on a UINTN variable was used instead of UINT32 one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15252 6f19259b-4bc3-4df7-8a09-765794883524 commit 70f1d5e75655dc71142d363df809c25d07c3e99d Author: Eric Dong Date: Fri Feb 21 06:27:05 2014 +0000 Check the Config access protocol before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15251 6f19259b-4bc3-4df7-8a09-765794883524 commit 929fb3be4169eb520272056c00b11bb3fb3f6458 Author: Jaben Carsey Date: Tue Feb 18 21:53:00 2014 +0000 ShellPkg: Update "ls" command to better handle "-r" parameter This makes sure that recursion into sub directories looks through all subdirectories, not just those that match the initial search pass. Also only prints out any information for directories in which at least one matching file is found. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15250 6f19259b-4bc3-4df7-8a09-765794883524 commit ebddddadff3ce37c21bf41b2b46252c0a9390cfb Author: Olivier Martin Date: Tue Feb 18 18:32:31 2014 +0000 ArmPlatformPkg/ArmRealViewEbPkg: Fixed assertion in RuntimeDxe An assertion that was comparing the block size with the size of the storage was failing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15249 6f19259b-4bc3-4df7-8a09-765794883524 commit b0824968930584cb85fcc4e70feaac1a285f2ab6 Author: Olivier Martin Date: Tue Feb 18 18:31:11 2014 +0000 ArmPlatformPkg/ArmRealViewEbPkg: Added MMC support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15248 6f19259b-4bc3-4df7-8a09-765794883524 commit 27c304f442538e3aeb1bcc5a6e52194a577dcde0 Author: Eric Dong Date: Tue Feb 18 10:53:57 2014 +0000 Update configrequest string at runtime for dynamic created question. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15247 6f19259b-4bc3-4df7-8a09-765794883524 commit a6c0ad816ac8f26d1af38f1a2c2ea538a852cb5b Author: Eric Dong Date: Tue Feb 18 10:50:40 2014 +0000 Update the ValueChanged flag before call CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15246 6f19259b-4bc3-4df7-8a09-765794883524 commit da5ae569b9be641b80fa30184021aea3f907635d Author: Olivier Martin Date: Mon Feb 17 16:01:41 2014 +0000 Add flag to make UEFI run from DRAM or FLASH for FVPs - By setting the 'ARM_FVP_RUN_NORFLASH' flag at compile time UEFI will be linked to run from NOR FLASH0 on FVPs. - The RAM load location is currently set to 128MB from base of DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15245 6f19259b-4bc3-4df7-8a09-765794883524 commit b1239a2491262b1561f994d939b64beac37fe819 Author: Eric Dong Date: Thu Feb 13 06:05:09 2014 +0000 Set the Reset flag if user select one statement which has reset attribute and not has storage. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15244 6f19259b-4bc3-4df7-8a09-765794883524 commit e4c83a4f9cad7f2c362727cdeb3f5daf297ec270 Author: Gao, Liming Date: Thu Feb 13 03:37:07 2014 +0000 Fixed the issue in ExitBootServices() implementation to avoid the potential boot service usage after () after gCpu->DisableInterrupt (). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin Reviewed-by: Michael Kinney Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15243 6f19259b-4bc3-4df7-8a09-765794883524 commit d5b5440bf205a37c8ae0ac4b873cd976a9598326 Author: Jaben Carsey Date: Wed Feb 12 18:27:07 2014 +0000 ShellPkg: refactor elimination of non-replaced environment variables This changes how non-replaced environment variables are found and eliminated from the command line. This new method makes sure that the found environment variables are not using escaped characters and that they do not stretch over quoted strings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15242 6f19259b-4bc3-4df7-8a09-765794883524 commit e6f3ed43400bc9d02ff3e2728579cc9f35f71405 Author: Leif Lindholm Date: Wed Feb 12 15:30:34 2014 +0000 ARM Packages: CRLF fixup Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15241 6f19259b-4bc3-4df7-8a09-765794883524 commit 9401d6f4b989d977f8b0aa4946168a92b748aead Author: Olivier Martin Date: Wed Feb 12 15:14:41 2014 +0000 ArmPkg/ArmLib: Added ArmReadMidr() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15240 6f19259b-4bc3-4df7-8a09-765794883524 commit 226d5572ad829bbe6f8a66ee2a5aad7887244e09 Author: Olivier Martin Date: Wed Feb 12 15:13:44 2014 +0000 ArmPkg/BdsLib: Removed unused MachineType argument (AArch64) MachineType was used on 32-bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15239 6f19259b-4bc3-4df7-8a09-765794883524 commit abc0e1072dde87bd1782673a4c6a17cacf26dab5 Author: Olivier Martin Date: Wed Feb 12 15:12:41 2014 +0000 ArmPkg: Removed unused header 'BdsUnixLib.h' This header contains a function that does not exist. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15238 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7 Author: Olivier Martin Date: Wed Feb 12 15:11:29 2014 +0000 EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0 Last commit from git://git.jdl.com/software/dtc.git: commit 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf Author: Jon Loeliger Date: Sat Jun 22 12:54:28 2013 -0500 Tag Version 1.4.0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15237 6f19259b-4bc3-4df7-8a09-765794883524 commit e30acb47ce10ef7774dc4501860824381b2713fc Author: Olivier Martin Date: Wed Feb 12 15:09:58 2014 +0000 ArmPlatformPkg/BdsLib: Let the user press enter when inputting booleans Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15236 6f19259b-4bc3-4df7-8a09-765794883524 commit e645bd857df95a8e2fac220fe98772cc6d37dee4 Author: Olivier Martin Date: Wed Feb 12 11:37:57 2014 +0000 MdeModulePkg/DiskIo: Introduced 'PcdDiskIoDataBufferBlockNum' PcdDiskIoDataBufferBlockNum replaced the hardcoded value into the Disk I/O driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-By: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15235 6f19259b-4bc3-4df7-8a09-765794883524 commit 336c8e116b3e2e11dccdac163d0a85fc3c58fd3d Author: Eric Dong Date: Wed Feb 12 06:31:10 2014 +0000 Keep highlight on the current highlight menu if form auto exit, not exit by user input. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15234 6f19259b-4bc3-4df7-8a09-765794883524 commit 2080f676df886be48f227d7bb74fd6b30b20e431 Author: jyao1 Date: Wed Feb 12 06:04:58 2014 +0000 Add more check for PE COFF SizeOfHeader field. Signed-off by: jiewen yao reviewed by: eric dong Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15233 6f19259b-4bc3-4df7-8a09-765794883524 commit 5dc6ab16971eb237a90099ac7c496ebef3902e6a Author: Eric Dong Date: Wed Feb 12 03:34:48 2014 +0000 Set the free buffer pointer to NULL to avoid later free again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15232 6f19259b-4bc3-4df7-8a09-765794883524 commit f3a14a0f575e7e856ff4d90d7d0ab73f7e02ae41 Author: Shumin Qiu Date: Wed Feb 12 01:52:27 2014 +0000 Add code to check the return status for ShellReadFile and ShellWriteFile when execute the 'cp' command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15231 6f19259b-4bc3-4df7-8a09-765794883524 commit a7563b08d937bf6cf2c751b753b7743381c73c6c Author: Shumin Qiu Date: Wed Feb 12 01:51:15 2014 +0000 Add code to check whether the pointer 'PathForReturn' in ShellProtocol.c is NULL before used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15230 6f19259b-4bc3-4df7-8a09-765794883524 commit 892eccc8d8697ada395b50738c099f8596a78d82 Author: Eric Dong Date: Wed Feb 12 01:45:35 2014 +0000 Update the logic, only check the value change status for user input action, not detect the change caused by Hii driver change through SetBrowserData function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15229 6f19259b-4bc3-4df7-8a09-765794883524 commit c8d54a6d8dd259a28d02bf95ed7e48efb251e414 Author: Eric Dong Date: Wed Feb 12 01:35:42 2014 +0000 Adjust date/time opcode before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15228 6f19259b-4bc3-4df7-8a09-765794883524 commit f07ccd05274b8f37a736f2c97c854af6af7b277d Author: Elvin Li Date: Wed Feb 12 01:21:51 2014 +0000 Fix several typo issues. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15227 6f19259b-4bc3-4df7-8a09-765794883524 commit fc4c7b30d9f0e5d3d9bc8dad13c5737c3da34f29 Author: Jaben Carsey Date: Tue Feb 11 23:56:32 2014 +0000 ShellPkg: Fix changing to file system with 2 colons like "fs0::" first colon must be last character in the string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15226 6f19259b-4bc3-4df7-8a09-765794883524 commit ba71f790583850b01a6336a3ac246a0ced877ce5 Author: Jaben Carsey Date: Tue Feb 11 23:37:18 2014 +0000 ShellPkg: Fix uninitialized Variable error Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15225 6f19259b-4bc3-4df7-8a09-765794883524 commit fe6c94d2e158e13fb6452979fc730fdd7c8f6447 Author: Brendan Jackman Date: Tue Feb 11 22:46:56 2014 +0000 ShellPkg: InternalShellExecuteDevicePath: avoid memory leaks Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15224 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e2b20a1ad4b777d2834075bcd9a38f364e42c99 Author: Brendan Jackman Date: Tue Feb 11 22:45:18 2014 +0000 ShellPkg: Make Argv[0] the full file path of the command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15223 6f19259b-4bc3-4df7-8a09-765794883524 commit da92bf853f573d244278ab944720005598fa0450 Author: Brendan Jackman Date: Tue Feb 11 22:43:36 2014 +0000 ShellPkg: Error out when ProcessCommandLine fails Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15222 6f19259b-4bc3-4df7-8a09-765794883524 commit 0477054bc0f5c891a098280cffde0aed549262b3 Author: Brendan Jackman Date: Tue Feb 11 22:42:49 2014 +0000 ShellPkg: Fixed Memory leak in UefiMain() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15221 6f19259b-4bc3-4df7-8a09-765794883524 commit 23385d63195945990aa1eb18c8659e2bf882aa59 Author: Brendan Jackman Date: Tue Feb 11 22:39:49 2014 +0000 ShellPkg: Manually parse parameters We can't use ShellCommandLineParse as it would error out when the shell was called with args like "cp -r foo bar", because "-r" is not a recognised shell option A different way to avoid some of this manual parsing would be to prepend '^' to each argument, but that would still require the degree of parsing necessary to work out which words are part of the command and which are shell options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15220 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eb5cf94a10d14a291e4ba706892e54b03106f33 Author: Jaben Carsey Date: Tue Feb 11 20:36:05 2014 +0000 ShellPkg: Prevent "set" command from updating %lasterror% Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey reviewed-by: Laurie Jarlstrom git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15219 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a718ba91ba255f2629b274ff07bd7adb0ad7ab1 Author: Star Zeng Date: Tue Feb 11 08:00:52 2014 +0000 MdeModulePkg UsbBusPei: Produce a USB I/O PPI for all USB Interfaces a USB Device advertises in its USB configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15218 6f19259b-4bc3-4df7-8a09-765794883524 commit 3038da1b93b782334ad346be52d6cbaa19555830 Author: Tian, Feng Date: Tue Feb 11 08:00:13 2014 +0000 Fix incorrect return status in InitializeDebugPortDriver() & DebugPortSupported(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Li, Elvin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15217 6f19259b-4bc3-4df7-8a09-765794883524 commit b80eed7d6d94090bd5b9ddb9720d473b855d20cc Author: Elvin Li Date: Tue Feb 11 00:13:50 2014 +0000 Remove redundant IsUnicodeFiFoEmpty ()in UnicodeFiFoRemoveOneKey(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15216 6f19259b-4bc3-4df7-8a09-765794883524 commit 52f8e370ac06543a21258a61ace0e004d589af5b Author: Tian, Feng Date: Tue Feb 11 00:10:18 2014 +0000 MdeModulePkg/ScsiDisk:If the SCSI device target status is in CHECK_CONDITION, then parse sense data to decide which actions need to be done. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15215 6f19259b-4bc3-4df7-8a09-765794883524 commit 489c314207bb083ed107a5f2249fbb2f2615c0e0 Author: Mauro Faccenda Date: Sun Feb 9 02:01:20 2014 +0000 OvmfPkg: QemuBootOrder: initialize IsFinal variable to make MSVC happy The BOOLEAN IsFinal variable initialization isn't properly seen by MSVC. To make it compile OVMF the variable needs to be initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mauro Faccenda Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15214 6f19259b-4bc3-4df7-8a09-765794883524 commit 620b682e144abf8333317976ba73c3b2f25ffeb6 Author: Jordan Justen Date: Sun Feb 9 01:58:58 2014 +0000 OvmfPkg/PlatformPei: Remove duplicate Xen memory map debug message This duplicate message was intended to be removed from r15207 before it was committed. (It was pointed out by Wei Liu.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15213 6f19259b-4bc3-4df7-8a09-765794883524 commit 5b05611330bf23450a688bf1899de9525d82b654 Author: Leandro G. Biss Becker Date: Wed Feb 5 21:16:47 2014 +0000 ShellPkg: patch to the "for" command when used with "in" iterating files in a folder. (for %x in *.txt). The result values (%x) have misplaced quotation marks and some spaces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leandro G. Biss Becker Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15212 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f3659e2f70055c073566910149eb08019ceb6c2 Author: Olivier Martin Date: Wed Feb 5 12:55:27 2014 +0000 ArmPlatformPkg/Scripts/Makefile: Update after edksetup.sh changes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15211 6f19259b-4bc3-4df7-8a09-765794883524 commit 139b57737413a7d95bc35edf4a5463a599965edb Author: Olivier Martin Date: Wed Feb 5 12:54:46 2014 +0000 MmcIdentification: Don't error out for SD cards SD cards don't respond to CMD1 immediately following CMD0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15210 6f19259b-4bc3-4df7-8a09-765794883524 commit 80ae629190d77fd552a9bd9dc48e6d2da3683ecc Author: Olivier Martin Date: Wed Feb 5 12:54:03 2014 +0000 ArmPlatformPkg/ArmVExpress.dsc.inc: Exposed the 2 NOR Flash filesystem to UEFI BootMonFs (file system used on the VExpress NOR Flash) is now supported on both NOR Flash regions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15209 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e57d6d70b836dc5888603b9c0c7c00177e3d063 Author: Olivier Martin Date: Wed Feb 5 12:53:09 2014 +0000 ArmPkg/ArmLib: VBAR_ELx not written correctly when handler above 4GB The function ArmWriteVBar had a UINT32 parameter. Need to change it to UINT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15208 6f19259b-4bc3-4df7-8a09-765794883524 commit 2818c158de6a164d012e6afb0fc145656aed4e4b Author: Jordan Justen Date: Sat Feb 1 21:22:54 2014 +0000 OvmfPkg/PlatformPei: Add RAM for Xen in InitializeRamRegions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15207 6f19259b-4bc3-4df7-8a09-765794883524 commit c034906e107080a55361693964d3c18ba9ffda66 Author: Jordan Justen Date: Sat Feb 1 21:22:48 2014 +0000 OvmfPkg/PlatformPei: Add InitializeRamRegions function In the next commit we will update the Xen boot path to also use this function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15206 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b455f7bf0da7ab11a6366a1ab9ac3c8905411a4 Author: Jordan Justen Date: Sat Feb 1 21:22:43 2014 +0000 OvmfPkg/PlatformPei: Merge Xen support into MemMapInitialization Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15205 6f19259b-4bc3-4df7-8a09-765794883524 commit c191a58fac8901952b44c31856c9f25e390b09b5 Author: Jordan Justen Date: Sat Feb 1 21:22:36 2014 +0000 OvmfPkg/PlatformPei: Set PcdPciDisableBusEnumeration in InitializeXen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15204 6f19259b-4bc3-4df7-8a09-765794883524 commit 18f31ada8d5f02a42408dfe4092a8bcc71fc4ed9 Author: Jordan Justen Date: Sat Feb 1 21:22:25 2014 +0000 OvmfPkg/PlatformPei: Add XenPublishRamRegions This will be called from a unified MemDetect function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15203 6f19259b-4bc3-4df7-8a09-765794883524 commit b98b4941e266526bf4c75f9004c869bfe9ef2f14 Author: Jordan Justen Date: Sat Feb 1 21:22:19 2014 +0000 OvmfPkg/PlatformPei: Hide Xen Leaf details Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15202 6f19259b-4bc3-4df7-8a09-765794883524 commit b621bb0a3ce81cabc31e28e055e3206068d5aa77 Author: Jordan Justen Date: Sat Feb 1 21:22:12 2014 +0000 OvmfPkg/PlatformPei: Add mXen boolean to indicate Xen is running Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15201 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bb6bfaa082be625512297a3250be58e2f999341 Author: Leif Lindholm Date: Thu Jan 30 19:26:53 2014 +0000 edksetup.sh: Fix typo and return code The typo was a check for the string "BaseTool" instead of "BaseTools". Also fixed the issue where the script returned success even when configuration failed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15200 6f19259b-4bc3-4df7-8a09-765794883524 commit ef9086c3a52572fbd7f9c16e57093086224ce914 Author: Jordan Justen Date: Thu Jan 30 19:26:46 2014 +0000 edksetup.sh: Code style Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15199 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d25bed4bd18daff0b7151e47542b5edd0467fd7 Author: Jordan Justen Date: Thu Jan 30 01:06:47 2014 +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 Reviewed-by: Laszlo Ersek Reviewed-by: Bill Paul git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15198 6f19259b-4bc3-4df7-8a09-765794883524 commit c3cf8daa0f5091ce13e4c20252d5f3fb2a1a193d Author: Laszlo Ersek Date: Wed Jan 29 21:44:23 2014 +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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15197 6f19259b-4bc3-4df7-8a09-765794883524 commit 869b17ccdc05f7bad76b3dd61ebc6e5d7466e577 Author: Jordan Justen Date: Wed Jan 29 21:44:16 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15196 6f19259b-4bc3-4df7-8a09-765794883524 commit f76e9eba9deded0a2a25987256ccd5ca7b828927 Author: Jordan Justen Date: Wed Jan 29 21:44:09 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15195 6f19259b-4bc3-4df7-8a09-765794883524 commit c2fcbc853f92c5a52d868be3eb3b33161c127eab Author: Dong Guo Date: Tue Jan 28 07:00:06 2014 +0000 Add description information for the GUID and Library class defined in DEC file Signed-off-by: Dong Guo Reviewed-by: Gao, Liming Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15194 6f19259b-4bc3-4df7-8a09-765794883524 commit 74b7ec58c410c06fda1bc2d205e0c9119b7e22e0 Author: Chen Fan Date: Tue Jan 28 02:30:10 2014 +0000 Fix ResetVectorVtf0.asm comment typo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15193 6f19259b-4bc3-4df7-8a09-765794883524 commit 729220eacac90990e9145fd129036ffc1488e1eb Author: Parmeshwr Prasad Date: Tue Jan 28 02:18:23 2014 +0000 Handle command line parameter "-? -h --help" and any other. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Parmeshwr Prasad Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15192 6f19259b-4bc3-4df7-8a09-765794883524 commit 71c49eafc54f2f3158ed8861a90cb6eb95e13f97 Author: Shumin Qiu Date: Tue Jan 28 00:59:46 2014 +0000 Add initializing code for local variable 'CalleeExitStatus' and 'ExitStatus' in 'Shell.c'. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15191 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bc3ec3d80985b10bf8f4f9c4203ccd8c1cd6e7e Author: Shumin Qiu Date: Tue Jan 28 00:37:11 2014 +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 Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15190 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c1e62f35a5a5ad28b2f7f29ae0bf1d255b229a3 Author: Tian, Hot Date: Mon Jan 27 05:36:53 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15189 6f19259b-4bc3-4df7-8a09-765794883524 commit f51461c829c124288a930829a78e2a5a799f4039 Author: Gao, Liming Date: Mon Jan 27 05:23:15 2014 +0000 Sync BaseTool trunk (version r2649) into EDKII BaseTools. Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15188 6f19259b-4bc3-4df7-8a09-765794883524 commit 7771be9fd0b9b3c7f5c0659c416535171de31191 Author: Shumin Qiu Date: Mon Jan 27 04:54:05 2014 +0000 Fix the typo for the structure definition of EFI_ADAPTER_INFO_NETWORK_BOOT in AdapterInformation. Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15187 6f19259b-4bc3-4df7-8a09-765794883524 commit 6924dbdf399fdb807e019932fb83b91fd4170dc3 Author: Gao, Liming Date: Sun Jan 26 09:33:22 2014 +0000 Rollback the change 15178. And, update NameString IScsiDxeStrings[] to IScsi4DxeStrings[] to match its BASE_NAME Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15186 6f19259b-4bc3-4df7-8a09-765794883524 commit 506560e75abceaab3cd8f7b7508f9d26b3c6036d Author: Star Zeng Date: Sun Jan 26 02:49:41 2014 +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 Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15185 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ddc2ff3efa00b0e2233ae28f64cf58d63dafd2a Author: Brendan Jackman Date: Fri Jan 24 22:32:38 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15184 6f19259b-4bc3-4df7-8a09-765794883524 commit 3877d0f581536430fffe572ec3ceea29e0d50602 Author: Brendan Jackman Date: Fri Jan 24 22:31:07 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15183 6f19259b-4bc3-4df7-8a09-765794883524 commit 708793148d0706c251e7971e55759f089874b471 Author: Brendan Jackman Date: Fri Jan 24 22:29:53 2014 +0000 ShellLib/UefiShellLib.c: Fix doc comment for ShellOpenFileMetaArg Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15182 6f19259b-4bc3-4df7-8a09-765794883524 commit d9c7741d4f1787f8f370faab7432a86f63bdc611 Author: Brendan Jackman Date: Fri Jan 24 22:28:36 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15181 6f19259b-4bc3-4df7-8a09-765794883524 commit 5223c1213506f3a8f3c120a6620258d2b071db84 Author: Brendan Jackman Date: Fri Jan 24 22:27:11 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15180 6f19259b-4bc3-4df7-8a09-765794883524 commit fed3be946c8bff1372e106eec8cfd73524036ceb Author: Jaben Carsey Date: Fri Jan 24 20:33:17 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15179 6f19259b-4bc3-4df7-8a09-765794883524 commit b0c975b61a47b1b3c7e2e91b9e6aa9321d702a79 Author: Gao, Liming Date: Fri Jan 24 14:39:30 2014 +0000 Update Module BaseName to avoid the same name. Remove the unused extern C name. Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15178 6f19259b-4bc3-4df7-8a09-765794883524 commit 7017c2699de96b20cef4076a561036bb017461d6 Author: Garrett Kirkendall Date: Fri Jan 24 13:10:54 2014 +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 Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15177 6f19259b-4bc3-4df7-8a09-765794883524 commit ace287611f35b7525bc8e7468e9093ea32d2464e Author: Gao, Liming Date: Fri Jan 24 09:33:11 2014 +0000 Update Module BaseName to avoid the same name. Signed-off-by: Gao, Liming Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15176 6f19259b-4bc3-4df7-8a09-765794883524 commit 201edad3279eea683ec629c7651e26e2fc459880 Author: Gao, Liming Date: Fri Jan 24 09:32:30 2014 +0000 Update Module BaseName to avoid the same name. Signed-off-by: Gao, Liming Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15175 6f19259b-4bc3-4df7-8a09-765794883524 commit ca4e58d8e390794e9fd8b7eb46073260d19f5e1d Author: Fu Siyuan Date: Fri Jan 24 05:33:18 2014 +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 Reviewed-by: Ni, Ruiyu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15174 6f19259b-4bc3-4df7-8a09-765794883524 commit f20fc992aee02c54404b68c46abd30ffbdd9888e Author: Fu Siyuan Date: Thu Jan 23 08:36:37 2014 +0000 Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15173 6f19259b-4bc3-4df7-8a09-765794883524 commit 2b53e39435ee46ccf7addaef2a9b32fdfbc30fc0 Author: Tian, Hot Date: Thu Jan 23 05:27:14 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15172 6f19259b-4bc3-4df7-8a09-765794883524 commit 675723cbcaa67746062d8af9af16f5d342ba12f6 Author: Dong Guo Date: Thu Jan 23 03:19:38 2014 +0000 Fix PCD help information format and a typo. Signed-off-by: Dong Guo Reviewed-by: Gao, Liming Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15171 6f19259b-4bc3-4df7-8a09-765794883524 commit 27582c41bacab463c9ca8db219c257dcd6081b32 Author: Eric Dong Date: Thu Jan 23 02:00:15 2014 +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 Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15170 6f19259b-4bc3-4df7-8a09-765794883524 commit 96179cb36e78bd21e64e7b00c0dc914cb9844850 Author: Eric Dong Date: Thu Jan 23 01:57:04 2014 +0000 Refine the logic when return success, should not clean the buffer in this case. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15169 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a78d29cb83521617eac4e819a81f981110de7b1 Author: Olivier Martin Date: Thu Jan 23 01:01:08 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15168 6f19259b-4bc3-4df7-8a09-765794883524 commit c2d87a49f788fd9a38a1150e265d2ef2f59fcc77 Author: Olivier Martin Date: Thu Jan 23 00:59:08 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15167 6f19259b-4bc3-4df7-8a09-765794883524 commit eb98fc6de8d3a2d2085b988e760255f5ef8c859a Author: Olivier Martin Date: Thu Jan 23 00:57:56 2014 +0000 ArmPlatformPkg: Removed the hardware floating point build flags Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15166 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b485fde02278cdcab881e99f86d31812a939349 Author: Olivier Martin Date: Thu Jan 23 00:56:29 2014 +0000 EmbeddedPkg/MmcDxe: Fix mixed EOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15165 6f19259b-4bc3-4df7-8a09-765794883524 commit 14868afbb8d66f9934111fc8f1879053343264d9 Author: Shumin Qiu Date: Thu Jan 23 00:29:53 2014 +0000 Update prints of variable attributes from 'RS' to 'RT' for 'Dmpstore' command. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15164 6f19259b-4bc3-4df7-8a09-765794883524 commit f614ce7ebb1f131a9cd508048ee1123eef5b30a7 Author: Shumin Qiu Date: Thu Jan 23 00:27:52 2014 +0000 Update the comments in function headers to follow Doxygen special documentation blocks in section 2.3.5. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15163 6f19259b-4bc3-4df7-8a09-765794883524 commit 7798fb83de4b2505a8e17457256b113a05d8475c Author: Tian, Hot Date: Wed Jan 22 08:41:16 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15162 6f19259b-4bc3-4df7-8a09-765794883524 commit af0202a4ca3ca50c4c0166531980ce9b3884d6c6 Author: Tian, Hot Date: Wed Jan 22 08:40:49 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15161 6f19259b-4bc3-4df7-8a09-765794883524 commit d42aab6e615abc574064e949f0b194a3ccaf01f0 Author: Tian, Hot Date: Wed Jan 22 08:40:29 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15160 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f345b7d29d4619168885f522e665d3138a48850 Author: Tian, Hot Date: Wed Jan 22 08:40:06 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15159 6f19259b-4bc3-4df7-8a09-765794883524 commit 1cc799c5b3d41f6f24078752e8ebee38c1f6a0b2 Author: Tian, Hot Date: Wed Jan 22 08:39:50 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15158 6f19259b-4bc3-4df7-8a09-765794883524 commit 44de1013cfcd481efee629c1f75f4eebd99bc13c Author: Tian, Hot Date: Wed Jan 22 08:39:32 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15157 6f19259b-4bc3-4df7-8a09-765794883524 commit 8db92ab59be3f6eb6039575d1baa2b2e044edede Author: Tian, Hot Date: Wed Jan 22 08:39:09 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15156 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b738c76f56f8eda171f14b8f9b20e34b66be476 Author: Tian, Hot Date: Wed Jan 22 08:38:50 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15155 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c8f6044a2ae275071ab6cd6557b584784c093ce Author: Tian, Hot Date: Wed Jan 22 08:38:20 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15154 6f19259b-4bc3-4df7-8a09-765794883524 commit c27b9ffe86a8c1d8476154f725682ad2afa8e7d5 Author: Tian, Hot Date: Wed Jan 22 08:35:25 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15153 6f19259b-4bc3-4df7-8a09-765794883524 commit cb162780fee8f7d101cdcf3ca5db63fa2b6000db Author: Fu Siyuan Date: Wed Jan 22 01:57:06 2014 +0000 Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15152 6f19259b-4bc3-4df7-8a09-765794883524 commit b36f701d4f925172516cfdee72915e3217c92551 Author: Jordan Justen Date: Tue Jan 21 19:39:13 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15151 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b4b783dbe49102e5acaa9852e737820a645a559 Author: Jordan Justen Date: Tue Jan 21 19:39:04 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15150 6f19259b-4bc3-4df7-8a09-765794883524 commit b6f564a7633224b04e297b7a36af751fecd7641f Author: Jordan Justen Date: Tue Jan 21 19:38:57 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15149 6f19259b-4bc3-4df7-8a09-765794883524 commit c67178b7725f04beac51736233ac5a51f4db2b45 Author: Jordan Justen Date: Tue Jan 21 19:38:50 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15148 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cb6b0e068092d6a92d49b532703b70713e9d277 Author: Jordan Justen Date: Tue Jan 21 19:38:43 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15147 6f19259b-4bc3-4df7-8a09-765794883524 commit b382ede3864e17e8827dbc90c7d4f1540b94ff3f Author: Jordan Justen Date: Tue Jan 21 19:38:34 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15146 6f19259b-4bc3-4df7-8a09-765794883524 commit bb4aa855f3615352d1cbe733b1a329f6d94c7264 Author: Jordan Justen Date: Tue Jan 21 19:38:25 2014 +0000 OvmfPkg/Sec/SecMain.c: Convert to CRLF (dos) text Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15145 6f19259b-4bc3-4df7-8a09-765794883524 commit 5300cf02b9146bddedb7585f44cebb0be4f91856 Author: Jordan Justen Date: Tue Jan 21 19:38:16 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15144 6f19259b-4bc3-4df7-8a09-765794883524 commit 66a110d7c9a63aea280253de4d242e4a9037d4c3 Author: Ruiyu Ni Date: Tue Jan 21 07:34:41 2014 +0000 Optimize the code to not call StrToBuf when DataLength is 0. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15143 6f19259b-4bc3-4df7-8a09-765794883524 commit 2d441ca9cd79aae0d26ee7f464ddbee2a28d2121 Author: Laszlo Ersek Date: Mon Jan 20 08:50:06 2014 +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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15142 6f19259b-4bc3-4df7-8a09-765794883524 commit d0115279bececedb61bc40d4006d74365b4a30b6 Author: Jordan Justen Date: Mon Jan 20 08:49:58 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15141 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c86b6b785f50a38c52949c46fd2b1d00fc80721 Author: Jaben Carsey Date: Fri Jan 17 17:51:09 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15140 6f19259b-4bc3-4df7-8a09-765794883524 commit d91e3ba5e705907c670a0bedb6906e2165ab112d Author: Gao, Liming Date: Fri Jan 17 06:07:01 2014 +0000 Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15139 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a83534019104ade4cd339538e0e8c11548fe9d4 Author: Gao, Liming Date: Fri Jan 17 06:06:30 2014 +0000 Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15138 6f19259b-4bc3-4df7-8a09-765794883524 commit ff284c56a11a9a9b32777c91bc069093d5b5d8a9 Author: jyao1 Date: Fri Jan 17 03:51:01 2014 +0000 CapsulePei coalesce need add more sanity check for each Capsule Fragment. Signed-off by: jiewen yao Reviewed by: elvin li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15137 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a1966c4e2f04374178872b064c3a8e42a0eb776 Author: jyao1 Date: Fri Jan 17 03:42:09 2014 +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 Reviewed by: liming gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15136 6f19259b-4bc3-4df7-8a09-765794883524 commit 4dd8c7af196bae9d27d82b9dbb8692dde66c3a10 Author: Jaben Carsey Date: Thu Jan 16 16:53:56 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15135 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e4a89a335e1dd5c8649bb293bc609358b6a8b86 Author: Jaben Carsey Date: Thu Jan 16 16:53:23 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15134 6f19259b-4bc3-4df7-8a09-765794883524 commit 31b018a663be0fb23f3a4f612aaedf86a8bd10fc Author: Jaben Carsey Date: Thu Jan 16 16:52:39 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15133 6f19259b-4bc3-4df7-8a09-765794883524 commit 974d61171fcbd33374c626ea69adc2519402d830 Author: Laszlo Ersek Date: Thu Jan 16 10:35:55 2014 +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 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15132 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ad8d7d012c9d1a4481a497727590531fa0b325c Author: Reece R. Pollack Date: Thu Jan 16 10:31:14 2014 +0000 ArmPlatformPkg/ArmVExpress-RTSM-A15_MPCore.fdf: Added Generic Network drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reece R. Pollack Signed-off-by: Steven Kinney Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15131 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c20c0c37aadab8356f7d074bfd1e6944fad32c2 Author: Reece R. Pollack Date: Thu Jan 16 10:28:23 2014 +0000 ArmPlatformPkg/ArmVExpress-RTSM-A15.fdf: Added the generic Network drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reece R. Pollack Signed-off-by: Steven Kinney Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15130 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eee8f37892e95824e9bbc4f045a6d93c0f87589 Author: Ryan Harkin Date: Thu Jan 16 10:25:00 2014 +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 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15129 6f19259b-4bc3-4df7-8a09-765794883524 commit 95c2e69ad6a6dcd74c0964404fd7e037be7391a4 Author: Gao, Liming Date: Thu Jan 16 02:42:17 2014 +0000 Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15128 6f19259b-4bc3-4df7-8a09-765794883524 commit b9ababa39d90959c48348198f8fddab210fb89c2 Author: jyao1 Date: Thu Jan 16 02:03:10 2014 +0000 Follow UEFI2.4.a spec, add more description on parameter check. Signed-off by: jiewen yao Reviewed by: qin long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15127 6f19259b-4bc3-4df7-8a09-765794883524 commit 94e0955d3e8a3d949e3f00fe69b2827a637058c3 Author: Olivier Martin Date: Thu Jan 16 00:06:13 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15126 6f19259b-4bc3-4df7-8a09-765794883524 commit 33fc8b0fec5fca4a8936348cba2b1beee0bc0ed5 Author: Roy Franz Date: Wed Jan 15 16:24:00 2014 +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 Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15125 6f19259b-4bc3-4df7-8a09-765794883524 commit cf9530e6864f87e58c1c65b5a1198586700f7182 Author: Olivier Martin Date: Wed Jan 15 12:24:31 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15124 6f19259b-4bc3-4df7-8a09-765794883524 commit 92720fe9c9c42a3a8e32958f53f7bf10c0679e06 Author: Ryan Harkin Date: Wed Jan 15 12:22:06 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A9 BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15123 6f19259b-4bc3-4df7-8a09-765794883524 commit bdf67cd688b48c65da2b7282217f15d6b98ec869 Author: Ryan Harkin Date: Wed Jan 15 12:19:29 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A15 BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15122 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b128e5d4d08c95213bc2320480e2a1272e3de7e Author: Ryan Harkin Date: Wed Jan 15 12:18:29 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Add virtio to RTSM A15 MPCore BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15121 6f19259b-4bc3-4df7-8a09-765794883524 commit 382e45e7fd04312e54affee81db2dd0a2be5d496 Author: Gao, Liming Date: Wed Jan 15 11:51:38 2014 +0000 ArmPlatformPkg/PeiServicesTablePointerLib: Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15120 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d6a5aee0ba4231fe0227c7c08e4203e4ad6d377 Author: Ruiyu Ni Date: Wed Jan 15 07:51:22 2014 +0000 Follow UEFI spec to convert unrecognized device path structure from/to hex dump text. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15119 6f19259b-4bc3-4df7-8a09-765794883524 commit 875670e2c624119d8bc6d463b90433cf9b92d099 Author: Ruiyu Ni Date: Wed Jan 15 07:48:05 2014 +0000 Update Debug Agent initialization message to change the version string from "1.3.1" to "1.4" Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15118 6f19259b-4bc3-4df7-8a09-765794883524 commit d6211ea1f3cca982b55f159c94309bba968f4af6 Author: Ruiyu Ni Date: Wed Jan 15 07:46:38 2014 +0000 Change the library global variable to add library name prefix to avoid potential compilation failure. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15117 6f19259b-4bc3-4df7-8a09-765794883524 commit 620f846f49182b2bdcb406a769b04c15790b2443 Author: Fu Siyuan Date: Wed Jan 15 07:19:58 2014 +0000 Fix bug that PXEv4 boot fail if PXEv6 is performed firstly. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15116 6f19259b-4bc3-4df7-8a09-765794883524 commit ffd332cac1e28051533efb295242df959888d7bb Author: Gao, Liming Date: Wed Jan 15 02:17:30 2014 +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 Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15115 6f19259b-4bc3-4df7-8a09-765794883524 commit ffdb421ca50c3bb4b31f89707da4c99ca8299a77 Author: Gao, Liming Date: Wed Jan 15 02:16:57 2014 +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 Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15114 6f19259b-4bc3-4df7-8a09-765794883524 commit 2405af19936960172d3ad0ae895691bd273a3215 Author: Olivier Martin Date: Tue Jan 14 15:31:01 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15113 6f19259b-4bc3-4df7-8a09-765794883524 commit 5511b319f2adcadbff6590380f84537349b0395b Author: Shumin Qiu Date: Tue Jan 14 07:30:50 2014 +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 Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15112 6f19259b-4bc3-4df7-8a09-765794883524 commit 9938c13d45f1f0860369278a1e61a6fce8bfc7ec Author: Gao, Liming Date: Tue Jan 14 06:05:12 2014 +0000 Update FMP Header file Comments per UEFI2.4A Signed-off-by: Gao, Liming Reviewed-by: Qiu, Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15111 6f19259b-4bc3-4df7-8a09-765794883524 commit ed95ad4e40a823e82e0ac09c1bbe2a8e1684f90e Author: Eric Dong Date: Tue Jan 14 02:19:30 2014 +0000 Update the comments to follow spec update. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15110 6f19259b-4bc3-4df7-8a09-765794883524 commit 49bb76ff717a8a02e23ef0585b142e5117fbaee1 Author: Jaben Carsey Date: Mon Jan 13 18:52:48 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15109 6f19259b-4bc3-4df7-8a09-765794883524 commit 8da53ddd3b8a7e670fb1bdabe134f0ce7fc451a3 Author: Olivier Martin Date: Mon Jan 13 18:52:12 2014 +0000 ShellPkg: remove unreachable break statements Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15108 6f19259b-4bc3-4df7-8a09-765794883524 commit 8844288c4e0c67cf7e765a92aafe62f76e3e86b1 Author: Jaben Carsey Date: Mon Jan 13 18:47:18 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15107 6f19259b-4bc3-4df7-8a09-765794883524 commit b00c06f018bb86bec276dcd8e3038e0a06221b09 Author: Olivier Martin Date: Mon Jan 13 17:47:17 2014 +0000 EdkShellPkg/ShellR64.patch: Update patch to fix RVCTLINUX build Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15106 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cf782218443f77249de07f366d53023d75c3701 Author: jyao1 Date: Mon Jan 13 13:42:42 2014 +0000 Fix typo in PCD description in SecurityPkg. Signed-off by: jiewen yao Reviewed by: guo dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15105 6f19259b-4bc3-4df7-8a09-765794883524 commit 5109015c9a0b241fc3181cf874f9681ff741f3eb Author: jyao1 Date: Mon Jan 13 13:25:30 2014 +0000 Follow UEFI2.4.a spec, deprecate 6 hash algo. Signed-off by: jiewen yao Reviewed by: qin long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15104 6f19259b-4bc3-4df7-8a09-765794883524 commit e958b94662d2a5cd838d59b463dcb38a1ccfb56b Author: Jaben Carsey Date: Mon Jan 13 07:30:08 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15103 6f19259b-4bc3-4df7-8a09-765794883524 commit 483b86b918fad5bfe8ecf3d4e2b6655a26e07d2d Author: Shumin Qiu Date: Mon Jan 13 07:28:01 2014 +0000 Set the type of return value from function 'LoadVariablesFromFile' in 'DmpStore.c' to match the type of 'ShellStatus'. Signed-off-by: Shumin Qiu Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15102 6f19259b-4bc3-4df7-8a09-765794883524 commit 66bd412ad4f76cef8971445197314acd2be5e651 Author: Shumin Qiu Date: Mon Jan 13 05:09:27 2014 +0000 Add a new header file to define Adapter Information Protocol. Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15101 6f19259b-4bc3-4df7-8a09-765794883524 commit 37eae4c7d86135b2acd33a32bdf99d8e7759785a Author: Ruiyu Ni Date: Mon Jan 13 03:28:01 2014 +0000 Add EFI_FILE_PROTOCOL_LATEST_REVISION macro to SimpleFileSystem.h. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15100 6f19259b-4bc3-4df7-8a09-765794883524 commit 8cb92971e491cddd59b74eb24bf403c97d37cab1 Author: Fu Siyuan Date: Mon Jan 13 02:53:50 2014 +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 Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15099 6f19259b-4bc3-4df7-8a09-765794883524 commit 20182c7ea10f9f2ec48037ad7b0338185e45ecac Author: Ruiyu Ni Date: Sat Jan 11 03:21:21 2014 +0000 Fix GCC build failure. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15098 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f7f0697b7dcada75704f2c54b816cf79448010b Author: Jaben Carsey Date: Fri Jan 10 22:34:13 2014 +0000 ShellPkg: add the last PCIe extended capability decodings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15097 6f19259b-4bc3-4df7-8a09-765794883524 commit e1c9edd6b6ea5e78f02e382b254de40cf708d20c Author: Jaben Carsey Date: Fri Jan 10 22:30:37 2014 +0000 MdePkg: add missing #defines for decoding PCIe 2.1 extended capability structures Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15096 6f19259b-4bc3-4df7-8a09-765794883524 commit 75a5e2ef4e3b3a3c1d25ef0be3621edf541237c3 Author: Jaben Carsey Date: Fri Jan 10 16:42:45 2014 +0000 ShellPkg: remove potential memory leak with new apps on old shell This pointer never gets free when running new apps on the old shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15095 6f19259b-4bc3-4df7-8a09-765794883524 commit 012305d551c953b6581ec38ef4534355e428cc8e Author: Jaben Carsey Date: Fri Jan 10 16:41:54 2014 +0000 ShellPkg: remove double free operation This pointer gets free twice and this does not work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15094 6f19259b-4bc3-4df7-8a09-765794883524 commit c357fd6a1f79e2d7b0a1bd01994b8d33925bfff5 Author: Olivier Martin Date: Fri Jan 10 11:27:31 2014 +0000 ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 The System Memory region might be out of the 32-bit memory space. This change has been validated on the FVP AArch64 model using 4GB of DRAM at 0x8_0000_0000: - # System Memory (2GB) - gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 - gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000 + # System Memory (4GB) + gArmTokenSpaceGuid.PcdSystemMemoryBase|0x800000000 + gArmTokenSpaceGuid.PcdSystemMemorySize|0x100000000 EFI Shell and Linux kernel boot successfully. Note: This change has not been validated on AArch32. I expect some early assembly code to not work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15093 6f19259b-4bc3-4df7-8a09-765794883524 commit 18b24f924f06f2345c0410d145d14e1a9a500dc8 Author: Fu Siyuan Date: Fri Jan 10 08:24:29 2014 +0000 Fix bug in unload function: Check if component name protocol exist, only uninstall it when it really exists. Signed-off-by: Fu Siyuan Reviewed-by: Tian, Feng Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15092 6f19259b-4bc3-4df7-8a09-765794883524 commit 9325f68430361597e811f2ae2ad88a4b3440da09 Author: Ruiyu Ni Date: Fri Jan 10 07:29:32 2014 +0000 Update PcAtChipsetPkg package version from 0.2 to 0.3 Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15091 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a2326aff75d4581dfc526f9011ad004d8b7af72 Author: Feng Tian Date: Fri Jan 10 07:15:52 2014 +0000 MdeModulePkg/NvmExpressDxe: Fix a bug in NvmExpressDxe driver’s Unload() that forget to uninstall the DriverSupportedEfiVersionProtocol Signed-off-by: Feng Tian Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15090 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bc3256ca6d439ebf5d85d5e74e5f3e68df14130 Author: Gao, Liming Date: Fri Jan 10 05:25:50 2014 +0000 Sync BaseTool trunk (version r2640) into EDKII BaseTools. Signed-off-by: Gao, Liming Reviewed-by: Liu, Jiang A git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15089 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d9e16963ee86478776e2f504a776ec712fb0c77 Author: Ruiyu Ni Date: Fri Jan 10 04:57:57 2014 +0000 New EdkShell binaries. Update EdkShellBinPkg.dec version from 0.4 to 0.5. Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15088 6f19259b-4bc3-4df7-8a09-765794883524 commit 54d5bb7d16536cab30d782825b0d342f4e02ab4c Author: Ruiyu Ni Date: Fri Jan 10 03:42:36 2014 +0000 Fix a bug in DebugPort driver's Unload() that leaves the DriverBinding/ComponentName(2) installed. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15087 6f19259b-4bc3-4df7-8a09-765794883524 commit 554dddfcd938be621514593d2b2d0d86f42579ac Author: Jeff Fan Date: Fri Jan 10 02:48:49 2014 +0000 Fix bug when reserve stack space to fill exception context. Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15086 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d13123720d2ac07155f98764e527c2fe5598ade Author: Ruiyu Ni Date: Fri Jan 10 02:44:43 2014 +0000 New FatDxe binary. Update DEC revision to 0.3. Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15085 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ab63eb9e0abef7afa3aab364cb4268752994bc8 Author: Long, Qin Date: Fri Jan 10 02:30:22 2014 +0000 Update CryptoPkg version: 0.92 -> 0.93 Signed-off-by: Long, Qin Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15084 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e63fc9de941fd4e7d075feb5267f5cf96a80d45 Author: Ruiyu Ni Date: Fri Jan 10 01:52:24 2014 +0000 Add the feature "dmpstore -l" and "dmpstore -s". The file format is as below: := + := Each variable representation in the file has a CRC32 value which can provide a mechanism to detect the file modification. When any CRC32 is incorrect, dmpstore rejects to load the variables from the file. Signed-off-by: Ruiyu Ni Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15083 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a140833977300023e2188644ef81654aeafd826 Author: Tian, Feng Date: Fri Jan 10 01:43:02 2014 +0000 Updates MdeModulePkg package version from 0.92 to 0.93 Signed-off-by: Tian, Feng Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15082 6f19259b-4bc3-4df7-8a09-765794883524 commit 7527b53dcbd17ce26636c908de8f84d2e57d3cba Author: Dong Guo Date: Fri Jan 10 01:24:51 2014 +0000 Upgrade package version to 0.93 Signed-off-by: Dong Guo Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15081 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d92c2246c36fa4d7c1211a611132e18805bdf6c Author: Jeff Fan Date: Fri Jan 10 01:21:14 2014 +0000 Update SourceLevelDebugPkg version: 0.85->0.86 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15080 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ad15074f4e5538341bbf256ecbdb42a1f3fed05 Author: Jeff Fan Date: Fri Jan 10 01:20:26 2014 +0000 Update UefiCpuPkg version: 0.2->0.3 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15079 6f19259b-4bc3-4df7-8a09-765794883524 commit da69cde194b45f99a428eb48110579fae0375fb6 Author: Jeff Fan Date: Fri Jan 10 01:19:03 2014 +0000 Update IntelFrameworkModulePkg version: 0.92->0.93 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15078 6f19259b-4bc3-4df7-8a09-765794883524 commit e21893a8010210775a8dd8e663570fd0143d81ba Author: Jeff Fan Date: Fri Jan 10 01:18:20 2014 +0000 Update IntelFrameworkPkg version: 0.92->0.93 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15077 6f19259b-4bc3-4df7-8a09-765794883524 commit a1d20250e539b9b7d60d4887db8d5650fd4de2de Author: Jaben Carsey Date: Thu Jan 9 21:55:03 2014 +0000 MdePkg: Add PCI Express 2.1 and 3.0 structures This adds PCI Express extended capabilities structures. These structures are required for enhancements to the shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15076 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c5a34d485eb200c81f89ebc8553a77167ba2c44 Author: Olivier Martin Date: Thu Jan 9 19:15:06 2014 +0000 MmcDxe: Perform diagnostics specifically on the requested controller In RunDiagnostics, find the controller specified by ControllerHandle and run diagnostics only on that controller, returning EFI_UNSUPPORTED if it isn't in the driver's pool of managed devices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15075 6f19259b-4bc3-4df7-8a09-765794883524 commit b4fdedc2543c6d193c70ae5339a56824a9729e68 Author: Olivier Martin Date: Thu Jan 9 19:06:25 2014 +0000 MmcDxe: Adding eMMC support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15074 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f67c7ffa1ed419e44084b2679c49a2f4e95ba65 Author: Jaben Carsey Date: Thu Jan 9 18:05:24 2014 +0000 ShellPkg: remove memory leak in file handle list The shell was not freeing sufficient memory when freeing a list of files. The structure contained a pointer which was being left behind. I made a new function to replace the shared freeing function which frees the “Path” member of the SHELL_COMMAND_FILE_HANDLE structure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15073 6f19259b-4bc3-4df7-8a09-765794883524 commit 4922715d85564441d7cf16bac1a1fa67673f6877 Author: Jaben Carsey Date: Thu Jan 9 18:02:26 2014 +0000 ShellPkg: Fix NSH parsing This skips lines in NSH files that are completely comments. This reduces the memory overhead and the later processing. This also frees memory correctly when a second memory allocation fails. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15072 6f19259b-4bc3-4df7-8a09-765794883524 commit c1f9c34621fae9bec20c2b2fce134b9dba2b0ba1 Author: Jaben Carsey Date: Thu Jan 9 17:59:46 2014 +0000 ShellPkg: Remove memory leak from file list usage This change removes an un-used parameter that was then causing a leak since the memory was assumed to be used. This also verifies that the list is freed when no longer needed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15071 6f19259b-4bc3-4df7-8a09-765794883524 commit 705bffb568b36813ff6eccbe5a93cffb0b143044 Author: Jaben Carsey Date: Thu Jan 9 16:54:13 2014 +0000 ShellPkg: Add more output to PCI command for extended configuration. there is a new non-spec parameter "-_e" which allows additional information output to be controlled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15070 6f19259b-4bc3-4df7-8a09-765794883524 commit 2fa77862fd4e962c81524ffd667b62a6adbcff22 Author: Elvin Li Date: Thu Jan 9 08:47:03 2014 +0000 If the driver does not start before, we do not disconnect driver and we must still uninstall other protocols on image handle. The original implementation of error return is not correct. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15069 6f19259b-4bc3-4df7-8a09-765794883524 commit e6aaef28b8cdc06ae22bdd5c5813746e9495012d Author: Fu Siyuan Date: Thu Jan 9 07:05:09 2014 +0000 Update NetworkPkg package version to 0.94. Signed-off-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15068 6f19259b-4bc3-4df7-8a09-765794883524 commit c93bcb7ef453337f9daae42c6b27492c4f6555ed Author: Eric Dong Date: Thu Jan 9 05:59:53 2014 +0000 Return to BMM page if parse the file info failed. Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15067 6f19259b-4bc3-4df7-8a09-765794883524 commit 21d9882c61b5ec6276d8c5bb39b6ac3c1e9a7ea4 Author: Gao, Liming Date: Thu Jan 9 05:25:56 2014 +0000 Clarify PcdPeiCoreMaxPeimPerFv description that means the maximum supported file count in one FV, not only PEIM. Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15066 6f19259b-4bc3-4df7-8a09-765794883524 commit e3a7caeaed4c007962a697943c541735ae5a4ebe Author: Gao, Liming Date: Thu Jan 9 05:15:53 2014 +0000 Updates MdePkg package version from 1.03 to 1.04 Signed-off-by: Gao, Liming Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15065 6f19259b-4bc3-4df7-8a09-765794883524 commit bad2be3ed8349fc85038412c81d77898508e3fb2 Author: Star Zeng Date: Thu Jan 9 02:57:10 2014 +0000 MdeModulePkg FaultTolerantWrite: Let FaultTolerantWrite driver to depend on gEfiRuntimeArchProtocolGuid to consume gBS->CalculateCrc32(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15064 6f19259b-4bc3-4df7-8a09-765794883524 commit f5d2935d7a2123311ac66d03e4bee078c9da8315 Author: Liming Gao Date: Thu Jan 9 01:54:43 2014 +0000 Correct function comments of S3BootScriptCloseTable(). Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15063 6f19259b-4bc3-4df7-8a09-765794883524 commit e8480a183c838a95b9ee78b5a5efa7aa57de9425 Author: Liming Gao Date: Thu Jan 9 01:53:33 2014 +0000 Correct function comments of S3BootScriptCloseTable(). Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15062 6f19259b-4bc3-4df7-8a09-765794883524 commit f9ed6c93af4d21052c22e8c032cb9c426f75b50c Author: Yi Li Date: Thu Jan 9 01:32:58 2014 +0000 Add processor family 2 definition in SMBIOS header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yi Li Reviewed by: Star Zeng Reviewed by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15061 6f19259b-4bc3-4df7-8a09-765794883524 commit 03bc7c2b09c6f36930a5138c7727c0c4048539a7 Author: Shumin Qiu Date: Thu Jan 9 00:30:27 2014 +0000 Add code to check whether the pointer 'NewBuffer' in 'FileHandelWrappers.c' and the pointer 'FoundVarName' in 'Dmpstore.c' are NULL before used. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15060 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b716fd7649f13ca6c214aa47f39ab00212c7d6e Author: Eric Dong Date: Wed Jan 8 08:21:22 2014 +0000 Rollback the patch 15054. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15059 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f497f8f71fa1c38b0b0204ff06f1d6d8256d8f1 Author: Elvin Li Date: Wed Jan 8 03:47:43 2014 +0000 Check if component name protocol exist, uninstall it when it really exists. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15058 6f19259b-4bc3-4df7-8a09-765794883524 commit 94caa81c35093b4e1b6fb043e1290f3ca24f8c2c Author: oliviermartin Date: Tue Jan 7 11:20:14 2014 +0000 ArmPlatformPkg/ArmFvpDxe: Fixed the line endings The line endings for EDK2 source files should be CRLF. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15057 6f19259b-4bc3-4df7-8a09-765794883524 commit 0befb08d23593e0c6fcb0b7fc45bce74b822cced Author: Star Zeng Date: Tue Jan 7 09:28:33 2014 +0000 MdePkg PcdLib: Except for SizeOfBuffer is greater than the maximum size supported, align the behavior of LibPcdSetPtr with LibPcdSetN to handle error status returned. Let the comments to be aligned with code behavior for LibPcdSetX APIs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15056 6f19259b-4bc3-4df7-8a09-765794883524 commit f0c5095b274b2b35867d5245119aa1aba0acc87e Author: Eric Dong Date: Tue Jan 7 08:07:47 2014 +0000 This patch fix date/time op-code shows abnormal. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15055 6f19259b-4bc3-4df7-8a09-765794883524 commit eff077992ab3fa9d4a71d11c2f3cf507d2c88e2a Author: Eric Dong Date: Tue Jan 7 07:34:20 2014 +0000 Not update the status until parse the file info success. Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15054 6f19259b-4bc3-4df7-8a09-765794883524 commit 44c8400a7de8a4c3e183c64ee8ff689b8ef4a90c Author: Jeff Fan Date: Tue Jan 7 06:24:16 2014 +0000 MtrrDebugPrintAllMtrrs() should loop until the max physical address is reached. GetMemoryCacheTypeFromMtrrType () should return the default memory type instead of UC type for MTRR_CACHE_INVALID_TYPE. Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15053 6f19259b-4bc3-4df7-8a09-765794883524 commit 31c2a2c7c07365abd3ee9389b390ac4c8b7d4aac Author: Ruiyu Ni Date: Tue Jan 7 02:23:10 2014 +0000 Enhance Shell 2.0 to not depend on keyboard driver implementation to fix the "CTRL+s" pause malfunction issue. Signed-off-by: Ruiyu Ni Reviewed-by: Carsey Jaben git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15052 6f19259b-4bc3-4df7-8a09-765794883524 commit de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe Author: Shumin Qiu Date: Tue Jan 7 01:51:08 2014 +0000 Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether pointer 'DataBuffer' in 'DmpStore.c' is NULL before used. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15051 6f19259b-4bc3-4df7-8a09-765794883524 commit 56a9e699dd04da798417732265404b70fe879866 Author: Star Zeng Date: Mon Jan 6 03:36:31 2014 +0000 MdeModulePkg CdExpressPei: Use correct PeiServices pointer to call low level BlockIoPpi->ReadBlocks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15050 6f19259b-4bc3-4df7-8a09-765794883524 commit 979fc9eab575aa33bdcccec709e1791cd1cf5148 Author: Fu Siyuan Date: Mon Jan 6 03:01:09 2014 +0000 Bug fix: IpSec driver treats BOOLEAN as EFI_STATUS in error handling code. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15049 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ff272ee837ebdfba6b72ed3dcf5e7ab136d8af0 Author: Fu Siyuan Date: Mon Jan 6 02:17:12 2014 +0000 Fix “reconnect -r” ASSERT after VLAN configured. Signed-off-by: Fu Siyuan Reviewed-by: Zhang, Chao B Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15048 6f19259b-4bc3-4df7-8a09-765794883524 commit ecec42044078d60fc517d3474c0ebf82d0f15633 Author: Fu Siyuan Date: Mon Jan 6 02:08:05 2014 +0000 Update PXE driver to support PXE forced mode. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15047 6f19259b-4bc3-4df7-8a09-765794883524 commit c90decb997484a34652a8ca2a90b358f929d41f2 Author: Laszlo Ersek Date: Fri Jan 3 19:57:36 2014 +0000 OvmfPkg: QemuFwCfgLib: implement for SEC The QemuFwCfgSecLib library instance - is stateless, - has no library constructor, - is available to SEC client code, - must be queried with QemuFwCfgIsAvailable() before use, - is restricted to SEC in order to limit the explicit querying requirement. (There is no current user.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15046 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ce7e221e70214b094e2e54d0e6dc9491a742dd3 Author: Laszlo Ersek Date: Fri Jan 3 19:57:26 2014 +0000 OvmfPkg: QemuFwCfgLib: extract stateful implementation The current implementation of QemuFwCfgLib is: - stateful - implicitly initialized in the library constructor. OVMF's SEC runs from read-only memory/flash. When the library is linked into a SEC binary (which currently never happens), the "mQemuFwCfgSupported" global variable becomes read-only, making the library non-functional. Extract the stateful, implicitly initialized library implementation into a separate file, making room for a stateless, explicitly queried implementation that's usable in SEC. Restrict the stateful implementation to the current, non-SEC clients. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15045 6f19259b-4bc3-4df7-8a09-765794883524 commit 0dc231c9bd1a5aecfbcd373a50dc348a5dfbd38a Author: Laszlo Ersek Date: Fri Jan 3 19:57:17 2014 +0000 OvmfPkg: QemuFwCfgLib: introduce InternalQemuFwCfgIsAvailable() This internal function allows separation of library-internal and for-clients external availability of fw_cfg. The interface contract of QemuFwCfgIsAvailable() is changed so that now it may modify fw_cfg state. All current users are compliant with the new contract. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15044 6f19259b-4bc3-4df7-8a09-765794883524 commit e55bf53ba9f59f16a6dabe8ac08db25bc91df770 Author: Jordan Justen Date: Fri Jan 3 19:19:43 2014 +0000 OvmfPkg/create-release.py: Read License.txt files Rather than embedding the License information in this script, we now read the License.txt files from MdePkg & FatBinPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15043 6f19259b-4bc3-4df7-8a09-765794883524 commit 57dcb83f5963b5e88c78381d1bc63db1fbb8f3ed Author: Jordan Justen Date: Fri Jan 3 19:19:38 2014 +0000 OvmfPkg/create-release.py: Support git hash versions Previously we would run 'git svn info' if a .svn directory wasn't found. This would fail if the current local commit was not from git-svn. Now we look for the svn info in the output from git log. If the svn version is not in a git-svn-id tag from git log, then we use the git commit hash. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15042 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d3d4a7e9fa89e66b27b5769e129e9234c0e4455 Author: Jordan Justen Date: Fri Jan 3 19:19:32 2014 +0000 OvmfPkg/create-release.py: Support GCC44 through GCC47 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15041 6f19259b-4bc3-4df7-8a09-765794883524 commit 4272d1a7c190c6f74f89c32fdf48f795fe9ac25a Author: Jordan Justen Date: Fri Jan 3 19:19:26 2014 +0000 OvmfPkg/create-release.py: Remove '-alpha' from filename The source control revision is still the produced filename. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15040 6f19259b-4bc3-4df7-8a09-765794883524 commit e3a0222a9b4f1733985b24d7218444f4166dc085 Author: Jordan Justen Date: Fri Jan 3 19:19:20 2014 +0000 OvmfPkg/README: Update OVMF status Remove 'Alpha' status tag. Let's just refer to the OVMF releases by their revision control version. Remove 'stabilize UEFI Linux' to-do item. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15039 6f19259b-4bc3-4df7-8a09-765794883524 commit 210c880fa95ff1d441f9dda18b9d6dc45496182e Author: Jordan Justen Date: Fri Jan 3 19:19:14 2014 +0000 OvmfPkg/README: Update information about running OVMF The new instructions document -pflash & -bios options for running OVMF on QEMU. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15038 6f19259b-4bc3-4df7-8a09-765794883524 commit 300f2c6ad5300c473037910200cf2d24ab38ecbc Author: Liming Gao Date: Fri Jan 3 03:27:18 2014 +0000 Correct function comments of S3BootScriptSaveDispatch2(). Signed-off-by: Liming Gao Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15037 6f19259b-4bc3-4df7-8a09-765794883524 commit 18d3e280624f0748237b82fdf7e10b1e25797a01 Author: Liming Gao Date: Thu Jan 2 07:16:09 2014 +0000 Update the heap migration logic to avoid memory overflow. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15036 6f19259b-4bc3-4df7-8a09-765794883524 commit d958a7e0bca33102c27eaa86b07de196b7bba098 Author: Liming Gao Date: Thu Jan 2 02:38:32 2014 +0000 Correct the RemainingPages calculation in PEI AllocatePages service. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15035 6f19259b-4bc3-4df7-8a09-765794883524 commit 91403ce938695e2ea2f27ac1ce796812a0aa22e8 Author: Liming Gao Date: Tue Dec 31 07:19:52 2013 +0000 Update MemoryAllocationLib AllocateAlignedPages API comments for memory overflow ASSERT case. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15034 6f19259b-4bc3-4df7-8a09-765794883524 commit 1346352d5210661c92ae4343c9a69d9aa3b730e1 Author: Liming Gao Date: Tue Dec 31 07:19:09 2013 +0000 Update MemoryAllocationLib.AllocateAlignedPages API comments for memory overflow ASSERT case. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15033 6f19259b-4bc3-4df7-8a09-765794883524 commit 27bace9b3ee288a2befb63a405cc0882882ef136 Author: Eric Dong Date: Tue Dec 31 04:46:53 2013 +0000 Keep consistent about the return value between the caller and callee. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15032 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e108dfd7dcd495732e86d2d1339364033512ecf Author: Shumin Qiu Date: Tue Dec 31 04:01:17 2013 +0000 Set the type of variable 'StatusCode' as SHELL_STATUS to match the parameter type of function 'SetLastError'. Signed-off-by: Shumin Qiu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15031 6f19259b-4bc3-4df7-8a09-765794883524 commit 6307a8b6dc054339db3b3d9733f2ce1a248b483c Author: Eric Dong Date: Mon Dec 30 06:07:29 2013 +0000 Rollback the change 15021. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15030 6f19259b-4bc3-4df7-8a09-765794883524 commit af8aa62d5941518e6397c13a567a06b5eabd68d2 Author: David Woodhouse Date: Mon Dec 30 01:14:13 2013 +0000 MdePkg: First instruction after clearing CR0.PE must be a far jmp. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Woodhouse Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15029 6f19259b-4bc3-4df7-8a09-765794883524 commit 321c89c208f4b1afaab37c33cf355dba11090ed5 Author: David Woodhouse Date: Mon Dec 30 01:12:10 2013 +0000 Clean up hard-coded offsets and other utter bogosity in Thunk16.S Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Woodhouse Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15028 6f19259b-4bc3-4df7-8a09-765794883524 commit efd6b412c65a157ac040c9ed70024ed5ad77af61 Author: Star Zeng Date: Sun Dec 29 07:14:57 2013 +0000 MdeModulePkg Pcd DXE: Handle the case gPcdDataBaseHobGuid HOB is not present. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15027 6f19259b-4bc3-4df7-8a09-765794883524 commit b8b86ec6e002f135e3343454f30a951cdb10e1ee Author: Jeff Fan Date: Fri Dec 27 08:10:37 2013 +0000 Update HostSequenceNo for Command packet instead for Response packet. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15026 6f19259b-4bc3-4df7-8a09-765794883524 commit 96c83393f0fd1e186d016a2e26e5aa20b2ec75a8 Author: Jeff Fan Date: Fri Dec 27 06:14:25 2013 +0000 Remove Debug message output from UpdateMailboxContent(), it may cause Mailbox locker nested issue. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15025 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a0c0e15950b1a30290c97dcbde7a20afdbd6dfe Author: Laszlo Ersek Date: Thu Dec 26 21:05:17 2013 +0000 OvmfPkg: QemuFwCfgLib: drop bogus dependency on UefiBootServicesTableLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15024 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a9fab7d72dc7f0bf4cae454e403bd939ca6f32d Author: Laszlo Ersek Date: Thu Dec 26 20:44:29 2013 +0000 OvmfPkg: PlatformPei: reuse PublishPeiMemory() in MemDetect() Although SVN r14944 ("OvmfPkg: introduce PublishPeiMemory") copied a big chunk of code from MemDetect(), calling the new PublishPeiMemory() function in MemDetect() could not have replaced the original code in the latter. However, with the help of the previous patch, we can do it now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15023 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ab36385be96377cd97299a975ca9456bbfd887b Author: Laszlo Ersek Date: Thu Dec 26 20:44:20 2013 +0000 OvmfPkg: PlatformPei: simplify memory range expressions in MemDetect() Exploit that (MemoryBase + MemorySize) always equals LowerMemorySize. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15022 6f19259b-4bc3-4df7-8a09-765794883524 commit 80873def607ba8056e5aab40eaa3be07e9a5ec19 Author: Eric Dong Date: Thu Dec 26 04:19:37 2013 +0000 Keep consistent about the return value between the caller and callee. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15021 6f19259b-4bc3-4df7-8a09-765794883524 commit b8b5ff5acd0d292bcd804e589d28677af5098573 Author: Elvin Li Date: Wed Dec 25 07:52:55 2013 +0000 Update XhcWaitOpRegBit to take Timout argument as microsecond. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15020 6f19259b-4bc3-4df7-8a09-765794883524 commit 5142926433b4fbcb94a2b63d52ac1489db407826 Author: Shumin Qiu Date: Wed Dec 25 00:55:33 2013 +0000 Fix ECC errors:1.Update the comments in function headers to follow the Doxygen special documentation. 2.Make the first line of text in a comment block end with a period. 3.Update the member variable name for SHELL_OPERATION_TYPES to follow the rules "Must contain lower case characters". 4. Return type of a function should exist and in the first line. Signed-off-by: Shumin Qiu Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15019 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fa0da7d52815979be31b8252aae839883dc7b0c Author: Laszlo Ersek Date: Tue Dec 24 07:25:31 2013 +0000 Add default way for switch in function 'RunCommandOrFile' of 'Shell.c'. Signed-off-by: Laszlo Ersek Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15018 6f19259b-4bc3-4df7-8a09-765794883524 commit bdebd2cecf015a5feb11e99269731cac606167e8 Author: Wu Jiaxin Date: Mon Dec 23 08:43:09 2013 +0000 Fix a bug for vlan ping failure. Signed-off-by: Wu Jiaxin Reviewed-by: Fu Siyuan Reviewed-by: Jin Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15017 6f19259b-4bc3-4df7-8a09-765794883524 commit da660118bd391d1f421f99921f9f15a66a8fc7ea Author: Star Zeng Date: Mon Dec 23 06:41:36 2013 +0000 MdePkg PcdLib: Follow the comment of LibPcdGetNextToken to ASSERT when an invalid TokenNumber input. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15016 6f19259b-4bc3-4df7-8a09-765794883524 commit adcd7381bb2ab1108b13a838218d8d59e09b54d4 Author: Star Zeng Date: Mon Dec 23 06:33:12 2013 +0000 MdeModulePkg Pcd: Extend PcdVpdBaseAddress to support PcdsPatchableInModule type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15015 6f19259b-4bc3-4df7-8a09-765794883524 commit 5bd12b0555989b714d47abe628d846861d350efe Author: Jaben Carsey Date: Fri Dec 20 22:33:01 2013 +0000 ShellPkg: fix DmpStore for deleting This change allows DmpStore command to delete all variables whereas before it would stop after a single deletion due to looping errors. It uses a recursive function and deletes the last item returned from GetNextVariableName() first and then goes "backwards" to the first items. This can't delete authenticated variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15014 6f19259b-4bc3-4df7-8a09-765794883524 commit 4692bc0b81d822e467435c7a7b9e6470dff1b8d2 Author: Jeff Fan Date: Fri Dec 20 05:49:15 2013 +0000 Only save HostSequenceNo for new command in Debug Timer handler. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15013 6f19259b-4bc3-4df7-8a09-765794883524 commit f3b113bf614119f4b54858f909606954be75b3f3 Author: Jeff Fan Date: Fri Dec 20 05:42:41 2013 +0000 1. Only dump CPU Context and CpuDeadLoop () for CPU exception. 2. mEnabledInterruptNum is total enabled interrupt number, InterruptType should less than mEnabledInterruptNum. Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15012 6f19259b-4bc3-4df7-8a09-765794883524 commit 6bd644638de46eeecb50292b2851a5045ebf1cac Author: Jaben Carsey Date: Fri Dec 20 01:13:36 2013 +0000 ShellPkg: pre-verify split commands This makes sure that all parts of commands split via pipe operation are valid before starting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15011 6f19259b-4bc3-4df7-8a09-765794883524 commit 12a27a6d81246493ea4cf66e97172ff252ca38a2 Author: Jaben Carsey Date: Thu Dec 19 22:09:17 2013 +0000 ShellPkg: API name typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15010 6f19259b-4bc3-4df7-8a09-765794883524 commit 404b3f439492fac48207f5a8cb7ecc89f4287100 Author: Jaben Carsey Date: Thu Dec 19 22:03:37 2013 +0000 ShellPkg: fix whitespace character trimming This makes TrimSpaces() trim tab characters off the end of the string also (not just the beginning). Also updates loop to prevent buffer underrun. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15009 6f19259b-4bc3-4df7-8a09-765794883524 commit e3eb7d825adae351f1a45e7809c8506b364ee059 Author: Jaben Carsey Date: Thu Dec 19 21:55:13 2013 +0000 ShellPkg: CTRL-C stops a running script at the same time This makes CTRL-C stop a running script after trying to stop the command. And adds comments to describe the behavior more clearly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15008 6f19259b-4bc3-4df7-8a09-765794883524 commit 806c49db0538080ac397892c750b86d1c55d32af Author: Jaben Carsey Date: Thu Dec 19 16:05:34 2013 +0000 ShellPkg: Refactor the RunCommand API This almost completely splits the RunCommand API into sub-routines. - the ProcessCommandLineToFinal API handles replacing the a found alias and any found environment variables. This will redirect "-?" to "help", if necessary. Upon return, the command line is complete and finalized. It may still have redirection in it, and those will get chopped off later (but no further modifications occur). - the SetupAndRunCommandOrFile API handles updating and then later restoring StdIn, StdOut, and StdErr (and removing their information from the command line). It will call into RunCommandOrFile. - the RunCommandOrFile API divides the logic to RunInternalCommand, RunScriptFile, or running an .EFI file directly. - the RunInternalCommand API handles updating and then restoring Argc and Argv. It will run the internal command in between. - the SetLastError API handles updating of the environment variable "lasterror" - the DoHelpUpdateArgcArgv was changed to DoHelpUpdate and now works on the raw command line and not the argc/argv. This allows the processing to be moved earlier. Note this change has the following positive side effects (this eliminates unnecessary step): - Argc/Argv are only updated for internal commands (as they are library based) - no Argv/Argc/StdIn/StdOut/StdErr processing is done for file system changes. - The ProcessCommandLineToFinal API exists and it's critical to the ability to correctly pre-process split ("|") command lines ahead of time to verify their correctness. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15007 6f19259b-4bc3-4df7-8a09-765794883524 commit 8dcd84b9d756172401d26ab2bad66316a7061b65 Author: Shumin Qiu Date: Thu Dec 19 02:03:42 2013 +0000 Converse the return value from 'int' to 'BOOLEAN' for function ‘ContainsSplit’ in Shell.c. Signed-off-by: Shumin Qiu Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15006 6f19259b-4bc3-4df7-8a09-765794883524 commit 957914ee65e634eaa4743872ace6e9ac9ad446e4 Author: Laszlo Ersek Date: Wed Dec 18 19:57:57 2013 +0000 OvmfPkg: VirtioBlkInit(): log topology attributes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15005 6f19259b-4bc3-4df7-8a09-765794883524 commit 6476804e3cd2e1da23dee03024a21ab0e5c1f8ec Author: Laszlo Ersek Date: Wed Dec 18 19:57:46 2013 +0000 OvmfPkg: VirtioBlkInit(): expose virtio-blk topology in BlockIo UEFI spec virtio spec ======================================= ================================= LowestAlignedLba EFI_LBA (UINT64) alignment_offset u8 +-------------------------------------- +-------------------------------- | first LBA that is aligned to a | offset of first aligned | physical block boundary (SCSI | logical block | definition) LogicalBlocksPerPhysicalBlock UINT32 physical_block_exp u8 +-------------------------------------- +-------------------------------- | number of logical blocks per | # of logical blocks per | physical block [...] does not contain | physical block (log2) | an exponential value OptimalTransferLengthGranularity UINT32 opt_io_size le32 +-------------------------------------- +-------------------------------- | optimal transfer length granularity | optimal (suggested maximum) I/O | as a number of logical blocks [...] A | size in blocks | value of 0 means there is no reported | optimal transfer length granularity Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15004 6f19259b-4bc3-4df7-8a09-765794883524 commit 21479c3c80fa4742027537d91f57fbf469848208 Author: Laszlo Ersek Date: Wed Dec 18 19:57:36 2013 +0000 OvmfPkg/VirtioBlkDxe/VirtioBlk.c: rewrap overlong lines Lines should be no longer than 79 characters. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15003 6f19259b-4bc3-4df7-8a09-765794883524 commit 5cf69d48367ced77799af6554a00ad556f657a6c Author: Laszlo Ersek Date: Wed Dec 18 19:57:28 2013 +0000 OvmfPkg: IndustryStandard/VirtioBlk: introduce topology-related definitions Based on , which is the last text format revision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15002 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d17076b0084664a4ea3009117f767f35254f6be Author: Laszlo Ersek Date: Wed Dec 18 19:57:18 2013 +0000 OvmfPkg: IndustryStandard/VirtioBlk: add extra horizontal whitespace We're going to introduce a new macro and a new VIRTIO_BLK_CONFIG member that need realignment of existing definitions and comments. Separate out the whitespace changes in this patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15001 6f19259b-4bc3-4df7-8a09-765794883524 commit d4468cdf14e37bdbb35bff98c04e984d0622fcd1 Author: Ruiyu Ni Date: Wed Dec 18 05:51:22 2013 +0000 Rollback the change to EFI_BOOT_KEY_DATA structure since UEFI Spec adds the clarification that bitfields are ordered such that bit 0 is the least significant bit. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15000 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fdd2a818bc34ac9316adcc26522ca06bcce700b Author: Eric Dong Date: Wed Dec 18 03:02:52 2013 +0000 Update code to avoid using potential NULL pointer. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14999 6f19259b-4bc3-4df7-8a09-765794883524 commit e7831c9070bc832f7ef8eee58c99a66653a17d56 Author: Jaben Carsey Date: Tue Dec 17 22:23:05 2013 +0000 ShellPkg: Add missing function header comments I found that some function headers had insufficient/incorrect information. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14998 6f19259b-4bc3-4df7-8a09-765794883524 commit c81863953f2aca16b2347e7e9977a06fcd1f13aa Author: Jaben Carsey Date: Tue Dec 17 21:40:41 2013 +0000 ShellPkg: Fix "for" command statement initialization. The shell was failing to correctly parse up to the space only for “run (1 3)” and also losing the space for “in ” a b” c” for loop initialization. This fixes for initialization to be correct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14997 6f19259b-4bc3-4df7-8a09-765794883524 commit 06f1982a6498731d9ef96a16b3fcd5937f317bd8 Author: Laszlo Ersek Date: Tue Dec 17 18:17:55 2013 +0000 OvmfPkg: QemuFlashFvbServicesRuntimeDxe: fix out-of-LBA write access When QemuFlashWrite() is asked to write a range that includes the last byte of the LBA, then the byte that the function uses to switch the flash device back to read mode (ROMD mode in KVM speak) actually falls out of the LBA. Normally this doesn't cause visible problems. However, if the variable store and the firmware code are backed by separate flash devices, as implemented by [Qemu-devel] [PATCH v2] hw/i386/pc_sysfw: support two flash drives http://thread.gmane.org/gmane.comp.emulators.qemu/243678 plus [edk2] [edk2 PATCH] OvmfPkg: split the variable store to a separate file http://thread.gmane.org/gmane.comp.bios.tianocore.devel/5045/focus=5046 then the READ_ARRAY_CMD not only reaches a different LBA, it reaches a different qemu device. This results in a guest reboot soon after. Fix this by ensuring that we always stay within the LBA just written when issuing READ_ARRAY_CMD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14996 6f19259b-4bc3-4df7-8a09-765794883524 commit 077c7aeec07361fc36f8090be46959adb7d38873 Author: Eric Dong Date: Tue Dec 17 08:33:06 2013 +0000 Update code to support guid op nest in the statement. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14995 6f19259b-4bc3-4df7-8a09-765794883524 commit c5fba0fea419f796c229f787a8717f9c15ad87c5 Author: Fu Siyuan Date: Tue Dec 17 07:46:11 2013 +0000 Fix a bug in TCP driver’s component name print function. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14994 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b8e61be26dd303ffb88785bee63bdd1410b6234 Author: Liming Gao Date: Tue Dec 17 06:21:33 2013 +0000 Fix two issues in PeiCore. 1. HOB address is not 8 byte alignment. 2. FV with the max supported PEIM can't be dispatched. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14993 6f19259b-4bc3-4df7-8a09-765794883524 commit 98c4caa1e9504f87bda712f4df03c6817f869658 Author: Eric Dong Date: Tue Dec 17 05:00:17 2013 +0000 Get entire variable data for efi varstore at first time. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14992 6f19259b-4bc3-4df7-8a09-765794883524 commit 4636295f460da20b7c1e5db1283262167193bf77 Author: Ruiyu Ni Date: Tue Dec 17 05:00:10 2013 +0000 Add the missing assignment of EFI_DISK_IO2_TOKEN::Token in FlushDiskEx() implementation. Without the assignment, system may hang sometimes. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14991 6f19259b-4bc3-4df7-8a09-765794883524 commit c6cef635326906241a0856d833836f82959b11a5 Author: Shumin Qiu Date: Tue Dec 17 01:04:38 2013 +0000 Update code to ensure the pointer ‘CurrentName’ in function ‘PerformSingleMappingDisplay’ isn’t null before being processed. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14990 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f05676ddd1d8bfade58d7530afa173e513c9a62 Author: Shumin Qiu Date: Mon Dec 16 01:53:11 2013 +0000 Add a new line to initialize the variable “PassThruProtocol” in ConsoleWrapers.c to ensure the initialization not to be a part of its declaration. Signed-off-by: Shumin Qiu Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14989 6f19259b-4bc3-4df7-8a09-765794883524 commit f67eb9d8ba27a9303a9081daa2db374a7b77fbf5 Author: Star Zeng Date: Mon Dec 16 01:34:01 2013 +0000 MdeModulePkg CapsuleRuntimeDxe: Get PcdMaxSizeNonPopulateCapsule and PcdMaxSizePopulateCapsule by PcdGet32 in EntryPoint. PcdMaxSizeNonPopulateCapsule and PcdMaxSizePopulateCapsule are declared to support Dynamic, but used by FixedPcdGet32 in CapsuleRuntimeDxe. QueryCapsuleCapabilities is a runtime interface and PCD protocol can’t be used in runtime environment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14988 6f19259b-4bc3-4df7-8a09-765794883524 commit 4374c2e535edad27d8c4c6516d2f1bb68403afca Author: Chris Ruffin Date: Sun Dec 15 20:47:39 2013 +0000 OvmfPkg/QemuVideoDxe: child handles should have open parent protocol BY_CHILD_CONTROLLER The QemuVideoDxe driver creates child controller handles, so it is acting as a hybrid bus driver. The child handles should open the parent's bus protocol BY_CHILD_CONTROLLER to properly maintain the protocol usage count. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14987 6f19259b-4bc3-4df7-8a09-765794883524 commit cc31ac1e40034b631793e068d49acdfccb56e46d Author: Jaben Carsey Date: Fri Dec 13 23:53:59 2013 +0000 ShellPkg: add error messages into function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14986 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a5eb8069cc91e0334f3dfec17da672ac326fa55 Author: Jaben Carsey Date: Fri Dec 13 21:58:51 2013 +0000 ShellPkg: Refactor updating command line for help use Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14985 6f19259b-4bc3-4df7-8a09-765794883524 commit ceecdc62ab73e5b726630345865a512c780c134e Author: lpleahy leroy.p.leahy Date: Fri Dec 13 19:22:39 2013 +0000 Fix the non-blocking behavior for connect. The behavior was correct if the code polled the connect routine but was not correct when using select to complete the asynchronous request. This change fixes the select case by moving where some of the operations performed upon the connection completion. Signed-off-by: lpleahy leroy.p.leahy@intel.com Reviewed-by: Daniel Moura oxesoft@gmail.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14984 6f19259b-4bc3-4df7-8a09-765794883524 commit daf705847f33db1f7a17c1c5b2a01d8f8ccba0ac Author: Jaben Carsey Date: Fri Dec 13 18:45:43 2013 +0000 ShellPkg: Refactor change to current file system This moves the initialization for handling file system changes into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14983 6f19259b-4bc3-4df7-8a09-765794883524 commit 680db511530e8b4e12545cad97cd344aba930201 Author: Jaben Carsey Date: Fri Dec 13 18:18:27 2013 +0000 ShellPkg: Refactor Split/Pipe based command lines This moves the initialization for handling command lines with pipe ‘|’ into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14982 6f19259b-4bc3-4df7-8a09-765794883524 commit e94784c68de85297290b02153ac50c91cdf82b8c Author: Olivier Martin Date: Fri Dec 13 12:05:01 2013 +0000 ArmPlatformPkg/ArmFvpDxe: Added Virtio Block support Right now the ARM Platform driver does not do much, but I expect to move most platform specific code into platform specific driver in the future. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - ensure / document that the VIRTIO_BLK_DEVICE_PATH structure must be packed - fix whitespace damage in definition of "mVirtioBlockDevicePath" - the platform driver is added to all platform DSC and FDF files in the previous patch; this patch focuses on virtio only Change-Id: I3505bfc5b31085b8017bd9e6895a155bd7a2eee9 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14981 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e69576f532762743096bddf562d3d57a65986e5 Author: Olivier Martin Date: Fri Dec 13 12:03:55 2013 +0000 ArmPlatformPkg/ArmVExpressPkg: Added the empty 'ArmFvpDxe' platform UEFI driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - For uniformity, add the empty driver to ArmVExpress-RTSM-AEMv8Ax4-foundation.* too in this patch, not just ArmVExpress-RTSM-AEMv8Ax4.*. V4 added the empty driver to ArmVExpress-RTSM-AEMv8Ax4-foundation.* not sooner than the next patch, fusing it with other (= virtio) functionality. Let's split these changes cleanly. Change-Id: I7d635011c8d3ac59097c728b7c7786d8677c80cb Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14980 6f19259b-4bc3-4df7-8a09-765794883524 commit a1ac5791fffcd461b9dac857aede74e429b8a7e8 Author: Jeff Fan Date: Fri Dec 13 06:15:50 2013 +0000 Check Context before use it. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14979 6f19259b-4bc3-4df7-8a09-765794883524 commit b7ae87510788ac12529858b4cdd509f90c6451b2 Author: Jeff Fan Date: Fri Dec 13 04:46:47 2013 +0000 Fix meta file issue. Signed-off-by: Jeff Fan Reviewed-by: Liming Gao Reviewed-by: Hesheng Chen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14978 6f19259b-4bc3-4df7-8a09-765794883524 commit f98f5ec304ec22d3bbc8bee2a78d22fea28e1321 Author: Laszlo Ersek Date: Fri Dec 13 03:22:33 2013 +0000 UefiCpuPkg: S3Resume2Pei: align return stacks explicitly S3RestoreConfig2() can optionally stack-switch to the SMM S3 Resume Entry Point and ask it to transfer to S3ResumeExecuteBootScript(). Similarly, S3ResumeExecuteBootScript() stack-switches explicitly to the boot script executor, and asks it to transfer to S3ResumeBootOs(). Currently the stack pointers specified for the SMM S3 Resume Entry Point and the boot script executor to use for returning are derived from addresses of the first local variables in S3RestoreConfig2() and S3ResumeExecuteBootScript(), respectively. Since (theoretically) the stack grows down as local variables are defined and functions are called, the idea is presumably to allow the respective callee to overwrite the caller's local variables. (The callees in question can never return normally, only by explicit stack switching.) Taking the address of "Status" is less portable than optimal however. Compilers are free to juggle local variables at build time as they please, including order and alignment on the stack. For example, when the code is built for 64-bit PEI with gcc-4.8.2, the address of "Status" trips up the alignment assertion in SwitchStack(). Let's align the address of "Status" down to CPU_STACK_ALIGNMENT explicitly. If a compiler ensures such alignment and places "Status" at the highest address automatically, then this change has no effect. Otherwise, we'll prepare ReturnStackPointer values that (a) are correctly aligned, (b) preserve the same amount or more (but never less) from the caller's local variables than before, which should be safe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14977 6f19259b-4bc3-4df7-8a09-765794883524 commit ddc0be58660a396471e1035e2d45d2b4a33ebd9f Author: Feng Tian Date: Fri Dec 13 01:43:27 2013 +0000 MdeModulePkg/XhciDxe: Fix ICC compiler build warning. Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14976 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ba2921da3c0b7db303b6db44810158a1fefd737 Author: Jaben Carsey Date: Fri Dec 13 00:13:59 2013 +0000 ShellPkg: add API for determining operation type There are no callers for this new API yet. They will be added in the next commits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14975 6f19259b-4bc3-4df7-8a09-765794883524 commit 1ef61d039062f551d47ce009c4b5df9f5324f3ea Author: Jaben Carsey Date: Thu Dec 12 21:44:23 2013 +0000 ShellPkg: Refactor Variable replacement into separate function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14974 6f19259b-4bc3-4df7-8a09-765794883524 commit ca53c0af0037ad585f7455efc9ee1656bec8d176 Author: Jaben Carsey Date: Thu Dec 12 21:16:38 2013 +0000 ShellPkg: Refactor Alias replacement into separate function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14973 6f19259b-4bc3-4df7-8a09-765794883524 commit ad2bc85412dcc566dae32cd4b18da356ace1ea3d Author: Jaben Carsey Date: Thu Dec 12 18:42:18 2013 +0000 ShellPkg: refactor out leading and trailing space trimming Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14972 6f19259b-4bc3-4df7-8a09-765794883524 commit 321a8d494f19277f764b4a9128b898d10b6db01a Author: Jaben Carsey Date: Thu Dec 12 17:55:37 2013 +0000 ShellPkg: typo in the last commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14971 6f19259b-4bc3-4df7-8a09-765794883524 commit 71914406e894c462dc9255c7a18f9cbe3651b8f8 Author: Laszlo Ersek Date: Thu Dec 12 17:28:05 2013 +0000 OvmfPkg: Virtio drivers: fix incorrect casts in init functions The recent patch OvmfPkg: Make the VirtIo devices use the new VIRTIO_DEVICE_PROTOCOL was fixed up at commit time, in order to silence warnings issued by the Visual Studio compiler. Differences between the posted and committed patch: > diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > -index 17b9f71..96a0d9f 100644 > +index 17b9f71..f09b0d1 100644 > --- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > +++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > @@ -23,7 +23,6 @@ > @@ -994,7 +998,7 @@ > + // step 4c -- Report GPFN (guest-physical frame number) of queue. > + // > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > + if (EFI_ERROR (Status)) { > + goto ReleaseQueue; > + } > @@ -1495,7 +1499,7 @@ > goto Exit; > } > diff --git a/OvmfPkg/VirtioNetDxe/SnpInitialize.c b/OvmfPkg/VirtioNetDxe/SnpInitialize.c > -index 6cee014..8dcf9da 100644 > +index 6cee014..4203fbd 100644 > --- a/OvmfPkg/VirtioNetDxe/SnpInitialize.c > +++ b/OvmfPkg/VirtioNetDxe/SnpInitialize.c > @@ -57,14 +57,15 @@ VirtioNetInitRing ( > @@ -1539,7 +1543,7 @@ > - Status = VIRTIO_CFG_WRITE (Dev, Generic.VhdrQueueAddress, > - (UINTN) Ring->Base >> EFI_PAGE_SHIFT); > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Ring->Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Ring->Base >> EFI_PAGE_SHIFT); > if (EFI_ERROR (Status)) { > - VirtioRingUninit (Ring); > + goto ReleaseQueue; > @@ -1721,7 +1725,7 @@ > Exit: > gBS->RestoreTPL (OldTpl); > diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > -index b836fb3..bcec676 100644 > +index b836fb3..2223c9c 100644 > --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > @@ -38,7 +38,6 @@ > @@ -1908,7 +1912,7 @@ > + // step 4c -- Report GPFN (guest-physical frame number) of queue. > + // > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > if (EFI_ERROR (Status)) { > goto ReleaseQueue; > } These casts are incorrect -- they throw away address bits >=32 before shifting, which can break the drivers in guests with more than 4GB RAM. The bug is clearly an artifact of the edk2 coding style, which requires cast expressions to be written as (type) expression rather than the usual (type)expression The latter correctly reflects that casts have one of the strongest bindings in C. The former actively obscures that fact. Cf. (type) expr1 >> expr2 vs. (type)expr1 >> expr2 Make sure we shift before we truncate. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14970 6f19259b-4bc3-4df7-8a09-765794883524 commit 518c8cdc5c52e8d356075f28354b18a6e5830ca6 Author: Jaben Carsey Date: Thu Dec 12 17:27:27 2013 +0000 ShellPkg: Refactor out the searching for pipe characters Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14969 6f19259b-4bc3-4df7-8a09-765794883524 commit ece77e4047c36ddd177949e81d548bda244ea8a7 Author: Olivier Martin Date: Wed Dec 11 16:58:39 2013 +0000 OvmfPkg/Virtio: Removed VirtioReadDevice() / VirtIoWriteDevice() functions These functions did not provide much more than the new protocol functions VIRTIO_DEVICE_PROTOCOL.ReadDevice() / VIRTIO_DEVICE_PROTOCOL.WriteDevice(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jordan Justen Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14968 6f19259b-4bc3-4df7-8a09-765794883524 commit 64106abf4b702f1fb583740ecaa0885a31b18b0e Author: Olivier Martin Date: Wed Dec 11 16:58:30 2013 +0000 OvmfPkg/Virtio.h: Removed definition of VIRTIO_HDR This definition is specific to VirtIo over PCI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jordan Justen Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14967 6f19259b-4bc3-4df7-8a09-765794883524 commit 56f65ed838e8d73e91d54a8ed984d777c936843c Author: Olivier Martin Date: Wed Dec 11 16:58:22 2013 +0000 OvmfPkg: Make the VirtIo devices use the new VIRTIO_DEVICE_PROTOCOL This change replaces the accesses to the PCI bus from the Block, Scsi and Net drivers by the use of the new VIRTIO_DEVICE_PROTOCOL protocol that abstracts the transport layer. It means these drivers can be used on PCI and MMIO transport layer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - VirtioFlush(): update comment block in VirtioLib.[hc]; error code is propagated from VirtIo->SetQueueNotify(). - VirtioBlkInit(): jump to Failed label if SetPageSize() fails - VirtioBlkInit(): fixup comment, and add error handling, near SetQueueNum() call - VirtioBlkDriverBindingStart(): remove redundant (always false) check for a subsystem device ID different from VIRTIO_SUBSYSTEM_BLOCK_DEVICE; VirtioBlkDriverBindingSupported() handles it already - VirtioNetGetFeatures(): update stale comment block - VirtioNetGetFeatures(): retrieve MAC address byte for byte (open-coded loop) - VirtioNetDriverBindingStart(): remove redundant (always false) check for a subsystem device ID different from VIRTIO_SUBSYSTEM_NETWORK_CARD; VirtioNetDriverBindingSupported() handles it already - VirtioNetInitRing(): call SetQueueNum() and SetQueueAlign() for proper MMIO operation - VirtioNetInitialize(): fix destination error label for when SetPageSize() fails - VirtioScsi.c: fix comment block of VIRTIO_CFG_WRITE()/VIRTIO_CFG_READ() - VirtioScsiInit(): fix destination error label for when SetPageSize() fails - VirtioScsiInit(): call SetQueueNum() and SetQueueAlign() for proper MMIO operation Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14966 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fb4e772a0ad14399532201d1b9ecb811c9c7262 Author: Olivier Martin Date: Wed Dec 11 16:57:59 2013 +0000 OvmfPkg/VirtioMmioDeviceLib: Implement VIRTIO_DEVICE_PROTOCOL for VirtIo Devices over MMIO Why is the virtio-mmio implementation of the protocol a library, instead of a driver binary? The UEFI driver model would encourage to create a virtio-mmio driver instead of a library. But the reasons why I created a library are: - A virtio-mmio driver would imply an additional protocol that would probably have a single attribute field: typedef struct { PHYSICAL_ADDRESS BaseAddress; } VIRTIO_MMIO_DEVICE_PROTOCOL; - There is no (easy) way to scan the available VirtIo devices on a platform. So, the UEFI firmware for this platform would need a driver to produce instances for every virtio devices it wants to expose in UEFI. A single call to a helper library (ie: VirtioMmioDeviceLib) make the porting easier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - typo fix in VirtioMmioInstallDevice() comment block - plug MmioDevice leak in VirtioMmioUninstallDevice() - return EFI_INVALID_PARAMETER in VirtioMmioGetQueueAddress() if QueueAddress is NULL - VirtioMmioSetQueueSize(): fix return value (it's a status code) - VirtioMmioSetPageSize(): check against EFI_PAGE_SIZE with "if" plus EFI_UNSUPPORTED, rather than ASSERT() - VirtioMmioDeviceWrite(), VirtioMmioDeviceRead(): remove redundant (FieldSize > 8) checks - VirtioMmioDeviceLib.inf: drop UefiDriverEntryPoint library dependency Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14965 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bb56c062e9a57c575f2375a7078ac37e9a86dd5 Author: Olivier Martin Date: Wed Dec 11 16:57:49 2013 +0000 OvmfPkg/VirtioPciDeviceDxe: Implement VIRTIO_DEVICE_PROTOCOL for VirtIo Devices over PCI This change implements the VIRTIO_DEVICE_PROTOCOL for the PCI transport layer. The VirtIo device drivers will interact with the PCI-based VirtIo devices through this protocol implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - updated comment block on VirtioPciDeviceRead() - return EFI_UNSUPPORTED instead of failed ASSERT() in VirtioPciSetPageSize() - VirtioPciIoRead(): restore the original requirement that FieldSize equal BufferSize exactly (not only divide it). The looping added in v4 did not match the comment block, and the only place that used it in v4 (ie. VirtioNetGetFeatures()) needs an open-coded loop anyway (will be done in a later part of v5). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14964 6f19259b-4bc3-4df7-8a09-765794883524 commit fc4d1ce57406871ae699b745d4e96c8241c6949b Author: Olivier Martin Date: Wed Dec 11 16:57:40 2013 +0000 OvmfPkg/VirtioDevice.h: Introduced VIRTIO_DEVICE_PROTOCOL protocol This protocol introduces an abstraction to access the VirtIo Configuration and Device spaces. The registers in these spaces are located at a different offset and have a different width whether the transport layer is either PCI or MMIO. This protocol would also allow to support VirtIo PCI devices with MSI-X capability in a transparent way (Device space is at a different offset when a PCIe device has MSI-X capability). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - add disclaimer (two instances) about the protocol being work in progress Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14963 6f19259b-4bc3-4df7-8a09-765794883524 commit ad793176debf98a4da016e4b32840d0e30f718aa Author: Elvin Li Date: Wed Dec 11 08:53:19 2013 +0000 Add additional check mRuntimeSmbiosEntryPoint == NULL to avoid K9 error. Signed-off-by: Elvin Li Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14962 6f19259b-4bc3-4df7-8a09-765794883524 commit 4db0b65c06430382d9328012f9538065c5aa78b5 Author: Liming Gao Date: Wed Dec 11 08:22:43 2013 +0000 Correct INF file to make module pass ICC compiler. Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14961 6f19259b-4bc3-4df7-8a09-765794883524 commit 7476ad722c4212f66a06ca0aabfabce27b82eae1 Author: Daryl McDaniel Date: Tue Dec 10 22:16:57 2013 +0000 StdLib: Update Copyright Notices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Matthew Stanbro git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14960 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d16cca5766396f048432bea57a0ad03a3c3d49d Author: Daryl McDaniel Date: Tue Dec 10 21:42:59 2013 +0000 StdLib: Remove an unnecessary dependency from LibWchar. LibWchar is now a standalone library which can be used independent of the rest of StdLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Matthew Stanbro git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14959 6f19259b-4bc3-4df7-8a09-765794883524 commit 19a4497259a24d0b9838c7e79c9ec4f5baf9828e Author: Jaben Carsey Date: Tue Dec 10 18:41:35 2013 +0000 ShellPkg: Refactor Pipe handling This moves some logic for handling command lines with pipe ‘|’ into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14958 6f19259b-4bc3-4df7-8a09-765794883524 commit b2ce4a396135c666e613d3608f342c217c62750e Author: Olivier Martin Date: Tue Dec 10 16:39:54 2013 +0000 ARM Packages: Removed 'inline' keyword 'inline' keyword is not supported by the C89 (version used by EDK2). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14957 6f19259b-4bc3-4df7-8a09-765794883524 commit 62436c2162f2201eb105169b414719705adb7e3e Author: Olivier Martin Date: Tue Dec 10 16:39:04 2013 +0000 ArmPkg/AArch64Mmu.h: Fix 'Shift is >= width of type' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14956 6f19259b-4bc3-4df7-8a09-765794883524 commit 377a32dbed62b66f6d45589d3cae7a8253691422 Author: Olivier Martin Date: Tue Dec 10 16:38:17 2013 +0000 ArmPkg/ArmDisassemblerLib: Fixed logical/bitwise operator confusion Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14955 6f19259b-4bc3-4df7-8a09-765794883524 commit 77d7af47585336f7afff00e0415156e96c22253b Author: Olivier Martin Date: Tue Dec 10 16:37:10 2013 +0000 ArmPkg/ArmMpCoreInfo.h: Fixed macro definition Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14954 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e0fb74a067a1be9d3395a1f37f8645cc0a885d5 Author: Fu Siyuan Date: Tue Dec 10 09:14:39 2013 +0000 1. Add ISCSI iBFT CHAP types to IScsiBootFirmwareTable.h. 2. Fix ISCSI iBFT's CHAP type mismatch bug caused by 14918. Signed-off-by: Fu Siyuan Reviewed-by: Liming Gao Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14953 6f19259b-4bc3-4df7-8a09-765794883524 commit 62eeb52af7efe656f518baf59555e29c15bfa3be Author: Elvin Li Date: Tue Dec 10 01:42:56 2013 +0000 Per PI 1.3 spec, when Reserved bit set in the SlaveAddress parameter, EFI_NOT_FOUND should be returned in EFI_I2C_HOST_PROTOCOL.QueueRequest(). Signed-off-by: Elvin Li Reviewed-by: Leahy Leroy P Reviewed-by: Lin Jie git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14952 6f19259b-4bc3-4df7-8a09-765794883524 commit 3520e03f3dbfeeda7140933129027589e893413e Author: Jaben Carsey Date: Mon Dec 9 23:00:21 2013 +0000 ShellPkg: Remove invalid ASSERT There was an assumption that this API would never fail. That is not true and the return value is checked just a few lines later. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14951 6f19259b-4bc3-4df7-8a09-765794883524 commit 194ae48daebe53555cdfbaa75235fbf9e830b79d Author: Jaben Carsey Date: Mon Dec 9 22:55:13 2013 +0000 ShellPkg: Add support for CTRL-C within shell user prompting This allows for the user to get out of answering a question with CTRL-C Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14950 6f19259b-4bc3-4df7-8a09-765794883524 commit 0f83ac340fef4972b1542d29613a90230695749b Author: Eric Dong Date: Mon Dec 9 03:22:36 2013 +0000 Refine code to fix potential code bug. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14949 6f19259b-4bc3-4df7-8a09-765794883524 commit 05de47ef04864cd9d55228b2065d7397387e54ac Author: Eric Dong Date: Mon Dec 9 03:21:29 2013 +0000 Refine code to fix potential code bug. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14948 6f19259b-4bc3-4df7-8a09-765794883524 commit 42f75495f3a89f30747406f7bf8fec9919da7b28 Author: Shumin Qiu Date: Mon Dec 9 02:24:39 2013 +0000 Follow Shell specification to make sure the “command.man” file is always used no matter “command.efi -?” or “command -?” is typed. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14947 6f19259b-4bc3-4df7-8a09-765794883524 For bisection revision-tuple graph see: http://www.chiark.greenend.org.uk/~xensrcts/results/bisect.ovmf.build-i386.xen-build.html Revision IDs in each graph node refer, respectively, to the Trees above. ---------------------------------------- Searching for failure / basis pass: 34039 fail [host=scape-moth] / 33686 [host=grain-weevil] 34046 ok. Failure / basis pass flights: 34039 / 34046 (tree with no url: seabios) (tree in basispass but not in latest: qemu) Tree: ovmf https://github.com/tianocore/edk2.git Tree: qemuu git://xenbits.xen.org/staging/qemu-upstream-unstable.git Tree: xen git://xenbits.xen.org/xen.git Latest 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e Basis pass 447d264115c476142f884af0be287622cd244423 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e Generating revisions with ./adhoc-revtuple-generator https://github.com/tianocore/edk2.git#447d264115c476142f884af0be287622cd244423-7cc7022dfccadcae9e815d071916f96577e5df89 git://xenbits.xen.org/staging/qemu-upstream-unstable.git#0d37748342e29854db7c9f6c47d7f58c6cfba6b2-0d37748342e29854db7c9f6c47d7f58c6cfba6b2 git://xenbits.xen.org/xen.git#7106c691a6332cffab4037186d1caa3012ae051e-7106c691a6332cffab4037186d1caa3012ae051e + exec + sh -xe + cd /export/home/osstest/repos/edk2 + git remote set-url origin git://drall.uk.xensource.com:9419/https://github.com/tianocore/edk2.git + git fetch -p origin +refs/heads/*:refs/remotes/origin/* adhoc-revtuple-generator: tree discontiguous: edk2 Loaded 2 nodes in revision graph Searching for test results: 33686 [host=grain-weevil] 33958 fail irrelevant 34034 pass 447d264115c476142f884af0be287622cd244423 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34018 fail 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34039 fail 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34038 fail 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34040 pass 447d264115c476142f884af0be287622cd244423 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34042 fail 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34046 pass 447d264115c476142f884af0be287622cd244423 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e 34048 fail 7cc7022dfccadcae9e815d071916f96577e5df89 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e Searching for interesting versions Result found: flight 34034 (pass), for basis pass Result found: flight 34038 (fail), for basis failure Repro found: flight 34040 (pass), for basis pass Repro found: flight 34042 (fail), for basis failure 0 revisions at 447d264115c476142f884af0be287622cd244423 0d37748342e29854db7c9f6c47d7f58c6cfba6b2 7106c691a6332cffab4037186d1caa3012ae051e No revisions left to test, checking graph state. Result found: flight 34034 (pass), for last pass Result found: flight 34038 (fail), for first failure Repro found: flight 34040 (pass), for last pass Repro found: flight 34042 (fail), for first failure Repro found: flight 34046 (pass), for last pass Repro found: flight 34048 (fail), for first failure *** Found and reproduced problem changeset *** Bug is in tree: ovmf https://github.com/tianocore/edk2.git Bug introduced: 7cc7022dfccadcae9e815d071916f96577e5df89 Bug not present: 447d264115c476142f884af0be287622cd244423 + exec + sh -xe + cd /export/home/osstest/repos/edk2 + git remote set-url origin git://drall.uk.xensource.com:9419/https://github.com/tianocore/edk2.git + git fetch -p origin +refs/heads/*:refs/remotes/origin/* commit 7cc7022dfccadcae9e815d071916f96577e5df89 Author: Jaben Carsey Date: Fri Jan 30 16:29:20 2015 +0000 ShellPkg: Refactor quote and escape search to use new function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Joe Peterson Reviewed-by: Shumin Qiu Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16682 6f19259b-4bc3-4df7-8a09-765794883524 commit 00534bc3e2d49bbf3cb649136eed3f6891121114 Author: Jaben Carsey Date: Fri Jan 30 16:28:22 2015 +0000 ShellPkg: Refactor Split search to generic function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Joe Peterson Reviewed-by: Shumin Qiu Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16681 6f19259b-4bc3-4df7-8a09-765794883524 commit a35ecb7584677b84b65028b7865243f76e7ecf0c Author: Eric Dong Date: Fri Jan 30 05:35:30 2015 +0000 Move ConfigHdr from browser_storage to Formset_storage, avoid device path lost for drivers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16680 6f19259b-4bc3-4df7-8a09-765794883524 commit 49a228ca6980b197bb854dc88c909d712959cb47 Author: David Wei Date: Thu Jan 29 04:39:53 2015 +0000 Update SPI connection parameters for Microsoft RhProxy driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16679 6f19259b-4bc3-4df7-8a09-765794883524 commit b2499fe67ed7cef361805b68691711053549c0ee Author: David Wei Date: Wed Jan 28 08:45:52 2015 +0000 Add SSDT for Microsoft RhProxy Driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16677 6f19259b-4bc3-4df7-8a09-765794883524 commit 217abb4659c5c8bade3d6be173fa456e4b5b967e Author: Shifei Lu Date: Wed Jan 28 08:24:57 2015 +0000 Align the overrider with UDK2014.SP1 core. The override fixed Showing IPv4 and IPv6 string format as "EFI Network " in Boot Manager Group under BIOS setup. This override will be removed after core fixing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16675 6f19259b-4bc3-4df7-8a09-765794883524 commit 14030c5c854ea40487a853344fc763d808c1a88b Author: Jaben Carsey Date: Tue Jan 27 18:56:36 2015 +0000 ShellPkg: refine command line parsing Correctly divide up parameters for Argc/Argv including quote ("), escape (^), and space ( ) processing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16673 6f19259b-4bc3-4df7-8a09-765794883524 commit fdd52bde510a5cb89ce90c307c62e617c10ab7be Author: Jaben Carsey Date: Tue Jan 27 18:53:27 2015 +0000 ShellPkg: Always remove non-defined environment variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16672 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bbbdc85a3bbc7ec63fc8317fcfbd9bab0006251 Author: Shifei Lu Date: Tue Jan 27 08:47:14 2015 +0000 Align the overrider with EDK2 trunk. Align the overrider with EDK2 trunk.(The override fixed default console text color) This override will be removed after core fixing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16671 6f19259b-4bc3-4df7-8a09-765794883524 commit 952ba83c4781c7e7fff74fc32fd840a86731d8f6 Author: Star Zeng Date: Tue Jan 27 08:44:10 2015 +0000 SecurityPkg Variable: Implement variable quota management. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16670 6f19259b-4bc3-4df7-8a09-765794883524 commit 4edb18663fef14ef4c54f985a21d3faacec5d499 Author: Star Zeng Date: Tue Jan 27 08:42:47 2015 +0000 MdeModulePkg Variable: Implement variable quota management. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16669 6f19259b-4bc3-4df7-8a09-765794883524 commit 4139580d3151bb7cdb1f46a0c170b6f7d8032f38 Author: Shifei Lu Date: Tue Jan 27 07:34:32 2015 +0000 Fixed system hang issue with accessing to Boot Maintenance Manager when pressed hot key to enter BIOS setup. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: Tim He git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16666 6f19259b-4bc3-4df7-8a09-765794883524 commit 734b93933c0c30ca082c0fe81fe41daae3a2dedc Author: Mang Guo Date: Tue Jan 27 04:38:18 2015 +0000 Enabled Performance measurement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mang Guo Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16662 6f19259b-4bc3-4df7-8a09-765794883524 commit c45bc17996455365e43d791870ba0d5af49aa0e3 Author: Feng Tian Date: Tue Jan 27 03:07:01 2015 +0000 MdeModulePkg/UsbBotPei: Correct wrong media type detection logic in UsbBotPei Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16661 6f19259b-4bc3-4df7-8a09-765794883524 commit 24e11fd8f80e15bb2ec435b8bed2492da8fc3e5d Author: Hao Wu Date: Tue Jan 27 01:12:46 2015 +0000 MdeModulePkg: Fixed DxeCore displaying incorrect FV Hob information Modify DxeMain.c which displays incorrect debug message regarding FV Hob. Specifically, the BaseAddress and Length are not related to the same FV. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16660 6f19259b-4bc3-4df7-8a09-765794883524 commit f798e8bff773c833837c71fa806a7604fff7b503 Author: Laszlo Ersek Date: Mon Jan 26 08:05:04 2015 +0000 MdeModulePkg: Acpi: enforce exclusion between FirmwareCtrl and XFirmwareCtrl The code in AcpiTableDxe handles the installation of FADT and FACS in both possible orders. In the [FADT, FACS] installation order, the FACS is at once linked into the FADT. In the [FACS, FADT] installation order, the FACS is stashed temporarily, and it is linked into the FADT when the FADT is installed later. According to the ACPI specification, *at most one* of FADT.FirmwareCtrl and FADT.XFirmwareCtrl may be nonzero. The code is aware of this requirement, and it never sets both of them to nonzero values at once. However, the code doesn't expect the following: - The caller first installs the FACS, which is stashed. The address that is saved happens to fall below 4GB. - The caller then installs a FADT, with a zero FirmwareCtrl field, and a nonzero (pre-populated) XFirmwareCtrl field. In this case the code sets FADT.FirmwareCtrl to the less-than-4GB address of the stashed FACS, and leaves the different nonzero value in FADT.XFirmwareCtrl. This violates the ACPI specification. Prevent this by always zeroing the field that we do *not* set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16659 6f19259b-4bc3-4df7-8a09-765794883524 commit 38bd44b8e1f0d650094edbd8cc918ce135a330a7 Author: Shifei Lu Date: Mon Jan 26 07:07:06 2015 +0000 Fixed the GCC build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16658 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e4c9170687f98d19ab3af9e21f379787697cf07 Author: Bruce Cran Date: Mon Jan 26 06:50:22 2015 +0000 Fix the Windows MNW2 build failure. Fix the Windows MNW2 build by updating the library paths and adding support for VS2012 and VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16657 6f19259b-4bc3-4df7-8a09-765794883524 commit 48edf6be7fd35467b77e6ebf3707094db4da6d6f Author: Leif Lindholm Date: Fri Jan 23 16:10:00 2015 +0000 ArmPlatformPkg: detect correct pl011 fifo depth pl011 releases earlier than r1p5 has a fifo depth of 16 bytes, whereas version r1p5 upwards has a fifo depth of 32 bytes. The pl011 driver was hardwired to 32 byte depth, causing dropped characters on some platforms (including default settings on FVP Base and Foundation models). Update driver to select 16 or 32 on port initialization by checking the component revision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16656 6f19259b-4bc3-4df7-8a09-765794883524 commit ac83357a4311e008b229a8db43d2f1726cfe326d Author: Ronald Cron Date: Fri Jan 23 16:09:07 2015 +0000 ArmPkg/NorFlashDxe : Fix the check of flash addresses Fix the check to prevent any reading past the end of the nor flash. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16655 6f19259b-4bc3-4df7-8a09-765794883524 commit 2596e61a9b6a18c315f985bcb41cce3d498f9ad0 Author: Olivier Martin Date: Fri Jan 23 16:07:38 2015 +0000 ArmPlatformPkg/ArmJunoPkg/AcpiTables: Updated with new ACPI 5.1 Tables & Definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16654 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c1712f05aeb7fb24b055eee8e76cba672af2816 Author: Olivier Martin Date: Fri Jan 23 16:06:09 2015 +0000 EmbeddedPkg/AcpiLib.h: Added some helper macros for ACPI 5.1 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16653 6f19259b-4bc3-4df7-8a09-765794883524 commit 3399d5beb86deccd064f915fe59ebfa0176ee7bc Author: Olivier Martin Date: Fri Jan 23 16:03:09 2015 +0000 ArmPlatformPkg/ArmJunoPkg: Added the ACPI 5.0 Tables These tables are: - Differentiated System Description Table Fields (DSDT) - Firmware ACPI Control Structure (FACS) - Fixed ACPI Description Table (FADT) - Generic Timer Description Table (GTDT) - Multiple APIC Description Table (MADT) - Secondary System Description Table Fields (SSDT) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16652 6f19259b-4bc3-4df7-8a09-765794883524 commit 05e56470cd68d378fc6d282a51e8bb6ae640b1dc Author: Olivier Martin Date: Fri Jan 23 16:01:11 2015 +0000 ArmPlatformPkg/ArmJunoPkg: Added ACPI support This support makes the Juno UEFI Firmware to look into the Firmware Volume for the ACPI Tables. But it does not provide the ACPI Tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16651 6f19259b-4bc3-4df7-8a09-765794883524 commit 3356211b9c9afd39cc0ca1bb8d92ee968a8cfd04 Author: Olivier Martin Date: Fri Jan 23 15:59:27 2015 +0000 EmbeddedPkg: Introduced AcpiLib AcpiLib is a library to help working with ACPI Tables. In this initial implementation, the library provides: - a helper function to locate and install the ACPI Tables within a Firmware Volume - Some helper macros to initialize some ACPI structures Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Graeme Gregory git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16650 6f19259b-4bc3-4df7-8a09-765794883524 commit bfed5d80af4cb3d76f9e064bc4d513d1be92ee2e Author: Tim He Date: Fri Jan 23 08:14:39 2015 +0000 Increase the BiosID major version to 0.77 and Enable gcc build for minnowboard max with UDK2014.SP1.P1. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tim He Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16648 6f19259b-4bc3-4df7-8a09-765794883524 commit a687a1d207f1b84e08f2a45fcbc0c0d8f0763214 Author: Eric Dong Date: Fri Jan 23 06:11:22 2015 +0000 The default type is not returned by display engine, this code update the logic to return it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16647 6f19259b-4bc3-4df7-8a09-765794883524 commit 909ac47bf94b3fb375b79774a839980b43bf8e0a Author: Shumin Qiu Date: Fri Jan 23 05:52:25 2015 +0000 MdePkg: Refine the format of INF files and the declaration in header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16646 6f19259b-4bc3-4df7-8a09-765794883524 commit 23c7d4258f3a916c916f16e1cdf4c217a539b984 Author: Eric Dong Date: Fri Jan 23 05:51:07 2015 +0000 Enable popup dialog when user press the hotkey. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16645 6f19259b-4bc3-4df7-8a09-765794883524 commit fc2e7502663ee5891d3c0f6d7792a8277df50745 Author: Eric Dong Date: Fri Jan 23 05:49:31 2015 +0000 Avoid change the return status from above code which will also be used later. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16644 6f19259b-4bc3-4df7-8a09-765794883524 commit 44cbe89ec8ed1fd6e378f92e16b5a5e9e3781bcf Author: Eric Dong Date: Fri Jan 23 05:48:44 2015 +0000 Locate the config route protocol before install the config access protocol to fix potential issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16643 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e5fff631b92436790c27d8f3995710aa15c9232 Author: Elvin Li Date: Fri Jan 23 04:49:00 2015 +0000 Added 2 new PCDs for minimal and maximal valid year in RTC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16642 6f19259b-4bc3-4df7-8a09-765794883524 commit d47da7866989bdb276479ccd95f52196a8832c8a Author: Long Qin Date: Thu Jan 22 07:43:04 2015 +0000 Update OpenSSL support to the latest release (0.9.8ze, 15-Jan-2015). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long Qin Reviewed-by: Dong Guo Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16641 6f19259b-4bc3-4df7-8a09-765794883524 commit d71c25cf2c7783024a3e9c57327f43654305838f Author: David Wei Date: Thu Jan 22 05:50:45 2015 +0000 Set RTC initial time to be BIOS Release time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16639 6f19259b-4bc3-4df7-8a09-765794883524 commit 83a276f61342d0b0d94e96f7d0636bf9474b5ed1 Author: Yao, Jiewen Date: Thu Jan 22 05:14:23 2015 +0000 Add TpmInitializationDonePpi to TPM PEI module. This PPI will always be installed to notify other drivers that TPM initialization action is done. TPM initialization may success or fail, or even not present. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Chiu, Chasel" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16638 6f19259b-4bc3-4df7-8a09-765794883524 commit 57ce74ac5ff4950b4bebd5bb1d8fa2024ecc1010 Author: Yao, Jiewen Date: Thu Jan 22 03:29:17 2015 +0000 Resolve buffer check overrun issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Qiu, Shumin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16637 6f19259b-4bc3-4df7-8a09-765794883524 commit a61b07f464f5f9080ead9cc955f10f2acf5de085 Author: Elvin Li Date: Thu Jan 22 02:47:12 2015 +0000 Update PcdSmbiosVersion from 0x0207 to 0x0208. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16636 6f19259b-4bc3-4df7-8a09-765794883524 commit 8165009451e2dff81a42d3a8bcb1792e82ce5d91 Author: Shumin Qiu Date: Thu Jan 22 02:02:08 2015 +0000 MdeModulePkg: Refine the format of INF files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16635 6f19259b-4bc3-4df7-8a09-765794883524 commit ecd07f373707981687b5d66b62c3812cfe587faf Author: Qiu Shumin Date: Thu Jan 22 01:44:11 2015 +0000 ShellPkg: Refine the fomat in INF/DEC files to follow spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16634 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b354b080c7e70b56d5aaff811a7959f82d21f81 Author: Tim He Date: Wed Jan 21 07:37:42 2015 +0000 Remove 2 unnecessary modules (Ps2MouseDxe, Ps2keyboardDxe) for saving size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tim He Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16631 6f19259b-4bc3-4df7-8a09-765794883524 commit 7d17a6a1197f6b1aaf2bbce6c43c23c529dbfc0b Author: Ard Biesheuvel Date: Wed Jan 21 03:11:19 2015 +0000 MdeModulePkg/DxeMain: Fix wrong sanity check in CoreTerminateMemoryMap() The function CoreTerminateMemoryMap() performs some final sanity checks on the runtime regions in the memory map before allowing ExitBootServices() to complete. Unfortunately, it does so by testing the EFI_MEMORY_RUNTIME bit in the Attribute field, which is never set anywhere in the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Feng Tian Acked-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16630 6f19259b-4bc3-4df7-8a09-765794883524 commit d3d925578c89281685f860726fda08cc5daf06bb Author: Feng Tian Date: Wed Jan 21 02:47:49 2015 +0000 MdePkg: Add [in/out] tags to those function type declarations in UefiSpec.h for Doxgen format Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16629 6f19259b-4bc3-4df7-8a09-765794883524 commit d9044ec5553c946e20154b7b5c61cd3979472f60 Author: Ruiyu Ni Date: Tue Jan 20 08:46:31 2015 +0000 Use RLE (Run Length Encoding) to improve debugging performance. DEBUG_AGENT_REVISION is DEBUG_AGENT_REVISION_03 to disable this feature and will be changed to DEBUG_AGENT_REVISION_04 when new version of HOST is released. Reduce the stack usage by re-using the same buffer to send/receive packet. Zero out the buffer before fxsave so that the reserved field in the buffer remains 0 for better RLE compression ratio. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16628 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a39a6a1a8a35a84e4e13900a2b5e8da1b6435f2 Author: Yao, Jiewen Date: Tue Jan 20 08:24:12 2015 +0000 Fix GCC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16627 6f19259b-4bc3-4df7-8a09-765794883524 commit 944d79b75485068324d1d39281288601764e235d Author: Shumin Qiu Date: Tue Jan 20 07:31:57 2015 +0000 PcAtChipsetPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16626 6f19259b-4bc3-4df7-8a09-765794883524 commit 483d0d85a74eb96e5bf12bf07ca9d51af679db9d Author: Ruiyu Ni Date: Tue Jan 20 06:45:01 2015 +0000 Dispatch the UEFI option rom returned from PciPlatform/PciOverride protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao B Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16625 6f19259b-4bc3-4df7-8a09-765794883524 commit e8a61b967877b6170e71ebdcbf6f2ae01d2709c6 Author: Shumin Qiu Date: Tue Jan 20 01:45:35 2015 +0000 Performance: Refine the format of INF files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16624 6f19259b-4bc3-4df7-8a09-765794883524 commit b0446065db6dbafb8202c6024c0dd483cf1af966 Author: Shumin Qiu Date: Mon Jan 19 07:45:25 2015 +0000 IntelFspWrapperPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16623 6f19259b-4bc3-4df7-8a09-765794883524 commit b34eb190837327224a46723051a587d98b3cabd3 Author: Shumin Qiu Date: Mon Jan 19 07:18:24 2015 +0000 IntelFspPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16622 6f19259b-4bc3-4df7-8a09-765794883524 commit aaedfe3c126c434badb608284ad72d8a07ce162b Author: Yao, Jiewen Date: Mon Jan 19 06:08:23 2015 +0000 Add HSTI support. Add HSTI header file and a library to assist HSTI table creation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Gao, Liming" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16621 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f04e527397f6e6646ca7a96436b5edb29d303e9 Author: Yingke Liu Date: Mon Jan 19 05:04:28 2015 +0000 Fix SET statement bug which is always evaluated even it is in a False conditional statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16620 6f19259b-4bc3-4df7-8a09-765794883524 commit b0e23cf32bc5f13c77e80b1e63faa14511c118c1 Author: Yingke Liu Date: Mon Jan 19 05:01:39 2015 +0000 Fixed build issue with fds target specified. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao Reviewed-by: Hesheng Chen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16619 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e4a6f3d23c8a96211c0b1420bce4c136ede07fd Author: Shumin Qiu Date: Mon Jan 19 02:44:10 2015 +0000 SourceLevelDebugPkg: Refine the format of meta data files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16618 6f19259b-4bc3-4df7-8a09-765794883524 commit c4bac158b36d0ceb84921152c198cf8ed23b7c7b Author: Shumin Qiu Date: Fri Jan 16 05:20:31 2015 +0000 Refine the format of PCD in INF files for UefiCpuPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16617 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a3dae688298782ca557dd5ef3cfa7a87f26578e Author: Shumin Qiu Date: Fri Jan 16 03:30:07 2015 +0000 Refine the format of GUID in INF files for SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16616 6f19259b-4bc3-4df7-8a09-765794883524 commit 15b670eae219adf6e338e1da9ca4c606f5e3098e Author: Shumin Qiu Date: Fri Jan 16 02:30:51 2015 +0000 Refine the abstract information in header comment section for NetworkPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16615 6f19259b-4bc3-4df7-8a09-765794883524 commit d8bf346886357e6b469ef74e112dfc8f3f5269be Author: Shumin Qiu Date: Fri Jan 16 02:23:07 2015 +0000 Refine the format of GUID in INF files for IntelFrameworkModulePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16614 6f19259b-4bc3-4df7-8a09-765794883524 commit 0545a1a22d1a53a0ce1338a761b747b9ffae7a24 Author: David Wei Date: Thu Jan 15 01:36:17 2015 +0000 Add package maintainers for Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16613 6f19259b-4bc3-4df7-8a09-765794883524 commit 9aaf441c84026a4f96146e66ef6f02ec92cd6813 Author: Laszlo Ersek Date: Wed Jan 14 16:26:04 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: get front page timeout from QEMU Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that ArmVirtualizationPkg's Platform BDS policy can consume QEMU's command line option -boot menu=on,splash-time=N RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1172756 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16612 6f19259b-4bc3-4df7-8a09-765794883524 commit ea444a3e42a61a9fbbb77401265e5d8b3bcba050 Author: Laszlo Ersek Date: Wed Jan 14 16:25:59 2015 +0000 OvmfPkg: PlatformBdsLib: get front page timeout from QEMU Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that OVMF's Platform BDS policy can consume QEMU's command line option -boot menu=on,splash-time=N RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1170507 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16611 6f19259b-4bc3-4df7-8a09-765794883524 commit 9253c14d4134da1bf3bb222fffa2b2d4880ab3cf Author: Laszlo Ersek Date: Wed Jan 14 16:25:54 2015 +0000 OvmfPkg: QemuBootOrderLib: expose QEMU's "-boot menu=on[,splash-time=N]" The QEMU command line option -boot menu=on is meant to have the guest firmware wait for a firmware-specific interval for the user to enter the boot menu. During the wait, the user can opt to enter the boot menu, or interrupt the wait and proceed to booting at once. If the wait interval elapses, the firmware should boot as it normally would. The QEMU command line option -boot menu=on,splash-time=N means the same, except the firmware should wait for cca. N milliseconds instead of a firmware-specific interval. We can approximate this behavior quite well for edk2's virtual platforms because the Intel BDS front page already supports a progress bar, with semantics similar to the above. Let's distill the fw_cfg bits underlying "-boot menu=on,splash-time=N" for the BDS policies, in the form of a timeout value they can pass to Intel's PlatformBdsEnterFrontPage(). If the boot menu is not requested, we return "gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut", which is what the virtual platforms use right now. If the boot menu is requested without specifying the timeout, we return the same PCD, unless it would cause us to skip the boot menu at once. In the latter case, we return 3 seconds (as an approximation of the 2500 ms SeaBIOS default.) RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1170507 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16610 6f19259b-4bc3-4df7-8a09-765794883524 commit 3fe23dc606d19a13c8407d624678d6834b08b344 Author: Laszlo Ersek Date: Wed Jan 14 16:25:48 2015 +0000 ShellPkg: UefiShellLib: drop wrong PathLib library class dependency SVN r16601 ("MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration.") incorporated ShellPkg/Library/BasePathLib into MdePkg/Library/BaseLib. BasePathLib had been the only instance of library class PathLib. Even so, SVN r16606 ("ShellPkg: allow creating of files to create required directory path") added a PathLib dependency to "ShellPkg/Library/UefiShellLib/UefiShellLib.inf". This breaks edk2 platforms that build the "new" UEFI shell from source. Undo the wrong dependency. Similarly, update the #include directive to (example function prototype: PathRemoveLastItem()). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16609 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a013e50b3f63598e07030325d9469e2444a17a6 Author: Daryl McDaniel Date: Tue Jan 13 23:35:33 2015 +0000 StdLib: Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib AppPkg.dsc: StdLib.dsc: StdLib.inc: Delete PathLib LibraryClass description. Update FileHandleLib LibraryClass description to reflect its new location. Update SortLib LibraryClass description to reflect its new location. StdLib.inf: Delete PathLib from LibraryClasses. realpath.c: Delete include of PathLib.h. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16608 6f19259b-4bc3-4df7-8a09-765794883524 commit 45aee4c87aeb2d24398741cf4a36da7c49ad2cbd Author: Daryl McDaniel Date: Tue Jan 13 23:27:08 2015 +0000 EmulatorPkg: Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib EmulatorPkg.dsc: Delete PathLib LibraryClass description Update FileHandleLib LibraryClass description to reflect its new location. Update SortLib LibraryClass description to reflect its new location. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jordan Justen Reviewed-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16607 6f19259b-4bc3-4df7-8a09-765794883524 commit 21a86a7d0ae6e12b7af9f04c7a4288b94110dc05 Author: jaben carsey Date: Tue Jan 13 22:16:41 2015 +0000 ShellPkg: allow creating of files to create required directory path Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Tapan Shah Reviewed-by: Joe Peterson git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16606 6f19259b-4bc3-4df7-8a09-765794883524 commit fa14cfc927e34ddc07dfbb7af7bbdc51b40c949a Author: Olivier Martin Date: Tue Jan 13 18:58:00 2015 +0000 ArmPlatformPkg: Fixed builds after some ShellPkg libraries have moved Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16605 6f19259b-4bc3-4df7-8a09-765794883524 commit 173acde9162ad099005ef25456237c8a0e1b8d7f Author: Ruiyu Ni Date: Tue Jan 13 05:33:47 2015 +0000 Fix IA32 build failure: Use MultU64x32 for 64bit * 32bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16604 6f19259b-4bc3-4df7-8a09-765794883524 commit a782428ec66f9cd306ef944448a9427b8e8a1e87 Author: Yao, Jiewen Date: Tue Jan 13 01:23:15 2015 +0000 Correct file path. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16603 6f19259b-4bc3-4df7-8a09-765794883524 commit 5dbb66351a4008305d148710bd576aeb42c61327 Author: Yao, Jiewen Date: Tue Jan 13 01:18:11 2015 +0000 Check in missing patch for TPM error handling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16602 6f19259b-4bc3-4df7-8a09-765794883524 commit ae591c14b333757a33768e80481bc301b8855686 Author: Daryl McDaniel Date: Tue Jan 13 01:04:07 2015 +0000 MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration. Move libraries from ShellPkg into MdeModulePkg and MdePkg. The following libraries are being migrated out of ShellPkg in order to make their functionality more widely available. • PathLib: Incorporate into MdePkg/Library/BaseLib • FileHandleLib: MdePkg/Library/UefiFileHandleLib • BaseSortLib: MdeModulePkg/Library/BaseSortLib • UefiSortLib: MdeModulePkg/Library/UefiSortLib Diffs showing file changes are in the attached file, LibMigration.patch. A description of the changes follows: • Move ShellPkg/Include/Library/FileHandleLib.h to MdePkg/Include/Library/FileHandleLib.h • Move ShellPkg/Include/Library/SortLib.h to MdeModulePkg/Include/Library/SortLib.h • Move ShellPkg/Library/BaseSortLib to MdeModulePkg/Library/BaseSortLib • Move ShellPkg/Library/UefiSortLib to MdeModulePkg/Library/UefiSortLib • Move ShellPkg/Library/BasePathLib/BasePathLib.c to MdePkg/Library/BaseLib/FilePaths.c • Merge ShellPkg/Include/Library/PathLib.h into MdePkg/Include/Library/BaseLib.h • Delete ShellPkg/Library/BasePathLib; Includes BasePathLib.c and BasePathLib.inf • NetworkPkg/NetworkPkg.dsc • PerformancePkg.dsc • OvmfPkg/OvmfPkgX64.dsc • OvmfPkg/OvmfPkgIa32X64.dsc • OvmfPkg/OvmfPkgIa32.dsc o Update SortLib and FileHandleLib library classes to point to the new library locations. o Remove PathLib library class and make sure that BaseLib is described. • MdeModulePkg/MdeModulePkg.dec o Add SortLib library class • MdePkg/MdePkg.dec o Add FileHandleLib library class o Add PcdUefiFileHandleLibPrintBufferSize PCD • MdePkg/Library/BaseLib/BaseLib.inf o Add FilePaths.c to [Sources] • MdePkg/Include/Library/BaseLib.h o Update file description to include "file path functions" • ShellPkg/ShellPkg.dsc o Change PACKAGE_GUID to { C1014BB7-4092-43D4-984F-0738EB424DBF } o Update PACKAGE_VERSION to 1.0 o Update SortLib and FileHandleLib library classes to point to the new library locations. o Remove PathLib library class and make sure that BaseLib is described. o Remove ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf from [Components] • ShellPkg/ShellPkg.dec o Update PLATFORM_VERSION to 1.0 o Remove declarations of the FileHandleLib, SortLib, and PathLib Library Classes o Update comment for the PcdShellPrintBufferSize PCD. • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf • ShellPkg/Application/Shell/Shell.inf o Remove PathLib from [LibraryClasses] • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h • ShellPkg/Application/Shell/Shell.h o Remove #include • ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf o Add PathLib to [LibraryClasses] • ShellPkg/Library/UefiShellLevel1CommandsLib/If.c o Remove #include • ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.inf o Add MdeModulePkg/MdeModulePkg.dec to [Packages] • MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf • MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf o Replace ShellPkg.dec with MdeModulePkg.dec in [Packages] • MdeModulePkg/Library/UefiSortLib/UefiSortLib.c o Remove #include o Define USL_FREE_NON_NULL() to replace SHELL_FREE_NON_NULL() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16601 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d6bf9e22973c2ad327ca7422f80144c848912dc Author: Olivier Martin Date: Mon Jan 12 12:28:36 2015 +0000 MdeModulePkg/PartitionDxe: Fixed El Torito support when the medium is not a CDROM El Torito format can be used on different media (eg: USB). A ISO image can be dumped onto a USB mass-storage. These media might not have the same block size as the CDROM media (ie: 2KB). The El Torito code and the specification assumes a LBA 2KB. In addition, the specification says in "12.3.4.4 CD-ROM and DVD-ROM": UEFI code does not assume a fixed block size. I was able to dupliacte the issue by copying a debian ISO on a USB driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16600 6f19259b-4bc3-4df7-8a09-765794883524 commit 3cbfba02fef9dae07a041fdbf2e89611d72d6f90 Author: David Wei Date: Mon Jan 12 09:37:20 2015 +0000 Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to https://svn.code.sf.net/p/edk2/code/trunk/edk2/, which are for MinnowBoard MAX open source project. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei Reviewed-by: Mike Wu Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16599 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f785cfcc304c48ec04e542ee429df95e7b51bc5 Author: Yao, Jiewen Date: Mon Jan 12 03:21:00 2015 +0000 Handle TPM device error and avoid deadloop in BDS. If TPM error happens, set TPM flag to NOT present, so that trusted boot patch is disabled. Also report status code for failure, so that platform may register handler to apply policy like force system reset, or disable TPM permanently. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16598 6f19259b-4bc3-4df7-8a09-765794883524 commit 4610b23ab10942d140eb51c4bdbefc5f896979ad Author: Yao, Jiewen Date: Mon Jan 12 03:16:49 2015 +0000 Add TPM Physical Presence >=128 operation value support. The Tcg/TrEE PhysicalPresence library will depend on Tcg/TrEE PpVendor library. The default NULL library instance is provided in this package. OEM can create OemPpVendorLib as override to handle >=128 operation value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16597 6f19259b-4bc3-4df7-8a09-765794883524 commit c5f1d437eddd8fcfe9adeb7ca70cca7ef8688ded Author: Liming Gao Date: Fri Jan 9 10:07:02 2015 +0000 BaseTools Fix NASM tool version in comments of tools_def.template NASM tool version should be 2.07 instead of 2.0.7. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16596 6f19259b-4bc3-4df7-8a09-765794883524 commit 092b852a5bd124d94395930848f2754b6a98fd5c Author: Star Zeng Date: Fri Jan 9 08:46:47 2015 +0000 MdeModulePkg DxeCore: Enhance memory profile code to handle possible NULL FilePath. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16595 6f19259b-4bc3-4df7-8a09-765794883524 commit a5077fd0d280b7160e14159144934b1d7391a045 Author: Shumin Qiu Date: Fri Jan 9 04:50:11 2015 +0000 MdePkg IA32/X64 ProcessorBind.h : Disable the C4701 and C4703 warnings for VS2013. As they may be raised as false positive in building. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16594 6f19259b-4bc3-4df7-8a09-765794883524 commit 586d81d103d124dc5df54d3897b8ed359d0d22ca Author: Liming Gao Date: Fri Jan 9 03:22:53 2015 +0000 MdeModulePkg DxePrintLibPrint2Protocol Library SPrintLength() API issue. SPrintLength() and SPrintLengthAsciiFormat() API doesn’t work with 'g', 't' and 'r' option. The fix sync from MdePkg BasePrintLib instance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16593 6f19259b-4bc3-4df7-8a09-765794883524 commit c792e5b8a3fb103c1e06663f44fa9bda801fc31b Author: Eric Dong Date: Fri Jan 9 02:38:39 2015 +0000 Restore question value for question without storage after CHANGING callback return error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16592 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c7956a2a3324ef47e95f3a350e901b2ddfef69c Author: Eric Dong Date: Thu Jan 8 08:36:05 2015 +0000 Fixed VfrCompile crash on efivarstore statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Aaron Pop git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16591 6f19259b-4bc3-4df7-8a09-765794883524 commit 92ca0c6721d6475d9125c3b64f429cde0777fe28 Author: Yao, Jiewen Date: Thu Jan 8 05:41:56 2015 +0000 Add TPM12 NV related function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16590 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c2d456b9670cd8eeed1b06d3e50011598ade3b0 Author: Olivier Martin Date: Tue Jan 6 15:54:12 2015 +0000 ArmPlatformPkg/Bds: Signal when the variable 'Fdt' has been updated Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16589 6f19259b-4bc3-4df7-8a09-765794883524 commit f2c730d3123c8952e2715b120e79c4ea20c73451 Author: Olivier Martin Date: Tue Jan 6 15:52:52 2015 +0000 ArmPlatformPkg/Bds: Retrieve the Status when calling RT.SetVariable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16588 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e8b37f1f62a3945de44d40616f9e13b4d214980 Author: Ronald Cron Date: Tue Jan 6 15:51:54 2015 +0000 ArmPlatformPkg: PCI emulation - Define a vendor and device id Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16587 6f19259b-4bc3-4df7-8a09-765794883524 commit ad7e31b505b91c9e7baf266dd8cf2ff95befbb8a Author: Ronald Cron Date: Tue Jan 6 15:51:02 2015 +0000 ArmPkg/BdsLib: Close file after reading an Image When loading an image from a file, close the file after reading from it. Use OpenProtocol instead of HandleProtocol to retrieve the simple file system protocol interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16586 6f19259b-4bc3-4df7-8a09-765794883524 commit f98f9d98089be8b5b33669cf6e09f14b819dafc4 Author: Ronald Cron Date: Tue Jan 6 15:49:51 2015 +0000 ArmPlatformPkg/ArmJunoDxe: Close the FDT file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16585 6f19259b-4bc3-4df7-8a09-765794883524 commit f38d0dfbefb1beb480695b7f038c1be300a6b12c Author: Ronald Cron Date: Tue Jan 6 15:48:19 2015 +0000 ArmJunoDxe/InstallFdt.c: Fix the closing of the simple file system protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16584 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a8641b5640b4eeb79a5dedfe48f81805b43c967 Author: Ronald Cron Date: Tue Jan 6 15:47:25 2015 +0000 ArmPlatformPkg: Make PCI emulation more compliant with the UEFI spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16583 6f19259b-4bc3-4df7-8a09-765794883524 commit f88a751a07881f6c4f53f09c796e9938667562e6 Author: Ronald Cron Date: Tue Jan 6 15:46:36 2015 +0000 ArmPkg/BdsLib: Fix DHCP4 configuration Fix DHCP4 configuration as part of TFTP boot process to get the IP address of the gateway and the subnet mask from the DHCP server. Fix a memory leak when the download from the TFTP server fails as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16582 6f19259b-4bc3-4df7-8a09-765794883524 commit 901b45162ab1c4b01dbba48092226ac968b2219f Author: Olivier Martin Date: Tue Jan 6 15:41:59 2015 +0000 ArmPlatformPkg/ArmVExpressPkg: Add support for FV filesystems to ARM platforms Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16581 6f19259b-4bc3-4df7-8a09-765794883524 commit 17409b7aad2b8c4afc55fae1c368f44cb463d35a Author: Star Zeng Date: Mon Jan 5 03:42:17 2015 +0000 SecurityPkg Variable: Implement VarCheck PROTOCOL and follow UEFI spec to check UEFI defined variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16580 6f19259b-4bc3-4df7-8a09-765794883524 commit efb01a104d58942a27aa83643a910b6e76fb7bf8 Author: Star Zeng Date: Mon Jan 5 03:38:36 2015 +0000 MdeModulePkg Variable: Implement VarCheck PROTOCOL and follow UEFI spec to check UEFI defined variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16579 6f19259b-4bc3-4df7-8a09-765794883524 commit 23d04b58e27b382bbd3f9b16ba9adb1cb203dad5 Author: Laszlo Ersek Date: Fri Jan 2 12:08:33 2015 +0000 ArmVirtualizationPkg: Intel BDS: load EFI-stubbed Linux kernel from fw_cfg A number of tools depend on passing the kernel image, the initial ramdisk, and the kernel command line to the guest on the QEMU command line (options -kernel, -initrd, -append, respectively). At the moment, these QEMU options work, but the guest kernel loaded this way is launched by a minimal binary firmware that is dynamically composed by QEMU. As a consequence, such a kernel has no UEFI environment. This patch enables -kernel, -initrd, -append to work on top of the ArmVirtualizationQemu firmware build. The approach it takes is different from how the same functionality is implemented in OvmfPkg. OvmfPkg contains a full-fledged Linux boot loader (see "OvmfPkg/Library/PlatformBdsLib/QemuKernel.c" and "OvmfPkg/Library/LoadLinuxLib/"). OVMF's LoadLinuxLib sets up the required kernel environment in a sophisticated way (including x86-specific artifacts like the GDT), calls ExitBootServices() itself (for legacy kernels without EFI handover protocol), and jumps to the kernel (using x86 assembly). In ArmVirtualizationPkg's PlatformIntelBdsLib, we require the kernel being loaded to have an EFI stub -- that is, to be a genuine UEFI application. (The EFI stub is not an additional burden for guest kernels -- the EFI stub is a hard requirement anyway because it needs to process the DTB heavily: - it removes memory nodes, - it removes memreserve entries, - it adds UEFI properties to the "chosen" node, - it calculates and installs virt-to-phys mappings with SetVirtualAddressMap() in a way that enables kexec [planned]. Kudos to Ard Biesheuvel for summarizing the above.) An EFI-stubbed Linux guest kernel can be loaded with plain gBS->LoadImage(). The EFI stub will look up its own EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL instance (ie. the device path where it has been loaded from), and it will locate the initial ramdisk named by the "initrd" command line parameter as a *sibling file* on the same device. The initrd file is then loaded using the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. This approach enables the EFI stub to load the initial ramdisk from normal EFI System Partitions, from remote PXE/TFTP directories -- and it enables us to provide the initrd from memory as well. In this patch: - We download the kernel image, the initrd image, and the kernel command line, using QEMU's fw_cfg interface. - We create a read-only EFI_SIMPLE_FILE_SYSTEM_PROTOCOL instance that has just a root directory, with the three downloaded files in it. - The handle that carries the simple file system has a single-node VenHw(...) device path (not counting the terminator node). - We load the EFI-stubbed kernel (which is a UEFI application) with gBS->LoadImage(), passing "VenHw(...)/kernel" as device path. This causes gBS->LoadImage() to call back into our filesystem. - Appended to the downloaded command line, we pass "initrd=initrd" to the EFI stub. - Once the EFI stub is running, it loads the initial ramdisk from the "sibling" device path "VenHw(...)/initrd", also calling back into our filesystem. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16578 6f19259b-4bc3-4df7-8a09-765794883524 commit b49ed62df124960d8acfb2432ecc57542d5b7844 Author: Laszlo Ersek Date: Fri Jan 2 12:08:28 2015 +0000 ArmVirtualizationPkg: identify "new shell" as builtin shell for Intel BDS The default value of this PCD (in "IntelFrameworkModulePkg.dec") identifies the "old shell" from EdkShellBinPkg. Our build includes the "new" shell from ShellBinPkg/UefiShell/UefiShell.inf; let's specify the FILE_GUID of that. Otherwise, no boot option will be generated for the Shell application. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16577 6f19259b-4bc3-4df7-8a09-765794883524 commit 274b4a8d79186b2280aec6c7bb5117063acbc052 Author: Laszlo Ersek Date: Fri Jan 2 12:08:24 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: adhere to QEMU's boot order We have all the required pieces in place. Let's call SetBootOrderFromQemu() in PlatformBdsPolicyBehavior(). We disable OFW-to-UEFI device path fragment translation for virtio-pci, and enable it only virtio-mmio at this time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16576 6f19259b-4bc3-4df7-8a09-765794883524 commit 433369169003d4749844615dca4a7239dba8f48b Author: Laszlo Ersek Date: Fri Jan 2 12:08:19 2015 +0000 OvmfPkg: QemuBootOrderLib: OFW-to-UEFI translation for virtio-mmio The TranslateMmioOfwNodes() function recognizes the following OpenFirmware device paths: virtio-blk: /virtio-mmio@000000000a003c00/disk@0,0 virtio-scsi disk: /virtio-mmio@000000000a003a00/channel@0/disk@2,3 virtio-net NIC: /virtio-mmio@000000000a003e00/ethernet-phy@0 The new translation can be enabled with the "PcdQemuBootOrderMmioTranslation" Feature PCD. This PCD also controls if the "survival policy" covers unselected boot options that start with the virtio-mmio VenHw() node. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16575 6f19259b-4bc3-4df7-8a09-765794883524 commit ca0d7c98f249ab686b96c72fc88bc9b665aeb4ef Author: Laszlo Ersek Date: Fri Jan 2 12:08:15 2015 +0000 OvmfPkg: QemuBootOrderLib: widen ParseUnitAddressHexList() to UINT64 The OpenFirmware device path nodes that QEMU generates for virtio-mmio transports contain 64-bit hexadecimal values (16 nibbles) -- the base addresses of the register blocks. In order to parse them soon, ParseUnitAddressHexList() must parse UINT64 values. Call sites need to be adapted, as expected. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16574 6f19259b-4bc3-4df7-8a09-765794883524 commit 73bb8e6895080f07ece26b0db0f50048713c2b93 Author: Laszlo Ersek Date: Fri Jan 2 12:08:11 2015 +0000 ArmVirtualizationPkg: VirtFdtDxe: use dedicated VIRTIO_MMIO_TRANSPORT_GUID Installing VenHw() device paths with this GUID, for the virtio-mmio transports that we detect, enables other modules to recognize those VenHw() nodes. (Note that the actual value doesn't change.) In addition, to avoid reusing GUIDs in unrelated contexts, detach the driver's FILE_GUID from its previous value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16573 6f19259b-4bc3-4df7-8a09-765794883524 commit 3765e030affb69f3c9d6d34a0be48f6bf533c480 Author: Laszlo Ersek Date: Fri Jan 2 12:08:06 2015 +0000 OvmfPkg: introduce VIRTIO_MMIO_TRANSPORT_GUID Soon there will be more than one modules (in separate packages) that need to have an understanding about the GUID used in the VenHw() device path nodes that describe virtio-mmio transports. Define such a GUID explicitly. Preserve the current value (which happens to be the FILE_GUID of ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf) for compatibility with external users. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16572 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f9c55cc1d00c075c20dc196699eb8f0d6029069 Author: Laszlo Ersek Date: Fri Jan 2 12:08:02 2015 +0000 OvmfPkg: QemuBootOrderLib: featurize PCI-like device path translation In preparation for adding OpenFirmware-to-UEFI translation for "MMIO-like" OFW device path fragments, let's turn the currently exclusive "PCI-like" translation into "just one" of the possible translations. - Rename TranslateOfwNodes() to TranslatePciOfwNodes(), because it is tightly coupled to "PCI-like" translations. - Rename REQUIRED_OFW_NODES to REQUIRED_PCI_OFW_NODES, because this macro is specific to TranslatePciOfwNodes(). - Introduce a new wrapper function under the original TranslateOfwNodes() name. This function is supposed to try translations in some order until a specific translation returns a status different from RETURN_UNSUPPORTED. - Introduce a new Feature PCD that controls whether PCI translation is attempted at all. - The boot option "survival policy" in BootOrderComplete() must take into account if the user was able to select PCI-like boot options. If the user had no such possibility (because the Feature PCD was off for PCI-like translation), then we ought to keep any such unselected boot options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16571 6f19259b-4bc3-4df7-8a09-765794883524 commit cca7475bcbb8bfc7c732e106692a6d15e1dae51c Author: Laszlo Ersek Date: Fri Jan 2 12:07:57 2015 +0000 OvmfPkg: extract QemuBootOrderLib and rebase OvmfPkg's PlatformBdsLib on the standalone library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16570 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b610ac2550d053d0997832059cc83247888bae4 Author: Laszlo Ersek Date: Fri Jan 2 12:07:52 2015 +0000 ArmVirtualizationPkg: PlatformIntelBdsLib: add basic policy In PlatformBdsPolicyBehavior() we should follow the same pattern as in OvmfPkg's: after the consoles are connected, - connect all drivers and devices, - enumerate all boot options, - enter the Intel BDS FrontPage if the user presses a key different from Enter. We set the countdown to 3 seconds, similarly to the timeout that we specify for ARM BDS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16569 6f19259b-4bc3-4df7-8a09-765794883524 commit be8afe14f1e25672b12c15b38d253b4c7f98be86 Author: Laszlo Ersek Date: Fri Jan 2 12:04:25 2015 +0000 ArmVirtualizationPkg: clone PlatformIntelBdsLib from ArmPlatformPkg In the next patch(es) we'll customize the PlatformBdsLib instance used by ArmVirtualizationQemu.dsc. Let's clone it first verbatim from ArmPlatformPkg/Library/PlatformIntelBdsLib, changing only its FILE_GUID. (Also, coding style errors like "missing space before open parenthesis" and "missing space after comma or semicolon" have been cleaned up.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16568 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e2543b01d0cbd16b3fbcc6f12f6938d8c12bcc8 Author: Laszlo Ersek Date: Fri Jan 2 12:04:15 2015 +0000 ArmVirtualizationPkg: introduce QemuFwCfgLib instance for DXE drivers After reviewing OvmfPkg's use of its own QemuFwCfgLib instances, it is clear that its only pre-DXE fw_cfg dependency concerns S3 support (the QemuFwCfgS3Enabled() call in "PlatformPei/Platform.c"). For ARM guests, S3 is in the distant future, but we can see several shorter term applications for fw_cfg that all reside in DXE: - controlling boot order (to be implemented in PlatformBdsLib for Intel BDS), - supporting -kernel / -initrd / -append boot on QEMU (to be implemented in PlatformBdsLib for Intel BDS, similarly), - loading and linking ACPI tables, - installing SMBIOS tables. Therefore it makes sense to add a simple MMIO-based fw_cfg client library to ArmVirtualizationPkg that for the moment is only available to DXE_DRIVER modules. Because MMIO accesses are costly on KVM/ARM, InternalQemuFwCfgReadBytes() accesses the fw_cfg data register in full words. This speeds up transfers almost linearly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16567 6f19259b-4bc3-4df7-8a09-765794883524 commit ad652d46941c6a1e0f828cb084fb6829c3abb68d Author: Laszlo Ersek Date: Fri Jan 2 12:04:05 2015 +0000 ArmVirtualizationPkg: VirtFdtDxe: forward FwCfg addresses from DTB to PCDs Qemu's firmware configuration interface for ARM consists of two MMIO registers, a 16-bit selector, and a 64-bit data register that allows the guest to transfer data with 8, 16, 32, and 64-bit wide accesses. Parse the base address from the DTB, and expose the registers to the rest of DXE via dynamic PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16566 6f19259b-4bc3-4df7-8a09-765794883524 commit 931aae946fd301cc0b49a60edcde7680d5ceaf45 Author: Dong Guo Date: Wed Dec 31 01:47:39 2014 +0000 Remove the FV header assumption in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Gao Liming Reviewed-by: Zeng Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16565 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fcbeaeacd1fb2d9dbc6d6c92d75d785b71df4b3 Author: Dong Guo Date: Wed Dec 31 01:46:50 2014 +0000 Remove the FV header assumption in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Gao Liming Reviewed-by: Zeng Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16564 6f19259b-4bc3-4df7-8a09-765794883524 commit 42435671334345f91e7cb2e5e963ed457fbb61d6 Author: Qiu Shumin Date: Wed Dec 31 01:31:00 2014 +0000 ShellPkg: Check the unrecognized environment variable name before it is removed from command line. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16563 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a2dcd134a23491148af21792cec45252996d0d9 Author: Feng Tian Date: Tue Dec 30 08:18:57 2014 +0000 MdeModulePkg/FvSimpleFileSystem:Fix a potential NULL dereference issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16562 6f19259b-4bc3-4df7-8a09-765794883524 commit 871f6733152c08e6c68e5de8580ac624fb65269a Author: Eric Dong Date: Tue Dec 30 03:03:37 2014 +0000 Rollback change 16544. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16561 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f6792b82085c125df476ed5f8347afcbad1af5d Author: Qiu Shumin Date: Fri Dec 26 08:22:35 2014 +0000 ShellPkg: Add code to handle the split ('|') in a double-quoted string. This patch update the code in function 'ContainsSplit', and make 'ContainsSplit' depend on 'FindNextInstance'. So we move 'FindNextInstance' in front of 'ContainsSplit'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16560 6f19259b-4bc3-4df7-8a09-765794883524 commit 12d95665cb0e088afe2cd395f0acc7fdb2604acc Author: Long, Qin Date: Thu Dec 25 08:37:08 2014 +0000 Correct the Hash Calculation for Revoked X.509 Certificate to align with RFC3280 and UEFI 2.4 Spec. This patch added one new X509GetTBSCert() interface in BaseCryptLib to retrieve the TBSCertificate, and also corrected the hash calculation for revoked certificate to aligned the RFC3280 and UEFI 2.4 spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Long, Qin" Reviewed-by: "Dong, Guo" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16559 6f19259b-4bc3-4df7-8a09-765794883524 commit 270fc03f3e0c4d446926d490f1f9bb9ae0f2cf27 Author: Feng Tian Date: Thu Dec 25 07:08:02 2014 +0000 MdeModulePkg/FvSimpleFileSystem: Fix building error with 32bit tool chains. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16558 6f19259b-4bc3-4df7-8a09-765794883524 commit 0927c81df6eac780c326866be9cd6116d5556e57 Author: Deric Cole Date: Wed Dec 24 00:53:11 2014 +0000 Address the potential system TPL does not been restore. This patch make sure the TPL been raised and restored in pair. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Deric Cole Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16556 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b13fe741b7221514da510c165a55e47a3d377b2 Author: Ruiyu Ni Date: Tue Dec 23 09:56:33 2014 +0000 Do not assert when the device path node length is invalid. Because IsDevicePathValid() calls this API we should leave the device path validation in the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16555 6f19259b-4bc3-4df7-8a09-765794883524 commit e4b0415d59d00eacc0ce4755ad6aaab80b16075c Author: Hot Tian Date: Tue Dec 23 08:33:49 2014 +0000 MdePkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16553 6f19259b-4bc3-4df7-8a09-765794883524 commit 736a692e7c0210eb71c01c39731ef97383d606eb Author: Hot Tian Date: Tue Dec 23 08:33:06 2014 +0000 MdeModulePkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16552 6f19259b-4bc3-4df7-8a09-765794883524 commit b947f0cf4431769ded585ac7fd57ab1744149b26 Author: Hot Tian Date: Tue Dec 23 08:31:24 2014 +0000 IntelFrameworkPkg: fix mixed dos and linux EOL format issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16551 6f19259b-4bc3-4df7-8a09-765794883524 commit 997a5d1b049beb6af2ed40195b0b1c8aaf3bd555 Author: Cinnamon Shia Date: Tue Dec 23 05:48:31 2014 +0000 Fix ‘build run’ doesn’t work for NT32 X64 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cinnamon Shia Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16550 6f19259b-4bc3-4df7-8a09-765794883524 commit 9093fb92d56efa02ab47ddddeb4068855d0632bd Author: Yao, Jiewen Date: Tue Dec 23 04:06:52 2014 +0000 Correct AuthHandle definition for Tpm2SetPrimaryPolicy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16549 6f19259b-4bc3-4df7-8a09-765794883524 commit a50e58f48b310737a1027effd9f21d9aaf7f6d26 Author: Yao, Jiewen Date: Tue Dec 23 04:03:32 2014 +0000 Add TPM2 commands which might be used in provision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16548 6f19259b-4bc3-4df7-8a09-765794883524 commit 9da91aea69569feceb23cf502c81a32a4121d362 Author: Brendan Jackman Date: Tue Dec 23 03:18:04 2014 +0000 MdeModulePkg/FvSimpleFileSystem: Add a new module to provide access to executable files in FVs. This module implements Simple FileSystem protocol over Firmware Volume (FV). EFI Modules included into a FV can be listed and launched from the EFI Shell or any other EFI applications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Signed-off-by: Feng Tian Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16547 6f19259b-4bc3-4df7-8a09-765794883524 commit 32d258b5e78f0f45562a0cad909fd4add4b521d0 Author: Ruiyu Ni Date: Mon Dec 22 07:30:06 2014 +0000 Remove unnecessary RT attribute from LegacyDevOrder variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16545 6f19259b-4bc3-4df7-8a09-765794883524 commit f571ef9880ed8f3f3b41b12015b5079b508151de Author: Aaron Pop Date: Mon Dec 22 02:21:53 2014 +0000 Fixed VfrCompile crash on efivarstore statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Aaron Pop Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16544 6f19259b-4bc3-4df7-8a09-765794883524 commit 36c6413f76e5f16f866dc77e213abbcc6e13e7f2 Author: Gary Lin Date: Fri Dec 19 19:13:44 2014 +0000 OvmfPkg: enable the IPv6 support There are several network stack drivers in MdeModulePkg or NetworkPkg. Currently, we only use the drivers from MdeModulePkg which only provides the IPv4 support. This commit adds the IPv6 drivers in NetworkPkg into OVMF. Here is the table of drivers from Laszlo. currently included related driver add or replace from MdeModulePkg in NetworkPkg from NetworkPkg ------------------ -------------- --------------- SnpDxe n/a n/a DpcDxe n/a n/a MnpDxe n/a n/a VlanConfigDxe n/a n/a ArpDxe n/a n/a Dhcp4Dxe Dhcp6Dxe add Ip4ConfigDxe Ip6Dxe add Ip4Dxe Ip6Dxe add Mtftp4Dxe Mtftp6Dxe add Tcp4Dxe TcpDxe replace Udp4Dxe Udp6Dxe add UefiPxeBcDxe UefiPxeBcDxe replace IScsiDxe IScsiDxe replace Since the TcpDxe, UefiPxeBcDxe, and IScsiDxe drivers in NetworkPkg also support IPv4, we replace the ones in MdeModulePkg. To enable the IPv6 support, build OVMF with "-D NETWORK_IP6_ENABLE". A special case is NetworkPkg/IScsiDxe. It requires openssl. For convenience, NetworkPkg/IScsiDxe is enabled only if both IPv6 and SecureBoot are enabled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin [lersek@redhat.com: typo fix in commit message; specil -> special] Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16543 6f19259b-4bc3-4df7-8a09-765794883524 commit d89d1a546a7db864cc94efc3ba79db61e1dc3ba1 Author: Eric Dong Date: Fri Dec 19 05:30:04 2014 +0000 MdeModulePkg: 1.Add code to cover the space which is not covered by browser before. 2.Remove ESC help string for front page screen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16541 6f19259b-4bc3-4df7-8a09-765794883524 commit 514556741981eb1353dbcffa04d46fdb945ffe7a Author: Yao, Jiewen Date: Fri Dec 19 05:21:55 2014 +0000 Use better coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Qiu, Shumin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16540 6f19259b-4bc3-4df7-8a09-765794883524 commit 3532030489e93e67703a3c3df53fd9dfdee68f97 Author: Qiu Shumin Date: Fri Dec 19 02:37:53 2014 +0000 Code refine. Check the original length of array to avoid buffer over flow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16539 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a497016c9f6aa60e9be330d1592f8b5e71156ef Author: Chris Ruffin Date: Thu Dec 18 06:13:36 2014 +0000 MdeModulePkg\Bus\Ata\AtaAtapiPassThru: don't set PxSACT bit when issuing command Setting a bit in the PxSACT register for a command in the command list indicates to the controller that the command list slot contains a native queued command (NCQ). This can cause problems with some controllers (one such controller is the Marvell 9128). Since NCQ commands are not used, don't set the PxACT register for commands issued. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16536 6f19259b-4bc3-4df7-8a09-765794883524 commit 07f986f134abf85b4b1f360ca3c86f22cd9f92da Author: Gary Lin Date: Thu Dec 18 03:03:52 2014 +0000 Fix a bug that the gateway is not necessary in a simple PXE network. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16535 6f19259b-4bc3-4df7-8a09-765794883524 commit 4123bd7bf7c70998353b187b593dc992e0dcb146 Author: Jeff Fan Date: Wed Dec 17 05:31:42 2014 +0000 SourceLevelDebugPkg DebugAgentLib: Fix build error with GNU assembler Use mov instead of movw. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16531 6f19259b-4bc3-4df7-8a09-765794883524 commit e5030c1ec58c4a9bf3e70414a0413ceff7f583a9 Author: Jeff Fan Date: Wed Dec 17 05:30:33 2014 +0000 UefiCpuPkg CpuExceptionHandlerLib: Use %rax instead of %eax to make code consistence. Make code consistence between ASM and S files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16530 6f19259b-4bc3-4df7-8a09-765794883524 commit a1252397f50ecc02b37d4fa2db22f7b9fa7ffdf4 Author: Jordan Justen Date: Wed Dec 17 05:16:48 2014 +0000 MdeModulePkg DebugSupportDxe: Fix build error with GNU assembler The GNU assembler (2.24.51.20140918) is failing to build when movw is used on this instruction. Instead use the mov instruction, which matches the other cases of loading segment registers. The error message seen is: AsmFuncs.iii:283: Error: incorrect register `%rax' used with `w' suffix Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16529 6f19259b-4bc3-4df7-8a09-765794883524 commit fd8a2eb062678ea4f286974137bb2aec259e7321 Author: Star Zeng Date: Wed Dec 17 00:39:51 2014 +0000 MdeModulePkg DxeCore: Fix potential FV overflow of 4GB boundary on a 32-bit systems. The traversing of a Memory Mapped FV can overflow the 4GB limit on a 32bit system during the setting up a Linked List of FFS file inside the FV. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16527 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c23ddaa00e68f63b1934cd864790a5aff04ad74 Author: jaben carsey Date: Tue Dec 16 17:50:57 2014 +0000 ShellPkg: Remove IntelFramweorkModulePkg as Shell library dependency Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Tim Lewis Reviewed-by: Samer El-Haj-Mahmoud git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16526 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d6ccad2b96efbf38ed6bf8a06d320a63e96c6f6 Author: Qiu Shumin Date: Tue Dec 16 02:52:00 2014 +0000 ShellPkg: Code refine. Add error handling code to check pointer and remove redundant 'ASSERT'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16525 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d956ea2306a727368ae6dc4862ec408a7a363b5 Author: Olivier Martin Date: Mon Dec 15 11:13:44 2014 +0000 ArmPlatformPkg: Fixed build The original patch was assuming PathLib moved to MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16522 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bb390f1375b51cdc50fce0a763c38fad7748120 Author: Eric Dong Date: Mon Dec 15 10:05:42 2014 +0000 MdePkg: Add deprecate flag for the functions which has a replace function in safe c library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16521 6f19259b-4bc3-4df7-8a09-765794883524 commit 6395c642ae74ee14a8aa513f83bae41645a1f846 Author: Liming Gao Date: Mon Dec 15 09:36:46 2014 +0000 MdeModulePke: PeiCore FirmwareVolmeInfoPpiNotifyCallback ()issue PeiCore FirmwareVolmeInfoPpiNotifyCallback() should check FvCount when new one is added. Now, this check is the entry of Notify function that is too early, because PeiCore will install FvInfo and FvInfo2 both for one sub FV image and trig FvNotify function twice for the same FV images. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16520 6f19259b-4bc3-4df7-8a09-765794883524 commit 84b8497338c2242a92c10de801d12ab389573807 Author: Laszlo Ersek Date: Mon Dec 15 08:00:40 2014 +0000 Eliminate the variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16519 6f19259b-4bc3-4df7-8a09-765794883524 commit d5daaa836f46a3f8fe57da37cad7841d2a9c4aca Author: Olivier Martin Date: Fri Dec 12 19:32:50 2014 +0000 ArmPkg/AsmMacroIoLib: Fixed the global variables initialization The top of the stack always points to 'stack_base + stack_size'. But the stack pointer is decremented before writing to the stack. It means the top byte of the stack is actually 'stack_base + stack_size - 1'. The initialization should also decrement the stack pointer before zero'ing the memory (pre-indexed addressing). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16518 6f19259b-4bc3-4df7-8a09-765794883524 commit 85774874bcd13dba0ed8886ab5eb36b1ccdc44c1 Author: Olivier Martin Date: Fri Dec 12 19:15:37 2014 +0000 ArmPkg/BdsLib: Update the size of the Device Tree before booting Linux The memory reserved to load the device tree is over-allocated when UEFI loads the blob to update the device tree with additional information such as the command line, the initrd, etc. This change ensures the total size declared by the device tree matches the actual data (and not the over-allocated size value). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16517 6f19259b-4bc3-4df7-8a09-765794883524 commit 061568e2d5f21aeafa942891b15768c57fa0ffac Author: Ronald Cron Date: Fri Dec 12 19:14:22 2014 +0000 ArmPkg/BdsLib: Rework TFTP boot Rework the downloading of an image from a TFTP server to do not depend on any "PXE specific" setting of the DHCP server. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16516 6f19259b-4bc3-4df7-8a09-765794883524 commit b4c222655c8182febba890019367609ac278b1ba Author: Olivier Martin Date: Fri Dec 12 19:13:04 2014 +0000 ArmPlatformPkg/Bds: Test if OptionalData is NULL before using it Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16515 6f19259b-4bc3-4df7-8a09-765794883524 commit 830e5b8c0f8dda3c46313200e1464548b2b7d2a3 Author: Olivier Martin Date: Fri Dec 12 19:11:56 2014 +0000 ArmPlatformPkg/Bds: Fixed memory leak Device Paths were not freed after calling BDS_LOAD_OPTION_SUPPORT.CreateDevicePathNode() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16514 6f19259b-4bc3-4df7-8a09-765794883524 commit 23666400234149a9c64b5881805db49cb8342ee7 Author: Ronald Cron Date: Fri Dec 12 19:10:58 2014 +0000 ArmPkg/GenericWatchdogDxe: Set up the watchdog timeout relatively to the system counter Use the system counter to compute the watchdog compare value as the watchdog compare value is compared to the system counter to check if the watchdog timeout expired or not. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16513 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b4d97a0ea92289181d565000b9fcc81054d78ee Author: Ronald Cron Date: Fri Dec 12 19:09:24 2014 +0000 ArmPlatformPkg/ArmJunoPkg: Move the watchdog generic driver to ArmPkg/Drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16512 6f19259b-4bc3-4df7-8a09-765794883524 commit 95204533ad8ef83e0f5128ce03831eb5bcbac6cf Author: Ronald Cron Date: Fri Dec 12 19:06:10 2014 +0000 ArmPlatformPkg/BootMonFs: Fix the setting of information about a file Rework the setting of information about a file, in particular file resizing, file renaming and the returned error codes in case of error. This rework has implied a rework of the read, write, close and flush functions. To strickly separate what has been actually written to the media (flushed) from what has not been written when a file is open, an "Info" field has been added to the description of a file. The field is used to store the modifications done to the file by the means of SetInfo() like the change of the name or of the size. Such changes are written to the media only when a flush occurs. When a file is open, the information pointed to by the "Info" field is always up-to-date. This is not the case of the information stored in the "HwDescription" of the file description which from now is just a mirror of what is written on the media. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16511 6f19259b-4bc3-4df7-8a09-765794883524 commit fb08c45511edba2bc8f129135d1916eab02ee2fc Author: Ronald Cron Date: Fri Dec 12 19:03:30 2014 +0000 ArmPlatformPkg/BootMonFs: Fix error codes returned by Open() and Read() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16510 6f19259b-4bc3-4df7-8a09-765794883524 commit a40ff4578d62ac86b76e90d2c79b818b635ec7d8 Author: Olivier Martin Date: Fri Dec 12 19:00:37 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Removed compiler family to the AArch64 assembly files LLVM/ARMCC6 supports GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16509 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a8fa966d3f1bf8c5b4ad03e120c702b2c6ffa5e Author: Olivier Martin Date: Fri Dec 12 18:58:47 2014 +0000 ArmPlatformPkg: The toolchain family name can be omitted if the options are common Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16508 6f19259b-4bc3-4df7-8a09-765794883524 commit 967eaccaaa9aa22893882806124c3c7f7abb927b Author: Yao, Jiewen Date: Fri Dec 12 04:34:19 2014 +0000 Add TPM2 commands which might be used in field upgrade. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Dong, Guo" Reviewed-by: "Long, Qin" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16505 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f2c0260b1727ba2f249e5a6f4c07b51e9ce3881 Author: Star Zeng Date: Fri Dec 12 03:19:47 2014 +0000 MdeModulePkg DxeCore: Remove @retval function comments for CoreUpdateMemoryAttributes(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16504 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b24f2cfe016f70236034fa033e5f5c9f6f310a0 Author: Liming Gao Date: Fri Dec 12 03:17:55 2014 +0000 MdeModulePkg DXE FpdtStatusCodeHandler: Check Boolean value in if statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16503 6f19259b-4bc3-4df7-8a09-765794883524 commit 99730361ec4724c07f6898a59615a8d33166e62f Author: Olivier Martin Date: Fri Dec 12 02:01:54 2014 +0000 MdeModulePkg/DxeCore: Fixed compiler error 'enumerated type mixed with another type' ARM Toolchain raises a warning/error when an integer is used instead of a enum value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16501 6f19259b-4bc3-4df7-8a09-765794883524 commit 41089802d5046d5d4790bb64ae35f87db3115cb2 Author: Dong Eric Date: Fri Dec 12 00:45:05 2014 +0000 Refine code to follow edkii coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Eric Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16500 6f19259b-4bc3-4df7-8a09-765794883524 commit 300c1f0d354bbb4ec1c7a97bf508c656983f6eec Author: Eric Dong Date: Thu Dec 11 08:03:19 2014 +0000 MdeModulePkg: Update the device path info for the storage when former drivers not provide it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16499 6f19259b-4bc3-4df7-8a09-765794883524 commit 5789fe3587ce0fb2fa5af1b00b11b5b0659b3289 Author: Dong Guo Date: Thu Dec 11 06:34:57 2014 +0000 correct a data type error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Dong Eric Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16498 6f19259b-4bc3-4df7-8a09-765794883524 commit 684a565a0459b758e69a5b95a8c4b34704124930 Author: Liming Gao Date: Wed Dec 10 08:45:44 2014 +0000 MdeModulePke: DxeCore NotifyFwVolBlock() function issue Fix DxeCore NotifyFwVolBlock() function to make sure FV protocol is installed for all valid PI FV images. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16496 6f19259b-4bc3-4df7-8a09-765794883524 commit 61959fa9baeed976adefa2043390f2ad208d894e Author: Chao Zhang Date: Wed Dec 10 08:21:05 2014 +0000 Fix potential NULL pointer dereference issue in TcgDxe & TreeDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16494 6f19259b-4bc3-4df7-8a09-765794883524 commit 213cc1000e6af3c90aefdef2f0f9d5aa99f758d1 Author: Dong Guo Date: Wed Dec 10 08:09:20 2014 +0000 Add failed image Name in the Image Execution Information Table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Zhang Chao B git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16493 6f19259b-4bc3-4df7-8a09-765794883524 commit b01fcf92ad7fb4ce2c9819b746c7bc5ad0586aa1 Author: Qin Long Date: Wed Dec 10 08:05:42 2014 +0000 Update the build option to eliminate possible build warning for IPF platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16492 6f19259b-4bc3-4df7-8a09-765794883524 commit beaec44e6216ac196205e45e27316fe64df3def0 Author: Jeff Fan Date: Wed Dec 10 02:24:50 2014 +0000 Add HobLib DXE instance for SMM_CORE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16488 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d62ae35ca6a4d0331f9ebd7609265378e69afbf Author: Hess Chen Date: Tue Dec 9 06:41:58 2014 +0000 BaseTools/ECC: Fix some issues of ECC tool Add support for the usage which is defined in the above line for a Protocol/Ppi/Guid Add support for “!ERROR” Ignore issue of parsing a macro Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16487 6f19259b-4bc3-4df7-8a09-765794883524 commit 3720ee6d32219fd67d391f53f2cb812dc197a86b Author: Jeff Fan Date: Tue Dec 9 02:20:16 2014 +0000 Checking if gSmmCorePrivate->CommunicationBuffer is in supported physical address scope. If CommunicationBuffer is not in valid address scope, return EFI_INVALID_PARAMETER. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Michael D Kinney Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16486 6f19259b-4bc3-4df7-8a09-765794883524 commit baaacdc82378d432f1c9c6ae0625869a26c174e0 Author: Yao, Jiewen Date: Sat Dec 6 01:05:19 2014 +0000 Move EndOfPei signal earlier before giving control back to FspInitDone. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16480 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b559c1a1d2f76f87aeafcab2764ca00bb7f8f13 Author: Yao, Jiewen Date: Sat Dec 6 00:31:40 2014 +0000 Added missing gFspBootLoaderTemporaryMemoryGuid to the FspPlatformLib.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16479 6f19259b-4bc3-4df7-8a09-765794883524 commit 975f1c64174967c6e1e26d63892b630a6bea8b23 Author: Yao, Jiewen Date: Sat Dec 6 00:29:04 2014 +0000 Updated FspApiEntry.asm/.s to auto detect the size of the MCU region. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16478 6f19259b-4bc3-4df7-8a09-765794883524 commit 54190e8366e79b5b2baacb07dc43b481fd54baa0 Author: Qiu Shumin Date: Fri Dec 5 02:33:45 2014 +0000 ShellBinPkg: Ia32/X64 Shell binary update. The binaries of ShellBinPkg are generated with ShellPkg project 16473. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16477 6f19259b-4bc3-4df7-8a09-765794883524 commit 63c05743b481945e729f22554b0916e526e05a3d Author: Yao, Jiewen Date: Fri Dec 5 00:28:11 2014 +0000 Specify little-endian, and then use the “Standard size” from the chart. Enhance python tool. The default being native size (and alignment) means by default the standard sizes are not used, which might cause different behavior on difference compiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Andrew Fish" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16476 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e89d9ceeb3a69f3554471095ded6b0496fa541e Author: Yao, Jiewen Date: Thu Dec 4 06:03:58 2014 +0000 Fix typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16475 6f19259b-4bc3-4df7-8a09-765794883524 commit 59c30d741646018c7f9b4d86010133e0f698c1d0 Author: Yao, Jiewen Date: Thu Dec 4 06:01:15 2014 +0000 properly support GCC - pass 'I' (int) rather than 'L' (long) to struct.unpack. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" Reviewed-by: "Rangarajan, Ravi P" Reviewed-by: "Ma, Maurice" Reviewed-by: "Mudusuru, Giri P" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16474 6f19259b-4bc3-4df7-8a09-765794883524 commit d86b04fbe9955e3fc56f3f529a505005ad3a090f Author: Qiu Shumin Date: Thu Dec 4 01:18:04 2014 +0000 ShellPkg: Connect all the consoles in "reconnect -r". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16473 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f586b85c3f617ba802e663b4b3b303e06140863 Author: Randy Pawell Date: Thu Dec 4 00:55:50 2014 +0000 NetworkPkg: Source fixes and cleanup for ARMGCC compiles - Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Delete excess local variables that are initialized but otherwise unused. - Add LibraryClasses.ARM & AARCH64 section in NetworkPkg.dsc file, containing a CompilerIntrinsicsLib null-library, required for successful standalone package builds (copied from MdeModulePkg.dsc). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell Reviewed-by: Fu Siyuan Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16472 6f19259b-4bc3-4df7-8a09-765794883524 commit 35f910f08b58e978bc9251872635075d6f422e48 Author: Randy Pawell Date: Thu Dec 4 00:32:24 2014 +0000 MdeModulePkg: Source fixes and cleanup for ARMGCC compiles - Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Fix a EFI_INPUT_KEY usage in TerminalDxe to use CopyMem() to copy the structure instead of direct assignment, to avoid runtime alignment error. - Delete excess local variables that are initialized but otherwise unused. - CompilerIntrinsicsLib library now imported for AARCH64, as well as ARM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell Reviewed-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16471 6f19259b-4bc3-4df7-8a09-765794883524 commit 40a0f8cb78cb6728039465b92d6808d262d2d110 Author: Liming Gao Date: Wed Dec 3 15:34:08 2014 +0000 MdeModulePkg: Unregister DXE FpdtStatusCodeHandler. DXE FpdtStatusCodeHandler is required to be unregistered even if StatusCodeReport is disabled. This change makes sure FpdtStatusCodeHandler be always unregistered. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Jiewen Yao Reviewed-by: Vincent Zimmer git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16470 6f19259b-4bc3-4df7-8a09-765794883524 commit 8546dfeace040f9f6547cb1b44651a44b8b9670e Author: Yingke Liu Date: Wed Dec 3 08:30:56 2014 +0000 Fix a regression bug to uni parser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16469 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e0699c06e985c2e5067e6ca93f1c2db863f1760 Author: Qin Long Date: Wed Dec 3 07:40:32 2014 +0000 Code clean-up to eliminate potential "dereferenced pointer" warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16468 6f19259b-4bc3-4df7-8a09-765794883524 commit 2aa580be6549536d7a6c57f73f928a69124fe679 Author: Bruce Cran Date: Tue Dec 2 21:30:41 2014 +0000 StdLib/BsdSocketLib: Fix function declaration mismatch with definition. Replace the existing old-style function declarations for Field, cvtbase and spectHex in BsdSocketLib with real prototypes. This allows StdLib to build using the GCC48 toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bruce Cran Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16467 6f19259b-4bc3-4df7-8a09-765794883524 commit b8ff0f16d9a01be8b972f3ea78bc64459d0ad6ba Author: Samer El-Haj-Mahmoud Date: Tue Dec 2 01:51:37 2014 +0000 Fix memory leak in Ip4Config. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Fu Siyuan Reviewed-by: Tian Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16465 6f19259b-4bc3-4df7-8a09-765794883524 commit 62771cee1d453fbb0dd2e38953e0d8b3a4506fa4 Author: Scott Duplichan Date: Tue Dec 2 00:44:04 2014 +0000 Fix ARM build failure with gcc 4.6. Gcc option -mno-unaligned-access is supported by gcc 4.7 and newer, so it shouldn't be used with gcc 4.6. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Yingke Liu Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16464 6f19259b-4bc3-4df7-8a09-765794883524 commit edafa0bbe423d5d6129f4d18de176dfd73b6cfcf Author: Yingke Liu Date: Mon Dec 1 08:22:07 2014 +0000 Enhance error handling for external tool. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16458 6f19259b-4bc3-4df7-8a09-765794883524 commit c1589a2c24abbc026120e3b045f9045448f64b2d Author: Liming Gao Date: Mon Dec 1 08:17:51 2014 +0000 PerformancePkg: Update comments on TscTimerLib TscTimerLib is a sample implementation that depends on chipset ACPI timer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16457 6f19259b-4bc3-4df7-8a09-765794883524 commit 71f02911b176657c1c8dc952f93a022719ea878a Author: Cecil Sheng Date: Mon Dec 1 01:05:05 2014 +0000 Corrected slash and quote handling in the strings of UNI files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16456 6f19259b-4bc3-4df7-8a09-765794883524 commit b04a63ac48a73329006d25e8b7518bc09bb9843c Author: Laszlo Ersek Date: Fri Nov 28 10:24:56 2014 +0000 MdePkg: UefiScsiLib: do not encode LUN in CDB for other SCSI commands The TEST UNIT READY, INQUIRY, MODE SENSE, REQUEST SENSE and READ CAPACITY commands define bits [7:5] of Cdb[1] as Reserved (potentially as part of a larger Reserved bitfield): Command Reserved bitfield in Cdb[1] SCSI spec reference ------------------ --------------------------- ------------------- TEST UNIT READY all bits SPC-4 6.37 INQUIRY bits [7:2] SPC-4 6.4.1 MODE SENSE (6) bits [7:4] SPC-4 6.11.1 MODE SENSE (10) bits [7:5] SPC-4 6.12 REQUEST SENSE bits [7:1] SPC-4 6.29 READ CAPACITY (10) bits [7:1] SBC-3 5.16 READ CAPACITY (16) bits [7:5] SBC-3 5.17 Update the UefiScsiLib functions accordingly. (In ScsiReadCapacity16Command() the LUN has not been encoded, so there we just remove the useless ScsiIo->GetDeviceLocation() call, with its auxiliary local variables.) The EFI_SCSI_TARGET_MAX_BYTES and EFI_SCSI_LOGICAL_UNIT_NUMBER_MASK macros become unused with this patch, remove them too. Suggested-by: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16455 6f19259b-4bc3-4df7-8a09-765794883524 commit c128d5281ffb25d8c335a3cce6a9a9497df57059 Author: Laszlo Ersek Date: Fri Nov 28 10:24:41 2014 +0000 MdePkg: UefiScsiLib: do not encode LUN in CDB for READ and WRITE The "SCSI Block Commands - 2" (SBC-2) standard defines bits [7:5] of the CDB byte 1 as Reserved, for the READ and WRITE commands. The updated "SCSI Block Commands - 3" (SBC-3) standard defines the same bitfield as RDPROTECT and WRPROTECT, respectively. After reviewing the above standards, and the following commits: - SVN r8331 (git 676e2a32), - SVN r8334 (git 6b3ecf5c), we've determined that UefiScsiLib is incorrect in encoding the LUN in this bitfield for the READ and WRITE commands. Encoding a nonzero LUN there creates unintended RDPROTECT and WRPROTECT values, which the recipient device is required to reject if it does not support protection information, with CHECK CONDITION, ILLEGAL REQUEST, INVALID FIELD IN CDB: ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! ScsiDiskRead10: Check Condition happened! ScsiDisk: Sense Key = 0x5 ASC = 0x24! FatOpenDevice: read of part_lba failed Device Error In practice this flaw breaks UefiScsiLib minimally on SCSI disks with nonzero LUNs that are emulated by QEMU (after QEMU commit 96bdbbab, part of v1.2.0). RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1166971 Reported-by: Cole Robinson Suggested-by: Paolo Bonzini Suggested-by: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16454 6f19259b-4bc3-4df7-8a09-765794883524 commit 80fbf5863264e7330eea3dc5ed6153eab57ed3ff Author: Star Zeng Date: Thu Nov 27 02:51:04 2014 +0000 MdeModulePkg DxeCore: Check pointer AllocInfoData before dereferencing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16453 6f19259b-4bc3-4df7-8a09-765794883524 commit a71c80b66884511760f4c829375f069f6fa22c4f Author: Samer El-Haj-Mahmoud Date: Thu Nov 27 02:17:28 2014 +0000 Added PlatformNotification to ACPI 5.0 PCCT structure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16452 6f19259b-4bc3-4df7-8a09-765794883524 commit 2e097165e9ad2bfc373b2a8f1126267f14ca26a3 Author: Eric Dong Date: Thu Nov 27 02:14:14 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16451 6f19259b-4bc3-4df7-8a09-765794883524 commit 01331951708f980fca1fb3a791ab544adcd3a5d0 Author: Samer El-Haj-Mahmoud Date: Thu Nov 27 01:01:43 2014 +0000 MdeModulePkg: Misc comments and DEBUG messages Fixed some spelling typos in some comments. Added a couple of useful DEBUG messages Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16450 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bf41ed7dc20f0f6e13babb136753ff3f91edd21 Author: Qin Long Date: Wed Nov 26 08:21:54 2014 +0000 Correct the alignment calculation of PE/COFF attribute certificate entry. This is to resolve the possible certificate entry retrieving issue caused by un-aligned (8-bytes) VirtualAddress in some PE/COFF image, which may break secure boot. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Siyuan Fu Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16449 6f19259b-4bc3-4df7-8a09-765794883524 commit 8cc87d32c65316a98a737bb887ba316b81f8bbf1 Author: Samer El-Haj-Mahmoud Date: Wed Nov 26 07:17:31 2014 +0000 Fix an issue in the PCD service to prevent potential out of bound array access that can cause an exception. mPeiExMapppingTableSize is the table size, but the code needs to check the entry number. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16448 6f19259b-4bc3-4df7-8a09-765794883524 commit 42645c3dcf0488c616422dcdfd1596939223f432 Author: Eric Dong Date: Wed Nov 26 02:44:06 2014 +0000 Fixed user input arrow down/ page down caused form display highlight menu error. When scroll menu to the one not shows in current form, and this menu has option mismatch error, current display engine will not highlight this menu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16447 6f19259b-4bc3-4df7-8a09-765794883524 commit 59e4c8e2bde4c25a8e3ea6916b0bfa9f77025e31 Author: Peter Jones Date: Wed Nov 26 01:22:15 2014 +0000 EdkCompatibilityPkg: Make this field name match the name in the spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Peter Jones Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16446 6f19259b-4bc3-4df7-8a09-765794883524 commit 59febea1f5390c9cc2b3199f1a0be7c39f7bb203 Author: Samer El-Haj-Mahmoud Date: Tue Nov 25 22:41:30 2014 +0000 ShellPkg: Update Shell DH command to display more info. Decode for gEfiAdapterInformationProtocolGuid and added GUIDs for gEfiIsaIoProtocolGuid and gEfiIsaAcpiProtocolGuid protocols. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16445 6f19259b-4bc3-4df7-8a09-765794883524 commit 2790926d8228383c53cf8ede0c8ffba36a91ef90 Author: Ruiyu Ni Date: Tue Nov 25 08:53:33 2014 +0000 Change NT32 and DUET to use UEFI Shell by default. Use "-D USE_OLD_SHELL" for NT32 to use EDK Shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16444 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f0a062f8c5c46bffc911afda67e9f66e41af217 Author: Hess Chen Date: Tue Nov 25 04:58:17 2014 +0000 BaseTools/UPT: Fix an issue of storing wrong PCD into XML file. Fix an issue of storing wrong PCD into XML file to only store PcdEx for AsBuilt sections Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16426 6f19259b-4bc3-4df7-8a09-765794883524 commit d431bf6e56bac6e8b457a6531932dec13f03933a Author: Elvin Li Date: Tue Nov 25 03:38:20 2014 +0000 Initialize alarm register in PcRtc module entrypoint to make UEFI SCT GetWakeupTime pass. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Feng Tian Reviewed-by: Eric Jin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16425 6f19259b-4bc3-4df7-8a09-765794883524 commit 0db3fade2cc1e8e24e676d900664f6aac9bbda6c Author: jaben carsey Date: Mon Nov 24 14:58:33 2014 +0000 ShellPkg: Add extended USB decoding for consistent device names Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16423 6f19259b-4bc3-4df7-8a09-765794883524 commit 431dac944143d3529cc90b497d135bcb8006c60c Author: jaben carsey Date: Mon Nov 24 14:53:53 2014 +0000 MdePkg Add USB Spec constants to Usb.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16422 6f19259b-4bc3-4df7-8a09-765794883524 commit 07100795bedb67abc20a4d0c2c650aaace04f178 Author: jaben carsey Date: Mon Nov 24 14:52:50 2014 +0000 MdeModulePkg: remove usb defined info Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16421 6f19259b-4bc3-4df7-8a09-765794883524 commit cc4c331207b6556e1aaae2b603e7024d775da812 Author: jaben carsey Date: Mon Nov 24 14:50:14 2014 +0000 ShellPkg: Add optional extended decode for Vendor Device Nodes for consistent map names Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Joe Peterson Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16420 6f19259b-4bc3-4df7-8a09-765794883524 commit 7475d13829e8f2d063553987c0f9d822cc7a1e36 Author: Jeff Fan Date: Mon Nov 24 04:57:40 2014 +0000 Add typecast to fix VS2005 build issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16419 6f19259b-4bc3-4df7-8a09-765794883524 commit 915a379b1c45d4e15f67e7ec5e6bb6ac6bbf0aa4 Author: Scott Duplichan Date: Mon Nov 24 02:43:17 2014 +0000 BaseTools: Extend support for Windows hosted gcc to versions 4.4-4.7. Revision 16400 adds support for Windows hosted gcc versions 4.8 and 4.9. With this change, all of the GCCXX tool chains can be used from Windows. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16418 6f19259b-4bc3-4df7-8a09-765794883524 commit 8864869a7f2148c7ac4c4fd46bddf8bcfafbd3d0 Author: Chen Fan Date: Fri Nov 21 22:46:49 2014 +0000 EmulatorPkg/MpService: add enabled processor check for startupThisAP if processor number is the one of disabled processor, startupThisAP should return invalid prameter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16417 6f19259b-4bc3-4df7-8a09-765794883524 commit c156d27b397489814a85f700abb584fc835644a7 Author: Chen Fan Date: Fri Nov 21 22:46:36 2014 +0000 EmulatorPkg/MpService: StartupAllAPs should verify processor state before setting state if any enabled APs are not in idle state, StartupAllAPs() should return immediately, and must not change the other idled processor state. so we checked the state before changed them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16416 6f19259b-4bc3-4df7-8a09-765794883524 commit ca186b1d4f186779a11319b1fa45a29de20534dc Author: Chen Fan Date: Fri Nov 21 22:46:26 2014 +0000 EmulatorPkg/MpService: fix wrong unsigned to signed variable transition Because TimeoutInMicrosecsond is a unsigned value, converting it to signed value will cause the data region changed. so this patch fix that. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16415 6f19259b-4bc3-4df7-8a09-765794883524 commit a99b5e629b7f37dbe2c521e4f2a2b74e27af33b3 Author: Laszlo Ersek Date: Fri Nov 21 09:40:47 2014 +0000 OvmfPkg: CsmSupportLib: depend on OvmfPkg.dec explicitly SVN r16375 (git commit 72a11001, "OvmfPkg: CsmSupportLib: Set/use platform specific legacy interrupt device") added the gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId PCD to CsmSupportLib. Since that "namespace" GUID is declared in OvmfPkg/OvmfPkg.dec, and we've not used anything from OvmfPkg/OvmfPkg.dec in CsmSupportLib.inf thus far, this is a new [Packages] dependency and must be named. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16414 6f19259b-4bc3-4df7-8a09-765794883524 commit 787fc2a6006cb2d44c6a63485679b58aa4ee34ad Author: Eric Dong Date: Fri Nov 21 01:23:09 2014 +0000 MdeModulePkg: Refine the get default value logic. Based on the input request to get default value for questions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16413 6f19259b-4bc3-4df7-8a09-765794883524 commit 76c94bb2dd4a8ff4852ecfb1ed87f7c789b8ba39 Author: Chris Phillips Date: Thu Nov 20 23:08:00 2014 +0000 ShellPkg: Fix 'parse' command to use ," for SFO column delimiter Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16412 6f19259b-4bc3-4df7-8a09-765794883524 commit 66b280df282ae82888d2eb416bfeda3f65afa386 Author: Laszlo Ersek Date: Thu Nov 20 09:58:28 2014 +0000 OvmfPkg: AcpiPlatformDxe: make dependency on PCI enumeration explicit The ACPI payload that OVMF downloads from QEMU via fw_cfg depends on the PCI enumaration and resource assignment performed by MdeModulePkg/Bus/Pci/PciBusDxe. Namely, although the ACPI payload is pre-generated in qemu during machine initialization, in main() [vl.c] qemu_run_machine_init_done_notifiers() pc_guest_info_machine_done() [hw/i386/pc.c] acpi_setup() [hw/i386/acpi-build.c] acpi_build() acpi_add_rom_blob() rom_add_blob(... acpi_build_update ...) [hw/core/loader.c] fw_cfg_add_file_callback() [hw/nvram/fw_cfg.c] the ACPI data is rebuilt at the first time any of the related fw_cfg files are read, through the acpi_build_update() fw_cfg read-callback function: fw_cfg_read() [hw/nvram/fw_cfg.c] acpi_build_update() [hw/i386/acpi-build.c] acpi_build() (See qemu commit d87072ceeccf4f84a64d4bc59124bcd64286c070 and its containing series.) For this reason we must not dispatch AcpiPlatformDxe before PciBusDxe completes the enumeration. Luckily, the PI Specification 1.3 defines EFI_PCI_ENUMERATION_COMPLETE_GUID in Volume 5, "10.9 End of PCI Enumeration Overview", as an indicia to inform the platform when the PCI enumeration process has completed. PciBusDxe installs this protocol at the end of the PciEnumerator() function. Let's add this GUID to the Depex section of AcpiPlatformDxe, in order to state the dependency explicitly. On Xen, and on older QEMU where the linker/loader fw_cfg interface is unavailable, this introduces a harmless ordering constraint -- we'll always include PciBusDxe in OVMF, so the dependency will always be satisfied. I tested this change as follows: - I dumped the ACPI tables in a Fedora 20 guest, before and after the change, and compared them. The only thing that actually changed was the FACS address. (Which I promptly tested with S3 suspend/resume.) Plus, of course, the FACP checksum changed, because the FACP links the FACS. - Tested S3 in my Windows Server 2008 R2 and Windows Server 2012 R2 guests. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16411 6f19259b-4bc3-4df7-8a09-765794883524 commit bab9f949bf1a72f33f89331bbffa9362de254945 Author: Qiu Shumin Date: Thu Nov 20 01:31:36 2014 +0000 ShellPkg: Code refine to avoid potential dereference of pointer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16410 6f19259b-4bc3-4df7-8a09-765794883524 commit 771ee5017be405df3a05ae8dce67552cab3b18b1 Author: Eugene Cohen Date: Thu Nov 20 01:23:49 2014 +0000 MdePkg/MdeModulePkg: Implement the missing SetMemorySpaceCapabilities function. It is defined in the PI Specification version 1.3. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16409 6f19259b-4bc3-4df7-8a09-765794883524 commit 48af14fd140adb607f4ea45f7078094c55508f81 Author: Scott Duplichan Date: Wed Nov 19 18:21:37 2014 +0000 OvmfPkg: Fix build failure with gcc44, gcc45 OvmfPkg/XenBusDxe/XenHypercall.h:19:31: error: redefinition of typedef 'XENBUS_DEVICE' OvmfPkg/XenBusDxe/XenBusDxe.h:86:31: note: previous declaration of 'XENBUS_DEVICE' was here Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Acked-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16408 6f19259b-4bc3-4df7-8a09-765794883524 commit 3ddcceea359145e26c97335689febf8e78538f46 Author: jaben carsey Date: Wed Nov 19 16:18:40 2014 +0000 [PATCH] MdeModulePkg: update poor wording in MdeModulePkg DEC/UNI file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey Reviewed-by: Liming Gao Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16407 6f19259b-4bc3-4df7-8a09-765794883524 commit eb774e2ef5b4b91f9c90598683daa7db84e53dab Author: Star Zeng Date: Wed Nov 19 07:13:35 2014 +0000 MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16406 6f19259b-4bc3-4df7-8a09-765794883524 commit ac30bca0a37b0f88781ff447183970a523d1f5c3 Author: Star Zeng Date: Wed Nov 19 07:11:59 2014 +0000 MdeModulePkg DxeCore: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16405 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a5d9a3682ec17479a6e8cc184370471f8136a3c Author: Jeff Fan Date: Wed Nov 19 05:15:06 2014 +0000 UefiCpuPkg : Fix CpuDxe build issue with VS2005 tool chain !!() cannot pass VS2005 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Chen Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16404 6f19259b-4bc3-4df7-8a09-765794883524 commit fdb5bc72b64e1a19894a55151b4d82c54f857958 Author: Liming Gao Date: Wed Nov 19 02:47:02 2014 +0000 MdePkg DxePcdLib: Updates DxePcdLib instance comments. Describe PCD service can’t be used at Runtime phase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16403 6f19259b-4bc3-4df7-8a09-765794883524 commit c9e0bba3855c18728199b99dada6d03102ca331c Author: Liming Gao Date: Wed Nov 19 02:30:21 2014 +0000 MdeModulePkg BaseSerialPortLib16550: Correct MemoryLimit and MemoryBase offset. Their offset in PCI-to-PCI Bridge Configuration Space. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Michael Kinney Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16402 6f19259b-4bc3-4df7-8a09-765794883524 commit 18a7dbbc020f0aec63ae71d034f32617da1eec9e Author: Star Zeng Date: Wed Nov 19 01:08:23 2014 +0000 MdeModulePkg Variable: Add missing warning annotation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16401 6f19259b-4bc3-4df7-8a09-765794883524 commit 285a175441e661cc9d68c939ab0799ba6803ba51 Author: Scott Duplichan Date: Tue Nov 18 02:38:20 2014 +0000 BaseTools: Modify gcc 4.8 and 4.9 tool chain definition to support building from Windows. Here is a new patch that adds Windows support for both gcc 4.8.x and gcc 4.9.x. This time testing is more thorough: boot testing using Duet for all 4 combinations of IA32/X64 and gcc 4.8.2 and gcc 4.9.1 passes. A Windows hosted gcc 4.8.2 has been added here: http://sourceforge.net/projects/edk2developertoolsforwindows/ The environment variable settings for Windows look like: set UEFI_BUILD_TOOLS=%cd%\tools set NASM_PREFIX=%UEFI_BUILD_TOOLS%\nasm211\ set GCC48_BIN=%UEFI_BUILD_TOOLS%\gcc482-x86\bin\ set GCC48_DLL=%UEFI_BUILD_TOOLS%\gcc482-x86\dll\;%GCC48_BIN% set GCC48_ARM_PREFIX=%UEFI_BUILD_TOOLS%\gcc482-arm\bin\ set GCC48_AARCH64_PREFIX=%UEFI_BUILD_TOOLS%\gcc482-aarch64\bin\ set GCC49_BIN=%UEFI_BUILD_TOOLS%\gcc491-x86\bin\ set GCC49_DLL=%UEFI_BUILD_TOOLS%\gcc491-x86\dll\;%GCC49_BIN% set GCC49_ARM_PREFIX=%UEFI_BUILD_TOOLS%\gcc491-arm\bin\ set GCC49_AARCH64_PREFIX=%UEFI_BUILD_TOOLS%\gcc491-aarch64\bin\ No change is needed for building from Linux. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16400 6f19259b-4bc3-4df7-8a09-765794883524 commit d808fc659d06c76489c40c6d6a6f1cf9710aa64e Author: Liming Gao Date: Tue Nov 18 02:19:47 2014 +0000 BaseTools: Correct NASM output file type for UNIXGCC and CYGGCC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16399 6f19259b-4bc3-4df7-8a09-765794883524 commit 5218c27950c4d238abe85ab17127755cb6e39fbf Author: Gabriel Somlo Date: Mon Nov 17 19:09:12 2014 +0000 OvmfPkg: PlatformBdsLib: Dynamic PCI Interrupt Line register setup Remove hard-coded list of PCI devices for which the Interrupt Line register is initialized. Instead, provide a "visitor" function to initialize the register only for present and applicable PCI devices. At this time, we match the behavior of SeaBIOS (file src/fw/pciinit.c, functions *_pci_slot_get_irq() and "map the interrupt" block from pci_bios_init_device()). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16398 6f19259b-4bc3-4df7-8a09-765794883524 commit 9840b1299de78458a42d35b8d1d6cbadd1f6da72 Author: Chen Fan Date: Mon Nov 17 14:54:09 2014 +0000 UefiCpuPkg/CpuDxe: Put APs in wait for SIPI state at ExitBootServices when gBS->ExitBootServices() is called, the APs should avoid to access the unsafed buff datas which were allocated by boot services. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Tested-by: Gabriel Somlo Reviewed-by: Jordan Justen Reviewed-by: Jeff Fan Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16397 6f19259b-4bc3-4df7-8a09-765794883524 commit f44200276423fdfbce4ddb4ba118b7efa8d2385a Author: Star Zeng Date: Mon Nov 17 02:30:44 2014 +0000 MdeModulePkg DxeCore/PiSmmCore/MemoryProfileInfo: Fix EBC and VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16396 6f19259b-4bc3-4df7-8a09-765794883524 commit 1db55d6a827cc2625a48a494e426e64f0b36ac0e Author: Star Zeng Date: Mon Nov 17 01:53:41 2014 +0000 MdePkg Base.h: Fix EBC build failure and add comments for RETURN_ADDRESS macro. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16395 6f19259b-4bc3-4df7-8a09-765794883524 commit 46133008955b67110fff82b2f3af123143e492a1 Author: Anthony PERARD Date: Fri Nov 14 17:35:49 2014 +0000 OvmfPkg/XenBusDxe: Fix a nasm warning about instruction not lockable. The fix, having "lock" and the locked instruction on the same line in the source. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16394 6f19259b-4bc3-4df7-8a09-765794883524 commit 860088f298de6acb26ea007e1f72db23fc613951 Author: Scott Duplichan Date: Fri Nov 14 17:35:42 2014 +0000 OvmfPkg/XenPvBlkDxe: fix VS2010 build failures This patch contain type casts and replace one * operation by a MultU64x32() call. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16393 6f19259b-4bc3-4df7-8a09-765794883524 commit 017a48664a4f8718d00102eb94ac6b21185e5c21 Author: Scott Duplichan Date: Fri Nov 14 17:35:35 2014 +0000 OvmfPkg/XenBusDxe: fix VS2010 build failures This patch contain only type cast. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Acked-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16392 6f19259b-4bc3-4df7-8a09-765794883524 commit cec6ad0a4082545fa9f8d2b8e7612daa96f6672d Author: Anthony PERARD Date: Fri Nov 14 17:35:29 2014 +0000 OvmfPkg/XenBusDxe: Fix some types. This patch replace some types in GrantTable and the argument Index of XenHypercallHvmGetParam to what the types should be. This avoid to have type cast in code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16391 6f19259b-4bc3-4df7-8a09-765794883524 commit c47a842e411b79b717e00dd456ea79a893b3079e Author: Anthony PERARD Date: Fri Nov 14 17:35:21 2014 +0000 OvmfPkg/XenBusDxe: In XenStore, replace type of Len from UINTN to UINT32. Since a message to XenStore have a lenght of type UINT32, have XenStore.c deal only with UINT32 instead of a mixmatch with UINTN. This patch replaces the type of Len in WRITE_REQUEST and the type of the argument Len of XenStoreWriteStore and XenStoreReadStore. This patch should avoid to have type cast were it does not make sense to have them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16390 6f19259b-4bc3-4df7-8a09-765794883524 commit d547f31c32d72e68a3611f7c6db6a8236fe56c0f Author: Laszlo Ersek Date: Fri Nov 14 13:47:14 2014 +0000 SecurityPkg: VariableServiceSetVariable(): fix dbt <-> GUID association SVN r16380 ("UEFI 2.4 X509 Certificate Hash and RFC3161 Timestamp Verification support for Secure Boot") broke the "dbt" variable's association with its expected namespace GUID. According to "MdePkg/Include/Guid/ImageAuthentication.h", *all* of the "db", "dbx", and "dbt" (== EFI_IMAGE_SECURITY_DATABASE2) variables have their special meanings in the EFI_IMAGE_SECURITY_DATABASE_GUID namespace. However, the above commit introduced the following expression in VariableServiceSetVariable(): > - } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > - ((StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE) == 0) || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE1) == 0))) { > + } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > + ((StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE) == 0) || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE1) == 0)) > + || (StrCmp (VariableName, EFI_IMAGE_SECURITY_DATABASE2)) == 0) { Simply replacing the individual expressions with the predicates "GuidMatch", "DbMatch", "DbxMatch", and "DbtMatch", the above transformation becomes: > - } else if (GuidMatch && > - ((DbMatch) || (DbxMatch))) { > + } else if (GuidMatch && > + ((DbMatch) || (DbxMatch)) > + || DbtMatch) { In shorter form, we change GuidMatch && (DbMatch || DbxMatch) into GuidMatch && (DbMatch || DbxMatch) || DbtMatch which is incorrect, because this way "dbt" will match outside of the intended namespace / GUID. The error was caught by gcc: > SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c: In function > 'VariableServiceSetVariable': > > SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c:3188:71: error: > suggest parentheses around '&&' within '||' [-Werror=parentheses] > > } else if (CompareGuid (VendorGuid, &gEfiImageSecurityDatabaseGuid) && > ^ > cc1: all warnings being treated as errors Fix the parentheses. This change may have security implications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16389 6f19259b-4bc3-4df7-8a09-765794883524 commit afc18ead283886bfe4b3e21d0a315aead31228af Author: Laszlo Ersek Date: Fri Nov 14 10:24:33 2014 +0000 CryptoPkg: OpenSslSupport.h: edk2-ize offsetof() macro for gcc-4.8 / X64 Code added in SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp signature verification.") introduced many new uses of the offsetof() macro. Since the offsetof() macro in "OpenSslSupport.h" casts a pointer to an "int", it triggers a large number of error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] errors when building CryptoPkg with gcc-4.8 for X64. Remedy this by directing offsetof() to the OFFSET_OF() macro in "MdePkg/Include/Base.h" (which matches how "OpenSslSupport.h" resolves the va_*() macros too). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16388 6f19259b-4bc3-4df7-8a09-765794883524 commit 017c285ef1c326853c4a1390b741cecb57677162 Author: Laszlo Ersek Date: Fri Nov 14 10:24:21 2014 +0000 CryptoPkg: TimestampTokenVerify(): fix gcc-4.8 / Ia32 build failure SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp signature verification.") introduced the following build failure: > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c: In function > 'TimestampTokenVerify': > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:538:3: error: passing > argument 2 of 'd2i_TS_TST_INFO' from incompatible pointer type [-Werror] > TstInfo = d2i_TS_TST_INFO (NULL, &TstTemp, (int)TstSize); > ^ > In file included from CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:22:0: > CryptoPkg/Include/openssl/asn1t.h:803:10: note: expected 'const unsigned > char **' but argument is of type 'UINT8 **' > stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ > ^ > CryptoPkg/Include/openssl/asn1t.h:799:2: note: in expansion of macro > 'IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname' > IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ > ^ > CryptoPkg/Include/openssl/asn1t.h:778:42: note: in expansion of macro > 'IMPLEMENT_ASN1_FUNCTIONS_fname' > #define IMPLEMENT_ASN1_FUNCTIONS(stname) > IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) > ^ > CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:136:1: note: in expansion of > macro 'IMPLEMENT_ASN1_FUNCTIONS' > IMPLEMENT_ASN1_FUNCTIONS (TS_TST_INFO) > ^ > cc1: all warnings being treated as errors Note that the cast (const unsigned char **) &TstTemp does not match the general edk2 coding style, but it *does* match other similar casts in this file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16387 6f19259b-4bc3-4df7-8a09-765794883524 commit faba4a14de81d4f20aa07336e7433835edd760f8 Author: Scott Duplichan Date: Fri Nov 14 10:24:08 2014 +0000 OvmfPkg: VirtioScsiDxe: drop 64-bit shift in PopulateRequest() (VS2010) "Lun" has type UINT64 in this function. The result of the expression (UINT8) ((Lun >> 8) | 0x40) depends only on bits [15:8] of "Lun", therefore we can cast "Lun" to UINT32 before shifting it. This eliminates an intrinsic when building with VS2010 for Ia32 / NOOPT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [lersek@redhat.com: added commit message] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16386 6f19259b-4bc3-4df7-8a09-765794883524 commit 75f8e3aaff4d77ec2a04c14633d63b67c651edda Author: Scott Duplichan Date: Fri Nov 14 10:23:55 2014 +0000 OvmfPkg: QemuVideoDxe: the VBE shim needs no 64-bit shifts (VS2010) The SegmentC local variable has type EFI_PHYSICAL_ADDRESS for (justified) style reasons. However, the 64-bit bit-shifts that it undergoes result in intrinsic calls when built with VS2010 for Ia32 / NOOPT. The concrete value of SegmentC, 0xC0000, and the results of the bitops that are based on it, are statically computeable. Cast SegmentC to UINT32 before subjecting it to bitwise operations; we can see in advance that this won't lead to range loss. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [lersek@redhat.com: dropped now superfluous outermost parens; commit msg] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16385 6f19259b-4bc3-4df7-8a09-765794883524 commit f7e899c7c74e5983e40e32257b33918ea6f466f0 Author: Scott Duplichan Date: Fri Nov 14 10:23:43 2014 +0000 OvmfPkg: flash driver: drop needlessly wide multiplication (VS2010) The current types of subexpressions used in QemuFlashPtr() are as follows. (We also show the types of "larger" subexpressions, according to operator binding.) mFlashBase + (Lba * mFdBlockSize) + Offset ^ ^ ^ ^ | | | | (UINT8*) EFI_LBA UINTN UINTN (UINT64) --------------------------------- ------ (UINT8*) UINTN ------------------------------------------ (UINT8*) When building with VS2010 for Ia32 / NOOPT, the 64-by-32 bit multiplication is translated to an intrinsic, which is not allowed in edk2. Recognize that "Lba" is always bounded by "mFdBlockCount" (an UINTN) here -- all callers of QemuFlashPtr() ensure that. In addition, the flash chip in question is always under 4GB, which is why we can address it at all on Ia32. Narrow "Lba" to UINTN, without any loss of range. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan [commit message by lersek@redhat.com] Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16384 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c5901528147af6f2d095a7b7d4bb73e19eeb365 Author: Laszlo Ersek Date: Fri Nov 14 10:23:33 2014 +0000 OvmfPg: flash driver: drop gratuitous 64-by-32 bit divisions (VS2010) In the InitializeVariableFvHeader() function, all three of "Offset", "Start" and "BlockSize" have type UINTN. Therefore the (Offset / BlockSize) and (Start / BlockSize) divisions can be compiled on all platforms without intrinsics. In the current expressions (EFI_LBA) Offset / BlockSize (EFI_LBA) Start / BlockSize "Offset" and "Start" are cast to UINT64 (== EFI_LBA), which leads to 64-by-32 bit divisions on Ia32, breaking the VS2010 / NOOPT / Ia32 build. The simplest way to fix them is to realize we don't need casts at all. (The prototypes of QemuFlashEraseBlock() and QemuFlashWrite() are visible via "QemuFlash.h", and they will easily take our UINTN quotients as UINT64.) Suggested-by: Scott Duplichan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16383 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e62c89c3ae0da2eeabb37c5ab299b928ebbbb30 Author: Laszlo Ersek Date: Fri Nov 14 10:23:21 2014 +0000 OvmfPg: flash driver: fix type of EFI_SIZE_TO_PAGES argument (VS2010) The MarkMemoryRangeForRuntimeAccess() function passes the Length parameter (of type UINT64) to the macro EFI_SIZE_TO_PAGES(). When building for the Ia32 platform, this violates the interface contract of the macro: [...] Passing in a parameter that is larger than UINTN may produce unexpected results. In addition, it trips up compilation by VS2010 for the Ia32 platform and the NOOPT target -- it generates calls to intrinsics, which are not allowed in edk2. Fix both issues with the following steps: (1) Demote the Length parameter of MarkMemoryRangeForRuntimeAccess() to UINTN. Even a UINT32 value is plenty for representing the size of the flash chip holding the variable store. Length parameter is used in the following contexts: - passed to gDS->RemoveMemorySpace() -- takes an UINT64 - passed to gDS->AddMemorySpace() -- ditto - passed to EFI_SIZE_TO_PAGES() -- requires an UINTN. This also guarantees that the return type of EFI_SIZE_TO_PAGES() will be UINTN, hence we can drop the outer cast. (2) The only caller of MarkMemoryRangeForRuntimeAccess() is FvbInitialize(). The latter function populates the local Length variable (passed to MarkMemoryRangeForRuntimeAccess()) from PcdGet32(PcdOvmfFirmwareFdSize). Therefore we can simply demote the local variable to UINTN in this function as well. - There's only one other use of Length in FvbInitialize(): it is passed to GetFvbInfo(). GetFvbInfo() takes an UINT64, so passing an UINTN is fine. Suggested-by: Scott Duplichan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Build-tested-by: Scott Duplichan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16382 6f19259b-4bc3-4df7-8a09-765794883524 commit 42e2ff2eb4cda6013ab995757d867f566404cc55 Author: Garrett Kirkendall Date: Fri Nov 14 08:44:41 2014 +0000 MdeModulePkg/Core/PiSmmCore/PiSmmCore.c: Fix compiler warning about variable set but unused Fix compiler warning about variable set but unused by returning status of last operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Garrett Kirkendall Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16381 6f19259b-4bc3-4df7-8a09-765794883524 commit 20333c6d566748d7c78c1b546ba8f37c6d253dea Author: Qin Long Date: Fri Nov 14 08:41:12 2014 +0000 UEFI 2.4 X509 Certificate Hash and RFC3161 Timestamp Verification support for Secure Boot Main ChangeLogs includes: 1. Introduce the new GUID and structure definitions for certificate hash and timestamp support; 2. Update Image Verification Library to support DBT signature checking; 3. Update the related SecureBoot Configuration Pages; Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16380 6f19259b-4bc3-4df7-8a09-765794883524 commit 2e70cf8ade0dd1e023274f7358c7c72cfd17460c Author: Gabriel Somlo Date: Fri Nov 14 00:39:04 2014 +0000 OvmfPkg: PlatformBdsLib: Platform dependent PCI/IRQ initialization Merge PciInitialization() and AcpiInitialization() into a single function, PciAcpiInitialization(), and use a PCD set during PEI to detect the underlying platform type (PIIX4 or Q35/MCH) and therefore the addresses of the registers to be initialized. Add LNK[A-H] routing target initialization for the Q35 platform. Additionally, initialize PCI_INTERRUPT_LINE registers for the typical set of PCI devices included by QEMU with the Q35 machine type. The corresponding PIIX4 initialization of PCI_INTERRUPT_LINE registers is cleaned up and the list of PIIX4 PCI devices updated to the list typically included with QEMU. NOTE: The list of PCI devices for which we initialize PCI_INTERRUPT_LINE is hard-coded, and, depending on how QEMU devices are configured on the command line, may miss some devices, or (harmlessly) attempt to initialize devices which are not present in the system. A subsequent patch will replace this hard-coded list with a mechanism to correctly initialize PCI_INTERRUPT_LINE for applicable present PCI devices only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16379 6f19259b-4bc3-4df7-8a09-765794883524 commit 988e59868bcaa2c3efbb31bb1d1891ce11c82a10 Author: Gabriel Somlo Date: Fri Nov 14 00:38:53 2014 +0000 OvmfPkg: AcpiTimerLib: Switch additional stages to PCD-based Dxe instance Link DXE_SMM_DRIVER, UEFI_DRIVER, UEFI_APPLICATION, and SMM_CORE against a valid, non-asserting version of PcdLib, then switch them over to using the "Dxe" instance of AcpiTimerLib (instead of the "Base" version). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16378 6f19259b-4bc3-4df7-8a09-765794883524 commit f122712b42af3d63902c2c141e90d2c200df6790 Author: Gabriel Somlo Date: Fri Nov 14 00:38:35 2014 +0000 OvmfPkg: AcpiTimerLib: Use global variable during PEI_CORE and PEIM Since in OVMF both PEI_CORE and PEIM run from RAM, and thus may utilize global variables, use the "Base" AcpiTimerLib instance (instead of BaseRom) to take advantage of the improved efficiency of storing the timer register IO address in a global variable. This leaves only SEC using the BaseRomAcpiTimerLib instance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16377 6f19259b-4bc3-4df7-8a09-765794883524 commit 170ef2d91612350fd1d1bac9d77b3ce0bffda714 Author: Gabriel Somlo Date: Fri Nov 14 00:38:17 2014 +0000 OvmfPkg: AcpiTimerLib: Split into multiple phase-specific instances Remove local power management register access macros in favor of factored-out ones in OvmfPkg/Include/OvmfPlatforms.h Next, AcpiTimerLib is split out into three instances, for use during various stages: - BaseRom: used during SEC, PEI_CORE, and PEIM; - Dxe: used during DXE_DRIVER and DXE_RUNTIME_DRIVER; - Base: used by default during all other stages. Most of the code remains in AcpiTimerLib.c, to be shared by all instances. The two platform-dependent methods (constructor and InternalAcpiGetTimerTick) are provided separately by source files specific to each instance, namely [BaseRom|Base|Dxe]AcpiTimerLib.c. Since pre-DXE stages can't rely on storing data in global variables, methods specific to the "BaseRom" instance will call platform detection macros each time they're invoked. The "Base" instance calls platform detection macros only from its constructor, and caches the address required by InternalAcpiTimerTick in a global variable. The "Dxe" instance is very similar to "Base", except no platform detection macros are called at all; instead, the platform type is read via a dynamic PCD set from PlatformPei. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16376 6f19259b-4bc3-4df7-8a09-765794883524 commit 72a1100171a627ce26789c193ca7036eb8a5364a Author: Gabriel Somlo Date: Fri Nov 14 00:38:00 2014 +0000 OvmfPkg: CsmSupportLib: Set/use platform specific legacy interrupt device Use a PCD set from PEI to determine the legacy interrupt device number appropriate for the underlying platform type during protocol initialization. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16375 6f19259b-4bc3-4df7-8a09-765794883524 commit d55004dac9c762fa01c5656f7a2e6132ed7bfe38 Author: Gabriel Somlo Date: Fri Nov 14 00:37:39 2014 +0000 OvmfPkg: Add PCD for Host Bridge dev. ID (PcdOvmfHostBridgePciDevId) Set from PEI, this PCD allows subsequent stages (specifically DXE_DRIVER and DXE_RUNTIME_DRIVER) to infer the underlying platform type (e.g. PIIX4 or Q35/MCH) without the need to further query the Host Bridge for its Device ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16374 6f19259b-4bc3-4df7-8a09-765794883524 commit 97380beb15249f6abf4250ccccbae0f740649985 Author: Gabriel Somlo Date: Fri Nov 14 00:37:26 2014 +0000 OvmfPkg: PlatformPei: Platform specific ACPI power management setup Set up ACPI power management using registers determined based on the underlying (PIIX4 or Q35/MCH) platform type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16373 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e48c72c4cbbd24be3ec9835a7a428dce8064567 Author: Gabriel Somlo Date: Fri Nov 14 00:37:16 2014 +0000 OvmfPkg: Factor out platform detection (q35 vs. piix4) Introduce macros to detect the underlying platform and access its ACPI power management registers, based on querying the host bridge device ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Paolo Bonzini Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16372 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a50c2728540b9c487c9eccf19548f5322851212 Author: Chen Fan Date: Thu Nov 13 18:30:18 2014 +0000 UefiCpuPkg/CpuDxe: install Mp Service protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16371 6f19259b-4bc3-4df7-8a09-765794883524 commit dee9376ffc6e5522bb5e50512b521952a5421fa5 Author: Jordan Justen Date: Thu Nov 13 18:30:09 2014 +0000 UefiCpuPkg/CpuDxe: Startup APs This sequence should happen: * CpuMp.c: Allocate a stack for the APs * ApStartup.c: Send Start IPI to wake APs in 16-bit real mode * MpAsm.S: AP enters CpuDxe driver code without stack - AP grabs a lock - AP sets up stack - AP calls CpuMp.c:ApEntryPointInC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16370 6f19259b-4bc3-4df7-8a09-765794883524 commit cd8c700b03e38e9389a8f13e193a431072802593 Author: Chen Fan Date: Thu Nov 13 18:29:54 2014 +0000 UefiCpuPkg/MpService: avoid dead lock caused by CheckAllAPsStatus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16369 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e724fc1981b3c47bb16432c4c414a50c9e3a519 Author: Chen Fan Date: Thu Nov 13 18:29:40 2014 +0000 UefiCpuPkg/MpService: avoid reset AP still hold a lock Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16368 6f19259b-4bc3-4df7-8a09-765794883524 commit 232eb4c82637e92b65ebbfc89a45e9daa8535171 Author: Chen Fan Date: Thu Nov 13 18:29:31 2014 +0000 UefiCpuPkg/MpService: free the unused cpu data buffer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16367 6f19259b-4bc3-4df7-8a09-765794883524 commit ac9dbb3b03313c7426c5bb15663b20b57ca771ce Author: Chen Fan Date: Thu Nov 13 18:29:13 2014 +0000 UefiCpuPkg/CpuDxe: introduce ResetApStackless() If timeout expires before AP returns from Procedure, the AP should be terminated, we introduce ResetApStackLess() to send init IPI to let AP exit Procedurce and re-available. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16366 6f19259b-4bc3-4df7-8a09-765794883524 commit fe078dd57f5e935c28eac7348b758ca6fb5e696f Author: Chen Fan Date: Thu Nov 13 18:29:01 2014 +0000 UefiCpuPkg/CpuDxe: split out StartupCode from StartApsStackless() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16365 6f19259b-4bc3-4df7-8a09-765794883524 commit e4aaf764281d12cb8bfe605393a5520e00715838 Author: Chen Fan Date: Thu Nov 13 18:28:48 2014 +0000 UefiCpuPkg/MpService: avoid next timer getting into CheckAllAPsStatus() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16364 6f19259b-4bc3-4df7-8a09-765794883524 commit d16cf36d2a226cf6a527099407b6b0b70a0f9faa Author: Chen Fan Date: Thu Nov 13 18:28:33 2014 +0000 UefiCpuPkg/MpService: Simply Lock usage Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16363 6f19259b-4bc3-4df7-8a09-765794883524 commit acb2172d15ed793c8ae0484700d42dcc105f2ea1 Author: Chen Fan Date: Thu Nov 13 18:28:20 2014 +0000 UefiCpuPkg/MpService: move settimer out to InitMpSystemData Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16362 6f19259b-4bc3-4df7-8a09-765794883524 commit 9908a829d0c1c92ca9bf462c0d9210f63784c131 Author: Chen Fan Date: Thu Nov 13 18:28:10 2014 +0000 UefiCpuPkg/CpuDxe: Ap do loop routine to execute procedure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16361 6f19259b-4bc3-4df7-8a09-765794883524 commit b7c05ba5173f4ae8ccfc901755aa79dcc97ebde2 Author: Chen Fan Date: Thu Nov 13 18:27:52 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:SwitchBSP() by now, SwitchBSP() always return UNSUPPORTED Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16360 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fee172fb75ba07df4638abfd0cfc0ce83fc1073 Author: Chen Fan Date: Thu Nov 13 18:27:34 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:StartupAllAPs() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16359 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f4f0af8724c56ed6fac052b5086e33511aa9a80 Author: Chen Fan Date: Thu Nov 13 18:27:21 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:StartupThisAP() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16358 6f19259b-4bc3-4df7-8a09-765794883524 commit fa7ce675b991bca6e18fcda8446737717ae3c1f6 Author: Chen Fan Date: Thu Nov 13 18:27:09 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:EnableDisableAP() Due to the implementation of AcquireSpinLock() is not MP safe, so we should use AcquireSpinLockOrFail directly instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16357 6f19259b-4bc3-4df7-8a09-765794883524 commit e7938b5a869fc42df7f026752f39ea85090eb3f9 Author: Chen Fan Date: Thu Nov 13 18:26:53 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Services:GetProcessorInfo() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16356 6f19259b-4bc3-4df7-8a09-765794883524 commit d894d8b704324da8ed902677703ed9d4f7c85076 Author: Chen Fan Date: Thu Nov 13 18:26:42 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol:GetNumberOfProcessors() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16355 6f19259b-4bc3-4df7-8a09-765794883524 commit cfa2fac1f667b227a29a2219321b651c7a143071 Author: Chen Fan Date: Thu Nov 13 18:26:32 2014 +0000 UefiCpuPkg/CpuDxe: implement Mp Protocol: WhoAmI() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16354 6f19259b-4bc3-4df7-8a09-765794883524 commit 03673ae11e255b9467e8f317175495b1ff79f965 Author: Chen Fan Date: Thu Nov 13 18:26:23 2014 +0000 UefiCpuPkg/CpuDxe: introduce MP_SYSTEM_DATA for Mp Service Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16353 6f19259b-4bc3-4df7-8a09-765794883524 commit 003973d98cf1ef84ab810cb4f3870acd3a7f40a6 Author: Chen Fan Date: Thu Nov 13 18:26:13 2014 +0000 UefiCpuPkg/CpuDxe: introduce EFI_MP_SERVICES_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16352 6f19259b-4bc3-4df7-8a09-765794883524 commit e343f8f7b35a400bb1d6e0edd7dddc53dd9e436d Author: Chen Fan Date: Thu Nov 13 18:26:03 2014 +0000 UefiCpuPkg/CpuDxe: Switch Ap Stack to NewStack All APs use the same common stack to initialization. after initialization, APs should switch to the stack of its own. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16351 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a26a597a38d36c670a5c1ce0bf54c8a413a1868 Author: Chen Fan Date: Thu Nov 13 18:25:48 2014 +0000 UefiCpuPkg/CpuDxe: introduce two PCD value introduce PCD value: PcdCpuMaxLogicalProcessorNumber and PcdCpuApStackSize, used for initialize APs stacks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16350 6f19259b-4bc3-4df7-8a09-765794883524 commit 533263ee5a7fe83ad5a0d2da74ff30815c5ab63c Author: Jordan Justen Date: Thu Nov 13 18:25:29 2014 +0000 UefiCpuPkg/CpuDxe: Add StartApsStackless routine This routine starts the APs and directs them to run the specified code. The specified code is entered without a stack being available. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16349 6f19259b-4bc3-4df7-8a09-765794883524 commit a1e8986d97d8b3ce3ef2ff9d81f2d6ddf9d8dd1f Author: Jordan Justen Date: Thu Nov 13 18:25:10 2014 +0000 UefiCpuPkg/CpuDxe: Move GDT structures into CpuGdt.h We'll want to use the structures for AP startup. Note: It seems previously we were not using '#pragma pack ()' in CpuGdt.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16348 6f19259b-4bc3-4df7-8a09-765794883524 commit fab82c1873b792bce33fb22c32db71324fc0ac3b Author: Jordan Justen Date: Thu Nov 13 18:24:59 2014 +0000 UefiCpuPkg/CpuDxe: Add stackless assembly AP entry points The AP startup code simply jumps into this code with the CpuDxe driver without setting up a stack for the processor. Therefore, this code must setup the stack before calling into C code. This is the basic flow: * AP enters CpuDxe driver code (AsmApEntryPoint) without stack - AP grabs a lock - AP sets up stack - AP calls CpuMp.c:ApEntryPointInC - If ApEntryPointInC returns, the lock is freed, and another AP may run - The AP C code may call AsmApDoneWithCommonStack to indicate that the AP is no longer using the stack, and another may therefore proceed to use the stack and then call ApEntryPointInC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16347 6f19259b-4bc3-4df7-8a09-765794883524 commit 1535c888c6f06bb35881e83cd7ee49fb8554942b Author: Jordan Justen Date: Thu Nov 13 18:24:43 2014 +0000 UefiCpuPkg/CpuDxe: Add ApEntryPointInC This is the function the AP assembly code will expect to call after getting a lock and setting up the stack. Only one AP will enter this routine at a time. If ApEntryPointInC exits, then the assembly code will loop around to grab the lock, setup the stack, and call ApEntryPointInC again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16346 6f19259b-4bc3-4df7-8a09-765794883524 commit 6022e28cf744a885c278dad256d50670741ea123 Author: Jordan Justen Date: Thu Nov 13 18:24:25 2014 +0000 UefiCpuPkg/CpuDxe: Add no-op InitializeMpSupport Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16345 6f19259b-4bc3-4df7-8a09-765794883524 commit 37ec4d9af79197dcc93810f230af7a3fe2d0d243 Author: Ard Biesheuvel Date: Thu Nov 13 16:41:51 2014 +0000 ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable Even if the CPU id registers indicate hardware support for the System Register interface to the GIC, higher exception levels may disable that interface and only allow access through MMIO. So move the enabling of the SRE bit to the GIC version detection routine: if we trigger an exception, we would have anyway at a later stage, so the net effect is the same. However, if setting the bit doesn't stick, it means we can switch to MMIO and proceed normally otherwise. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16344 6f19259b-4bc3-4df7-8a09-765794883524 commit 77d5dac5c62ec8c8e732571ed70c9204bddf7695 Author: Olivier Martin Date: Thu Nov 13 11:06:00 2014 +0000 ArmPkg/ArmGic: Removed 'GCC' toolchain to build assembly files ARMCC6 toolchain (LLVM based) understands the GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16343 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b589522873f1ce1c221e0d6502788230162e86f Author: Jaben Carsey Date: Wed Nov 12 21:28:51 2014 +0000 [PATHC] ShellPkg: control code flow with a PCD Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16342 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d3b9d332db5c2350cd567fa37a2d90170168b6a Author: Jordan Justen Date: Wed Nov 12 20:33:36 2014 +0000 OvmfPkg/XenPvBlkDxe: Don't include system inttypes.h EDK II code should not include system include files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Anthony PERARD git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16341 6f19259b-4bc3-4df7-8a09-765794883524 commit a23eb77b45f4940b04a49cbd6d40ce46f8c677f6 Author: Scott Duplichan Date: Wed Nov 12 10:01:41 2014 +0000 ArmPlatformPkg: fix undefined reference to memcpy Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16340 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ac68e8b549b646607149919a2780bcd7234d92d Author: Qin Long Date: Wed Nov 12 08:51:45 2014 +0000 CryptoPkg Updates to support RFC3161 timestamp signature verification. The main changes includes: 1. Enabling SHA384 and SHA512 digest algorithm; (Sha512.c) 2. RFC 3161 timestamp signature verification support; (CryptTs.c) 3. Fixed one ASN.1 length encoding issue in Authenticode verification routine. (CryptAuthenticode.c) 4. Add the corresponding test cases in Cryptest utility (SHA384 & SHA512 & Timestamp verification) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Guo Dong Reviewed-by: Ting Ye git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16339 6f19259b-4bc3-4df7-8a09-765794883524 commit bcbdc75535d376d710cd864fb3cf5129c7dfcaff Author: Yingke Liu Date: Wed Nov 12 08:26:03 2014 +0000 BaseTools: Fix a cleanall issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16338 6f19259b-4bc3-4df7-8a09-765794883524 commit 6da5153cfcb6c3f04226183deeb242ca7ffad678 Author: Fu Siyuan Date: Wed Nov 12 05:14:07 2014 +0000 Fix a bug in DHCP6 driver when using DUID LLT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Dong Eric Reviewed-by: Wu Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16337 6f19259b-4bc3-4df7-8a09-765794883524 commit 09fc7dbb9498cc7d56a7427fcacb4e77b47e87e5 Author: Star Zeng Date: Wed Nov 12 03:30:11 2014 +0000 EdkCompatibilityPkg: Add UEFI memory and SMRAM profile support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16336 6f19259b-4bc3-4df7-8a09-765794883524 commit 84edd20bd0756ef5719835498d4283435d6b5e77 Author: Star Zeng Date: Wed Nov 12 03:27:48 2014 +0000 MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16335 6f19259b-4bc3-4df7-8a09-765794883524 commit dad83a8c1207e585b2cb417d0680fe2e9452d262 Author: Star Zeng Date: Wed Nov 12 03:18:09 2014 +0000 MdePkg: Add RETURN_ADDRESS macro into Base.h. Based on compiler intrinsic function. MSVC: _ReturnAddress GCC: __builtin_return_address Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16334 6f19259b-4bc3-4df7-8a09-765794883524 commit 1531a469ebc1e0130af04aa10c533b497fc3198a Author: Qiu Shumin Date: Wed Nov 12 01:07:23 2014 +0000 ShellPkg: Add type cast to avoid build failure in VS2005. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16333 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b980b679643eb4d46370f25ec26e287bb5e15bc Author: Daryl McDaniel Date: Tue Nov 11 23:15:32 2014 +0000 AppPkg: Disable Lua builds by default. Update the ReadMe file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Bruce Maynard git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16332 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b2cf923c0ffdb00cc05373d3f295f0ad086c978 Author: Daryl McDaniel Date: Tue Nov 11 22:56:58 2014 +0000 StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with VS2005. AppPkg.dsc: Remove IPF support and add NOOPT build target. StdLib.dsc: Add NOOPT build target. daConsole.c: Cast a comparison to BOOLEAN before assigning it to a BOOLEAN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16331 6f19259b-4bc3-4df7-8a09-765794883524 commit 8200fcfe54808ec0704f405c8f8e718e6452143e Author: Yingke Liu Date: Tue Nov 11 07:33:50 2014 +0000 BaseTool: Support EDKII style GUID definition for VFR function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16330 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a2928934b37e798a15ecc8546b8432057d090bf Author: Olivier Martin Date: Tue Nov 11 00:52:46 2014 +0000 ArmPkg/ArmArchTimerLib: Promotes 32bit value to prevent overflow Both MicroSeconds and PcdArmArchTimerFreqInHz are 32-bit values on AArch32 so their multiplication produces 32-bit result that might cause wrong calculation. Example: With MicroSeconds = 200 us, PcdArmArchTimerFreqInHz = 24MHz. 200*24000000 = 0x1_1E1A_3000 => So 0x1E1A_3000 when the type is UINT32. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16329 6f19259b-4bc3-4df7-8a09-765794883524 commit 284fb5c811fb7784ee3afa753dbdf5b389c4cdce Author: Olivier Martin Date: Tue Nov 11 00:52:11 2014 +0000 ArmPkg/CompilerIntrinsicesLib: Fixed memmove() and memset() - Fixed memmove when going backward: the copy started one byte after the end of the region to copy - memset: - removed unused register - fixed arguments size and character arguments were actually reversed - Added memmove() to ARM32 GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16328 6f19259b-4bc3-4df7-8a09-765794883524 commit fb7ea6114a780b2fe0da56156d65fa7659ffe2e2 Author: Olivier Martin Date: Tue Nov 11 00:51:11 2014 +0000 ArmPkg: Ensured the stack is always quad-word aligned From the AArch64 Procedure Call Standard (ARM IHI 0055B): 5.2.2.1 Universal stack constraints At all times the following basic constraints must hold: - SP mod 16 = 0. The stack must be quad-word aligned. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16327 6f19259b-4bc3-4df7-8a09-765794883524 commit 6382e5df4e320b8b7db40bccbeccbd89d368d52f Author: Ronald Cron Date: Tue Nov 11 00:49:50 2014 +0000 EmbeddedPkg/Lan9118Dxe: Remove link check in SNP initialization The UEFI specification does not require the initialisation and reset interface to check if an Ethernet cable is connected or not, and provides the GetStatus() interface to do this. Furthermore, the 'Managed Network Protocol' take care of the cable connection check in edk2 network stack. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16326 6f19259b-4bc3-4df7-8a09-765794883524 commit bb5420bb2b5fa146de1ddf2da5932b214e5743a9 Author: Leif Lindholm Date: Tue Nov 11 00:43:03 2014 +0000 ArmPlatformPkg: Increase more ARM address Pcd entries to 64-bit. Some AArch64 platforms have RAM and flash devices >4GB. Update some additional Pcd entries to 64-bit, and change the corresponding PcdGet32 calls to PcdGet64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16325 6f19259b-4bc3-4df7-8a09-765794883524 commit 2a7e98a8cceb4546c602e6e50bafacf8a0595d59 Author: Daryl McDaniel Date: Mon Nov 10 23:05:45 2014 +0000 StdLib: Fix a "potentially uninitialized variable" error. gdtoa/gdtoa.c: Several "goto" paths allowed the initialization of a variable to be bypassed. Initialized it at the top of the function in order to eliminate the error. Updated the file header and copyright notices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16324 6f19259b-4bc3-4df7-8a09-765794883524 commit 931b2cff42df2042e504421b71b8710a4dc32bda Author: Olivier Martin Date: Mon Nov 10 10:20:25 2014 +0000 ShellPkg: Fixed variable set but never used This warning/error raised by ARM toolchain prevents to build the EFI Shell for ARM 32-bit with this toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16323 6f19259b-4bc3-4df7-8a09-765794883524 commit ace354f10ba7ca424a96512b634ebee8225014f1 Author: Ruiyu Ni Date: Mon Nov 10 08:47:49 2014 +0000 Fix a bug in DebugAgent that hang happens when the ACK for GO is lost. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16322 6f19259b-4bc3-4df7-8a09-765794883524 commit 1ff1dd0ff97b05bf88e50120ba49b435601d5ee8 Author: Feng Tian Date: Mon Nov 10 05:46:21 2014 +0000 MdeModulePkg/AtaAtapiPassThru: don't write read-only AHCI MMIO register Per AHCI 1.1 spec, AE bit of GHC register is read-only if CAP.SAM is 1 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16321 6f19259b-4bc3-4df7-8a09-765794883524 commit 33985e3b52ee2e4b5064331134d983e55a7da904 Author: Chao Zhang Date: Mon Nov 10 05:01:15 2014 +0000 Fix execution status & DEBUG message level mismatch. EFI_D_ERROR is used only when failure/case can’t be resolved by code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Dong Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16320 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f6c3a1fb628be2b8fb68add9f166d8fa51a9c70 Author: Anthony PERARD Date: Sat Nov 8 02:41:35 2014 +0000 OvmfPkg XenBusDxe: Convert X64/TestAndClearBit.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/TestAndClearBit.asm to X64/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16319 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428 Author: Anthony PERARD Date: Sat Nov 8 02:41:28 2014 +0000 OvmfPkg XenBusDxe: Convert X64/InterlockedCompareExchange16.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/InterlockedCompareExchange16.asm to X64/InterlockedCompareExchange16.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16318 6f19259b-4bc3-4df7-8a09-765794883524 commit 60aafa1bdee040c366da84f58a660df505fbff92 Author: Anthony PERARD Date: Sat Nov 8 02:41:15 2014 +0000 OvmfPkg XenBusDxe: Convert X64/hypercall.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/hypercall.asm to X64/hypercall.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16317 6f19259b-4bc3-4df7-8a09-765794883524 commit 31c0aa2fd09b9ca7764ae43458d379995baa8637 Author: Anthony PERARD Date: Sat Nov 8 02:41:07 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/TestAndClearBit.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/TestAndClearBit.asm to Ia32/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16316 6f19259b-4bc3-4df7-8a09-765794883524 commit 09c3757bc429b3066133a87ad8271e21fad46518 Author: Anthony PERARD Date: Sat Nov 8 02:40:58 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/InterlockedCompareExchange16.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/InterlockedCompareExchange16.asm to Ia32/InterlockedCompareExchange16.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16315 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e7ca01de038f0f4ee3df8fabf0caa2eb804379c Author: Anthony PERARD Date: Sat Nov 8 02:40:44 2014 +0000 OvmfPkg XenBusDxe: Convert Ia32/hypercall.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/hypercall.asm to Ia32/hypercall.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16314 6f19259b-4bc3-4df7-8a09-765794883524 commit 16a5fed65808adf648004b34f98718301d718fa2 Author: darylm503 Date: Fri Nov 7 20:18:01 2014 +0000 AppPkg: Add the Lua interpreter and library. StdLib: Add support and include files for Lua. The sources for the Lua standalone interpreter, as well as its library, have been added to AppPkg/Applications/Lua. The Lua library, LuaLib, can be used to embed Lua into new applications. The Lua header files, needed for both building and embedding, are located in StdLib/Include/Lua. The original versions of these header files, in the source directory, have been converted into stubs that reference the include files in StdLib. This allows us to keep the Lua sources as close to the distributed version as possible. Documentation is contained in the Lua/doc directory. Further information is available at www.lua.org. Contributed-under: TianoCore Contribution Agreement 1.0 Signed Off by: Bruce Maynard Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16313 6f19259b-4bc3-4df7-8a09-765794883524 commit c058d59f40b4a95c218cd171ff976bee1ff487e2 Author: jyao1 Date: Fri Nov 7 13:43:05 2014 +0000 Add safe string function to base lib. Contributed-under: TianoCore Contribution Agreement 1.0 signed off by: Yao, Jiewen reviewed by: Ni, Ruiyu reviewed by: Long, Qin reviewed by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16312 6f19259b-4bc3-4df7-8a09-765794883524 commit 848834cbd167c828e43e4dd0f316b6f00d2f6834 Author: Laszlo Ersek Date: Thu Nov 6 14:21:21 2014 +0000 OvmfPkg: set video resolution of text setup to 640x480 On a physical screen such a low graphics resolution would lead to huge glyphs (the text resolution is 80x25, centered, with 8x19 pixel glyphs). But in a virtual machine it just saves screen real estate on the client, by removing the black bands. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16311 6f19259b-4bc3-4df7-8a09-765794883524 commit b1220e28202221fa987492f65f538f7acb8b7e7f Author: Laszlo Ersek Date: Thu Nov 6 14:21:15 2014 +0000 OvmfPkg: BDS: drop custom boot timeout, revert to IntelFrameworkModulePkg's PlatformBdsEnterFrontPage() already implements a keypress wait (for entering the setup utility at boot) with a nice progress bar, only OVMF has not been using it. Removing our custom code and utilizing PlatformBdsEnterFrontPage()'s builtin wait has the following benefits: - It simplifies OVMF's BDS code. - Because now we call PlatformBdsEnterFrontPage() unconditionally, it actually has a chance to look at the EFI_OS_INDICATIONS_BOOT_TO_FW_UI bit of the "OsIndications" variable, improving compliance with the UEFI specification. References: - https://bugzilla.redhat.com/show_bug.cgi?id=1153927 - http://thread.gmane.org/gmane.comp.bios.tianocore.devel/10487 - The progress bar looks nice. (And it keeps the earlier behavior intact, when the user presses a key on the TianoCore splash screen.) In any case, we set the timeout to 0 (which doesn't show the progress bar and proceeds to the boot options immediately) in order to keep the boot time down. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16310 6f19259b-4bc3-4df7-8a09-765794883524 commit b90ffb9fc8360345138f50988a8a1bd339f80da1 Author: Laszlo Ersek Date: Thu Nov 6 14:21:09 2014 +0000 OvmfPkg: BDS: drop superfluous "connect first boot option" logic This is again obviated by our earlier BdsLibConnectAll() call. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16309 6f19259b-4bc3-4df7-8a09-765794883524 commit 547222da31347418296baff7aa879c244bf9c106 Author: Laszlo Ersek Date: Thu Nov 6 14:21:03 2014 +0000 OvmfPkg: BDS: optimize second argument in PlatformBdsEnterFrontPage() call The second parameter of said function is "ConnectAllHappened", and if set to TRUE, the function sets "gConnectAllHappened" to TRUE. This global variable in turn controls whether Intel BDS code *itself* calls BdsLibConnectAllDriversToAllControllers() in various places -- if the indicator is TRUE, then the "connect all" is assumed to have been performed, and Intel BDS doesn't do it itself. OVMF should pass TRUE as "ConnectAllHappened", because a few lines before our call to PlatformBdsEnterFrontPage(), we already connect everything with BdsLibConnectAll(), which includes the effects of BdsLibConnectAllDriversToAllControllers(): PlatformBdsPolicyBehavior() [OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c] BdsLibConnectAll() [IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c] BdsLibConnectAllDriversToAllControllers() PlatformBdsEnterFrontPage() [IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16308 6f19259b-4bc3-4df7-8a09-765794883524 commit 5126ef789dd31312fa6722f9c9b77a9d7700371d Author: Laszlo Ersek Date: Thu Nov 6 14:20:58 2014 +0000 OvmfPkg: BDS: don't overwrite the BDS Front Page timeout The PlatformBdsEnterFrontPage() function's first parameter, "TimeoutDefault", determines the behavior of the setup utility: - If (TimeoutDefault == 0), then the usual boot order is to be acted upon immediately. - If (TimeoutDefault == 0xFFFF), then the setup utility is entered unconditionally. - If (0 < TimeoutDefault && TimeoutDefault < 0xFFFF), then the PlatformBdsEnterFrontPage() function displays a progress bar, waiting for TimeoutDefault seconds. If the user presses a key, then the setup utility is entered, otherwise the normal boot option processing takes place. The TimeoutDefault parameter is supposed to be set from gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut which has the following (matching) documentation in "IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec": The number of seconds that the firmware will wait before initiating the original default boot selection. A value of 0 indicates that the default boot selection is to be initiated immediately on boot. The value of 0xFFFF then firmware will wait for user input before booting. OVMF does this actually -- see the Timeout variable in PlatformBdsPolicyBehavior() -- but right before calling PlatformBdsEnterFrontPage(), OVMF hardwires TimeoutDefault to 0xFFFF. This has been acceptable until now, because OVMF implements its own "wait for keypress at the splash screen" logic in PlatformBdsPolicyBehavior(), completely avoiding the progress bar mentioned above. OVMF only calls PlatformBdsEnterFrontPage() when the user presses a key during its own "splash screen wait", and *then* it indeed makes sense to enter the setup utility unconditionally. However, even that way, the Timeout = 0xffff; assignment is superfluous, because 0xFFFF is already the default value of PcdPlatformBootTimeOut in "IntelFrameworkModulePkg.dec", and OvmfPkg doesn't override it in its DSC files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16307 6f19259b-4bc3-4df7-8a09-765794883524 commit 260ab573d0f988e79187dba5d6aa347cc545bfd6 Author: Laszlo Ersek Date: Thu Nov 6 14:20:52 2014 +0000 OvmfPkg: BDS: drop useless return statement Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16306 6f19259b-4bc3-4df7-8a09-765794883524 commit 157421066ac009d31dafdc5462eceb26f337b536 Author: Laszlo Ersek Date: Thu Nov 6 14:20:44 2014 +0000 OvmfPkg: BDS: remove dead call to PlatformBdsEnterFrontPage() This call has been dead since the conception of OvmfPkg (git commit 49ba9447 / SVN r8398), and only confuses readers -- let's remove it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16305 6f19259b-4bc3-4df7-8a09-765794883524 commit e0763f87575cbd58bc38c4220e59010265a620e1 Author: Eric Dong Date: Thu Nov 6 08:56:54 2014 +0000 Try to read key strike even when the TimeOuts value is zero, this will avoid BDS not get user input when TimeOuts value set to zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16304 6f19259b-4bc3-4df7-8a09-765794883524 commit 8fd82c235df3b473c1572081a2b8bb00273bd2d6 Author: Jeff Fan Date: Thu Nov 6 06:13:22 2014 +0000 Remove un-used PPI reference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16303 6f19259b-4bc3-4df7-8a09-765794883524 commit b85f57995e010db57dc46be445c444d42a8939f2 Author: Olivier Martin Date: Wed Nov 5 18:56:17 2014 +0000 BaseTools/GenFw: Fixed R_AARCH64_CALL26/R_AARCH64_JUMP26 when referring to start of a section When R_AARCH64_CALL26/R_AARCH64_JUMP26 relocations referred to static functions, they sometime refer to the start of the '.text' section + addend. It means the addend is different of '0'. The non-patched code (before applying the relocation) already contains the correct offset. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16302 6f19259b-4bc3-4df7-8a09-765794883524 commit be91c7706958e822885ebec36b48483b142755cd Author: Gao, Liming Date: Wed Nov 5 12:09:22 2014 +0000 MdeModulePkg: Add InSmm() API in PiSmmCoreSmmServicesTableLib instance Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Fan, Jeff git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16301 6f19259b-4bc3-4df7-8a09-765794883524 commit 658bf43ecfe96df1cdc005a15f0af1dcc79de09b Author: jcarsey Date: Tue Nov 4 22:33:16 2014 +0000 ShellPkg: Fix timezone command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16300 6f19259b-4bc3-4df7-8a09-765794883524 commit f9080cdd088852935fac889fc9fd180a62459e80 Author: Chen Fan Date: Tue Nov 4 09:17:37 2014 +0000 MdePkg: fix comments typo about EFIAPI for X64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16299 6f19259b-4bc3-4df7-8a09-765794883524 commit 4fe43eb3e99590c05ab0e4f73dd9d734b0e110ac Author: Jeff Fan Date: Tue Nov 4 01:29:20 2014 +0000 1. Remove any references on other files from DebugTimer.c, to avoid un-used symbols linked. 2. Add GLOBAL_REMOVE_IF_UNREFERENCED for all global variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16298 6f19259b-4bc3-4df7-8a09-765794883524 commit 26830e857906951617d9c75f404139e40e52e62f Author: Jordan Justen Date: Fri Oct 31 22:05:50 2014 +0000 EDK II Contributions.txt: Update patch format information Update to show what the patch looks like in email form. NOTE: This does not modify the wording of the "TianoCore Contribution Agreement 1.0" section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16297 6f19259b-4bc3-4df7-8a09-765794883524 commit 489c5c67d0b20cb508429ac7ec9dcc613c12dd72 Author: Anthony PERARD Date: Fri Oct 31 21:25:44 2014 +0000 OvmfPkg/XenBusDxe: Fix initialisation of gXenBusDevicePathTemplate .. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16296 6f19259b-4bc3-4df7-8a09-765794883524 commit 43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe Author: Anthony PERARD Date: Fri Oct 31 21:25:36 2014 +0000 OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData .. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16295 6f19259b-4bc3-4df7-8a09-765794883524 commit e26a83cd29073c6528aee29226c4795ae1b1fd40 Author: Anthony PERARD Date: Fri Oct 31 21:25:23 2014 +0000 OvmfPkg/Xen*: Pass struct XENSTORE_TRANSACTION argument as a pointer As EDK II does not allow calls with a struct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16294 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f148aee19d34f12372f924aae776e3781b66a59 Author: Anthony PERARD Date: Fri Oct 31 21:25:11 2014 +0000 OvmfPkg/Include/...Xen: Convert __i386__/__x86_64__ to MDE_CPU_IA32/MDE_CPU_X64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16293 6f19259b-4bc3-4df7-8a09-765794883524 commit d8cfdb5fb1638173f98084cf48860036f7b86b22 Author: Jordan Justen Date: Fri Oct 31 20:55:16 2014 +0000 OvmfPkg Sec: Convert X64/SecEntry.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/SecEntry.asm to X64/SecEntry.nasm Note: Manually collapsed .inf sources Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16292 6f19259b-4bc3-4df7-8a09-765794883524 commit ba29ed0963627618efb8e80acc36c7a24894ed00 Author: Jordan Justen Date: Fri Oct 31 20:55:06 2014 +0000 OvmfPkg Sec: Convert Ia32/SecEntry.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/SecEntry.asm to Ia32/SecEntry.nasm Note: Manually collapsed .inf sources Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16291 6f19259b-4bc3-4df7-8a09-765794883524 commit f0a071731713f9a36f10a6335fd1cd33c07cf542 Author: Jordan Justen Date: Fri Oct 31 20:54:54 2014 +0000 OvmfPkg QemuFwCfgLib: Convert X64/IoLibExAsm.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/IoLibExAsm.asm to X64/IoLibExAsm.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16290 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a2976125d7f55ca0ef93c88680a4c2abbaa7ca5 Author: Jordan Justen Date: Fri Oct 31 20:54:41 2014 +0000 OvmfPkg QemuFwCfgLib: Convert Ia32/IoLibExAsm.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/IoLibExAsm.asm to Ia32/IoLibExAsm.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16289 6f19259b-4bc3-4df7-8a09-765794883524 commit ad8ae98d2fa2f9e2bb1ecd7941fb1b7ccda9fa6f Author: Jordan Justen Date: Fri Oct 31 20:54:31 2014 +0000 OvmfPkg LoadLinuxLib: Convert X64/JumpToKernel.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/JumpToKernel.asm to X64/JumpToKernel.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16288 6f19259b-4bc3-4df7-8a09-765794883524 commit 529fd9aeb426eac63cb04dbbc98e5cf792dcfdde Author: Jordan Justen Date: Fri Oct 31 20:54:16 2014 +0000 OvmfPkg LoadLinuxLib: Convert Ia32/JumpToKernel.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/JumpToKernel.asm to Ia32/JumpToKernel.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16287 6f19259b-4bc3-4df7-8a09-765794883524 commit b81cc7d6249671a2c1e36f6c8ac01da0e0b7c612 Author: Olivier Martin Date: Fri Oct 31 20:32:02 2014 +0000 StdLib: Fix more GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Normalized comment formatting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16286 6f19259b-4bc3-4df7-8a09-765794883524 commit fe7ad7f6af29af4f4e0a690c11df49922ca93940 Author: Jordan Justen Date: Fri Oct 31 19:55:15 2014 +0000 BaseTools: Add ConvertMasmToNasm.py script This script is intended to assist with MASM to NASM syntax conversions. The output should be manually inspected and adjusted as needed, since this script does not provide a perfect conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Acked-by: Yingke D Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16285 6f19259b-4bc3-4df7-8a09-765794883524 commit beaaa3b715381d05c454619a66dd6d27c0b420e5 Author: Olivier Martin Date: Fri Oct 31 17:50:33 2014 +0000 StdLib: Fix more GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Normalized comment formatting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16284 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d5b818c78b0341155007d37a2a3d22f9b4f5d18 Author: jcarsey Date: Fri Oct 31 16:40:46 2014 +0000 [Patch] ShellPkg: Remove unused PCD from INF file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16283 6f19259b-4bc3-4df7-8a09-765794883524 commit ba0a34f15f3a3633c1e8d179ab13595413530b29 Author: Olivier Martin Date: Fri Oct 31 14:05:09 2014 +0000 MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang When compiling with Clang, we still use GNU as for the assembler, so we still need to define the GCC_ASM* macros. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16282 6f19259b-4bc3-4df7-8a09-765794883524 commit f7fe68db7dad70646523a6ae2442f592651df8d9 Author: Chao Zhang Date: Fri Oct 31 10:59:25 2014 +0000 Remove redundant ASSERT in TcgDxe & TreeDxe. Some asserts are removed directly, some are replaced by debug output. ASSERT for SetupEventLog is kept. It is the foundation of TcgProtocol and TrEEProtocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16281 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ebffb67c8eca68cf5eb36bd308b305ab84fdd99 Author: Star Zeng Date: Fri Oct 31 10:26:54 2014 +0000 MdeModulePkg/SecurityPkg Variable: Add boundary check for while (IsValidVariableHeader (Variable)). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16280 6f19259b-4bc3-4df7-8a09-765794883524 commit a75cf433d167aba7674e4b230f59ee915ebe64a8 Author: Star Zeng Date: Fri Oct 31 07:20:26 2014 +0000 MdePkg/IntelFrameworkPkg HobLib: Update BuildResourceDescriptorWithOwnerHob() to align the behavior of BuildResourceDescriptorHob(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16279 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f103c08bac599bd68d28fb5dde982049469b983 Author: Fu Siyuan Date: Fri Oct 31 00:38:39 2014 +0000 Fix a bug introuduced by r16104, not all NIC device implement both memory and IO bar. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16278 6f19259b-4bc3-4df7-8a09-765794883524 commit b176333801d0f4e7593579ec3d86163224ed6ed8 Author: lhauch Date: Thu Oct 30 17:09:25 2014 +0000 Update edksetup.bat to support Microsoft Visual Studio 2013 when building the Nt32Pkg emulation platform (enabled using the --nt32 flag). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16277 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e565888ee40264bfad5a700e0d62f4824d81c18 Author: Olivier Martin Date: Thu Oct 30 01:05:22 2014 +0000 StdLib: Fix GCC warnings/errors caused by variables being set but not used. Removed variables that had no effect on code behavior. Fifo.c::FIFO_Dequeue: Replaced instances of "Self->ElementSize" with preexisting variable "SizeOfElement". IIOutilities.c::IIO_GetInChar: Fixed variable of wrong, but compatible, type and made updating of housekeeping variables dependent upon successful completion of reading from the buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16276 6f19259b-4bc3-4df7-8a09-765794883524 commit b07ae3d6073f9ec69ae4316b0832fc96325c01d4 Author: Olivier Martin Date: Wed Oct 29 18:55:29 2014 +0000 ArmPlatformPkg/Documentation: Removed BaseTools-Pending-Patches.patch All the required pending BaseTools patches have been merged. This patch is not required anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16275 6f19259b-4bc3-4df7-8a09-765794883524 commit 5de8a35c62406054f85df87ab67e018a3f4f88c6 Author: Anthony PERARD Date: Wed Oct 29 06:52:13 2014 +0000 OvmfPkg/XenPvBlkDxe: Add BlockIo. Implement the BlockIo protocol. Change in V4: - Replace the license by the commonly used file header text. Change in V3: - assert(Media->BlockSize % 512 == 0) - Use Sector instead of Offset to issue IOs. Change in V2: - Remove blockIo2 headers. - Fix few comment. - file header, copyright - Rewrite few comment and error messages - No more callback - Improving block read/write, increase to the max size in one request (instead of only 8pages) - Fix lastblock when it's a cdrom - Do uninitialisation when fail to install fail - few comment - Licenses Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16274 6f19259b-4bc3-4df7-8a09-765794883524 commit 5cce85240450b4f878cc45b2eb16b7b4be74e511 Author: Samuel Thibault Date: Wed Oct 29 06:51:58 2014 +0000 OvmfPkg/XenPvBlkDxe: Add BlockFront client. This is the code that will do the actual communication between OVMF and a PV block backend, where the block device lives. The protocol used is describe in the blkif.h header. This implementation originally comes from Mini-OS, a part of the Xen Project. Change in V4: - add file header to BlockFront.h (license, copyright, brief desc) Change in V3: - Improve comment of XenBusReadUint64. - Moving blkif.h to this patch with the necessary #pragma pack(4) applied for Ia32. - Add a note about the license in the commit message - Add "The protocol used is describe in the blkif.h header." in the commit message - Have a mandatory sector-size multiple of 512 or fail to initialize. - use Sector instead of Offset for IO request. with Sector been 512-byte unit. - print something if EventChannelNotify return an error. Change in V2: - trigger CoW is probably not needed on OVMF (as opposed to Mini-OS), removed the test. - comments - renamed XenbusReadInteger to XenBusReadUint64 - remove callback from IoData, use simple status instead - return a status from the synchronus io - Close protocol if blockfront init fail. - fix few debug print - Rename XenbusIo to XenBusIo - XenPvBlkWaitForBackendState will return an error if the new backend states is not the expected state. - Add the license License: This patch adds some files which are under the MIT license. Signed-off-by: Samuel Thibault Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16273 6f19259b-4bc3-4df7-8a09-765794883524 commit de671da8e43c424ebdcf816c45fd06c43ff44aba Author: Anthony PERARD Date: Wed Oct 29 06:51:42 2014 +0000 OvmfPkg/XenPvBlkDxe: Xen PV Block device, initial skeleton A ParaVirtualize block driver. Change in V4: - Replace the license by the commonly used file header text. - Add brief description for the driver. Change in V3: - enable compilation for Ia32 and Ia32X64 - fix version (driver binding) Change in V2: - Add minimal support for controller name - Remove stuff about BlockIo2 - Little cleanup - Licenses and file headers - Rename XenbusIo into XenBusIo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16272 6f19259b-4bc3-4df7-8a09-765794883524 commit e86895d9e489dafe904622867b197acff6ef4355 Author: Anthony PERARD Date: Wed Oct 29 06:51:26 2014 +0000 OvmfPkg/XenBusDxe: Add Event Channel into XenBus protocol. This patch adds three event channel related functions: - EventChannelAllocate: Allocate an event channel port that can be bind from a specified domain. - EventChannelNotify: Send an event to the remote end of a channel. - EventChannelClose: Close a local event channel port. Change in V3: - eventchannel, update protocol to return error code. - expand patch description - Add comments in the XenBus Protocol header. Change in V2: - coding style - adding comment to functions - Rename Xenbus to XenBus. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16271 6f19259b-4bc3-4df7-8a09-765794883524 commit 86d968e05ee062b10fe8d597b34f5eab2e2878bd Author: Anthony PERARD Date: Wed Oct 29 06:51:18 2014 +0000 OvmfPkg/XenBusDxe: Introduce XenBus support itself. This is a bus-like on top of XenStore. It will look for advertised ParaVirtualized devices and initialize them by producing XenBus protocol. Change in V4: - Replace the license by the commonly used file header text. - Clean XenBus.h header (remove copyright that does not belong to the file anymore; and rewrite the brief description of the file) - Fix description on the function Change in V3: - Insert to ChildList later, once populated. - Remove XENBUS_XENSTORE_NODE macro. - add comment to XenBusAddDevice and XenBusEnumerateBus about concurrency calls. - Add a description to the introduced member to the protocol. Change in V2: - comment, file header - Fix comment style - Error handling in the main init function - coding style - Fix error path in add device. Origin: FreeBSD 10.0 License: This patch adds XenBus.c which is under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16270 6f19259b-4bc3-4df7-8a09-765794883524 commit c23c037fb3b47574950a19d4753fbeccff5e3d42 Author: Anthony PERARD Date: Wed Oct 29 06:51:04 2014 +0000 OvmfPkg/XenBusDxe: Add XenStore function into the XenBus protocol Change in V3: - Have XenStoreWaitWatch/XenBusWaitForWatch return a XENSTORE_STATUS instead of VOID. - Add description of the introducted member of the protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16269 6f19259b-4bc3-4df7-8a09-765794883524 commit 02a6bcff71e2f11be851b3bd62518a62e58e71f5 Author: Anthony PERARD Date: Wed Oct 29 06:50:57 2014 +0000 OvmfPkg/XenBusDxe: Add an helper AsciiStrDup. .. because we need it in the patch titled: "OvmfPkg/XenBusDxe: Introduce XenBus support itself." Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16268 6f19259b-4bc3-4df7-8a09-765794883524 commit a9090a94bb4a8dae61eb79428a5769916d621940 Author: Anthony PERARD Date: Wed Oct 29 06:50:50 2014 +0000 OvmfPkg/XenBusDxe: Add XenStore client implementation XenStore is a key/value database, which is running on another virtual machine. It can be accessed through shared memory. This is a client implementation. Change in V3: - moving xs_wire.h from patch #1 to this patch - fix return value of XenStoreListDirectory - Use a timeout to print a debug message if the other side of the xenstore ring does not notify through the event channel. This is done with the new XenStoreWaitForEvent function. - Have XenStoreReadReply check status of XenStoreProcessMessage and return an error if needed. - Have XenStoreTalkv return the status of XenStoreReadReply. - Have a loop to check for the quiescent of the response ring in the XenStoreInitComms function. (with a timeout of 5 seconds) - use the recently introduced XenStore 'closing' feature. Change in V2: - Change comment style, from freebsd to ovmf - Fix type of EventChannel - Fix debug print, no more cast - Implement XenStoreDeinit. - Clean up comments - Fix few codding style issue - Add FAIL xenstore status value. Origin: FreeBSD 10.0 License: This patch adds several files under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16267 6f19259b-4bc3-4df7-8a09-765794883524 commit 6342f1fea881996666b4f1a9e7f132c484e03ff0 Author: Anthony PERARD Date: Wed Oct 29 06:50:35 2014 +0000 OvmfPkg/XenBusDxe: Add TestAndClearBit. This atomically test's and clear's a bit. Change in V3: - adding IA32 support. (not yet reviewed) both XenBusDxe/Ia32/TestAndClearBit.{S,asm} are new Change in V2: - Adding .asm version - Comment the function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16266 6f19259b-4bc3-4df7-8a09-765794883524 commit f1259bba3647beb30b7c5e2e7dbe6ba060814912 Author: Anthony PERARD Date: Wed Oct 29 06:50:24 2014 +0000 OvmfPkg/XenBusDxe: Add Event Channel Notify. This first function is used to notify the other side that there is something to do. The other side is another Xen domain. Change in V4: - Replace the license by the commonly used file header text. Change in V3: - Return error code from hypercall instead of ASSERT for XenEventChannelNotify - moving event_channel.h to this patch. Change in V2: - file header - coding style - adding comment to functions - Licenses License: This patch adds event_channel.h which is under MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16265 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fd142464fc5b0fcb8b7fdfac379c1054ec81654 Author: Steven Smith Date: Wed Oct 29 06:50:14 2014 +0000 OvmfPkg/XenBusDxe: Add Grant Table functions. There are used to grant access of pages to other Xen domains. This code originaly comes from the Xen Project, and more precisely from MiniOS. Change in V4: - Add license to GrantTable.h Change in V3: - Add a comment about the use of the BAR of the device. Change in V2: - Adding locks - Redo the file header - Add functions comment - Add license Signed-off-by: Steven Smith Signed-off-by: Grzegorz Milos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16264 6f19259b-4bc3-4df7-8a09-765794883524 commit bba9d16231fe9f7d67e0530e720530d91a88ad73 Author: Anthony PERARD Date: Wed Oct 29 06:49:55 2014 +0000 OvmfPkg/XenBusDxe: Add InterlockedCompareExchange16. This patch is inspired by InterlockedCompareExchange32 from the BaseSynchronizationLib. The function will be used in the "OvmfPkg/XenBusDxe: Add Grant Table functions" patch. Change in V3: - Implement both .S and .asm, to get rid of GCC specific asm. - Implement 32bit part of the assembly Change in V2: - Add intel compilation code MSFT code is not compied over because I don't know how it works. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16263 6f19259b-4bc3-4df7-8a09-765794883524 commit 12a16f2d1c610942a3420c86e7a3c6bcc7a6eedf Author: Anthony PERARD Date: Wed Oct 29 06:49:38 2014 +0000 OvmfPkg: Introduce XenBus Protocol. This protocol will be used for communication between a PV driver (like a PV block driver) and the XenBus/XenStore. Change in V5: - Replace the license by the commonly used file header text. Change in V3: - Add disclaimer about the volatile nature of the protocol. - Add a description on the two introduced members to the protocol. Change in V2: - Comment, file header - Protocol License - Declare xen interface version earlier - Rename protocol from Xenbus to XenBus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16262 6f19259b-4bc3-4df7-8a09-765794883524 commit 956622c4c9b25becf57ccc1771ffbc92b78ed005 Author: Anthony PERARD Date: Wed Oct 29 06:49:22 2014 +0000 OvmfPkg/XenBusDxe: Open PciIo protocol. The PciIo interface will be used in "OvmfPkg/XenBusDxe: Add Grant Table functions" to get the memory address of the BAR 1 and use the space to map shared memory. Change in V3: - add a commit description. Change in V2: - Coding style - Error handler Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16261 6f19259b-4bc3-4df7-8a09-765794883524 commit abcbbb14a44a83b4cdf90137307a62e7b58e6720 Author: Anthony PERARD Date: Wed Oct 29 06:49:10 2014 +0000 OvmfPkg/XenBusDxe: Add support to make Xen Hypercalls. Change in V4: - Replace the license by the commonly used file header text. - add file header to XenHypercall.h (license, copyright, brief desc) Change in V3: - adding IA32 support. (not reviewed yet) both XenBusDxe/Ia32/hypercall.{S,asm} file are new Change in V2: - file header, copyright - Add License - Add push/pop instruction. - fix types - Comment of exported functions - Improve coding style - Add error handling in the main init function (of the drivers) - Comment assembly Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16260 6f19259b-4bc3-4df7-8a09-765794883524 commit a154f420147b0a3f449bb52da1e76dabef3478a5 Author: Anthony PERARD Date: Wed Oct 29 06:48:59 2014 +0000 OvmfPkg/XenBusDxe: Add device state struct and create an ExitBoot services event. The ExitBoot event is used to disconnect from the device before the next operating system start using them. Change in V3: - use the variable mMyDevice to prevent the driver from starting twice (if there is two different PCI devices). - free(dev) on exit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16259 6f19259b-4bc3-4df7-8a09-765794883524 commit e65e8802e56eee33c3c2c77c1b60d5ba6746eb3b Author: Anthony PERARD Date: Wed Oct 29 06:48:50 2014 +0000 OvmfPkg: Add basic skeleton for the XenBus bus driver. This includes Component Name and Driver Binding. Change in V4: - Replace the license by the commonly used file header text. - Add brief description for the driver. Change in V3: - enable compilation for Ia32 and Ia32X64 - fix version (driver binding) Change in V2: - Simple support of controller name. - Cleaning up comments, files header. - Add Licenses - Rename XenbusDxe to XenBusDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16258 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b621f9581234eb01d988f9715172e635345b192 Author: Anthony PERARD Date: Wed Oct 29 06:48:29 2014 +0000 OvmfPkg: Add public headers from Xen Project. This patch imports publics headers in order to use features from Xen like XenStore, PV Block... There is only the necessary header files and there are only a few modifications in order to facilitate future merge of more recent header (that would be necessary to access new features). There is little modification compared to the original files: - Removed most of the unused part of the headers - Use of ZeroMem() instead of memset() - using #pragma pack(4) for IA32 compilation. - Replace types to be more UEFI compliant using a script. OVMF, when built for IA32 arch, uses the gcc switch -malign-double. This change the alignment of fields in some struct compare to what is espected by Xen and any backends. To fix the alignment, the #pragma pack(4) directive is used around the struct that need it. Command to run to change types: find OvmfPkg/Include/IndustryStandard/Xen -type f -name '*.h' -exec sed --regexp-extended --file=fix_type_in_xen_includes.sed --in-place {} \; Avoid changing the 'long' that is not a type (with the first line). $ cat fix_type_in_xen_includes.sed /as long as/b s/([^a-zA-Z0-9_]|^)uint8_t([^a-zA-Z0-9_]|$)/\1UINT8\2/g s/([^a-zA-Z0-9_]|^)uint16_t([^a-zA-Z0-9_]|$)/\1UINT16\2/g s/([^a-zA-Z0-9_]|^)uint32_t([^a-zA-Z0-9_]|$)/\1UINT32\2/g s/([^a-zA-Z0-9_]|^)uint64_t([^a-zA-Z0-9_]|$)/\1UINT64\2/g s/([^a-zA-Z0-9_]|^)int8_t([^a-zA-Z0-9_]|$)/\1INT8\2/g s/([^a-zA-Z0-9_]|^)int16_t([^a-zA-Z0-9_]|$)/\1INT16\2/g s/([^a-zA-Z0-9_]|^)int32_t([^a-zA-Z0-9_]|$)/\1INT32\2/g s/([^a-zA-Z0-9_]|^)int64_t([^a-zA-Z0-9_]|$)/\1INT64\2/g s/([^a-zA-Z0-9_]|^)void([^a-zA-Z0-9_]|$)/\1VOID\2/g s/([^a-zA-Z0-9_]|^)unsigned int([^a-zA-Z0-9_]|$)/\1UINT32\2/g s/([^a-zA-Z0-9_]|^)int([^a-zA-Z0-9_]|$)/\1INT32\2/g s/([^a-zA-Z0-9_]|^)unsigned char([^a-zA-Z0-9_]|$)/\1UINT8\2/g s/([^a-zA-Z0-9_]|^)char([^a-zA-Z0-9_]|$)/\1CHAR8\2/g s/([^a-zA-Z0-9_]|^)unsigned long([^a-zA-Z0-9_]|$)/\1UINTN\2/g s/([^a-zA-Z0-9_]|^)long([^a-zA-Z0-9_]|$)/\1INTN\2/g Change in V4: - Add a README in Xen headers directory to explain what have been done to it. It is mostly a copy/past from the commit description with some rewording. - replace unsigned char by UINT8 as there is no unsigned char in UEFI types. Change in V3: - Remove unused header sched.h - moving xs_wire.h in a later patch, where it's first needed - moving io/blkif.h in a later patch (XenPvBlkDxe: Add BlockFront client) - moving event_channel.h in a later patch (XenBusDxe: Add Event Channel Notify) - using #pragma pack(4) for IA32 - headers trimed down, removed most of the unused struct/define/... License: This patch adds many files under the MIT licence. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16257 6f19259b-4bc3-4df7-8a09-765794883524 commit 08dfaee2f20e5ade0585628ccb492235a699da93 Author: Anthony PERARD Date: Wed Oct 29 06:48:15 2014 +0000 OvmfPkg: Add the MIT license to License.txt. The MIT license will be used for several source files that are necessary for the Xen PV drivers. So this patch makes it explicit by adding the license with a note about which directory will have source files under this license. Change in V3: New patch Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16256 6f19259b-4bc3-4df7-8a09-765794883524 commit 4888d15e74628fd373605d5d853fa3b172aeadc3 Author: Star Zeng Date: Wed Oct 29 03:31:46 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg FwVol: Move the check of FV Header signature and file system to GetFwVolHeader() to avoid reading the whole unexpected FvHeader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16255 6f19259b-4bc3-4df7-8a09-765794883524 commit 24903bc48a324d42b284805ede9c5ee1db906e44 Author: Daryl McDaniel Date: Tue Oct 28 19:20:48 2014 +0000 StdLib: Some deployed versions of the Simple Text Input Protocol randomly return either NUL characters or Scan Codes when just typing normal text. These changes filter out NUL characters and make Scan Code and error handling more robust. StdLibPrivateInternalFiles/Include/Device/Console.h: Change UnGetKey, in the ConInstance structure, from an EFI_INPUT_KEY structure to a CHAR16 variable. Include/sys/termios.h: Add CHAR_SUB and CHAR_ESC for translation of '^Z' and the Escape Scan Code into the EOF and ESC characters, respectively. LibC/Uefi/Devices/Console/daConsole.c: Add da_ConRawRead() function to simplify the read logic. Discard NUL characters from the input stream. In Blocking mode, retry until a non-NUL character is received. In NonBlocking mode, a NUL causes an EAGAIN error to be returned. Translate the Escape Scan Code into an ESC character. If Scan Codes are ignored, retry if in Blocking mode else return an EAGAIN error. UnGetKey becomes a single wide character instead of a structure. Change da_Poll() to use da_ConRawRead(). LibC/Uefi/InteractiveIO/IIOutilities.c: BUG fix. Return the processed input character instead of the raw character. Allows EOF propagation. LibC/Uefi/InteractiveIO/CanonRead.c: Enable EOF propagation. LibC/Uefi/InteractiveIO/IIOechoCtrl.h: Use symbols defined in termios.h instead of hard-coded constant numbers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16254 6f19259b-4bc3-4df7-8a09-765794883524 commit 8dd618d2110bea0d3c3073b66eb51bc622e81c68 Author: Olivier Martin Date: Mon Oct 27 15:38:55 2014 +0000 ArmPkg/ArmLib: Removed duplicated invalidate TLB function ArmInvalidateInstructionAndDataTlb() was doing the same thing as ArmInvalidateTlb(). Both invalidate Data and Instruction TLBs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16253 6f19259b-4bc3-4df7-8a09-765794883524 commit d2e7e385fc57e2fab5465a2b622212f634d52845 Author: Ronald Cron Date: Mon Oct 27 15:38:20 2014 +0000 EmbeddedPkg: Clarify the declaration of SerialPortGetControl() Rework the PL011UartGetControl() function removing a TODO by the way. Update of the header comment blocks of (PL011Uart|SerialPort)GetControl() functions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16252 6f19259b-4bc3-4df7-8a09-765794883524 commit ab716191081e676179c5d386c706e05e2d940db5 Author: Ronald Cron Date: Mon Oct 27 15:37:37 2014 +0000 EmbeddedPkg: Clarify the declaration of SerialPortSetControl() Rework of PL011UartSetControl() as a consequence as well as update of function header comment blocks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16251 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f81a62094a12a435e677a1b6e5fbedc76a6a978 Author: Ronald Cron Date: Mon Oct 27 15:36:58 2014 +0000 EmbeddedPkg: Add scope of SerialPortExtLib.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16250 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f38945fea0905452e7680ed3ea554487a1f6c9b Author: Olivier Martin Date: Mon Oct 27 15:28:07 2014 +0000 ArmPlatformPkg/ArmJunoPkg: Added Juno development board support ARM 64bit development platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16249 6f19259b-4bc3-4df7-8a09-765794883524 commit cfdab71f926328bc82ac47f2d85bd823451af9d1 Author: Harry Liebel Date: Mon Oct 27 11:13:26 2014 +0000 ArmPlatformPkg/ArmShellCmdRunAxf: Added 'runaxf' cmd to shell (..cont) Added missing file from the previous commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16248 6f19259b-4bc3-4df7-8a09-765794883524 commit ced216f8b994bbc5a9a7a377668bf8f5a0d782e2 Author: Harry Liebel Date: Mon Oct 27 10:52:11 2014 +0000 ArmPlatformPkg/ArmShellCmdRunAxf: Added 'runaxf' cmd to shell Use the command to load and start a ARM Executable File from mass storage. This is basically just an ELF file. The program is copied to memory and the Entrypoint is called. Control is not expected to return back to the Shell. This has only been tested on AArch64 with a limited set of AXF binaries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16247 6f19259b-4bc3-4df7-8a09-765794883524 commit 53ae06f50dea91865edfacde1edc70c9e76b90d2 Author: Olivier Martin Date: Mon Oct 27 10:46:16 2014 +0000 ArmPlatformPkg/ArmVExpressDxe: Fixed duplicated GUID ArmFvpDxe.inf was using the same file guid as ArmHwDxe.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reported-By: Leif Lindholm git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16246 6f19259b-4bc3-4df7-8a09-765794883524 commit 9db0a779461043b6d81a6e7d24deba2cfe3e31e2 Author: Ronald Cron Date: Mon Oct 27 10:44:30 2014 +0000 EmbeddedPkg: Remove unused TemplateSerialPortLib MdePkg/Library/BaseSerialPortLibNull can be used instead as a template. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16245 6f19259b-4bc3-4df7-8a09-765794883524 commit daefd574f9d6c62df9149197af48219dc7cabf59 Author: Ronald Cron Date: Mon Oct 27 10:42:51 2014 +0000 ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file Implement the resizing of the file with SetInfo(). Implement the renaming of a file with SetInfo(). Allow to seek past the end of a file. The support of file resizing implies a rework of the read, write and close functions. So does the support of seeking past the end of a file. That why those two changes are done in the same patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16244 6f19259b-4bc3-4df7-8a09-765794883524 commit 11bbc25789c65514005c1ed7eaca38c095e0187a Author: Ronald Cron Date: Mon Oct 27 10:42:13 2014 +0000 EmbeddedPkg/Lan9118Dxe: Rework filter init, enabling and disabling Correct the setting of the hardware filters according to what it asked to the driver through the ReceiveFilters() interface function. Keep track of the hardware settings in the "ReceiveFilterSetting" field of the EFI_SIMPLE_NETWORK_MODE structure. From now, after initialization, all filters are disabled and thus no packet received. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16243 6f19259b-4bc3-4df7-8a09-765794883524 commit e52aee5d31c78a45a30fae5fbb54d1cf0bbabe1c Author: Ronald Cron Date: Mon Oct 27 10:41:29 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fix interrupt's mask returned by GetStatus Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16242 6f19259b-4bc3-4df7-8a09-765794883524 commit fdd12bd56985bfc6090b972ddc07418eb4f7212a Author: Ronald Cron Date: Mon Oct 27 10:40:33 2014 +0000 ArmPkg/SemihostFs: Fix open file issues revealed by SCT Fix return codes in case of errors. Fix translation from EFI open mode to semi-hosting open mode to avoid the truncate to zero length of an already existing file opened in read/write or read/write/create mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16241 6f19259b-4bc3-4df7-8a09-765794883524 commit 0f0a6fe907e6233f95546599ee3fe48d91259dce Author: Ronald Cron Date: Mon Oct 27 10:39:52 2014 +0000 EmbeddedPkg/Lan9118Dxe: Switch back the driver in stopped state after shutdown Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16240 6f19259b-4bc3-4df7-8a09-765794883524 commit 0150e14dba3e34ed8e9225fcb6e3d9b30200423c Author: Ronald Cron Date: Mon Oct 27 10:39:12 2014 +0000 EmbeddedPkg/Lan9118Dxe: Add or fix input parameter checks Add or fix checking of the input parameters of the functions that constitute the EFI_SIMPLE_NETWORK_PROTOCOL interface provided by the LAN9118 driver. In case of invalid calls, the returned error codes are now compliant with the UEFI specificationi and the SCT tests checking for those error codes do not fail anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16239 6f19259b-4bc3-4df7-8a09-765794883524 commit 5521b5cc73e21957023b634cb7f75e415bba0225 Author: Ronald Cron Date: Mon Oct 27 10:38:18 2014 +0000 ArmPkg/SemihostLib: Add library functions Add library functions to rename a file and get a temporary name for a file through the semi-hosting interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16238 6f19259b-4bc3-4df7-8a09-765794883524 commit c20f8ec6619d6bd6717364e12211f03f5f499676 Author: Ronald Cron Date: Mon Oct 27 10:37:20 2014 +0000 ArmPkg/Semihostlib: Rename semi-hosting open option Change mnemonic SEMIHOST_FILE_MODE_CREATE with mnemonic SEMIHOST_FILE_MODE_UPDATE. The bit referred to by this mnemonic is for the semi-hosting open mode code the equivalent of the + in the ISO C fopen mode terminology. This allows to select the so called update mode for which both read and write are allowed on the open file. The mnemonic SEMIHOST_FILE_MODE_UPDATE is more in line with the ISO C fopen mode terminology. A description of the ISO C fopen modes can be found here : http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16237 6f19259b-4bc3-4df7-8a09-765794883524 commit a537c71726627da40d786b1644d68cc7c3654d31 Author: Olivier Martin Date: Mon Oct 27 10:35:57 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fixed dereferencing optional NULL pointer TxBuff argument is optional in SNP.GetStatus(). This argument can be NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16236 6f19259b-4bc3-4df7-8a09-765794883524 commit c9263c7dd26a17c1f1990f2554e8ec0f469e0080 Author: Ronald Cron Date: Mon Oct 27 10:34:56 2014 +0000 EmbeddedPkg: Fix crash when retrieving LAN9118 network statistics Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16235 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f81082e38c230f8d5643dc7bbc2290b59ab168a Author: Olivier Martin Date: Mon Oct 27 10:30:53 2014 +0000 ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16234 6f19259b-4bc3-4df7-8a09-765794883524 commit d71338597e75002d5e2b63701834b07dae1af3a0 Author: Olivier Martin Date: Mon Oct 27 10:29:50 2014 +0000 ArmPkg/ArmGic: Added GicV3 support to ArmGicLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16233 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f525769b9254bebea76512cfd348d8637e898e5 Author: Olivier Martin Date: Mon Oct 27 10:28:44 2014 +0000 ArmPkg/ArmGic: Added GicV3 detection Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Harry Liebel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16232 6f19259b-4bc3-4df7-8a09-765794883524 commit d5c6b7fca306f5034f1200261bf9f77c52498cd5 Author: Olivier Martin Date: Mon Oct 27 10:27:27 2014 +0000 ArmPkg/ArmGic: Introduced ArmGicGetSupportedArchRevision() This function returns the revision of the GIC Architecture. Some GICv3 controllers can work in GICv2 mode. Switching to an older GIC revision is driven by the higher level exception level. This function allows code to support any GIC revision at runtime. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16231 6f19259b-4bc3-4df7-8a09-765794883524 commit f1e2b7283ea6fa12691edee22aca403c3b3af24c Author: Star Zeng Date: Mon Oct 27 00:42:57 2014 +0000 MdePkg/IntelFrameworkPkg HobLib: Add BuildResourceDescriptorWithOwnerHob() API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16230 6f19259b-4bc3-4df7-8a09-765794883524 commit 956f71b611b7677bc0605b95c4e67af413aaab86 Author: Gao, Liming Date: Fri Oct 24 08:35:43 2014 +0000 Clean not in pub spec comments status codes returned for functions of EFI_TCG_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16229 6f19259b-4bc3-4df7-8a09-765794883524 commit e83d4bf602eb229ee8eb3ff15f7b4fa2fe1e0661 Author: Tian, Hot Date: Thu Oct 23 01:35:44 2014 +0000 Update some package owners Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16228 6f19259b-4bc3-4df7-8a09-765794883524 commit 36bdec3cd94346c9ccae4df02ae5890409498cf8 Author: Chao, Zhang Date: Wed Oct 22 07:30:22 2014 +0000 Add comments to clarify mPubKeyStore buffer MemCopy. There is no memory overflow issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao, Zhang Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16227 6f19259b-4bc3-4df7-8a09-765794883524 commit 0414ec24bad8adf62982fe2c15d7f55a7a0fda6b Author: Hess Chen Date: Wed Oct 22 06:44:45 2014 +0000 BaseTools/UPT: Remove Macro Expend for UserExtension section Remove Macro Expend for UserExtension section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16226 6f19259b-4bc3-4df7-8a09-765794883524 commit 43654b1cb92269a6d6374f33f729efe91ed9d788 Author: Reza Jelveh Date: Wed Oct 22 05:52:48 2014 +0000 MdeModulePkg/AtaAtapiPassThru: When D2H FIS received at PIO DATA-IN transfer, check PxTFD.Error register to confirm if there is a real error for better device compatibilities with Qemu and Marvel9230 sata controllers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reza Jelveh Signed-off-by: Feng Tian Reviewed-by: A. Sava Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16225 6f19259b-4bc3-4df7-8a09-765794883524 commit 2cb6eabe0b358fe0d4e4dd602f84b5f5d3e39a6c Author: Elvin Li Date: Wed Oct 22 05:01:58 2014 +0000 Add DebugCommunicationLibUsb3 for USB3.0 source level debug support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Ruiyu Ni Reviewed-by: Feng Tian Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16224 6f19259b-4bc3-4df7-8a09-765794883524 commit fbb393ab7a9c33ca4ae81fb3f91a7d2a5671bd62 Author: Lee Leahy Date: Wed Oct 22 03:03:18 2014 +0000 [MdePkg] Code clean-up: Remove trailing spaces Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Lee Leahy Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16223 6f19259b-4bc3-4df7-8a09-765794883524 commit ca2be854872373f18fc1cdf5277973fcd9179e7a Author: Eric Dong Date: Tue Oct 21 05:50:06 2014 +0000 Check the question value before call CHANGED. Only when question value has been changed, browser will call CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16222 6f19259b-4bc3-4df7-8a09-765794883524 commit 79e1ffbdd4cb6ea4d1ec8c25a1f6c905a57458f0 Author: Eric Dong Date: Tue Oct 21 05:48:00 2014 +0000 Clean up the code. Action statement should not have text two opcode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16221 6f19259b-4bc3-4df7-8a09-765794883524 commit 8c83d0c0b9bd102cd905c83b2644a543e9711815 Author: Chao, Zhang Date: Tue Oct 21 00:35:49 2014 +0000 Add PubKey index check before touching PubKey cache. Internal PubKey Variable PubkeyIndex is always 0, causing Index – 1 overflow. Update corresponding comments. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao, Zhang Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16220 6f19259b-4bc3-4df7-8a09-765794883524 commit edb5073413d7b5e60cb69ffd3cb1ccb99decbf6a Author: Laszlo Ersek Date: Wed Oct 15 14:15:21 2014 +0000 ArmVirtualizationPkg: FdtPL011SerialPortLib: support UEFI_APPLICATION The library already supports UEFI_DRIVER, we just need to relax the restriction list. This allows ArmVirtualizationPkg platforms to build applications, like the UEFI shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16219 6f19259b-4bc3-4df7-8a09-765794883524 commit c373687eb8032ba7436adbed1de68b065cf568ee Author: Eric Dong Date: Wed Oct 15 06:20:09 2014 +0000 Add comments for FSVariable driver which used by Duet platform only, trust all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16218 6f19259b-4bc3-4df7-8a09-765794883524 commit 741a1e5895a2f617acb2e391a48c653f7dbe44ab Author: Eric Dong Date: Wed Oct 15 05:19:08 2014 +0000 Add comments for FSVariable driver which used by Duet platform only, trust all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16217 6f19259b-4bc3-4df7-8a09-765794883524 commit 55501e13510038786f735a681c43a3354b363355 Author: Eric Dong Date: Wed Oct 15 05:17:41 2014 +0000 Prevent EBDA area being overwritten, get the size info from the address 0x40E. If can’t get the size info, then use the default value for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16216 6f19259b-4bc3-4df7-8a09-765794883524 commit bf5a9493fa9d7013015ac511714d4efdca23ae34 Author: Ruiyu Ni Date: Wed Oct 15 04:49:04 2014 +0000 AtaBusDxe: Fix ReadBlockEx andWriteBlockEx to still signal event when the BufferSize is 0. DiskIoDxe: Fix ReadDiskEx and WriteDiskEx to not modify the user’s buffer when the BufferSize is 0. DiskIoDxe: Fix ReadDiskEx and WriteDiskEx hang issue when the submitted blockio2 task is completed before submitting another blockio2 task. DiskIoDxe: Fix FlushEx to free the flush task item in callback (memory leak issue). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16215 6f19259b-4bc3-4df7-8a09-765794883524 commit 4202afa45dea319f80d753dc1b2ebbbcfb55dc29 Author: Jordan Justen Date: Tue Oct 14 16:24:41 2014 +0000 EDK II: Add Maintainers.txt file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16214 6f19259b-4bc3-4df7-8a09-765794883524 commit 71bcf79963d1d9d8bc10b54c82dfe75dfc588d4a Author: Ryan Harkin Date: Tue Oct 14 16:08:15 2014 +0000 EDK II: Add .gitignore While edk2 is still maintained in SVN, Many edk2 developers use git for their main workflow, using the official mirrors. Add a .gitignore to the EDK II root, BaseTools and Conf directories to prevents files generated as part of the build from cluttering up "git status" output. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin [removed Linaro-specific bits, rework for upstream] Signed-off-by: Leif Lindholm Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16213 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b7c06072eec16b6ac0707d036d865a87f78658a Author: Leif Lindholm Date: Tue Oct 14 14:46:32 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Enable specifying firmware version string on build If FIRMWARE_VER is defined on the build command line, set gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString based on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16212 6f19259b-4bc3-4df7-8a09-765794883524 commit 5e574a01ca816e1e1dc0863c61b92d7638a6d5fd Author: Star Zeng Date: Tue Oct 14 06:53:18 2014 +0000 MdeModulePkg PeiCore: Update the code of PeiAllocatePages() to correctly consider the overhead sizeof (EFI_HOB_MEMORY_ALLOCATION). It can fix the confused ERROR log like below. "AllocatePages failed: No 0x1 Pages is available. There is only left 0x1 pages memory resource to be allocated." Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16211 6f19259b-4bc3-4df7-8a09-765794883524 commit 544ccd1051108dcaf9eced3d57f465dd24a4e43e Author: Olivier Martin Date: Tue Oct 14 06:30:17 2014 +0000 Removes dead code from the PlatformBdsLibNull,leaving this unused code might confuse the user. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16210 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c4d470eed976b91e9bcec47502f5f4b8d06b939 Author: Qiu Shumin Date: Tue Oct 14 01:16:38 2014 +0000 ShellPkg: Comments update and code refine. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16209 6f19259b-4bc3-4df7-8a09-765794883524 commit 43ac100ee416233cb4c3c81b33b2f5e7196d4afe Author: Olivier Martin Date: Mon Oct 13 10:55:38 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Added support for Intel BDS Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16208 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d5b88f372180dc3a8622fda19ae0ac1fb076ae8 Author: Olivier Martin Date: Sat Oct 11 02:19:36 2014 +0000 Removes dependencies on SMBIOS in the IntelFrameworkModulePkg’s BDS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16207 6f19259b-4bc3-4df7-8a09-765794883524 commit ebb923532915eb33371d97cf8f2e706139ae75a2 Author: Olivier Martin Date: Fri Oct 10 11:25:04 2014 +0000 ArmPkg/ArmLib/AArch64: Initialize the new N+1-level page table before registering it Prior to this change, when a new page table was created at level N+1, the reference to the table was added to the level N translation table, before being initialized. It means if virtual addresses were in the address range defined by this new table the CPU would crash as the address range was not initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16206 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a70a690ea534c77639b92c811f6a6378b2bbea0 Author: Olivier Martin Date: Fri Oct 10 11:24:11 2014 +0000 ArmPkg/UncachedMemoryAllocationLib: Track uncached memory allocations Keeping track of uncached memory allocations prevents doing expensive cache operations (eg: clean & invalidate) on newly allocated regions by reusing regions where possible Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16205 6f19259b-4bc3-4df7-8a09-765794883524 commit 9180ab73e6d4a72c420292c1454f94d391737fa1 Author: Olivier Martin Date: Fri Oct 10 11:22:50 2014 +0000 ArmPkg/ArmPsciResetSystemLib: Made the library only using SMC Only ArmVirtualizationPkg based platforms are expected to use the dynamic method to choose between SMC and HVC to invoke PSCI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16204 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a0e4800a328f5d7893e080f65edcc6bd0bc07e5 Author: Harry Liebel Date: Fri Oct 10 10:39:36 2014 +0000 ArmPlatformPkg/Bds: Reduce boot device entries If a storage device is used for Variable storage or access is provided by the Simple Filesystem Protocol do not list it again for RAW memory map access in the 'Add Boot device' menu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16203 6f19259b-4bc3-4df7-8a09-765794883524 commit 2618ea2c05f56ff9cfe2048e899d4bed1719d995 Author: Star Zeng Date: Fri Oct 10 04:52:38 2014 +0000 MdeModulePkg FaultTolerantWriteDxe: Remove unnecessary @para from function header comments of ReadWorkSpaceData(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16202 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d3edd9d26300256a19472fbf82e090bbab3b5b4 Author: Star Zeng Date: Fri Oct 10 02:27:14 2014 +0000 MdeModulePkg FaultTolerantWriteDxe: Remove assumptions below in FTW driver. 1. Work space and spare block must be in a FVB with FV header. Updated to work space and spare block could be in independent FVBs that are without FV header. 2. NV region, work space and spare block must have same BlockSize. Updated to NV region, work space and spare block could have different BlockSize. 3. Works space size must be <= one block size. Update to work space size could be <= one block size (not span blocks) or > one block size (block size aligned). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16201 6f19259b-4bc3-4df7-8a09-765794883524 commit d2a867217d63a5ef83c2877f842fd0e2c33259ba Author: Star Zeng Date: Thu Oct 9 09:37:58 2014 +0000 MdeModulePkg DxeCore: Add FVH signature check before VerifyFvHeaderChecksum in FwVol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16200 6f19259b-4bc3-4df7-8a09-765794883524 commit 65ef0b0d01c5f65c2e52cf13873c6b0494347333 Author: Qiu Shumin Date: Thu Oct 9 01:25:32 2014 +0000 ShellPkg: Add a typecast to 'BOOLEAN' to avoid build failure in VS2005. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16199 6f19259b-4bc3-4df7-8a09-765794883524 commit e456bb84e0ae952d8416a7378b768b116974d26d Author: Gabriel Somlo Date: Wed Oct 8 20:38:05 2014 +0000 ShellPkg: fix "incompatible pointer type" build error Following commit 7fe3fbad05cd6ef23e83ab5da8c5a82ff9bb456e, building OvmfPkg on Linux breaks with an "incompatible pointer type" error. This patch adds a cast to supress the warning and allow the build to complete Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16198 6f19259b-4bc3-4df7-8a09-765794883524 commit 842949fa8099a9c627ffe9f62f36214898c33a12 Author: jcarsey Date: Tue Oct 7 19:58:43 2014 +0000 ShellPkg: hexedit command does not return lasterror equal to 0 when exiting from editor Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16197 6f19259b-4bc3-4df7-8a09-765794883524 commit 88963516461abf48243acee848703981187ed97c Author: jcarsey Date: Tue Oct 7 19:57:23 2014 +0000 Dmpstore command does not return lasterror equal to 0 when ‘-s’ flag used to dump variables in file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16196 6f19259b-4bc3-4df7-8a09-765794883524 commit 75e34de46c170ae32ec7537eb2de11f81cfa305b Author: Jaben Carsey Date: Fri Oct 3 15:49:59 2014 +0000 ShellPkg: Fix Meta Data misspelling Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16195 6f19259b-4bc3-4df7-8a09-765794883524 commit 475387e9de0bed70b57165d0a389f3aee97d4058 Author: Jaben Carsey Date: Thu Oct 2 16:41:28 2014 +0000 ShellPkg: Update SetVar to use existing attributes for updating existing variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16194 6f19259b-4bc3-4df7-8a09-765794883524 commit 7fe3fbad05cd6ef23e83ab5da8c5a82ff9bb456e Author: Jaben Carsey Date: Thu Oct 2 16:40:49 2014 +0000 ShellPkg: Update MV. now supports across file system moves. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16193 6f19259b-4bc3-4df7-8a09-765794883524 commit 57446bb979d7466055977d1b816e6958b8ae997c Author: Laszlo Ersek Date: Thu Oct 2 08:08:14 2014 +0000 OvmfPkg: SecureBootConfigDxe: remove stale fork In the previous patch we disabled its use; there are no more clients. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Gary Lin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16192 6f19259b-4bc3-4df7-8a09-765794883524 commit 8714a6314f7b95ec389533552aa2034238f0b602 Author: Laszlo Ersek Date: Thu Oct 2 08:08:05 2014 +0000 OvmfPkg: disable stale fork of SecureBootConfigDxe OvmfPkg forked SecureBootConfigDxe from SecurityPkg in SVN r13635 (git commit 8c71ec8f). Since then, the original (in "SecurityPkg/VariableAuthenticated/SecureBootConfigDxe") has diverged significantly. The initial diff between the original and the fork, when the fork was made (ie. at SVN r13635), reads as follows: > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr OvmfPkg/SecureBootConfigDxe/SecureBootConfig.vfr > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr 2014-09-30 23:35:28.598067147 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfig.vfr 2014-08-09 02:40:35.824851626 +0200 > @@ -51,7 +51,7 @@ > questionid = KEY_SECURE_BOOT_ENABLE, > prompt = STRING_TOKEN(STR_SECURE_BOOT_PROMPT), > help = STRING_TOKEN(STR_SECURE_BOOT_HELP), > - flags = INTERACTIVE | RESET_REQUIRED, > + flags = INTERACTIVE, > endcheckbox; > endif; > > @@ -158,7 +158,7 @@ > questionid = KEY_SECURE_BOOT_DELETE_PK, > prompt = STRING_TOKEN(STR_DELETE_PK), > help = STRING_TOKEN(STR_DELETE_PK_HELP), > - flags = INTERACTIVE | RESET_REQUIRED, > + flags = INTERACTIVE, > endcheckbox; > endif; > endform; > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf 2014-09-30 23:35:28.598067147 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf 2014-09-30 23:35:28.577067027 +0200 > @@ -1,5 +1,8 @@ > ## @file > -# Component name for SecureBoot configuration module. > +# Component name for SecureBoot configuration module for OVMF. > +# > +# Need custom SecureBootConfigDxe for OVMF that does not force > +# resets after PK changes since OVMF doesn't have persistent variables > # > # Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
> # This program and the accompanying materials > diff -ur SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c OvmfPkg/SecureBootConfigDxe/SecureBootConfigImpl.c > --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c 2014-09-30 23:35:28.599067153 +0200 > +++ OvmfPkg/SecureBootConfigDxe/SecureBootConfigImpl.c 2014-09-30 23:35:28.578067033 +0200 > @@ -2559,7 +2559,7 @@ > NULL > ); > } else { > - *ActionRequest = EFI_BROWSER_ACTION_REQUEST_RESET; > + *ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT; > } > break; The commit message is not overly verbose: OvmfPkg: Add custom SecureBootConfigDxe that doesn't reset We don't force a platform reset for OVMF when PK is changed in custom mode setup. But the INF file hunk is telling: Need custom SecureBootConfigDxe for OVMF that does not force resets after PK changes since OVMF doesn't have persistent variables We do have persistent variables now. Let's disable the (now obsolete) OvmfPkg fork, and revert to the (well maintained) SecurityPkg-provided config driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Gary Lin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16191 6f19259b-4bc3-4df7-8a09-765794883524 commit 23a2df76783ad7694918916f28e24cd1a1f84daf Author: Olivier Martin Date: Tue Sep 30 00:59:04 2014 +0000 MdeModulePkg/ScsiDiskDxe: Fix the build warning/error "unreachable statement" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16190 6f19259b-4bc3-4df7-8a09-765794883524 commit 831537d6ca574a6bf579a4797dd66eed3548a016 Author: Olivier Martin Date: Mon Sep 29 09:02:57 2014 +0000 Removes some unused assigned variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16189 6f19259b-4bc3-4df7-8a09-765794883524 commit cec6685c7d343a14cae47c878c5239da49566b2c Author: Nikolai Saoukh Date: Mon Sep 29 08:48:24 2014 +0000 Both printed fields are 64 bit long for IA32 too. It is better to print them as such. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16188 6f19259b-4bc3-4df7-8a09-765794883524 commit e7a2064ec72db92ba644a5f8deace5d7e05ec3d2 Author: Olivier Martin Date: Mon Sep 29 08:46:31 2014 +0000 Removes some unused assigned variables. Some compiler (GCC in this case) raises a warning/error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16187 6f19259b-4bc3-4df7-8a09-765794883524 commit 3dfe9247cef656a40407a46af5e2e4e04757a646 Author: Chen Fan Date: Sun Sep 28 06:22:10 2014 +0000 EmulatorPkg/MpService: remove redundant switch-case statement we had set the AP procedure in StartupAllAPs(), so do not need to set AP procedure twice. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16186 6f19259b-4bc3-4df7-8a09-765794883524 commit 5152f6426cb80b70eb7c39e372105e050946eb85 Author: Chen Fan Date: Sun Sep 28 06:22:03 2014 +0000 EmulatorPkg/MpService: Check Processor State when Set Procedure Due to the state of processor could be set blocked by SingleThread parameter, so we ought to add a READY state check, only let the processor in READY state to invoke procedure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16185 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a160a74a54002e7e49d391f19bbcf1142978a45 Author: Chen Fan Date: Sun Sep 28 06:21:55 2014 +0000 EmulatorPkg/MpService: use simple pointer access Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16184 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ab6d73c0e240d573cdce317a15317f235d24ac4 Author: Chen Fan Date: Sun Sep 28 06:21:46 2014 +0000 EmulatorPkg/MpService: Fix a NULL reference when making a CreateEvent() to call CpuCheckAllAPsStatus(), the Context parameter was NULL in CpuCheckAllAPsStatus(), so we must not use the Context as the ProcessorData pointer. and should recalculate it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16183 6f19259b-4bc3-4df7-8a09-765794883524 commit 90be22219668cae514cdb56934cb139089367dae Author: jyao1 Date: Sun Sep 28 01:07:13 2014 +0000 Fix an issue on FixedMtreProgramming - AND/OR mask incorrect. Contributed-under: TianoCore Contribution Agreement 1.0 signed-off by: Yao, Jiewen reviewed by: Rangarajan, Ravi P git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16181 6f19259b-4bc3-4df7-8a09-765794883524 commit 365614e21e03949d528a3ca266d6d2ed1dff942e Author: Dong, Guo Date: Fri Sep 26 03:24:56 2014 +0000 Roll back the dependency change in MOR driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16179 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a0ca7877dc700013d80c6a97afb7b02b9cb5e81 Author: Nikolai Saoukh Date: Thu Sep 25 02:29:18 2014 +0000 BaseTools: Use '/' as path separator for objcopy --add-gnu-debuglink Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16172 6f19259b-4bc3-4df7-8a09-765794883524 commit c404616199df383226df1b70940008c01cfaec81 Author: Jordan Justen Date: Thu Sep 25 02:29:10 2014 +0000 OvmfPkg: Fix VS2005 build warnings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16171 6f19259b-4bc3-4df7-8a09-765794883524 commit ce88384500b3fb82c324ebf8553bfc55aedb3bc2 Author: Jordan Justen Date: Thu Sep 25 02:29:00 2014 +0000 OvmfPkg/AcpiPlatformDxe: Fix VS2012 IA32 build warning Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16170 6f19259b-4bc3-4df7-8a09-765794883524 commit e0ba625fc641314438a9a46079b52a4a30d8679e Author: Leif Lindholm Date: Wed Sep 24 21:07:53 2014 +0000 BaseTools: Actually plug in BaseTools build on AArch64 Support for building BaseTools on AArch64 is available in the tree, but not currently "plugged in". This patch adds the required snippet. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16169 6f19259b-4bc3-4df7-8a09-765794883524 commit b22203212a892137e8da9501d42f58c022d61289 Author: Ye Ting Date: Wed Sep 24 09:35:54 2014 +0000 Enhance TargetName check when save iSCSI configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting Reviewed-by: Wu, Jiaxin Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16168 6f19259b-4bc3-4df7-8a09-765794883524 commit d28c4ed72bb390b1152c114b0b34374428956871 Author: Ye Ting Date: Wed Sep 24 09:35:32 2014 +0000 Enhance TargetName check when save iSCSI configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting Reviewed-by: Wu, Jiaxin Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16167 6f19259b-4bc3-4df7-8a09-765794883524 commit f55d71ec95660eefd9bf7a5ef54534e80e42e71b Author: Qiu Shumin Date: Wed Sep 24 07:49:20 2014 +0000 The binaries of ShellBinPkg are generated with ShellPkg project 16163. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16166 6f19259b-4bc3-4df7-8a09-765794883524 commit efda1df8d565950694d1e2a5bb7c3e6bf0fe88c5 Author: Ard Biesheuvel Date: Wed Sep 24 07:48:26 2014 +0000 Users of the LP64 data model should declare SIXTY_FOUR_BIT_LONG, not SIXTY_FOUR_BIT when building OpenSSL. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-By: Olivier Martin Reviewed-by: Andrew Fish Signed-off-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16165 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fd8de32af59ffc80454483001ff07d431525fd4 Author: Qiu Shumin Date: Wed Sep 24 05:06:59 2014 +0000 ShellPkg: Make the argument type match the function expected parameter type to avoid build fail in GCC45. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16163 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a9612ceb28d1c0c61d6b38412ee2deda323ee14 Author: Eric Dong Date: Tue Sep 23 08:06:23 2014 +0000 Refine get default value process for browser. Before get default value for each questions, call ExtractConfig function to get the altcfg string for all formset. Later when question try to get default value from AltCfg string, just get the value from the saved altcfg string instead of call ExtractConfig function to get it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16162 6f19259b-4bc3-4df7-8a09-765794883524 commit 427d61ad4ad1462b5f4370a78eb58c1ba73680b4 Author: Qiu Shumin Date: Tue Sep 23 06:20:59 2014 +0000 ShellPkg: Refine code style to avoid potential NullPointer dereference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16161 6f19259b-4bc3-4df7-8a09-765794883524 commit b4dfada85dad3ff3022f83d0ac1cd6b0c185cdd5 Author: Gao, Liming Date: Tue Sep 23 01:32:56 2014 +0000 BaseTools: Update nmake Makefile to handle the file path with “:\\”. DOS del command doesn’t handle “:\\” in the file path. This patch converts “:\\” to “:\”. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16160 6f19259b-4bc3-4df7-8a09-765794883524 commit 77eef0d5a82bf2a49cc6bb25077ba73e922ea160 Author: Qiu Shumin Date: Tue Sep 23 01:14:30 2014 +0000 ShellPkg: Fix setting hot key for boot option fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16159 6f19259b-4bc3-4df7-8a09-765794883524 commit 387536e472aa0eb4a169f8456167fef53524fbe0 Author: Laszlo Ersek Date: Mon Sep 22 21:11:22 2014 +0000 OvmfPkg: AcpiPlatformDxe: implement QEMU's full ACPI table loader interface Recent changes in the QEMU ACPI table generator have shown that our limited client for that interface is insufficient and/or brittle. Implement the full interface utilizing OrderedCollectionLib for addressing fw_cfg blobs by name. In order to stay compatible with EFI_ACPI_TABLE_PROTOCOL, we don't try to identify QEMU's RSD PTR and link it into the UEFI system configuration table. Instead, once all linker/loader commands have been processed, we process the AddPointer commands for a second time. In the second pass, we look at the targets of these pointer commands. The key idea (by Michael Tsirkin) is that any ACPI interpreter will only be able to locate ACPI tables by following absolute pointers, hence QEMU's set of AddPointer commands will cover all of the ACPI tables (and more, see below). Some of QEMU's AddPointer commands (ie. some fields in ACPI tables) may point to areas in fw_cfg blobs that are not ACPI tables themselves. Examples are the BGRT.ImageAddress field, and the TCPA.LASA field. We tell these apart from ACPI tables by performing the following checks on pointer target "candidates": - length check against minimum ACPI table size, and remaining blob size - checksum verification. If a target area looks like an ACPI table, and is different from RSDT and DSDT (which EFI_ACPI_TABLE_PROTOCOL handles internally), we install the table (at which point EFI_ACPI_TABLE_PROTOCOL creates a deep copy of the relevant segment of the pointed-to fw_cfg blob). Simultaneously, we keep account if each fw_cfg blob has ever been referenced as the target of an AddPointer command without that AddPointer command actually identifying an ACPI table. In this case the containing fw_cfg file (of AcpiNVS memory type) must remain around forever, because we never install that area with EFI_ACPI_TABLE_PROTOCOL, but some field in some ACPI table that we *do* install still references it, by the absolute address that we've established during the first pass. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16158 6f19259b-4bc3-4df7-8a09-765794883524 commit 56947bc0810a8b85e9cb7fa7fd6ea23a7276bf7b Author: Laszlo Ersek Date: Mon Sep 22 21:11:15 2014 +0000 OvmfPkg: AcpiPlatformDxe: remove current ACPI table loader In the next patch we rewrite the client code for QEMU's fw_cfg ACPI table loader interface. In order to avoid randomly intermixed hunks in that patch, first remove the old code cleanly. We remove the InstallQemuLinkedTables() function and empty the InstallAllQemuLinkedTables() function. We also remove CheckRsdp(). InstallAllQemuLinkedTables() will return constant EFI_NOT_FOUND to AcpiPlatformEntryPoint(), causing the latter to proceed to OVMF's builtin tables. This way the history remains bisectable and the new client gets a clean start in the next patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16157 6f19259b-4bc3-4df7-8a09-765794883524 commit 10de33ec2d6d80c93ad5ca2e24dad83c5d1fad57 Author: Laszlo Ersek Date: Mon Sep 22 21:11:09 2014 +0000 OvmfPkg: AcpiPlatformDxe: actualize QemuLoader.h comments We used to state in this header file that we only cared about the Allocate command. This is no longer the case; update the comments accordingly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16156 6f19259b-4bc3-4df7-8a09-765794883524 commit 48cc4d0c61e08ebaeadb29f5c24dd3f48a76da20 Author: Laszlo Ersek Date: Mon Sep 22 21:11:02 2014 +0000 OvmfPkg: resolve OrderedCollectionLib with base red-black tree instance The "complete" QEMU fw_cfg ACPI loader will need to look up downloaded blobs by name, in order to implement the AddPointer and AddChecksum commands. Introduce OrderedCollectionLib to support such indexing. BaseOrderedCollectionRedBlackTreeLib is a BASE module, hence add the OrderedCollectionLib resolution to the main [LibraryClasses] section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16155 6f19259b-4bc3-4df7-8a09-765794883524 commit e7ae4a7cb32f8d8a2c14f3fd80138944184789e1 Author: Hess Chen Date: Mon Sep 22 07:37:28 2014 +0000 BaseTools/ECC: Ignore duplicate check for 'NULL' library Update a checkpoint to ignore duplicate check for 'NULL' library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16154 6f19259b-4bc3-4df7-8a09-765794883524 commit 875cc5bb9710ca63c91d5b74b2653c6804a07923 Author: Hess Chen Date: Mon Sep 22 07:06:12 2014 +0000 BaseTools/Upt: Fix several bugs 1. Fix a bug of generating additional EOL in file header. 2. Fix a bug of format error for Defines section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16153 6f19259b-4bc3-4df7-8a09-765794883524 commit b15aae9f2e33b8a24d2c1abd86422763642bc9c6 Author: Samer El-Haj-Mahmoud elhaj Date: Mon Sep 22 05:54:41 2014 +0000 Fix X64 native function call prolog. Prepare space for at least 4 arguments, even if the native function's arguments are less than 4. From MSDN x64 Software Conventions, Overview of x64 Calling Conventions: “The caller is responsible for allocating space for parameters to the callee, and must always allocate sufficient space for the 4 register parameters, even if the callee doesn’t have that many parameters. This aids in the simplicity of supporting C unprototyped functions, and vararg C/C++ functions.” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed by: Jiewen Yao Reviewed by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16152 6f19259b-4bc3-4df7-8a09-765794883524 commit c609f3d7f9eddd9d1bfe0d0e1a41f1deda5593bc Author: Eric Dong Date: Mon Sep 22 05:37:16 2014 +0000 Correct the convert hex string to decimal value logic. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16150 6f19259b-4bc3-4df7-8a09-765794883524 commit 76d475117dfa86d54cea393f00779301b318ff88 Author: Hess Chen Date: Fri Sep 19 02:04:08 2014 +0000 BaseTools/Upt: Fix several bugs 1. Fix a bug of packaging a full path file in zip at Linux. 2. Fix a format error of generating Hob/Event/BootMode information. 3. Fix a bug of generating additional “GUID” subtype for “UNDEFINED” guid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16149 6f19259b-4bc3-4df7-8a09-765794883524 commit a6e84d95f50a10e23ee9861270fb84057b5af2e9 Author: Ni Ruiyu Date: Fri Sep 19 01:39:45 2014 +0000 ShellPkg: ShellPkg: Fix the cp fail while coping directory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16148 6f19259b-4bc3-4df7-8a09-765794883524 commit 0faec4cf5256beff7b2e9cd4431a32f200515872 Author: Qiu Shumin Date: Fri Sep 19 01:34:44 2014 +0000 ShellPkg: Remove the redundant quotes around the parameter for 'alias'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16147 6f19259b-4bc3-4df7-8a09-765794883524 commit 715096c2448412e54a95092942a397bd4d697524 Author: Qiu Shumin Date: Fri Sep 19 01:32:05 2014 +0000 ShellPkg: Refine code style to avoid potential uninitialized local variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16146 6f19259b-4bc3-4df7-8a09-765794883524 commit ee1c2b77f48bf1c16f51b44c5df2be5b70ac8d33 Author: Olivier Martin Date: Thu Sep 18 21:18:22 2014 +0000 EmbeddedPkg: Introduced NULL library for SerialPortExtLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16145 6f19259b-4bc3-4df7-8a09-765794883524 commit b1a633434ddc5fc28de817debd963f7845fb78c7 Author: Ard Biesheuvel Date: Thu Sep 18 21:16:47 2014 +0000 ArmPkg/TimerDxe: add workaround for KVM timer interrupt handling KVM on ARM currently masks the timer interrupt on the timer side when delivering an interrupt to the guest. This itself is a workaround for an issue where the interrupt is reraised and trapped by the host as soon as the guest is entered, resulting in the guest being starved. Work around this by calling ArmGenericTimerEnable () after servicing each interrupt. The virtual version of ArmGenericTimerCounterLib will then make sure to unmask the interrupt again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16144 6f19259b-4bc3-4df7-8a09-765794883524 commit 601e3607864e680aaabea81f6eb3c49d9edd17e9 Author: Olivier Martin Date: Thu Sep 18 21:15:29 2014 +0000 ArmPlatformPkg: Introduced ArmPlatformSysConfigLib NULL library Some platforms do not have SysConfig controller used by the ARM Versatile Express. Some peripheral drivers currently rely on SysConfigLib (eg: PL031 RTC driver, LCD driver). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16143 6f19259b-4bc3-4df7-8a09-765794883524 commit efb419ea76fb685688507fc6491f3969ee10cd67 Author: Daryl McDaniel Date: Thu Sep 18 19:13:22 2014 +0000 StdLib: Produce DevMedia as a library class alternative to DevShell. AppPkg: Replace existing DevShell dependencies with DevMedia. These patches will NOT cause existing code which uses DevShell to break. During an interim period, either DevShell or DevMedia may be used. In the future, DevShell will be removed from the code base. During the interim, DevShell and DevMedia refer to the same library. StdLib/LibC/Uefi/Devices/daShell.inf Make this library also satisfy the DevMedia library class. StdLib/StdLib.inc Add a library class definition for DevMedia AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.inf AppPkg/Applications/Python/PythonCore.inf AppPkg/Applications/Sockets/GetAddrInfo/GetAddrInfo.inf AppPkg/Applications/Sockets/GetHostByAddr/GetHostByAddr.inf AppPkg/Applications/Sockets/GetHostByDns/GetHostByDns.inf AppPkg/Applications/Sockets/GetHostByName/GetHostByName.inf AppPkg/Applications/Sockets/GetNameInfo/GetNameInfo.inf AppPkg/Applications/Sockets/GetNetByAddr/GetNetByAddr.inf AppPkg/Applications/Sockets/GetNetByName/GetNetByName.inf AppPkg/Applications/Sockets/GetServByName/GetServByName.inf AppPkg/Applications/Sockets/GetServByPort/GetServByPort.inf AppPkg/Applications/Sockets/RecvDgram/RecvDgram.inf AppPkg/Applications/Sockets/SetHostName/SetHostName.inf AppPkg/Applications/Sockets/SetSockOpt/SetSockOpt.inf AppPkg/Applications/Sockets/TftpServer/TftpServer.inf AppPkg/Applications/Sockets/WebServer/WebServer.inf Change LibraryClass dependency from DevShell to DevMedia Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16142 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f5872b1f4013f58c6d2f446d885edd6c8ea6d21 Author: Michael Casadevall Date: Thu Sep 18 18:11:24 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add ArmVirtualizationQemu platform This adds support for executing UEFI in a QEMU/mach-virt emulated environment. The following assumptions are made about the target: - DRAM base at 0x4000_0000, containing the device tree blob - DRAM size at least 1 MB - device tree uses 64-bit physical base addresses and sizes - ARM architected timer - Cortex-A15 CPU (if built for 32-bit) The following information is retrieved from the device tree: - PL011 UART base address - GIC base addresses - virtual timer interrupt - PL031 RTC base address - DRAM size, must be at least 128 MB - virtio MMIO transports - PSCI 0.2 availability (for reset and poweroff) The device tree image is relocated and installed as a configuration table so an EFI stub enabled kernel can be booted directly without the need for a bootloader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16141 6f19259b-4bc3-4df7-8a09-765794883524 commit f1f0ba19f96d34c83e7afed33a5794101f556132 Author: Laszlo Ersek Date: Thu Sep 18 18:07:52 2014 +0000 ArmVirtualizationPkg: add device tree based PL011 SerialPortLib This adds 2 implementations of SerialPortLib for device tree based platforms using a PL011 UART: - an 'early' one which is completely stateless and uses only fixed PCDs - a normal one which takes its base address from a HOB containing the base address discovered in the PEI phase Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-with-remarks-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16140 6f19259b-4bc3-4df7-8a09-765794883524 commit de5f5e93446b592cdf19550cc94c785f0fc453da Author: Laszlo Ersek Date: Thu Sep 18 18:06:22 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: introduce gEarlyPL011BaseAddressGuid This GUID will identify a customized HOB that carries the base address of the PL011 serial port, for clients that cannot access PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16139 6f19259b-4bc3-4df7-8a09-765794883524 commit a36d531f5d565e6cb5496ea53824e36487a227dd Author: Michael Casadevall Date: Thu Sep 18 18:05:03 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: add ArmVirtualizationPlatformLib library This is an implementation of ArmPlatformLib that discovers the size of system DRAM from a device tree blob located at the address passed in gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, which should equal the value in gArmTokenSpaceGuid.PcdSystemMemoryBase. As the device tree blob is passed in system DRAM, this library can only be used if sufficient DRAM is available (>= 128 MB) and if not using shadowed NOR. The reason for this is that it makes it easier to guarantee that such a device tree blob at base of DRAM will not be clobbered before we get a chance to preserve it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16138 6f19259b-4bc3-4df7-8a09-765794883524 commit ad10693231b9bc5ba7bab0f20ce1bf8d8f868c52 Author: Ard Biesheuvel Date: Thu Sep 18 17:59:58 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add VirtFdtDxe driver This driver enumerates the device nodes in the device tree located at the base address passed in gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, and installs drivers for devices it cares about (GIC interrupt controller, RTC, architected timer interrupt) Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16137 6f19259b-4bc3-4df7-8a09-765794883524 commit 433b31ddeeeb5f521b2159c0ae317a16129aac0a Author: Ard Biesheuvel Date: Thu Sep 18 17:58:01 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add PlatformPeiLib library This is a fork of the ARM PlatformPeiLib for virtual machines. The main purpose of having this specific implementation is that it allows us to preserve the device tree blob if it was passed to us in system DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16136 6f19259b-4bc3-4df7-8a09-765794883524 commit ad6f3dafb86b93066ea9e0301629bae0cf7e3018 Author: Ard Biesheuvel Date: Thu Sep 18 17:56:44 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: introduce PCDs for device tree base address Introduce gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress and PcdDeviceTreeInitialBaseAddress, which will be used by virtual machine ports that discover the system configuration from a flattened device tree DTB image. The latter is FixedPcd only, and should contain the initial offset of the DTB, the former may be declared as dynamic, and updated at runtime if the DTB is relocated before the DXE phase. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16135 6f19259b-4bc3-4df7-8a09-765794883524 commit ad90df8ac0182c70fc28218156982a4443d23982 Author: Ard Biesheuvel Date: Thu Sep 18 17:55:17 2014 +0000 ArmPlatformPkg/ArmVirtualizationPkg: Add private HobLib implementation for DXE phase To allow a dynamically discovered UART base address, we parse the device tree early and store the base address in a HOB. To prevent circular constructor dependencies from interfering with bringing up the serial port using this dynamic base address, use our own private HobLib with no dependencies on DebugLib either directly or indirectly through UefiLib. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16134 6f19259b-4bc3-4df7-8a09-765794883524 commit 86d96aef474803bf912cd7eeb66a96481f3ada44 Author: Ard Biesheuvel Date: Thu Sep 18 17:53:36 2014 +0000 ArmVirtualizationPkg: add driver for QEMU's NOR flash This adds an implementation of NorFlashPlatformLib that exposes the two 64 MB NOR flash banks that are provided by QEMU's mach-virt emulation both in 32-bit and 64-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16133 6f19259b-4bc3-4df7-8a09-765794883524 commit 85dddd220dbd22f24a8e206cda9b8e1b0ae7b843 Author: Ard Biesheuvel Date: Thu Sep 18 17:52:37 2014 +0000 ArmVirtualizationPkg: add Include/ArmPlatform.h This include file contains platform specific defines, and is shared by various modules. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16132 6f19259b-4bc3-4df7-8a09-765794883524 commit ae97201c55603b69289c5d2349238ea97b2cd35e Author: Fu, Siyuan Date: Thu Sep 18 11:44:36 2014 +0000 1. Update PXE driver to support PXEv6 boot cross subnet. 2. Update IP6 driver to use previous configured prefix length if a pre-exist IP6 address with unspecified prefix length. 3. Add NULL check for Dhcp protocol pointer before it decline the address in Ip6ConfigSetStatefulAddrCallback() function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16131 6f19259b-4bc3-4df7-8a09-765794883524 commit 44833d441beec53e8eaf5acb7d26c018f704247b Author: Eric Dong Date: Thu Sep 18 08:45:26 2014 +0000 Add more check for the code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16129 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d3d422dffd3b5b2dcbfc88728caf31d119fc7e2 Author: Feng Tian Date: Thu Sep 18 06:06:25 2014 +0000 MdeModulePkg/UsbBusDxe: Update Device->NumOfInterface at error handling path to avoid system hang when DisconnectController is invoked to free resource occupied by usb device whose interface descriptor format doesn't follow usb spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16128 6f19259b-4bc3-4df7-8a09-765794883524 commit a308e0588b3ad87b94611391e9e7a04a8eb05ebf Author: Ruiyu Ni Date: Thu Sep 18 01:58:03 2014 +0000 Roll back check in r15180 which caused the shell always returns EFI_ABORTED no matter what exit-code is specified for "exit" command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Carsey Jaben git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16127 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b6b543e77f3237c63e691f35d0bb259ddc287b4 Author: Qiu Shumin Date: Thu Sep 18 01:21:01 2014 +0000 ShellPkg: Fix the support for command line comments. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16126 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d66ee4d177307ca59f08d242e592ec95a325d26 Author: Stefan Kaeser Date: Wed Sep 17 20:58:16 2014 +0000 StdLib: Fix parameter type errors. Fix casts of parameters to sprintf() so that they have the correct type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Stefan Kaeser Reviewed-by: daryl.mcdaniel@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16125 6f19259b-4bc3-4df7-8a09-765794883524 commit ec53da7bfa351186f02496971a39215e1158fb96 Author: Gao, Liming Date: Wed Sep 17 08:47:01 2014 +0000 BaseTools: Update the BaseTools/Source/Python/Makefile to check for dependent files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Hauch, Larry git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16124 6f19259b-4bc3-4df7-8a09-765794883524 commit 75eb337f6040933b0fedf04459f5fbd5b2f8f7c9 Author: Ni Ruiyu Date: Wed Sep 17 08:41:31 2014 +0000 ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16123 6f19259b-4bc3-4df7-8a09-765794883524 commit 0960ba17e596812f211ba334cc6699d45bada328 Author: Qiu Shumin Date: Wed Sep 17 07:58:31 2014 +0000 ShellPkg: Remove redundant quotes in file path string for Shell command parameters. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16122 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a3395f06b95ad5a0a78e23d293929e6809e09e5 Author: Qiu Shumin Date: Wed Sep 17 07:52:35 2014 +0000 ShellPkg: Remove redundant quotes for command 'FOR' in Shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16121 6f19259b-4bc3-4df7-8a09-765794883524 commit 926be9d10cab8f841af5d5b619eb11e8a7a19af9 Author: Qiu Shumin Date: Wed Sep 17 07:48:27 2014 +0000 ShellPkg: Use compare operator for non-Boolean comparisons. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16120 6f19259b-4bc3-4df7-8a09-765794883524 commit 4152ed237940ca064db8d0be55d10d92a02a3a06 Author: Ronald Cron Date: Tue Sep 16 18:21:24 2014 +0000 ShellPkg: Add support for GCC stack protector Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16116 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a8a47e22aba630d3a43d6be491d03ea38420770 Author: Harry Liebel Date: Tue Sep 16 17:46:07 2014 +0000 ShellPkg: Specify AArch64 intrinsics library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16115 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d10d18db9a84d66c27aa8c1e94e7502e7eb1ff6 Author: Gao, Liming Date: Tue Sep 16 09:03:00 2014 +0000 Update Build Tool version from 0.51 to 0.60 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16114 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b9500a1c9e620c9aac565679e2eb77255ba3306 Author: Yingke Liu Date: Tue Sep 16 08:33:40 2014 +0000 Support DSC and FDF file out of WORKSPACE by GenFds. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16113 6f19259b-4bc3-4df7-8a09-765794883524 commit 122d9317cf4ebc474586fcd726b59f15b7b3feb0 Author: Eric Dong Date: Tue Sep 16 07:01:03 2014 +0000 Refine the code, remove the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16112 6f19259b-4bc3-4df7-8a09-765794883524 commit e0a1413d6cc16f782b18c9b4dc628f19c7e901bb Author: Ard Biesheuvel Date: Tue Sep 16 00:56:50 2014 +0000 ArmPlatformPkg: separate PlatformPei and PlatformPeiLib This separates PlatformPei and PlatformPeiLib so the latter can be overridden by a specific platform. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16110 6f19259b-4bc3-4df7-8a09-765794883524 commit fffa852209a521fa340d79ed682693f87ef4205b Author: Olivier Martin Date: Tue Sep 16 00:55:47 2014 +0000 EmbeddedPkg/Lan9118Dxe: Fixed typo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16109 6f19259b-4bc3-4df7-8a09-765794883524 commit 021da07b666c1b1ecac7e82ab9e416a1ddd964c0 Author: Ard Biesheuvel Date: Tue Sep 16 00:51:17 2014 +0000 ArmPsciResetSystemLib: read PSCI method in constructor As this library is used in the implementation of a Runtime Service, make sure to access dynamic PCDs only in the constructor. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16108 6f19259b-4bc3-4df7-8a09-765794883524 commit 2efbf710e27a78494cef38673b85ed360ec3b600 Author: Ard Biesheuvel Date: Tue Sep 16 00:41:45 2014 +0000 ArmPlatformPkg/NorFlashDxe: use MmioWrite () not memory stores When writing to the flash, make sure to use MmioWrite () wrappers instead of letting the compiler generate the store instructions. This is needed because under virtualization, store instructions with multiple outputs (i.e., store pair or store with writeback) cannot be emulated efficiently when operating on MMIO ranges. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16107 6f19259b-4bc3-4df7-8a09-765794883524 commit 438f3ad68f53b372dfbe9ef324d3f51bfd48ca53 Author: Andrew Fish Date: Tue Sep 16 00:38:12 2014 +0000 BaseTools/Source/C: Only used '-Wno-self-assign' when BaseTools are built on DARWIN Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-By: Olivier Martin Tested-By: Olivier Martin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16106 6f19259b-4bc3-4df7-8a09-765794883524 commit 04910ceb352b54fe8edac4c20d9a6515cd5fdad5 Author: Star Zeng Date: Mon Sep 15 09:33:16 2014 +0000 MdeModulePkg XhciPei/UsbBusPei: Enhance code for better device compatibility. 1. Add delay after set device address and get configuration descriptor. 2. Sync the change at R15876 in XhciDxe to do not access transfer ring when endpoint is isochronous type or control type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16105 6f19259b-4bc3-4df7-8a09-765794883524 commit c4a7d20890eb3002926ec669fb229cea3b3528fb Author: Fu, Siyuan Date: Mon Sep 15 03:37:58 2014 +0000 1. Use the PciIo->GetBarAttributes to find the logical bar index of the memory mapped bar and IO mapped bar. 2. Remove unused code for undi 3.0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16104 6f19259b-4bc3-4df7-8a09-765794883524 commit 6c22c0a35defc2177b7a24d588ae2ad7588010a9 Author: lhauch Date: Fri Sep 12 22:59:04 2014 +0000 The current Makefile only checks the primary python file, such as build.py and does not check other files in tool’s directory tree. This modification adds all of the other files within the tool’s directory tree that would be a cause to rebuild the tool. The format in the Makefile for listing these other files was selected to allow the nightly build script to detect changes in the additional files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16103 6f19259b-4bc3-4df7-8a09-765794883524 commit cfffccd9df1ed205721dd21038880a4fa72a5102 Author: Tapan Shah Date: Fri Sep 12 16:46:23 2014 +0000 ShellPkg: Fix ASSERT when bcfg moving boot option with source location = total number of boot options Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16102 6f19259b-4bc3-4df7-8a09-765794883524 commit 84cc912aee71218ea8e4f5a0c597067e956dcd8f Author: Feng, Bob C Date: Fri Sep 12 08:46:30 2014 +0000 This patch is going to fix the issue of the mis-match between the index of Platform DynamicPcd list and Dynamic Pcd generated token number. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16101 6f19259b-4bc3-4df7-8a09-765794883524 commit 010f55d3fb450d2878b73c7376f882edfcf1801e Author: Nikolai Saoukh Date: Fri Sep 12 08:38:23 2014 +0000 UefiCpuPkg: error: invalid instruction mnemonic 'retf' .S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16100 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ae7dcb976a948ce7dea16a4e83f7e5ca1e1d291 Author: Yingke Liu Date: Fri Sep 12 06:57:22 2014 +0000 BaseTools: Fix the regression issue after enbaling s_* an d_* macros in FDF. Add the missing 'MacroDict' field in FfsInfStatement. The issue is that BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 448, in __ExtendMacro__ String = GenFdsGlobalVariable.MacroExtend(String, self.MacroDict) AttributeError: OptRomInfStatement instance has no attribute 'MacroDict' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16099 6f19259b-4bc3-4df7-8a09-765794883524 commit b6341b26989a482466877bd77b7008706dd6aaeb Author: Nikolai Saoukh Date: Fri Sep 12 02:59:34 2014 +0000 UefiCpuPkg: error: invalid instruction mnemonic 'retf' .S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Andrew Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16098 6f19259b-4bc3-4df7-8a09-765794883524 commit c99106b745ccb2c7b66b50117b594eb1a942d4fb Author: Fu, Siyuan Date: Fri Sep 12 00:51:58 2014 +0000 Fix a bug that Dhcp6CalculateLeaseTime() function use incorrect offset on the IaAddress pointer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) Reviewed-By: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16097 6f19259b-4bc3-4df7-8a09-765794883524 commit 0164fc8e76b6ca9023c893940ddb00ef0b6bee5a Author: daryl.mcdaniel Date: Thu Sep 11 21:42:26 2014 +0000 StdLib: Fix some build problems and obscure bugs. StdLib\ BsdSocketLib\ ns_print.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. Add a cast from char to (unsigned int) to match its sprintf format. res_debug.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. EfiSocketLib\ Socket.c Update copyright & correct formatting Include\ sys\ EfiCdefs.h Update copyright date Change type of LONGN and ULONGN to INTN and UINTN, respectively. errno.h Update copyright date Add enum member '__ESUCCESS = 0' fcntl.h Update copyright date Improve comment for O_EXCL stat.h Update copyright date Reorder the S_* flags Put the S_* predicate macros in the same order as their flag definitions Add a function header comment to the stat() function declaration. errno.h Update copyright date Define new ESUCCESS error code wchar.h Update copyright date Correct the description of the Nptr parameter to the wcstol, wcstoll, wcstoul, and wcstoull functions. x86\float.h Update copyright date Define 'long double' limits for non-Microsoft compilers LibC\ Containers\Queues\Fifo.c Rewrite to make more robust and secure (zeros out old data) StdLib\realpath.c Update copyright date Reformat descriptive comment for realpath() Add terminating CRLF Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Erik Bjorge Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16096 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fc9f4d8b4c828e9164c48279422f69a214a3bcf Author: Laszlo Ersek Date: Thu Sep 11 19:11:37 2014 +0000 OvmfPkg: resolve BcfgCommandLib class for ShellPkg/.../Shell.inf SVN r16092 ('ShellPkg: Add a new library for "bcfg" command') introduced a new library class (and an instance for it) called BcfgCommandLib. SVN r16093 ('ShellPkg: Use the new library for "bcfg" command') rebased ShellPkg to the new library, introducing a new [LibraryClasses] dependency. Library classes must be resolved to library instances in client platform descriptions (DSC's). Since OVMF is a client platform, import the same library resolution as seen in "ShellPkg/ShellPkg.dsc" (added in SVN r16092). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16095 6f19259b-4bc3-4df7-8a09-765794883524 commit 0acb3d286258f50aec7dea6f86f4567078705ffa Author: Abner Chang Date: Thu Sep 11 06:44:17 2014 +0000 Add support for ${s_*} and ${d_*} macros for in FDF file for the INF files, and for each statement in the build rules. The following keywords are supported: "src", "s_path", "s_dir", "s_name", "s_base", "s_ext", "dst", "d_path", "d_name", "d_base", "d_ext" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Abner Chang Reviewed-by: Yingke Liu Reviewed-by: Larry Hauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16094 6f19259b-4bc3-4df7-8a09-765794883524 commit fba9b6ba24bbbed0666f4e184c95f6b15a581d49 Author: Jaben Carsey Date: Wed Sep 10 20:55:37 2014 +0000 ShellPkg: Use the new library for "bcfg" command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Chris Phillips Reviewed-by: Erik Bjorge Reviewed by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16093 6f19259b-4bc3-4df7-8a09-765794883524 commit 7b01f0f312247afbbeb08880670ae8db81c637cf Author: Jaben Carsey Date: Wed Sep 10 20:30:38 2014 +0000 ShellPkg: Add a new library for "bcfg" command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Chris Phillips Reviewed-by: Erik Bjorge Reviewed by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16092 6f19259b-4bc3-4df7-8a09-765794883524 commit 259ea52b19b027f2998ee700a9883be9c8f69f61 Author: Ard Biesheuvel Date: Wed Sep 10 18:49:43 2014 +0000 ArmPlatformPkg/PL031RealTimeClockLib: use virtual address of runtime services This library accesses SystemTable->RuntimeServices at runtime, which means it should take care to use its updated value after SetVirtualAddressMap () is called. Replace references to gRT with mRT, which we initialize to gRT and update to its virtual value on a virtual address change event. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16091 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a1e861e2925b9c006bcf8f95bd0d720a8c48328 Author: Ard Biesheuvel Date: Wed Sep 10 18:48:47 2014 +0000 ArmPkg/TimerDxe: Read timer frequency from CPU The PCD gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz is used in the SEC phase (if applicable) to write the platform's counter frequency to the CNTFRQ system register, as this needs to be done by the highest exception level implemented. Under virtualization, we should be able to rely on the host to have initialized this register to a sane value, as we run at EL1 and only use the virtual timer, so the PcdArmArchTimerFreqInHz PCD has little meaning here. So in either case, by the time we enter the DXE phase, we can use the CNTFRQ system register to read the frequency instead of looking at the PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16090 6f19259b-4bc3-4df7-8a09-765794883524 commit ca3026d361970847d87a5c6ebb8108b28486e9ec Author: Ard Biesheuvel Date: Wed Sep 10 18:47:30 2014 +0000 ArmPkg: Introduced ArmPsciResetSystemLib This implementation of EfiResetSystemLib uses ARM PSCI calls to perform reboot and poweroff, using either HVC or SMC calls. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16089 6f19259b-4bc3-4df7-8a09-765794883524 commit 58e92b394ee359d2768abdace4dab7baf73c1231 Author: Ard Biesheuvel Date: Wed Sep 10 18:46:23 2014 +0000 ArmPkg: Add ArmHvcLib This is a utility library closely modeled after ArmSmcLib, that allows hypervisor call (HVC) instructions to be issued from C code. Change-Id: I5f5c65f83e910ff98dbb2f5b031dad8c4f663daa Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16088 6f19259b-4bc3-4df7-8a09-765794883524 commit ae9bc0576c6aac3ee2f1aaa4e44f611eb706ec90 Author: Ard Biesheuvel Date: Wed Sep 10 18:45:08 2014 +0000 ArmPkg: Add PSCI 0.2 constants for system poweroff and reset Change-Id: I683a603300812578c15cf3c1e0ccb7574fdb5caf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16087 6f19259b-4bc3-4df7-8a09-765794883524 commit 432dc3c1355dd0b514a052b01ca75254fef523fd Author: Ard Biesheuvel Date: Wed Sep 10 18:44:19 2014 +0000 ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper This fixes a bug in the stack handling in the RVCT .asm version of the SMC wrapper. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16086 6f19259b-4bc3-4df7-8a09-765794883524 commit e5367bfb614f9d4b56f3cf5d8fd16f367d0ea86d Author: Andrew Fish Date: Wed Sep 10 16:48:59 2014 +0000 BaseTools: Fix XCODE5 to work properly with NASM The default object type for NASM is raw binary, and this will not link. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16085 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d443a166cc244d9534f6e9bec9080eb4a32b9d5 Author: Nikolai Saoukh Date: Wed Sep 10 06:14:26 2014 +0000 MdeModulePkg/UsbBusDxe: Fixed Clang build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nikolai Saoukh Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16084 6f19259b-4bc3-4df7-8a09-765794883524 commit 323d3d111843cb4fbdf4f9918f72d305e63bc091 Author: Qiu Shumin Date: Wed Sep 10 01:03:43 2014 +0000 ShellPkg: Replace the usage of StrnCpy with CopyMem to avoid potential buffer overflow and refine the code style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Signed-off-by: Yao Jiewen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16083 6f19259b-4bc3-4df7-8a09-765794883524 commit c9f4d4838ce92a6c2fb4faf5f46faa3b057b4dee Author: daryl.mcdaniel Date: Tue Sep 9 22:37:02 2014 +0000 AppPkg: Add the Arithchk utility and clean up some build problems. AppPkg\ AppPkg.dsc Update copyright date Add Component ArithChk.inf Applications\ Main\ Main.inf Remove DevShell dependency Python\ Python-2.7.2\Modules\ socketmodule.c Initialize addro, in sock_sendto(), before use. ArithChk\ ArithChk.inf arithchk.c NEW This is a direct port of the arithchk program which is included as part of the NetBSD gdtoa library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16082 6f19259b-4bc3-4df7-8a09-765794883524 commit c21e7a7832f76260a27c5bde30f9593355909279 Author: Andrew Fish Date: Tue Sep 9 21:59:08 2014 +0000 StdLib: Changes needed to support XCODE5 I had to make the following changes to make this build work: >build -p AppPkg/AppPkg.dsc -a X64 -t XCODE5 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16081 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e9b2bddff2217eb23bf9eb5d1052ecfebc39204 Author: Ard Biesheuvel Date: Tue Sep 9 17:59:19 2014 +0000 EmbeddedPkg: Split off FDT loading functionality from FdtLib Split off the recently added functionality to load device tree images and install them as configuration tables, as it introduces a dependency on UefiBootServicesTableLib, preventing FdtLib from being used during SEC and PEI phases. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16080 6f19259b-4bc3-4df7-8a09-765794883524 commit f8d7d6e151e9377412bd368cf8901ac21d6edb36 Author: Ard Biesheuvel Date: Tue Sep 9 16:11:30 2014 +0000 ArmPkg,ArmPlatformPkg: Allow dynamic PCDs for memory base and size This changes the definition and a bunch of references to gArmTokenSpaceGuid.PcdSystemMemoryBase and gArmTokenSpaceGuid.PcdSystemMemorySize so they can be declared as dynamic PCDs by the platform. Also, move the non-SEC call to ArmPlatformInitializeSystemMemory() earlier, so a platform has a chance to set these PCDs before they are first referenced. The purpose is allowing dynamically instantiated virtual machines to declare the system memory by passing a device tree. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16079 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f6d34b434c0f063c68bdd4445da9097358b9afc Author: Ard Biesheuvel Date: Tue Sep 9 16:10:18 2014 +0000 ArmPkg: Move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib Move TimerDxe and ArmArchTimerLib to ArmGenericTimerCounterLib, and update all platforms to select the physical counter instance they have been using implicitly all along. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16078 6f19259b-4bc3-4df7-8a09-765794883524 commit 2785509b57d9ff92321c1083aab4a5ffc9519961 Author: Ard Biesheuvel Date: Tue Sep 9 16:08:42 2014 +0000 ArmPkg/TimerDxe: Register the virt and hyp timer interrupts at init time. Change-Id: I1162dc60140278c0b3da837bf325e3789ababf54 Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16077 6f19259b-4bc3-4df7-8a09-765794883524 commit bcf37cf6002ba538b63172a496b142ab322eff95 Author: Ard Biesheuvel Date: Tue Sep 9 16:07:43 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib implementation using virtual timer This adds an implementation of ArmGenericTimerCounterLib using the virtual architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16076 6f19259b-4bc3-4df7-8a09-765794883524 commit cece12d3f60fbf6e389e28e32f04c0990676c7ac Author: Ard Biesheuvel Date: Tue Sep 9 16:06:10 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib implementation using physical timer This adds an implementation of ArmGenericTimerCounterLib using the physical architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16075 6f19259b-4bc3-4df7-8a09-765794883524 commit e71512520739030324ca0ce6de5c6462eddeea5d Author: Ard Biesheuvel Date: Tue Sep 9 16:04:39 2014 +0000 ArmPkg: add ArmGenericTimerCounterLib interface This introduces ArmGenericTimerCounterLib by adding the include file ArmPkg/Include/Library/ArmGenericTimerCounterLib.h. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16074 6f19259b-4bc3-4df7-8a09-765794883524 commit d4bb43cee15895da3d53009396f1a53aae15c056 Author: Ard Biesheuvel Date: Tue Sep 9 16:03:21 2014 +0000 ArmPkg: Renamed ArmArchTimerLib.h to ArmArchTimer.h The ArmArchTimerLib.h include file is not directly related to the TimerLib instance ArmArchTimerLib, so the name is confusing. Rename to ArmArchTimer.h instead. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16073 6f19259b-4bc3-4df7-8a09-765794883524 commit dc63be2495680e5e156caabbb76041605d628604 Author: Ard Biesheuvel Date: Tue Sep 9 16:00:47 2014 +0000 ArmPkg: allow dynamic GIC base addresses Allow the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase to be redeclared as PcdsDynamic by the platform, so virtual machines can set these properties during boot. As the PcdGet32() calls now call into the PCD database, cache the values that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16072 6f19259b-4bc3-4df7-8a09-765794883524 commit e1e2e66cd6e4adf012138908c891b08a5baecc9e Author: Ard Biesheuvel Date: Tue Sep 9 15:59:38 2014 +0000 ArmPkg: allow dynamically discovered timer interrupts To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16071 6f19259b-4bc3-4df7-8a09-765794883524 commit c41bffd3805f6bd4cbe817c969d21485040f1e3a Author: Harry Liebel Date: Tue Sep 9 15:58:33 2014 +0000 ArmPlatformPkg/Bds: Fix delete boot option - We need to delete the boot option variable from storage not just adjust the BootOrder variable. - The Linux tool 'efibootmgr' still showed the previously removed boot options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16070 6f19259b-4bc3-4df7-8a09-765794883524 commit 01289ec36fc530aebefa38085655d1d656b3339f Author: Harry Liebel Date: Tue Sep 9 15:57:18 2014 +0000 ArmPkg/ArmDisassemblerLib: ARMThumb and AArch64 fixes - Fix ARM Thumb mask operator. This was flagged by a toolchain as warning "use of logical '&&' with constant operand [-Wconstant-logical-operand]" - AArch64 should not be building the ARM32 disassemblers. - Add a AArch64 build target. The disassembler is still to be implemented. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16069 6f19259b-4bc3-4df7-8a09-765794883524 commit 07da1ac8c46425cb401cc5f356ab77b9cc1c334d Author: Anderw Fish Date: Tue Sep 9 06:50:51 2014 +0000 UefiCpuPkg: CpuExceptionHandlerLib: Make self modifying code work with Xcode CpuExceptionHandlerLib has code that contains absolute relocations, not supported by Xcode for X64, and it then copies this code to an alternate location in memory. It is very hard to write IP relative self-modifiying code. I had to update AsmVectorNumFixup() to also patch in the absolute addressess after the code was copied. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16068 6f19259b-4bc3-4df7-8a09-765794883524 commit 19ee4a904982cfacdcb8c578c5d421162fa9488d Author: Anderw Fish Date: Tue Sep 9 06:27:45 2014 +0000 SourceLevelDebugPkg: DebugAgentLib: Fix clang/Xcode 5 compile/link errors Move ExceptionStubHeaderSize from 16 to 32 bits to work around clang relocation limitation. Use movw, not move for 32-bit segment register operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16067 6f19259b-4bc3-4df7-8a09-765794883524 commit 41f80fbd9905cdc9a457e3cdf8110539f948c6b9 Author: Gabriel Somlo Date: Tue Sep 9 03:18:30 2014 +0000 OvmfPkg: AcpiTimerLib: Access power mgmt regs based on host bridge type Pick the appropriate bus:dev.fn for accessing ACPI power management registers (00:01.3 on PIIX4 vs. 00:1f.0 on Q35) based on the device ID of the host bridge (assumed always present at 00:00.0). With this patch, OVMF can boot QEMU's "-machine q35" x86 machine type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16066 6f19259b-4bc3-4df7-8a09-765794883524 commit 769e45317c60b07abe083d7da72ccfd69ad49d60 Author: Gao, Liming Date: Tue Sep 9 02:35:41 2014 +0000 MdeModulePkg: Fix XCODE Link Issue in DxeCore In XCODE tool chain, the 64-bit bit wise and operation is causing the compiler to emit an __umoddi3. This patch uses BaseLib API to replace 64-bit bit operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524 commit cc72674b58c3430c2f4a876ecf8a0474a717a235 Author: Qiu Shumin Date: Tue Sep 9 01:47:19 2014 +0000 ShellPkg: Replace assignment statement with 'StrnCpy' to append terminal NULL character in a string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16064 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d5d829c0e0614337de8ad1c6d85b713d25fe5c7 Author: lhauch Date: Fri Sep 5 14:15:40 2014 +0000 This file allows a developer to add a new tool in either the C or Python trees, add the executable (and any supporting files, such as the TestSigningPrivateKey.pem file) to this file and the build server will automatically make sure that the new files are added to the BaseTools\Bin\Win32 directory. The Win32 directory is located in https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 repository. Developer - Tool add process: 1) Developer adds code for the new tool. 2) Developer updates the Makefile in the C or Python directory a) The entry must make sure that the executable is generated in the BaseTools\Bin\Win32 directory and any supporting files are copied to the same directory as part of the build step. 3) Developer adds the .exe under the [Bin.Win32] section in the BinaryFiles.txt file. 4) Developer adds other files required to be present in the [ExtraFiles.Win32] section in the BinaryFiles.txt file. Build Server: 1) Build all binaries by calling nmake on the Source\C\Makefile and Source\Python\Makefile 2) After building the binaries, the build server verify that the files listed in BaseTools\Source\BinFiles.txt are also in the edk2-toolbinaries project, a. If a file is not under source control, then the build server will add file as long as it is present. File format: [SectionName.TargetDir] File1 File2 … Where: SectionName is one of Bin, ExtraFiles or CxFreeze TargeDir is the name of the subdirectory in the BaseTools\Bin directory tree. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16063 6f19259b-4bc3-4df7-8a09-765794883524 commit a753677e3330d512ba93d797e6ed946b686e0a96 Author: Jaben Carsey Date: Fri Sep 5 02:05:16 2014 +0000 ShellPkg: Not add redundant quotes any longer to parameters with spaces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: : Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16062 6f19259b-4bc3-4df7-8a09-765794883524 commit 33fe83084113c7239bbdedb6ea64194fd4984e52 Author: Qiu Shumin Date: Fri Sep 5 01:01:24 2014 +0000 ShellPkg: Refine the code style and comment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: : Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16061 6f19259b-4bc3-4df7-8a09-765794883524 commit 37a4164af3a9f09f5e8afa3d639fcb514fe92ce7 Author: Jaben Carsey Date: Thu Sep 4 20:55:29 2014 +0000 ShellPkg: Update BCFG command for correct use and errors on moving Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16060 6f19259b-4bc3-4df7-8a09-765794883524 commit 15f8eef78458da1d6270d79724f8e91b56a35371 Author: Jordan Justen Date: Thu Sep 4 15:17:57 2014 +0000 MdePkg NASM Thunk16: Add missing ASM_PFX for InternalAsmThunk16 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16059 6f19259b-4bc3-4df7-8a09-765794883524 commit eabcdf3a3467778f10f3c919e135be531758b5bd Author: Jordan Justen Date: Thu Sep 4 15:17:48 2014 +0000 MdePkg NASM Thunk16: Work around NASM 2.09.04 - 2.10rc1 bug Without this change, NASM 2.09.04 will hang with OVMF+CSM on both IA32 and X64. Tested on OVMF+CSM on GCC49 with NASM 2.07, 2.09.04 and 2.11. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16058 6f19259b-4bc3-4df7-8a09-765794883524 commit 49d9b71df24a5f598df39afc6c13845e00e8f52b Author: Hess Chen Date: Thu Sep 4 08:32:44 2014 +0000 BaseTools/AutoGen: Remove redundant copy action for binary module Remove redundant copy action for binary module to copy binary files to output directory only when the binary module is a library Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16057 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a51ad8d20911f31b526a566945f1915c2c41db2 Author: Jaben Carsey Date: Wed Sep 3 17:44:53 2014 +0000 Updates the logic to allow RM and CP to have silent/quiet mode work successfully. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16056 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c064c3189dbf0892167f99245431946b7a74266 Author: Dong, Guo Date: Wed Sep 3 09:19:30 2014 +0000 SecurityPkg VariableRuntimeDxe: Bug fix and and refine debug message. Correct NV variable base address for flash memory attribute set to EFI_MEMORY_RUNTIME. Refine the debug error message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16055 6f19259b-4bc3-4df7-8a09-765794883524 commit e7bafeb9a8254b10d0c8be51b32d3d104672dded Author: Dong, Guo Date: Wed Sep 3 09:16:04 2014 +0000 MdeModulePkg VariableRuntimeDxe: Bug fix and and refine debug message. Correct NV variable base address for flash memory attribute set to EFI_MEMORY_RUNTIME. Refine the debug error message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16054 6f19259b-4bc3-4df7-8a09-765794883524 commit 710db4e899d878ddfbad5da8f1cab0ab746e6dcb Author: Harry Liebel Date: Wed Sep 3 09:04:00 2014 +0000 ShellPkg: Fix dynamic command help - Use Shell Help print function that understands Shell Man Page format. - Move Dynamic help print above the catchall case otherwise the help is printed multiple times in case of man page format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16053 6f19259b-4bc3-4df7-8a09-765794883524 commit 4be58c16a0a2609611b22822ab91b1fd9a47cfe4 Author: Harry Liebel Date: Wed Sep 3 09:03:10 2014 +0000 ShellPkg: Add DXE_DRIVER class type to some libraries Shell Libraries can now be used from Platform Drivers with the introduction of the Shell Dynamic Command Protocol. Adding DXE_DRIVER class allows to use these libraries with this class of driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16052 6f19259b-4bc3-4df7-8a09-765794883524 commit 08ae2c0eec0ac1161115f7bd04dfb1a15d9c25eb Author: Gao, Liming Date: Wed Sep 3 08:56:12 2014 +0000 CryptoPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16051 6f19259b-4bc3-4df7-8a09-765794883524 commit 4cfde6dea6c5040d830411d7cc5e12f627ec6bb5 Author: Gao, Liming Date: Wed Sep 3 08:51:17 2014 +0000 SecurityPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16050 6f19259b-4bc3-4df7-8a09-765794883524 commit 537dafa90aad4eb22c38167d703a300f9682fbb2 Author: Gao, Liming Date: Wed Sep 3 08:50:27 2014 +0000 NetworkPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16049 6f19259b-4bc3-4df7-8a09-765794883524 commit d72b4e2770d3a37634df5aa9702e42e47dc6ac9e Author: Gao, Liming Date: Wed Sep 3 08:49:15 2014 +0000 SourceLevelDebugPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16048 6f19259b-4bc3-4df7-8a09-765794883524 commit ec482fa9baaa2c2b023163f1b414800c45149b00 Author: Gao, Liming Date: Wed Sep 3 08:48:53 2014 +0000 UefiCpuPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16047 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ac6a4df5575b4034f3ba5b1904f2eb274042767 Author: Gao, Liming Date: Wed Sep 3 08:48:29 2014 +0000 PcAtChipsetPkg: Convert non DOS format files to DOS format and rename the same module name. 1. Module UNI and Package UNI files are not DOS format. Convert them to DOS format. 2. BaseAcpiTimerLib and DxeAcpiTimerLib has the same module name. Update them to the different name, and add the module uni file with the updated module name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16046 6f19259b-4bc3-4df7-8a09-765794883524 commit 46dd58879de57e4f395e3245108fff85bb5ee871 Author: Gao, Liming Date: Wed Sep 3 08:45:37 2014 +0000 IntelFrameworkModulePkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16045 6f19259b-4bc3-4df7-8a09-765794883524 commit 35c77daed97acbd189b332b256525e010ce3de1a Author: Gao, Liming Date: Wed Sep 3 08:39:12 2014 +0000 MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 1. Module UNI and Package UNI files are not DOS format. Convert them to DOS format. 2. Remove unused SectionExtractionDxeModStrs.uni and SectionExtractionPeiModStrs.uni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16044 6f19259b-4bc3-4df7-8a09-765794883524 commit f9925e17a79b6bee8928a69cc93f16e3ca01adb8 Author: Gao, Liming Date: Wed Sep 3 08:37:09 2014 +0000 IntelFrameworkPkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16043 6f19259b-4bc3-4df7-8a09-765794883524 commit f7ce802f6fbd473beaf9a328643b1edc37ec2d3a Author: Gao, Liming Date: Wed Sep 3 08:33:28 2014 +0000 MdePkg: Convert non DOS format files to DOS format Module UNI and Package UNI files are not DOS format. Convert them to DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16042 6f19259b-4bc3-4df7-8a09-765794883524 commit cf2b2bdef3d6b5c64b5aa528bb255db81c13d965 Author: Hess Chen Date: Wed Sep 3 08:25:10 2014 +0000 BaseTools/UPT: Replace os.linesep with '\r\n' when generating UNI files. Replace os.linesep with '\r\n' when generating UNI files to make sure all files are under DOS format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16041 6f19259b-4bc3-4df7-8a09-765794883524 commit b5fd61fe8c85a8aec09becd851a782631a8a4aeb Author: Star Zeng Date: Wed Sep 3 06:48:38 2014 +0000 IntelFspPkg/IntelFspWrapperPkg: Fix some typos. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16040 6f19259b-4bc3-4df7-8a09-765794883524 commit 51b8553fd27f8b235c028f7249ec4dd5f0398689 Author: Hess Chen Date: Wed Sep 3 02:09:19 2014 +0000 BaseTools/CommonLib: Add a step to convert ":\\" to ":\" Convert ":\\\\" to ":\\", because it doesn't work with WINDOWS_EXTENSION_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16039 6f19259b-4bc3-4df7-8a09-765794883524 commit 7f79b01e8ef43901785dbccc1f4676cdf9a53d31 Author: Jaben Carsey Date: Tue Sep 2 20:17:38 2014 +0000 ShellPkg: Refactor string manipulation This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16038 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ac6e336ff573f6105d4f776bdf7db1d189c7093 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Sep 2 20:16:47 2014 +0000 Cleanup UefiShellDebug1CommandsLib strings to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc...) * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16037 6f19259b-4bc3-4df7-8a09-765794883524 commit 073fe5871e9a20e694ec49801d2d5c422fc4f8c4 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Sep 2 20:03:36 2014 +0000 Update SmbiosView Shell command to display additional CPU Family and Socket designations, and fix a couple of typos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16036 6f19259b-4bc3-4df7-8a09-765794883524 commit a3d236df1441f07d727e3aa98f865d4695e0a9f4 Author: Scott Duplichan Date: Tue Sep 2 19:50:09 2014 +0000 ShellPkg: Prevent StrnCpy from overwriting null terminator when source is larger than destination. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16035 6f19259b-4bc3-4df7-8a09-765794883524 commit 8edfdee0dc05e5dfc343fca5fffe334d0b359020 Author: Tian, Hot Date: Tue Sep 2 07:50:29 2014 +0000 Minor format update: add missing space in copyright line Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16034 6f19259b-4bc3-4df7-8a09-765794883524 commit 7886a51135b98d5d75184ccdc6d10f449f727607 Author: Long Qin Date: Tue Sep 2 07:08:30 2014 +0000 Update CryptoPkg package version to 0.94. Signed-off-by: Long Qin Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16033 6f19259b-4bc3-4df7-8a09-765794883524 commit 8fcdb5d4ae9454dd79e043799b9153d4cac8cadb Author: Dong, Guo Date: Tue Sep 2 07:05:34 2014 +0000 Update SecurityPkg package version to 0.94. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16032 6f19259b-4bc3-4df7-8a09-765794883524 commit 76052fab298b25c423c0f768eeded4b37899aa0a Author: Feng Tian Date: Tue Sep 2 05:54:02 2014 +0000 Update MdeModulePkg package version to 0.94. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16031 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f70975877b398014664a0d07ec4d50d1909cce3 Author: Jeff Fan Date: Tue Sep 2 05:34:36 2014 +0000 Update IntelFrameworkModulePkg package version to 0.94. Signed-off-by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16030 6f19259b-4bc3-4df7-8a09-765794883524 commit ba4c19c51cacd84d633856e39e2319617741fc89 Author: Jeff Fan Date: Tue Sep 2 05:27:55 2014 +0000 Update IntelFrameworkPkg package version to 0.94. Signed-off-by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16029 6f19259b-4bc3-4df7-8a09-765794883524 commit ff9f93947d9eb33fee4106507193982edb99733f Author: Gao, Liming Date: Tue Sep 2 05:10:46 2014 +0000 Update MdePkg package version from 1.04 to 1.05 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16028 6f19259b-4bc3-4df7-8a09-765794883524 commit f079cdde10001bda108dd031becfe7b8e382e3ae Author: Fu Siyuan Date: Tue Sep 2 03:16:10 2014 +0000 Update NetworkPkg package version to 0.95. Signed-off-by: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16027 6f19259b-4bc3-4df7-8a09-765794883524 commit 18744a5f611f42c325483ffea83ce216bededc7a Author: Olivier Martin Date: Mon Sep 1 17:41:38 2014 +0000 ARM Packages: Removed unused PcdArmPrimaryCore This PCD has been replaced by ArmPlatformIsPrimaryCore() function. Althrough this PCD is still used in some occasions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16026 6f19259b-4bc3-4df7-8a09-765794883524 commit 03e9db1575f063f968f5d369ec648e22df252a87 Author: Jordan Justen Date: Mon Sep 1 17:24:08 2014 +0000 MdePkg BaseLib NASM Thunk16: Initialize _16GdtrBase to 0 Previously we were setting it to the start of the GDT in the UEFI driver's copy of BaseLib. This address is irrelavent, since the C code will initialize it to the cooresponding address after the Thunk16 code has been placed in low memory. Additionally, initializing this was causing a link error for the XCLANG toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16025 6f19259b-4bc3-4df7-8a09-765794883524 commit 7458df400cc77fde6940bde211285c37ee642dc4 Author: Jordan Justen Date: Mon Sep 1 17:23:57 2014 +0000 MdePkg BaseLib NASM Thunk16: Remove remaining 'DB' code Convert remaining 'DB' code to assembly code by: * Move instruction immediate data labels to end of instruction * Use strict keyword to make sure immediate data size is not optimized Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16024 6f19259b-4bc3-4df7-8a09-765794883524 commit f6888eea465a8e293cb46b56c16f9f63eed43f3d Author: Jordan Justen Date: Mon Sep 1 17:23:51 2014 +0000 MdePkg BaseLib NASM Thunk16: Use bits 16 for 16-bit code By using 'bits 16', we can write code for 16-bit use the actual assembly syntax rather than 'DB' and sometimes writing code with seemingly incorrect operands because we know it will run correctly when the processor is running in 16-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16023 6f19259b-4bc3-4df7-8a09-765794883524 commit a8458d6cb3e05157f17c842ddd645dc269c8c12d Author: Jordan Justen Date: Mon Sep 1 17:23:39 2014 +0000 MdePkg BaseLib NASM Thunk16: Use NASM local labels http://www.nasm.us/doc/nasmdoc3.html#section-3.9 A local label is a label beginning with the period, and it's actual name is prefixed by the previous non-local label. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16022 6f19259b-4bc3-4df7-8a09-765794883524 commit fbb5393cb7a496c3e659115257546ed7682f4376 Author: Jordan Justen Date: Mon Sep 1 17:23:33 2014 +0000 MdePkg BaseLib Thunk16: Replace X64 GAS Thunk16 with NASM version This is a translation of X64/Thunk16.asm to NASM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16021 6f19259b-4bc3-4df7-8a09-765794883524 commit 6dab5c8a8a97b70ff329034c2947cff834c0316e Author: Jordan Justen Date: Mon Sep 1 17:23:22 2014 +0000 MdePkg BaseLib Thunk16: Replace IA32 GAS Thunk16 with NASM version This is a translation of Ia32/Thunk16.asm to NASM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16020 6f19259b-4bc3-4df7-8a09-765794883524 commit 02eef553114dea1e4d55071e91398a0625e4e18c Author: Jordan Justen Date: Mon Sep 1 17:23:10 2014 +0000 MdePkg Base.h: Always define ASM_PFX Some compilers may define __USER_LABEL_PREFIX__ to determine the prefix used with ASM_PFX. Otherwise, IA32 will use a single underscore '_' character, and all other architectures will use an empty prefix. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16019 6f19259b-4bc3-4df7-8a09-765794883524 commit b3f9cdaebb8a136c0ff8add4291a8b77dbf4721a Author: Jordan Justen Date: Mon Sep 1 17:22:58 2014 +0000 BaseTools tools_def: Indicate that NASM 2.07 or later is required Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16018 6f19259b-4bc3-4df7-8a09-765794883524 commit ff0279814ae3ed14914c0fa2eefe89d33a4bd6c3 Author: Jordan Justen Date: Mon Sep 1 17:22:51 2014 +0000 BaseTools build_rule: Add .nasm => .obj build rule Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16017 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a5a74358278c241f07f27b3c6f9cb3d33d6c936 Author: Jordan Justen Date: Mon Sep 1 17:07:19 2014 +0000 BaseTools tools_def: Add NASM_FLAGS Note: Only tested with the GCC49 toolchain so far. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16016 6f19259b-4bc3-4df7-8a09-765794883524 commit b4e2799be116bc6bccf97231c0ca19ebdb696148 Author: Ard Biesheuvel Date: Mon Sep 1 15:58:51 2014 +0000 ArmPlatformPkg: allow dynamically discovered PL031 RTC Allow the PCDs gArmPlatformTokenSpaceGuid.PcdPL031RtcBase and gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy PCDs to be declared as PcdsDynamic by the platform so they can be overridden during boot. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16015 6f19259b-4bc3-4df7-8a09-765794883524 commit f6f0612bec9b5e9180ee82ed94eee6b211636ee5 Author: Ard Biesheuvel Date: Mon Sep 1 15:57:51 2014 +0000 ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore Remove the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase from PrePeiCoreUniCore.inf, as they are not in fact used by the module. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16014 6f19259b-4bc3-4df7-8a09-765794883524 commit e754c233a17e24a9da0f1841d9927179e2d748ff Author: Olivier Martin Date: Mon Sep 1 13:24:01 2014 +0000 ArmPkg/BdsLib/Arm: Check Linux image and parameters are not overlapping Check Linux image and parameters are not overlapping with each other. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16013 6f19259b-4bc3-4df7-8a09-765794883524 commit 5779aaafe95e5cf8d9f1b192725bba60c4b9e245 Author: Olivier Martin Date: Mon Sep 1 13:21:54 2014 +0000 ArmPkg/BdsLib/Arm: Clean Data cache before disabling it It is actually the same sequence as AArch64. Without cleaning the data cache prior to disable the cache, the LR value pushed on the stack when entering in ArmCleanInvalidateDataCache() might have been overwritten by this specific cache line maintenance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16012 6f19259b-4bc3-4df7-8a09-765794883524 commit f4b491b56f827052d0823c3217fa2049fd479a7d Author: Ronald Cron Date: Mon Sep 1 13:20:41 2014 +0000 HalRuntimeServicesExampleLib/Rtc.c : Added missing comments Added the header comment block to the function "RtcTimeFieldsValid()" and reworked the alignment of the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16011 6f19259b-4bc3-4df7-8a09-765794883524 commit 947a10b1552cd512c16d562384253a6f52aa5178 Author: Ronald Cron Date: Mon Sep 1 13:19:43 2014 +0000 ArmPlatformPkg/Bds: Corrected a bug in IsPrintableString() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16010 6f19259b-4bc3-4df7-8a09-765794883524 commit 4477336d058015b2e05e890aad2d79bac636789c Author: Ronald Cron Date: Mon Sep 1 13:17:23 2014 +0000 ArmPlatformPkg/Bds: Correct copy of an unaligned Unicode string When a Unicode string is not stored in a 2-byte aligned memory area, the StrnCpy() or StrCpy() functions can not be used to copy the string. The string is now copied using CopyMem(). In the same function, a copy with "AsciiStrnCpy()" has also be replaced with a copy using "CopyMem()" as the size of the string to copy is in normal cases known. Another copy using "AsciiStrnCpy()" has been corrected in order not to run off the array the string is copied into and to ensure that the copied string has a final zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16009 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ce5ea60a96d01daaac4665ca1e27798c37759bb Author: Ruiyu Ni Date: Mon Sep 1 08:48:01 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16008 6f19259b-4bc3-4df7-8a09-765794883524 commit 3957a5a548bd8f8556da9d652795f99134799cef Author: Gao, Liming Date: Sun Aug 31 07:58:31 2014 +0000 ShellPkg Build failure of AllocateZeroPool usage. This patch updates AllocateZeroPool() to AllocateCopyPool() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16007 6f19259b-4bc3-4df7-8a09-765794883524 commit 12d37ace00de68076f487a4cfcf84f8f1de6acd0 Author: Feng, Bob C Date: Sat Aug 30 12:59:03 2014 +0000 This patch is going to fix the issue of only Default SkuId is built into the External Pcd DataBase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16006 6f19259b-4bc3-4df7-8a09-765794883524 commit 284065b0a190584412d78cf77dbd833170b3814a Author: Jaben Carsey Date: Fri Aug 29 22:01:54 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16005 6f19259b-4bc3-4df7-8a09-765794883524 commit 99ab5fc36c544e0b6294bcf40dcada5d76ac2792 Author: Jaben Carsey Date: Fri Aug 29 21:57:42 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16004 6f19259b-4bc3-4df7-8a09-765794883524 commit 531733377ac25083c7a54067a5330fb59f79bdfd Author: Jaben Carsey Date: Fri Aug 29 21:17:46 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16003 6f19259b-4bc3-4df7-8a09-765794883524 commit 81957f8dfccd493ed77b5240b1c0c06f22defd2b Author: Jaben Carsey Date: Fri Aug 29 21:17:27 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16002 6f19259b-4bc3-4df7-8a09-765794883524 commit e87b40b2c71bcc943a1f9a186dc725789eeaf733 Author: Jaben Carsey Date: Fri Aug 29 21:17:03 2014 +0000 This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16001 6f19259b-4bc3-4df7-8a09-765794883524 commit 28b27e1850f07c41d2129dc25ceb2c3c1f2959a1 Author: Jaben Carsey Date: Fri Aug 29 21:15:05 2014 +0000 The binaries of ShellBinPkg are generated with ShellPkg project 15999. The binaries are built with no debug information by building with "RELEASE" target. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16000 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ba9b812daf1695bc5f6ac99504e53569297c2bf Author: Tapan Shah Date: Fri Aug 29 20:43:08 2014 +0000 Register pre-defined command aliases in sorted order. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15999 6f19259b-4bc3-4df7-8a09-765794883524 commit 227a4b1c489308275bfbb955c4fd2f3f36e7a04d Author: Tapan Shah Date: Fri Aug 29 20:41:14 2014 +0000 Add CTRL+C support for ‘devices’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15998 6f19259b-4bc3-4df7-8a09-765794883524 commit 89732f464eafc76057e804718284c2667f04c312 Author: Tapan Shah Date: Fri Aug 29 20:40:21 2014 +0000 Cleanup UefiShellLevel1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15997 6f19259b-4bc3-4df7-8a09-765794883524 commit 54206ae7ef7cf8d10991727cc5a6e459f2ce36f6 Author: Tapan Shah Date: Fri Aug 29 20:38:27 2014 +0000 Add CTRL+C support for ‘drivers’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15996 6f19259b-4bc3-4df7-8a09-765794883524 commit 376e759308c07c98b7b26d1291f5f78677280e00 Author: Tapan Shah Date: Fri Aug 29 20:37:32 2014 +0000 Add CTRL+C support for ‘dh’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15995 6f19259b-4bc3-4df7-8a09-765794883524 commit 4bed6d8e5ddc654693582978c29f27bef0d46808 Author: Tapan Shah Date: Fri Aug 29 20:36:23 2014 +0000 Cleanup UefiShellDriver1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15994 6f19259b-4bc3-4df7-8a09-765794883524 commit bbe94d7ab3cc7d0a3c3f00ef7aa1fc019baf09d5 Author: Tapan Shah Date: Fri Aug 29 20:34:34 2014 +0000 Add CTRL+C support for ‘devtree’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15993 6f19259b-4bc3-4df7-8a09-765794883524 commit b7cd151207602029a4985802c7a7998d21e8a6a0 Author: Tapan Shah Date: Fri Aug 29 20:33:31 2014 +0000 Cleanup UefiShellInstall1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15992 6f19259b-4bc3-4df7-8a09-765794883524 commit 288638f0aa07a271481305f07dc6b8fef3b81331 Author: Tapan Shah Date: Fri Aug 29 20:32:15 2014 +0000 Add CTRL+C support for ‘attrib’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15991 6f19259b-4bc3-4df7-8a09-765794883524 commit 078308324f0739361f66ec8ab0ee06a1960d4a6f Author: Tapan Shah Date: Fri Aug 29 20:30:58 2014 +0000 Cleanup UefiShellLevel2CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15990 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a3146d46cea07829a0948f0848db04784541cea Author: Tapan Shah Date: Fri Aug 29 20:24:58 2014 +0000 Add CTRL+C support for ‘ls’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15989 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b5268c8f7223422de1ad5b278355586f088cdde Author: Tapan Shah Date: Fri Aug 29 20:22:48 2014 +0000 Add new aliases called ‘move’ and ‘mount’ for ‘mv’ and ‘map’ commands respectively. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15988 6f19259b-4bc3-4df7-8a09-765794883524 commit 6cef9b9fc33f5cd97c1933823f333e1dd015d88b Author: Tapan Shah Date: Fri Aug 29 20:19:36 2014 +0000 Add new alias called ‘cat’ for ‘type’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15987 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ac0f0709f198d46ebbf7c3cf99e2da379b976aa Author: Tapan Shah Date: Fri Aug 29 20:17:57 2014 +0000 Cleanup UefiShellNetwork1CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output * Remove excessive and very verbose examples output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15986 6f19259b-4bc3-4df7-8a09-765794883524 commit a1eaacffd05f212789df4e9124fc8630c9d97abb Author: Tapan Shah Date: Fri Aug 29 20:16:24 2014 +0000 Cleanup UefiShellLevel3CommandsLib commands help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15985 6f19259b-4bc3-4df7-8a09-765794883524 commit 16e5cd90ab8e2df099e66325e95b21f4a8aeb6af Author: Tapan Shah Date: Fri Aug 29 20:02:38 2014 +0000 Cleanup UefiDpLib ‘dp’ command help output string to : * Follow a consistent style * Add consistent sections: NOTES, EXAMPLES, RETURN VALUES, etc. * Wrap the text to fit in 80x25 formatted console output Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15984 6f19259b-4bc3-4df7-8a09-765794883524 commit 8649abce5f2db8e59af64b5d9a9ff288caf7369a Author: Anderw Fish Date: Fri Aug 29 18:58:36 2014 +0000 EmulatorPkg: Unix: Use XCODE5 and lldb if Xcode 5 is detected The EmulatorPkg build.sh will use XCODE5 if that is the default toolchain, and default to using lldb if Xcode 5 is dectect. This will work for Xcode 6 and possibly future version of Xcode too. /usr/bin/clang is just a wrapper that calls the currently selected Xcode version. xcode-select is used used to display or set the current version of Xcode used by the command line tools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15983 6f19259b-4bc3-4df7-8a09-765794883524 commit 4880fc9ff7a60f939a0a36b6e081b57dda533d00 Author: Anderw Fish Date: Fri Aug 29 18:52:42 2014 +0000 EmulatorPkg: Unix: Add LLDB support for Xcode 5 Xcode5 retired gdb, so this patch adds support for using, and loading symbols in, lldb. It also supports building with Xcode 5. The lldb script also supports dumping out the build generated guid database and it prints guids out with thier Cname if available. lldbefi.py also contains some EFI specific type formatters. Symbols are loaded via the lldbefi.py script setting a breakpoint on SecGdbScriptBreak() and runing a breakpoint action Python function that uses the arguments to SecGdbScriptBreak() to load symbols. The location of SecGdbScriptBreak() in Host.c was updated to move symbol loading control into the lldb Python script, since lldb only uses the arguments to SecGdbScriptBreak() and not the files generated by the emulator. The +1 on the SecGdbScriptBreak() argument makes it string size, not string length, as this is what the lldb script is looking for. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15982 6f19259b-4bc3-4df7-8a09-765794883524 commit e320062406d72820016be97786fb94ab577a13d1 Author: Anderw Fish Date: Fri Aug 29 18:45:26 2014 +0000 EmulatorPkg: Unix: Fix uninitiailzed variable bug. clang warns on this error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15981 6f19259b-4bc3-4df7-8a09-765794883524 commit 9358dc21e765a6976cdcdcfe4d72f0efb0e26ec1 Author: Anderw Fish Date: Fri Aug 29 18:34:04 2014 +0000 BaseTools: Cleanup XCODE build rules Update C-Code-File rule since XCODE never needs the SYMRENAME step. Add *.S16 to Mash16-Code-File rule to supoprt 16-bit assmebly with XCODE Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15980 6f19259b-4bc3-4df7-8a09-765794883524 commit 4484f397d3e5b28c0f52263309054e3531181c98 Author: Anderw Fish Date: Fri Aug 29 18:29:46 2014 +0000 BaseTools: Add the XCODE5 tools target to supoprt Xcode 5 Xcode 5 changed the arguments required to supoprt X64 EFIAPI so it is a new target. XCODE5 supports Xcode 5.* and Xcode 6.*, and will probably support future versions of Xcode as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15979 6f19259b-4bc3-4df7-8a09-765794883524 commit b37bcfd6bd0254cd7a67ca6af3743d28eaffceec Author: Laszlo Ersek Date: Fri Aug 29 17:27:20 2014 +0000 OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size When setting up the list of GOP modes offered on QEMU's stdvga ("VGA") and QXL ("qxl-vga") video devices, QemuVideoBochsModeSetup() filters those modes against the available framebuffer size. (Refer to SVN r15288 / git commit ec88061e.) The VBE_DISPI_INDEX_VIDEO_MEMORY_64K register of both stdvga and QXL is supposed to report the size of the drawable, VGA-compatibility framebuffer. Instead, up to and including qemu-2.1, this register actually reports the full video RAM (PCI BAR 0) size. In case of stdvga, this happens to be correct, because on that card the full PCI BAR 0 is usable for drawing; there is no difference between "drawable framebuffer size" and "video RAM (PCI BAR 0) size". However, on the QXL card, only an initial portion of the video RAM is suitable for drawing, as compatibility framebuffer; and the value currently reported by VBE_DISPI_INDEX_VIDEO_MEMORY_64K overshoots the valid size. Beyond the drawable range, the video RAM contains buffers and structures for the QXL guest-host protocol. Luckily, the size of the drawable QXL framebuffer can also be read from a register in the QXL ROM BAR (PCI BAR 2), so let's retrieve it from there. Without this fix, OVMF offers too large resolutions on the QXL card (up to the full size of the video RAM). If a GOP client selects such a resolution and draws into the video RAM past the compatibility segment, then the guest corrupts its communication structures (which is invalid guest behavior). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Gerd Hoffmann Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15978 6f19259b-4bc3-4df7-8a09-765794883524 commit fd9abd045e41387ef8e5cfbb4588220cf7a1261d Author: Elvin Li Date: Fri Aug 29 09:01:52 2014 +0000 Allocate EfiReservedMemoryType of memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15977 6f19259b-4bc3-4df7-8a09-765794883524 commit d7325a8c4913360fd736025d498193162d0ac58d Author: Gao, Liming Date: Fri Aug 29 04:49:15 2014 +0000 Correct OpenSSL version in Cryptest.uni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15976 6f19259b-4bc3-4df7-8a09-765794883524 commit de4caceb8b22426e6a8d9e364f63e298cffb4e63 Author: Qiu Shumin Date: Fri Aug 29 01:30:43 2014 +0000 ShellPkg: Remove 'STATIC' from function declarations to avoid source level debugging problem. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: : Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15975 6f19259b-4bc3-4df7-8a09-765794883524 commit 41921ad5c35c098a8ba54f8ffde9fa58dfb000f1 Author: Tapan Shah Date: Thu Aug 28 19:56:08 2014 +0000 ShellPkg: Fix ‘ren’ alias for ‘mv’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Erik Bjorge Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15974 6f19259b-4bc3-4df7-8a09-765794883524 commit c193724bd6ac640bb7d6c63ed2742b1a85093261 Author: Gao, Liming Date: Thu Aug 28 15:43:14 2014 +0000 Add the missing GUID in BdsDxe.inf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15973 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c103c557a58a89138baa0f69e0698ce41337232 Author: Gao, Liming Date: Thu Aug 28 14:49:14 2014 +0000 Don't initialize local variables in its declaration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15972 6f19259b-4bc3-4df7-8a09-765794883524 commit 97fa0ee9b1cffbb4b97ee35365afa7afcf50e174 Author: Yingke Liu Date: Thu Aug 28 13:53:34 2014 +0000 License header updated to match correct format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15971 6f19259b-4bc3-4df7-8a09-765794883524 commit cb9ec399fe8f0ba0d79d788891ac5829c33abc84 Author: Samer El-Haj-Mahmoud elhaj Date: Thu Aug 28 08:17:24 2014 +0000 Add IMAGE_ATTRIBUTE_UEFI_IMAGE definition from UEFI 2.4 specification. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15970 6f19259b-4bc3-4df7-8a09-765794883524 commit 141e0d2a0bbc039f8b97e7718afeafa7cbd3342c Author: Zeng, Star Date: Thu Aug 28 07:03:47 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15969 6f19259b-4bc3-4df7-8a09-765794883524 commit 48695d70bd22ccdf74156cf2a810d452a3e17481 Author: Zeng, Star Date: Thu Aug 28 07:03:27 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15968 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fbebd85996ccf54bcc59966dab6129b76223462 Author: Zeng, Star Date: Thu Aug 28 07:02:57 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15967 6f19259b-4bc3-4df7-8a09-765794883524 commit f9841f04ad2d3ce1157103f97ef7c2bc5979f1de Author: Zeng, Star Date: Thu Aug 28 06:58:44 2014 +0000 IntelFrameworkModulePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15966 6f19259b-4bc3-4df7-8a09-765794883524 commit f3ae2bcfefd93b65bfaa85883d8bac5d41cb7ba8 Author: Zeng, Star Date: Thu Aug 28 06:55:48 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15965 6f19259b-4bc3-4df7-8a09-765794883524 commit fe44bae59240a11430ebf3ab724bdad01101a7ff Author: Zeng, Star Date: Thu Aug 28 06:55:04 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15964 6f19259b-4bc3-4df7-8a09-765794883524 commit fea55a166188d251e1f60ab2ba58c2dccdd11fb2 Author: Zeng, Star Date: Thu Aug 28 06:53:43 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15963 6f19259b-4bc3-4df7-8a09-765794883524 commit 6036e94dc9402827130875258e99e486e82e7904 Author: Zeng, Star Date: Thu Aug 28 06:34:06 2014 +0000 MdeModulePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15962 6f19259b-4bc3-4df7-8a09-765794883524 commit f7acc872414700af99ad2ab6b5b3140615bc255a Author: Star Zeng Date: Thu Aug 28 06:31:55 2014 +0000 MdePkg Acpi51.h:Correct the declaration of EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15961 6f19259b-4bc3-4df7-8a09-765794883524 commit f0dab4d0189dcbbc0713bc752d12589f6e350f42 Author: Dong, Guo Date: Thu Aug 28 06:18:03 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15960 6f19259b-4bc3-4df7-8a09-765794883524 commit 72b1863ebffcb7b5284ee0741ec7f1f9080e2539 Author: Dong, Guo Date: Thu Aug 28 06:17:17 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15959 6f19259b-4bc3-4df7-8a09-765794883524 commit bc012551321a42c14aa5cfb28ae946323d1aa381 Author: Star Zeng Date: Thu Aug 28 06:02:43 2014 +0000 MdeModulePkg DxeCore: Handle FFS file with FFS_ATTRIB_CHECKSUM set for not cache memory mapped IO FV. The code FvCheck() will check FFS file checksum to verify if FFS file is valid when the file is with FFS_ATTRIB_CHECKSUM set. The whole file will be read through when doing checksum check. So we can cache FFS file to memory buffer for following checksum calculating first. And then, the cached file buffer can be also used for FvReadFile. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15958 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ccea0ae2f2cb2ef3c7555eef6637ca5e7c85963 Author: Dong, Guo Date: Thu Aug 28 05:52:56 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15957 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a2f2ec353a7e693c7d3de8cba72cf698c9b186e Author: Dong, Guo Date: Thu Aug 28 05:52:36 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15956 6f19259b-4bc3-4df7-8a09-765794883524 commit 18bb9e19c0dd234e454ad8e81397143226238f6d Author: Dong, Guo Date: Thu Aug 28 05:51:39 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15955 6f19259b-4bc3-4df7-8a09-765794883524 commit dda856b3c16240b7c8731ae58af1faf11d979717 Author: Dong, Guo Date: Thu Aug 28 05:50:45 2014 +0000 CryptoPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15954 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ce12df36c11c76621a3e4c59c375f0690a23995 Author: Dong, Guo Date: Thu Aug 28 05:49:39 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15953 6f19259b-4bc3-4df7-8a09-765794883524 commit 606d38a59804ee2f5754430c64030f0c8e1fc498 Author: Dong, Guo Date: Thu Aug 28 05:49:11 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15952 6f19259b-4bc3-4df7-8a09-765794883524 commit aced95158dba795733c2ab63ae2a84863daa3c31 Author: Dong, Guo Date: Thu Aug 28 05:34:23 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15951 6f19259b-4bc3-4df7-8a09-765794883524 commit 60c944c7d63978eee337f52af360ca5d807c11b6 Author: Dong, Guo Date: Thu Aug 28 05:31:09 2014 +0000 SecurityPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15950 6f19259b-4bc3-4df7-8a09-765794883524 commit 5841ba45f2d9dee54c2cf20ea374761207f3bb92 Author: Dong, Guo Date: Thu Aug 28 05:28:51 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15949 6f19259b-4bc3-4df7-8a09-765794883524 commit ddb1ad5893747f8e9ef4796447da77847086c1fe Author: Dong, Guo Date: Thu Aug 28 05:28:22 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15948 6f19259b-4bc3-4df7-8a09-765794883524 commit 332be0dbfa15ad07465bbf849923af8d4dac1490 Author: Dong, Guo Date: Thu Aug 28 05:26:24 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15947 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ef3af3967fd3ae572dcff77f0b627cf23822c0f Author: Dong, Guo Date: Thu Aug 28 05:23:58 2014 +0000 NetworkPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15946 6f19259b-4bc3-4df7-8a09-765794883524 commit 7195ef83ac0bd026cd77f9f990d76f4247e4bc64 Author: Qiu, Shumin Date: Thu Aug 28 05:19:28 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15945 6f19259b-4bc3-4df7-8a09-765794883524 commit b414ac4ddda571df1bda112a888135021d9c87b9 Author: Qiu, Shumin Date: Thu Aug 28 05:19:04 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15944 6f19259b-4bc3-4df7-8a09-765794883524 commit 968ac38f12476d41c0a1e147005ad82b0563d86a Author: Qiu, Shumin Date: Thu Aug 28 05:18:38 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15943 6f19259b-4bc3-4df7-8a09-765794883524 commit 546f14bf7a5ed6e48a3ef188c5d39338a3952180 Author: Qiu, Shumin Date: Thu Aug 28 05:17:22 2014 +0000 PcAtChipsetPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu, Shumin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15942 6f19259b-4bc3-4df7-8a09-765794883524 commit d4bf50f999af00ba16bc5b52bc834d629defe4c6 Author: Gao, Liming Date: Thu Aug 28 05:14:51 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15941 6f19259b-4bc3-4df7-8a09-765794883524 commit 865ef8430f3675ab1405b2f0b3cd6dd1a0942e20 Author: Gao, Liming Date: Thu Aug 28 05:14:21 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15940 6f19259b-4bc3-4df7-8a09-765794883524 commit a2078569b7d75edf88f6ecaaf408a254b5514591 Author: Gao, Liming Date: Thu Aug 28 05:13:58 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15939 6f19259b-4bc3-4df7-8a09-765794883524 commit f7523dee90d893a7612b5eff94b2bd33b277dde2 Author: Anderw Fish Date: Thu Aug 28 05:13:37 2014 +0000 BaseTools: Fix BaseTools C compiler flags for Xcode 5 -fno-merge-constants is not supported by clang, and it warns it will turn into a hard error in the future. -Wno-deprecated-declarations removes warnings about obsolete libraries that are not secure. -Wno-self-assign removes warnings from LZMA code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15938 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e363936ecb2e38ad4955c8d7718d2ff5204dbb0 Author: Gao, Liming Date: Thu Aug 28 05:13:05 2014 +0000 SourceLevelDebugPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15937 6f19259b-4bc3-4df7-8a09-765794883524 commit 3387dccb34ec3090d36c336b639cae61df757554 Author: Gao, Liming Date: Thu Aug 28 05:12:05 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15936 6f19259b-4bc3-4df7-8a09-765794883524 commit abae030aecdce785016ddc85dccb72f7cd0caae0 Author: Gao, Liming Date: Thu Aug 28 05:11:45 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15935 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ddb2a23418d9bddad63ecb8505981db8543e325 Author: Gao, Liming Date: Thu Aug 28 05:11:06 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. 3. Add Module Extra UNI file that provides the localized Name of a module. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a module to specify extra files not listed in [Sources] or [Binaries] sections to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a module to go along with the localized Abstract and Description from the MODULE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15934 6f19259b-4bc3-4df7-8a09-765794883524 commit e48e07424a72a2bdaa8dfe46198facaca02051d6 Author: Gao, Liming Date: Thu Aug 28 05:09:12 2014 +0000 UefiCpuPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15933 6f19259b-4bc3-4df7-8a09-765794883524 commit ed395cfecd7abddf69fc124799817a5a12a991d4 Author: Anderw Fish Date: Thu Aug 28 05:04:57 2014 +0000 BaseTools: Fix clang C++ build error Move argument default to constructor to remove clang warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15932 6f19259b-4bc3-4df7-8a09-765794883524 commit 07355bd5ccf46cabb0ad05f1a058c1cfcbad1081 Author: Anderw Fish Date: Thu Aug 28 05:02:35 2014 +0000 [BaseTools] clang warns that since BaseAddress is unsigned it can never be < 0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15931 6f19259b-4bc3-4df7-8a09-765794883524 commit 057ac410e3b8331666cd5246d8414b36e0f3d15f Author: Andrew Fish Date: Thu Aug 28 04:57:12 2014 +0000 BaseTools: add support Xcode 5 in the EmulatorPkg The XCODE32 target is used to build the x86_64 Mac OS X application for the emulator. The other Xcode targets build the EFIAPI needed for UEFI. This patch removes an obsolete command line argument. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15930 6f19259b-4bc3-4df7-8a09-765794883524 commit 459eba01480e14ed15ddb88b515a921c34ee1b0b Author: Anderw Fish Date: Thu Aug 28 03:38:21 2014 +0000 EmulatorPkg:Unix: Add support for X11 on Mac OS X via XQuartz Starting in OS X Mountain Lion X11 is not longer part of the OS install, so you must download it from http://xquartz.macosforge.org. To make XQuartz work with the EmulatorPkg an include path needs to be added. The build tools fail the build if you try to add an absolute inculde path to the X11 headers, so Unix/Host/X11IncludeHack, a symbolic link, was added to get the system building. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15929 6f19259b-4bc3-4df7-8a09-765794883524 commit 03d349ca584334ac9d92908172eaf621dd27a2ca Author: Gao, Liming Date: Thu Aug 28 03:21:49 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15928 6f19259b-4bc3-4df7-8a09-765794883524 commit 18df96da0c94c5a5d9856adb89c994b52e584dff Author: Gao, Liming Date: Thu Aug 28 03:21:06 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15927 6f19259b-4bc3-4df7-8a09-765794883524 commit a8ebaca2c19684289d144259cc73319fe4bc0238 Author: Gao, Liming Date: Thu Aug 28 03:20:46 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15926 6f19259b-4bc3-4df7-8a09-765794883524 commit f15d2c8fed6c9e29ae1695aa082647883f6a3583 Author: Gao, Liming Date: Thu Aug 28 03:19:58 2014 +0000 IntelFrameworkPkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15925 6f19259b-4bc3-4df7-8a09-765794883524 commit f4260465a848be1e521b099872f0c5c8aed413e5 Author: lhauch Date: Wed Aug 27 16:14:42 2014 +0000 Updated GenBootSector, GenCrc32 and GenPage to remove duplicate “Build” word in the version output, updated the minor number and copyright as needed. Updated the VolInfo version output to remove the tool description from the --version output string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15924 6f19259b-4bc3-4df7-8a09-765794883524 commit c6c4df80de577bdf301363d83bc74dc0453f1ca9 Author: Olivier Martin Date: Wed Aug 27 10:13:36 2014 +0000 ArmPkg/TimerDxe: Fixed real time period Prior to this change, the TimerPeriod was re-initialize at the end of the interrupt handling with the value of the period. It means the real timer period was: Timer Interrupt Processing time + Timer Period Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15923 6f19259b-4bc3-4df7-8a09-765794883524 commit 09c1b24c2f6c95f8c0b952dfd3caa25fd8aa578b Author: Olivier Martin Date: Wed Aug 27 10:12:55 2014 +0000 ArmPkg/TimerDxe: Fixed the reloading of the period Prior to this change the period was restored to the default period. This change restores the latest 'set period'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15922 6f19259b-4bc3-4df7-8a09-765794883524 commit 33292af5f13b18ef5124f32a7bbf0b05b2d519c5 Author: Olivier Martin Date: Wed Aug 27 10:12:00 2014 +0000 ArmPkg/TimerDxe: Changed calculation to allow 1KHz granularity frequency Prior to this change the frequency was rounded to 1Mhz. This change rounds the timer frequency to 1KHz. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15921 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f1cbb011faf2435fa976e61ba7e1ab46a5a09d0 Author: Gao, Liming Date: Wed Aug 27 09:39:59 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 5. Add PACKAGE_UNI_FILE UNI file that contains the localized Abstract and Description of a package and localized strings associated with PCDs. a. Addresses an information gap between DEC files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume PACKAGE_UNI_FILE and associated UNI file during UDP creation that performs the DEC -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce PACKAGE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> DEC conversion. 6. Add Package Extra UNI file that provides the localized Name of a package. a. [UserExtensions.TianoCore."ExtraFiles"] provides an easy method for a package to specify extra files to be added to a UDP without having to list the files in the UPT package information data file. b. There will be an associated update to UPT in BaseTools to package up files listed in [UserExtensions.TianoCore."ExtraFiles"] during UDP creation. c. UNI file contains localized name of a package to go along with the localized Abstract and Description from the PACKAGE_UNI_FILE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15920 6f19259b-4bc3-4df7-8a09-765794883524 commit f5746cb0958e8d7c47b0a76277583c865b3477dc Author: Gao, Liming Date: Wed Aug 27 09:39:04 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 4. PCD information in DEC file comment blocks are either incomplete or incorrect. This includes detailed description, @Prompt, @ValidRange, @ValidList, @Expression, and [Error.] validation error messages. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15919 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b94012517942f6404536d89d88368a3aca54438 Author: Gao, Liming Date: Wed Aug 27 09:37:07 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 2. Add MODULE_UNI_FILE file that contains the localized Abstract and Description of a module. a. Addresses an information gap between INF files and the UEFI Distribution Packaging Specification XML schema b. There will be an associated update to UPT in BaseTools to consume MODULE_UNI_FILE and associated UNI file during UDP creation that performs the INF -> XML conversion. c. There will be an associated update to UPT in BaseTools to produce MODULE_UNI_FILE and associated UNI file during UDP installation that performs the XML -> INF conversion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15918 6f19259b-4bc3-4df7-8a09-765794883524 commit c92c179040e2b5ec056822ef1716f56e54f64dac Author: Gao, Liming Date: Wed Aug 27 09:33:09 2014 +0000 MdePkg: INF/DEC file updates to EDK II packages 1. Usage information in INF file comment blocks are either incomplete or incorrect. This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes. The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15917 6f19259b-4bc3-4df7-8a09-765794883524 commit eb1cace292ff0c66ca11eff4703c9fa16219c2a1 Author: Star Zeng Date: Wed Aug 27 08:31:44 2014 +0000 MdeModulePkg DxeCore: Don't cache memory mapped IO FV. Previous DxeCore FwVol code will cache whole FvMain FV from flash that may be uncached if platform reports FvMain FVB, it will impact DXE performance. The code already has file level cache, so don’t need to cache memory mapped IO FV. It can also reduce memory consumption of caching memory mapped IO FVs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15916 6f19259b-4bc3-4df7-8a09-765794883524 commit 436296125b1b013b211d7cfa80df5ea9421bfebd Author: Feng Tian Date: Wed Aug 27 04:08:06 2014 +0000 MdeModulePkg/UsbBusDxe: Fix a bug about the alternate setting number which should be up to 256. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15915 6f19259b-4bc3-4df7-8a09-765794883524 commit 275ea01efdf0aa7be0b5352ff185cc77aef129c0 Author: Eric Dong Date: Wed Aug 27 03:29:01 2014 +0000 Refine the fix for the bug that cause assert when do the reconnect in the callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15914 6f19259b-4bc3-4df7-8a09-765794883524 commit d1984abcb9a9fa7fe0b1e6ee13e71d943718bda8 Author: Ronald Cron Date: Tue Aug 26 15:06:45 2014 +0000 CryptoPkg: Add support of AARCH64 architecture Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15913 6f19259b-4bc3-4df7-8a09-765794883524 commit bccc877842e6a89eb02cd240c458d73eed1ca415 Author: Ronald Cron Date: Tue Aug 26 15:05:58 2014 +0000 CryptoPkg: Add support to build with ARM GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15912 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f7cd8de3b54430f39a01c4db5bbbd2ce5f4a42c Author: Ronald Cron Date: Tue Aug 26 15:05:22 2014 +0000 CryptoPkg: Update to build with RVCT Update RVCT compile options for the CryptoPkg to compile. Add support for stack protector with BaseStackCheckLib to link. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin Reviewed-By: Long, Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15911 6f19259b-4bc3-4df7-8a09-765794883524 commit ac790db940b6cc5205073e1c8cc9c3f1c01615d4 Author: Elvin Li Date: Tue Aug 26 12:28:15 2014 +0000 AcpiS3Save could try to check PcdIdentifyMappingPageTablePtr is NULL, if it is not, it means someone else has allocate memory for page table, AcpiS3Save could re-use this memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15910 6f19259b-4bc3-4df7-8a09-765794883524 commit b5040e4c55f6c5438cc8a1623f75afc5f76de43e Author: Elvin Li Date: Tue Aug 26 12:26:32 2014 +0000 1. CapsuleLongModeBuffer variable should not have EFI_VARIABLE_RUNTIME_ACCESS attribute. 2. CapsuleLongModeBuffer variable should be set to Read-Only. It should not be changed by someone else. 3. Introduce a new PCD PcdIdentifyMappingPageTablePtr to share the same range of page table between AcpiS3 and Capsule. 4. Capsule stack size is allocated from PcdCapsulePeiLongModeStackSize. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15909 6f19259b-4bc3-4df7-8a09-765794883524 commit 5b38a703b2f0d2cda329cbca63d087a4a9509b46 Author: Olivier Martin Date: Tue Aug 26 10:21:48 2014 +0000 EmbeddedPkg/FdtLib: Added support to load FDT from Firmware Volume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15908 6f19259b-4bc3-4df7-8a09-765794883524 commit 22044caa2cf9a484a01c6290fa5bcee5f157c8b4 Author: Olivier Martin Date: Tue Aug 26 10:20:47 2014 +0000 ArmPlatformPkg/NorFlashDxe: Clean the driver - Marked some functions as STATIC - Simplified some conditions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15907 6f19259b-4bc3-4df7-8a09-765794883524 commit bcb53c42d057b13a198781bdeca3c2cf55b13164 Author: Harry Liebel Date: Tue Aug 26 10:19:52 2014 +0000 ArmPlatformPkg: Provide mechanism to get BootMonFS file information (cont.) Add additional structure to get file meta-data information from BootMonFS based files. AXF files are processed by the Flash loader and the ELF header stripped. The relevant information is stored in the file-system. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15906 6f19259b-4bc3-4df7-8a09-765794883524 commit af16798ef77da84487ed8e64bc955fbd12ac9b1f Author: Olivier Martin Date: Tue Aug 26 10:18:28 2014 +0000 EmbeddedPkg/FdtLib: Added support to load Fdt from Semihosting The FDT is also installed into the UEFI configuration table to be used by the OS loader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15905 6f19259b-4bc3-4df7-8a09-765794883524 commit 749d91f7aaeb9dcc8afc0bf6d9444caff2c2ad62 Author: Harry Liebel Date: Tue Aug 26 10:17:05 2014 +0000 ArmPlatformPkg/Bds: Fix compiler warning - Fix RVCT warning: 'SecondEntry' may be uninitialised. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15904 6f19259b-4bc3-4df7-8a09-765794883524 commit d340ef7542df932198652d0d16109428337c4b30 Author: Olivier Martin Date: Tue Aug 26 10:16:16 2014 +0000 ArmPkg/ArmArchTimerLib: Remove non required [depex] and IoLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15903 6f19259b-4bc3-4df7-8a09-765794883524 commit da5daf369fd4c130e0dbf43c292cc57ee8eabcdf Author: Harry Liebel Date: Tue Aug 26 10:15:21 2014 +0000 ArmPlatformPkg/BootMonFs: Provide mechanism to get BootMonFS file information Add additional structure to get file meta-data information from BootMonFS based files. AXF files are processed by the Flash loader and the ELF header stripped. The relevant information is stored in the file-system. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15902 6f19259b-4bc3-4df7-8a09-765794883524 commit 91c38d4e94c1461f5824b83d3722fe46626aa0d3 Author: Ronald Cron Date: Tue Aug 26 10:14:17 2014 +0000 ARM Packages: Replace tabs by spaces for indentation Replace tabs by spaces for indentation to comply to EDK2 coding standards. Done in files with extension ".S", ".c", ".h", ".asm", ".dsc", ".inc", "*.inf", "*.dec" or ".fdf" and located in ArmPkg, ArmPlatformPkg, EmbeddedPkg, BeagleBoardPkg or Omap35xxPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15901 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c670b2119f85bebacd0b1f5c1c84a831ffd5352 Author: Olivier Martin Date: Tue Aug 26 10:12:06 2014 +0000 ArmPlatformPkg/Bds: Fixed condition on LOAD_OPTION_CATEGORY_BOOT The condition tries to identify if we were starting a EFI OS Loader or EFI Application. But LOAD_OPTION_CATEGORY_BOOT was used as a mask to check the attributes of the boot options while it is not a mask. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15900 6f19259b-4bc3-4df7-8a09-765794883524 commit 3abc11f65ef421ca520fa345945418312bcda279 Author: Eric Dong Date: Tue Aug 26 07:46:38 2014 +0000 Clean up the framework style code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15899 6f19259b-4bc3-4df7-8a09-765794883524 commit c4866c7710c250b83018de6a1fcde6433f87ff3e Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 07:16:29 2014 +0000 The original code does not initialize the global width constants before creating menu options. That caused an issue when long strings are used in the first HII form, but only when displayed for the first time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15898 6f19259b-4bc3-4df7-8a09-765794883524 commit fae62ff21a2127df1cf2672aecd1faad95b4a6e7 Author: Hess Chen Date: Tue Aug 26 07:14:38 2014 +0000 This patch is going to: 1. Support a force binary build mode by adding “--ignore-source” to command line options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15897 6f19259b-4bc3-4df7-8a09-765794883524 commit 421ccda3079077dd613308526e02d797f5cc356a Author: Hess Chen Date: Tue Aug 26 05:58:02 2014 +0000 This patch is going to: 1. Add a recovery mode for UPT failure 2. Add UNI file support 3. Add binary file header support 4. Add support for PCD error message 5. Add support for replace 6. Format generated INF/DEC files 7. Update dependency check 8. Other minor fixes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15896 6f19259b-4bc3-4df7-8a09-765794883524 commit f0aa06e385c41743ac805bed9469aac336a6ec4c Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 05:30:49 2014 +0000 Add PCI PMC and PMCSR register definitions from PCI Power Management Interface Specification Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15895 6f19259b-4bc3-4df7-8a09-765794883524 commit ba0ef1e42df623526ac4ae453567459bd2003467 Author: Samer El-Haj-Mahmoud elhaj Date: Tue Aug 26 05:02:58 2014 +0000 Update EFI_DRIVER_HEALTH_HII_MESSAGE definition from UEFI 2.4 specification to replace Reserved with MessageCode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15894 6f19259b-4bc3-4df7-8a09-765794883524 commit a0a2cd1ea6933bdd54165b8e9a403e7e7f492822 Author: Feng, Bob C Date: Tue Aug 26 02:52:24 2014 +0000 This patch is going to correct the external PCD database generation rule to support the case that all binary driver are only listed in FDF file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng, Bob C Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15893 6f19259b-4bc3-4df7-8a09-765794883524 commit fad213a3db737a5601869d155abe499a7df66715 Author: Jordan Justen Date: Mon Aug 25 23:10:18 2014 +0000 EDK II Contributions.txt: Note acceptable contribution licenses We strongly prefer that contribtions be offered using the same license as the project/module. But, we should document other acceptable licenses for contributions. This will allow package owners to more easily know if they can accept a contribution under a different source license. NOTE: This does not modify the wording of the "TianoCore Contribution Agreement 1.0" section Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Mark Doran git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15892 6f19259b-4bc3-4df7-8a09-765794883524 commit 460f337bc035b61dec3819f4b62a7181e3631b3f Author: Daryl McDaniel Date: Mon Aug 25 20:47:20 2014 +0000 AppPkg/Applications/Sockets/TftpServer: Make the include file names match the case of the files in the file system. Change “#include ” to “#include ”. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Leahy, Leroy P git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15891 6f19259b-4bc3-4df7-8a09-765794883524 commit d90aa46258726412d9b9d77cfeb879adad837067 Author: lhauch Date: Mon Aug 25 20:06:55 2014 +0000 BootSectImage.exe, EfiLdrImage.exe and Split.exe tools have incorrect output from the --version option. This patch fixes the --version option output and corrects the description displayed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15890 6f19259b-4bc3-4df7-8a09-765794883524 commit 59577231a763edbf3a765f0900b3db3dd610972c Author: Qiu Shumin Date: Mon Aug 25 17:56:27 2014 +0000 ShellPkg: Replace non-ASCII character in Pci.c to fix GCC build error For Invalid character ‘-’ in Pci.c line 806 and line 811, using ASCII encoding byte 0x2d to replace. Example error from GCC 4.9: ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c:806:5: error: converting to execution character set: Invalid or incomplete multibyte or wide character L"Ethernet (802.11a � 5 GHz)", ^ Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey Tested-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15889 6f19259b-4bc3-4df7-8a09-765794883524 commit a361d391601b82b4e9c1877f53c0dfe753febd43 Author: Qiu Shumin Date: Mon Aug 25 08:04:52 2014 +0000 Append the terminating null character at the end of the string to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15888 6f19259b-4bc3-4df7-8a09-765794883524 commit b69fd59e6f1a884e1f3e42f4fd07e59060782cc1 Author: Yingke Liu Date: Mon Aug 25 05:00:34 2014 +0000 Fix nmake cleanall bugs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15887 6f19259b-4bc3-4df7-8a09-765794883524 commit b3d07ff8d21ecab5a8060815e9abe73c904e3ed9 Author: Hess Chen Date: Mon Aug 25 01:16:34 2014 +0000 This patch is going to: 1. Add a checkpoint to check if an UNI file is a valid UTF-16 file 2. Add a checkpoint to check if a GUID/PPI/PROTOCOL/PCD is in a valid format. 3. Some other minor changes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15886 6f19259b-4bc3-4df7-8a09-765794883524 commit f056e4c18047e9a0157a915175d07afbd8b8c581 Author: Jaben Carsey Date: Fri Aug 22 17:02:11 2014 +0000 ShellPkg: Update 'pci' command for updated class codes This updated the strings to be compliant with PCI CODE AND ID ASSIGNMENT SPECIFICATION 1.5. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Signed-off-by: Chris Phillips Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15885 6f19259b-4bc3-4df7-8a09-765794883524 commit c173a7b9d6f239e3a002f4e9c37db98a8f98f771 Author: Chris Phillips Date: Fri Aug 22 17:00:49 2014 +0000 ShellPkg: Fixes and updates for the 'devices' command - Update 'devices -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'devices' output format for better alignment when there are many device handles: T D Y C I P F A CTRL E G G #P #D #C Device Name ==== = = = == == === ========================================================= Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15884 6f19259b-4bc3-4df7-8a09-765794883524 commit 83185c5a0e3e79fa22bf33c61d4e228cedd22ef5 Author: lhauch Date: Fri Aug 22 16:08:47 2014 +0000 Updated version, missed the last two commits and to add the SVN Revision property (last part of the version value). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15883 6f19259b-4bc3-4df7-8a09-765794883524 commit cea5e3b9bfd55f32d7f8b0df5d613e38597d28a1 Author: Jaben Carsey Date: Fri Aug 22 16:06:55 2014 +0000 ShellPkg: Refactor string manipulation This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15882 6f19259b-4bc3-4df7-8a09-765794883524 commit cd92f93847f8d79e2e4e1e81dead208d0feec5f6 Author: lhauch Date: Fri Aug 22 15:56:54 2014 +0000 Fixed the PATH again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15881 6f19259b-4bc3-4df7-8a09-765794883524 commit bd4fa6f53c489df94acd2a414f0cb2c11be6c7a4 Author: lhauch Date: Fri Aug 22 15:47:45 2014 +0000 Updated to check for NASM_PREFIXE system environment variable, also to fix an issue with path environment variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15880 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ece15ad809c0c7620af22d8bd5fa9877b8b3e55 Author: Dong, Guo Date: Fri Aug 22 05:05:22 2014 +0000 Update TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported to be used as patchable PCD instead of Fixed PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15879 6f19259b-4bc3-4df7-8a09-765794883524 commit 6809c8723efbc37566db9cd35b725aa81b304094 Author: Gao, Liming Date: Fri Aug 22 02:34:20 2014 +0000 Only reserve the aligned memory instead of reserving the unaligned memory in PeiMemoryAllocationLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15878 6f19259b-4bc3-4df7-8a09-765794883524 commit fa7fadf78e064d1d73d21d0487e2a31a394a88ae Author: Star Zeng Date: Fri Aug 22 01:23:28 2014 +0000 IntelFspPkg BaseCacheLib: State CacheAsRamLib in its inf, because it consumes DisableCacheAsRam() that is the interface of CacheAsRamLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15877 6f19259b-4bc3-4df7-8a09-765794883524 commit acedecdd5ec4f45c9b7d456d01017c43e9fd2fb2 Author: Elvin Li Date: Fri Aug 22 01:13:48 2014 +0000 Do not access transfer ring when endpoint is isochronous type and control type. And when one Endpoint is a unknown type, do not ASSERT(0) and process next endpoint. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15876 6f19259b-4bc3-4df7-8a09-765794883524 commit 5eadb80f09b246f6934468535dfcaedaccd59c0c Author: Jaben Carsey Date: Thu Aug 21 22:13:08 2014 +0000 ShellPkg: leave quotes around params Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15875 6f19259b-4bc3-4df7-8a09-765794883524 commit a0d367299fab5d7ce1a3b71aea176a500f9e7950 Author: Daryl McDaniel Date: Thu Aug 21 20:58:05 2014 +0000 StdLib/LibC/gdtoa: Initialize variables before use, update the Kmax definition. gdtoaimp.h: update the Kmax definition. strtodg.c: initialize variables before use. general: Remove conditional sections for VAX and IBM mainframe. Remove conditional sections for pre-ANSI (K&R) function prototypes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15874 6f19259b-4bc3-4df7-8a09-765794883524 commit 78d42190ce066d36909ec63b213b37dc04b9f2c4 Author: Chris Phillips Date: Thu Aug 21 20:28:32 2014 +0000 ShellPkg: Fixes and updates for the 'parse' command - Fix SFO file parsing to match UEFI Shell 2.1 spec - Update help output for easier viewing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15873 6f19259b-4bc3-4df7-8a09-765794883524 commit 73768087c464615d95ea95fb4a281cbfb17147a3 Author: Chris Phillips Date: Thu Aug 21 20:26:32 2014 +0000 ShellPkg: Fixes and updates for the 'memmap' command - Update 'memmap -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'memmap' output format for better alignment Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15872 6f19259b-4bc3-4df7-8a09-765794883524 commit d41a79a0daaac52b3c555695d4dd3873d6f019c0 Author: Chris Phillips Date: Thu Aug 21 20:18:47 2014 +0000 ShellPkg: Add support for UEFI Shell 2.1 spec command line comments Example: Shell> echo "You are ^#1!" # Testing echo You are #1! Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15871 6f19259b-4bc3-4df7-8a09-765794883524 commit a29117bf9e278763dfa6113492eb443be4ab67bc Author: Chris Phillips Date: Thu Aug 21 20:16:32 2014 +0000 ShellPkg: Fixes and updates for the 'drivers' command - Update 'drivers -sfo' format to match UEFI Shell 2.1 spec - Update help output for easier viewing - Update 'drivers' output format for better alignment T D Y C I P F A DRV VERSION E G G #D #C DRIVER NAME IMAGE PATH === ======== = = = === === =================================== ========== Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15870 6f19259b-4bc3-4df7-8a09-765794883524 commit 53715dcd5065883f83152d17b128aa1be120c4fb Author: Chris Phillips Date: Thu Aug 21 19:59:49 2014 +0000 ShellPkg: Fix 'ls -sfo' and 'map -sfo' output format to match UEFI Shell 2.1 spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15869 6f19259b-4bc3-4df7-8a09-765794883524 commit bf47c6a11b1fca90fe17070e0197963d4d586603 Author: lhauch Date: Thu Aug 21 17:20:55 2014 +0000 Setting the svn property, svn:executable on the new scripts. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15868 6f19259b-4bc3-4df7-8a09-765794883524 commit bd63012c73486e306a90bc28805d8914b70c8859 Author: lhauch Date: Thu Aug 21 16:41:41 2014 +0000 Adding files for proposed replacement for edksetup.bat. This changes includes new scripts that breaks out some of the functionality in edksetup.bat and eliminates calling the toolsetup.bat file in BaseTools directory. Edk2Setup.bat is to be used for testing. If no bugs are reported by the end of September, 2014, the file will be renamed to edksetup.bat. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15867 6f19259b-4bc3-4df7-8a09-765794883524 commit 66c6d4d67ed870e9135c05a1f4deb03843c9faec Author: Andrew Fish Date: Thu Aug 21 09:23:58 2014 +0000 MdePkg: Introduced BaseStackCheckLib (cont.) Liming proposed different changes compare to the latest patch. This commit ensures the changes goes in his direction. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15866 6f19259b-4bc3-4df7-8a09-765794883524 commit 0923aa1c3ad1a68f4781a98897889f3976d1b83d Author: Hess Chen Date: Thu Aug 21 07:51:21 2014 +0000 This patch is going to: 1. Skip the content defined in USER EXTENSION section without raising an error. 2. Wrap os.utime to use two arguments. 3. Add GenFdsCommand for PlatformAutoGen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15865 6f19259b-4bc3-4df7-8a09-765794883524 commit 07b8564b113431f70ef4fcc469a42be5e4700263 Author: Yingke Liu Date: Thu Aug 21 07:12:33 2014 +0000 AutoGen.c can only be generated if the module has intermediate object files generated or links other libraries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15864 6f19259b-4bc3-4df7-8a09-765794883524 commit 231ea883ed13a43157e2ceca5869d02d5d727526 Author: Qiu Shumin Date: Thu Aug 21 05:35:25 2014 +0000 Allocate exact memory size for string buffer to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Ni Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15863 6f19259b-4bc3-4df7-8a09-765794883524 commit acbd7f9f1738561520c3ee78d683e0164ecf5764 Author: Qiu Shumin Date: Thu Aug 21 05:26:25 2014 +0000 Append the terminating null character at the end of the string to avoid buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Tian Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15862 6f19259b-4bc3-4df7-8a09-765794883524 commit 709edd4444384da6ed85d7fbead14d41b9f9f7f9 Author: Ruiyu Ni Date: Thu Aug 21 03:45:30 2014 +0000 Check in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools (r15860), FatPkg (r86). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15861 6f19259b-4bc3-4df7-8a09-765794883524 commit fcd4fbf30d77873467ce8e2c386f33425b3ae668 Author: Yingke Liu Date: Thu Aug 21 01:39:18 2014 +0000 1. AutoGen.c should be generated if it is not empty even if there are no C source files. 2. If there are sub directories in current module, the corresponding directory in OUTPUT should be created. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Chen, Hesheng Reviewed-by: Feng, Bob C git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15860 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e398dc7392bcf5f855ab76192f226051b05a309 Author: Olivier Martin Date: Wed Aug 20 23:20:54 2014 +0000 StdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf. NOTE: Replaces the previous version which was a file from the wrong project. Applies the patch, submitted by Olivier Martin, to use va_arg for long double. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Daryl McDaniel Includes some cosmetic changes to enhance readability. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15859 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bc81f40096526647ce5c74dadea42d2ab9363f5 Author: Harry Liebel Date: Wed Aug 20 21:55:45 2014 +0000 StdLib/LibC: Fix ARM symbol problems StdLibPrivateInternalFiles: Add AArch64 support Disable 'memcpy' symbol for ARM in LibC. It is already provided by the ARM compiler intrinsics library. Add missing 'strtold' symbol. Use the same fallback as IPF for now. Use Include definitions as provided by ARM version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15858 6f19259b-4bc3-4df7-8a09-765794883524 commit df294f7ff0160dbb52a36642f5f482eb639feb76 Author: Harry Liebel Date: Wed Aug 20 21:51:49 2014 +0000 AppPkg: Enable ARM and AArch64 support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15857 6f19259b-4bc3-4df7-8a09-765794883524 commit 9792ff7c5d0d35b5fff06453a623dce80a2754e8 Author: Olivier Martin Date: Wed Aug 20 21:11:26 2014 +0000 StdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf. Applies the patch, submitted by Olivier Martin, to use va_arg for long double. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Daryl McDaniel Also initializes an array so that strings will be properly terminated. Includes some cosmetic changes to enhance readability. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15856 6f19259b-4bc3-4df7-8a09-765794883524 commit dfa8858555070f08ba9df2c2dde837f8c7620b51 Author: Daryl McDaniel Date: Wed Aug 20 20:38:43 2014 +0000 StdLib: Add a runtime helper function for VC++ 64-bit right shift on Ia32 target architectures. Add new file StdLib/LibC/CRT/Ia32/llshr.c Add references to the new file to StdLib/LibC/LibC.inf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15855 6f19259b-4bc3-4df7-8a09-765794883524 commit cb6032832355f5abe3967862603625f11b710418 Author: Olivier Martin Date: Wed Aug 20 18:02:38 2014 +0000 BaseTools: Added support for GCC stack protector for ARM architecture Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15854 6f19259b-4bc3-4df7-8a09-765794883524 commit bd1d062820f787200269b4deb5d80f98137e23a0 Author: Olivier Martin olivier.martin Date: Wed Aug 20 18:01:50 2014 +0000 ARM Packages: Added support for GCC stack protector Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Date: Wed Aug 20 18:00:38 2014 +0000 MdePkg: Introduced BaseStackCheckLib (cont.) This library only support GCC, RVCT and XCode for now. The new files were missing from SVN rev15851. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15852 6f19259b-4bc3-4df7-8a09-765794883524 commit 4bc7d5b5ecd3a48dbf68848a8ebc3bea48decdbe Author: Andrew Fish Date: Wed Aug 20 17:58:46 2014 +0000 MdePkg: Introduced BaseStackCheckLib This library only support GCC, RVCT and XCode for now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15851 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a539eb53651074bc376271a94dbc23b171745c6 Author: Olivier Martin Date: Wed Aug 20 17:57:34 2014 +0000 ArmPkg/ArmLib/ArmV7: Fixed ArmIsMpCore() The function was not returning the expected value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15850 6f19259b-4bc3-4df7-8a09-765794883524 commit febad023bfa78ed41e5d932f44e96a0f6c7b360a Author: Olivier Martin Date: Wed Aug 20 11:38:45 2014 +0000 ARM Packages: Removed malicious trailing spaces Some trailing spaces were missing from the previous patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15849 6f19259b-4bc3-4df7-8a09-765794883524 commit b5412eac9eaccaed53ab32f6c3dd016e71f44a0e Author: Dong, Guo Date: Wed Aug 20 09:37:26 2014 +0000 Update TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported to be used as patchable PCD instead of Fixed PCD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15848 6f19259b-4bc3-4df7-8a09-765794883524 commit df0cee8d8ce6fefc7b38ac238479300bb3051298 Author: Hess Chen Date: Wed Aug 20 07:41:38 2014 +0000 This patch is going to: 1. Fix a bug in GenFds for wrongly handling '"' of command line parameter. 2. Provide different input parameter mode for different OS. For Linux, using a list. For Windows, using a string. 3. Remove 3 un-existing function calling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15847 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a13a624136bf2b278851316d8eae23611d93ad2 Author: Star Zeng Date: Wed Aug 20 07:05:55 2014 +0000 MdeModulePkg PeiCore: Add NULL pointer check. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15846 6f19259b-4bc3-4df7-8a09-765794883524 commit f95e6f6b00f800e7f36cc761d9048735d595f21e Author: Eric Dong Date: Wed Aug 20 04:31:22 2014 +0000 IntelFrameworkModulePkg/SourceLevelDebugPkg: Fix the typo about word “hanlde” Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15845 6f19259b-4bc3-4df7-8a09-765794883524 commit 4805b4b5ddf133ad75db9312cc6d63cd77b33215 Author: Yingke Liu Date: Wed Aug 20 02:26:07 2014 +0000 Fix an issue of building BaseTools from sources using VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Hauch, Larry Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15844 6f19259b-4bc3-4df7-8a09-765794883524 commit 64fabae54bf39a3b164e911b9d3ff6985dc66036 Author: Eric Dong Date: Wed Aug 20 02:06:12 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: improve coding style - The edk2 coding style prefers each variable declaration to stand on its own line. - Internal linkage (ie. STATIC) functions have caused problems with source level debugging before, so we generally avoid STATIC in MdePkg. - Even forward declarations of functions should carry full comment blocks. - Nullity checks in controlling expressions should be spelled out explicitly, as (Ptr != NULL). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15843 6f19259b-4bc3-4df7-8a09-765794883524 commit 30cad98e5fc4dfff73486b5b9e420a0a0b7a1bed Author: Qiu Shumin Date: Wed Aug 20 01:20:53 2014 +0000 ShellPkg: Fix typo in 'uni' files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15842 6f19259b-4bc3-4df7-8a09-765794883524 commit e7e0e42baca19cf7e5a7d2ac5574f97c0ecaf134 Author: Chris Phillips Date: Tue Aug 19 23:15:22 2014 +0000 ShellPkg: Move mHandleParsingHiiHandle init out of the constructor Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Signed-off-by: Eugene Cohen Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15841 6f19259b-4bc3-4df7-8a09-765794883524 commit deb21fd0ea32eee860768ae309bf4e06e7edaea9 Author: Chris Phillips Date: Tue Aug 19 23:05:44 2014 +0000 ShellPkg: Fixes for timezone handling and 'date -sfo' - Update 'date -sfo' format to match UEFI Shell 2.1 spec - Fixes to correctly initialize Second - Set correct sign when setting timezone with the 'time -tz' command. Now matches UEFI spec calculation of "Localtime = UTC - TimeZone" - Display "LOCAL" when TimeZone == EFI_UNSPECIFIED_TIMEZONE - Allow a timezone of '_local' to be provided by user - Better invalid command line checking Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15840 6f19259b-4bc3-4df7-8a09-765794883524 commit 98c16be5886b84740a0e8f68998fbeba749c5f62 Author: Jaben Carsey Date: Tue Aug 19 21:00:34 2014 +0000 ShellPkg: Refactor string manipulation in UefiShellLib command This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15839 6f19259b-4bc3-4df7-8a09-765794883524 commit 8af89dae12d88f8897763b12636ddb373cf2ed46 Author: Jaben Carsey Date: Tue Aug 19 20:58:03 2014 +0000 ShellPkg: Check while string up to space, not the character Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15838 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eb5b4f28b0f0d28ab844b7d444c822f90784978 Author: Olivier Martin Date: Tue Aug 19 13:36:36 2014 +0000 ArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15837 6f19259b-4bc3-4df7-8a09-765794883524 commit 743a2a550c9e77419968500216c9383296910ebf Author: Olivier Martin Date: Tue Aug 19 13:36:00 2014 +0000 ArmPlatformPkg/Scripts: Update the profiling script to work on AArch64 with the latest DS-5 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15836 6f19259b-4bc3-4df7-8a09-765794883524 commit 04ad241e2081312be62a9f299311949e85ed725c Author: Olivier Martin Date: Tue Aug 19 13:35:14 2014 +0000 ArmPkg/BdsLib: Prevent a hang in BdsConnectDevicePath() when a sub-device path is not found Some device paths were making BdsConnectDevicePath() hang. To prevent these hangs we check if the handle returned by gBS->LocateDevicePath() is the same after each iteration. An example of a device path that hangs: PciRoot(0x0)/Pci(0x1,0x0)/USB(0x0,0x0)/USB(0x3,0x0)/HD(...) The connect controller function manages to find PciRoot()/Pci(0x1,0x0) but the USB driver does not produce USB(0x0,0x0)/USB(0x3,0x0) and returns EFI_SUCCESS on its initialization. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15835 6f19259b-4bc3-4df7-8a09-765794883524 commit 5e6322a53066b59c3d351d6ce3e07e07cd08e8dd Author: Olivier Martin Date: Tue Aug 19 13:34:12 2014 +0000 ArmPlatformPkg/Bds: Fixed typo issue Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15834 6f19259b-4bc3-4df7-8a09-765794883524 commit 3402aac7d985bf8a9f9d3c639f3fe93609380513 Author: Ronald Cron Date: Tue Aug 19 13:29:52 2014 +0000 ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 commit 62d441fb17d59958bf00c4a1f3b52bf6a0b40b24 Author: Ronald Cron Date: Tue Aug 19 13:22:20 2014 +0000 ARM Packages: Corrected non-DOS line endings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15832 6f19259b-4bc3-4df7-8a09-765794883524 commit 01ce3538131437b2deae873ce5aeccf05951ebac Author: Hess Chen Date: Tue Aug 19 08:22:04 2014 +0000 This patch is going to fix a build failure (running of GenFds) in Linux system caused by patch at r15816. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15831 6f19259b-4bc3-4df7-8a09-765794883524 commit e62fa17c58044af3a31239efe8996701a5cd5cbc Author: Eric Dong Date: Tue Aug 19 08:10:09 2014 +0000 Clean up the useless code in DriverSampleDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15830 6f19259b-4bc3-4df7-8a09-765794883524 commit 17e95ca9a7ab5cbffd75700fe9516abc20239c2a Author: Eric Dong Date: Tue Aug 19 07:20:19 2014 +0000 Refine the code logic, use dynamic allocate buffer instead of static array to fix potential buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15829 6f19259b-4bc3-4df7-8a09-765794883524 commit 69c0fbd2c51739ea0fb4b9b4a4796b674e6d1d6e Author: Sergey Isakov Date: Tue Aug 19 05:37:28 2014 +0000 MdeModulePkg/PartitionDxe: Simplify the error handling of DriverBindingSupported(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15828 6f19259b-4bc3-4df7-8a09-765794883524 commit d5eea98e200c2f82d6ff4854d5539e71688fd514 Author: Eric Dong Date: Tue Aug 19 02:44:24 2014 +0000 Refine the comments for the function header. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15827 6f19259b-4bc3-4df7-8a09-765794883524 commit 3449f56dac9cb423d648e45d4fa514c509b0b724 Author: Jordan Justen Date: Mon Aug 18 23:04:24 2014 +0000 UefiCpuPkg: Add ResetVector/FixupVtf This implements the older VTF ResetVector code often used on EDK II IA32 & X64 platforms. This VTF requires build time fixups in order to find the SEC entry point. The BaseTools GenFv tool has code that patches the jump target of the reset vector code to match the entry point of the SEC image in the PEI Firmware Volume. v2: * Rename from OldVtf to FixupVtf * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15826 6f19259b-4bc3-4df7-8a09-765794883524 commit 70e46f44cd13337106036b67ac9f79b9e4237e79 Author: Jordan Justen Date: Mon Aug 18 23:04:12 2014 +0000 OvmfPkg/ResetVector: Remove pre-built binaries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15825 6f19259b-4bc3-4df7-8a09-765794883524 commit 497cbb530a582e3d93ae4819a8ae25cffc7e7c1d Author: Jordan Justen Date: Mon Aug 18 23:04:00 2014 +0000 OvmfPkg: Build OVMF ResetVector during EDK II build process Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15824 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b9fdbfa7059553f629a9adfe60e3e68971a4b46 Author: Jordan Justen Date: Mon Aug 18 23:03:53 2014 +0000 OvmfPkg: Support building OVMF's ResetVector during the EDK II build Using NASM we build OVMF's ResetVector as part of the EDK II build process. v2: * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15823 6f19259b-4bc3-4df7-8a09-765794883524 commit eee1d2ca9078742157c843562f1188eb96473322 Author: Jordan Justen Date: Mon Aug 18 23:03:46 2014 +0000 UefiCpuPkg VTF0 X64: Build page tables in NASM code Previously, we would build the page tables in Tools/FixupForRawSection.py. In order to let NASM build VTF0 from source during the EDK II build process, we need to move this into the VTF0 NASM code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15822 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a1f324d946cb1be2dc1226752b1965d6633232f Author: Jordan Justen Date: Mon Aug 18 23:03:30 2014 +0000 UefiCpuPkg: Support building VTF0 ResetVector during the EDK II build Using NASM we build VTF0 as part of the EDK II build process. v2: * Use EDK II extension of .nasmb rather than .nasmbin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15821 6f19259b-4bc3-4df7-8a09-765794883524 commit abb158ded41fffe92a6c0a4f6157d5153b011e00 Author: Jordan Justen Date: Mon Aug 18 23:03:17 2014 +0000 BaseTools: Add rules to build NASM source file into a binary v2: * Use EDK II tool name of NASMB rather than NASMBIN * Use EDK II extension of .nasmb rather than .nasmbin v3: * Create listing file * Don't change into source directory * Add ENV(NASM_PREFIX) before nasm for NASM_PATH Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15820 6f19259b-4bc3-4df7-8a09-765794883524 commit de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 Author: Daryl McDaniel Date: Mon Aug 18 23:00:50 2014 +0000 AppPkg/Applications/Python: Explicitly initialize variables before use to keep newer compilers happy. Explicitly initialize variables before any potential use. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15819 6f19259b-4bc3-4df7-8a09-765794883524 commit 838b31a68cba781fb64ae4deb97fa69b2ed6d4b8 Author: Chris Phillips Date: Mon Aug 18 20:00:08 2014 +0000 ShellPkg: Fix EFI_SHELL_PROTOCOL to contain new members from UEFI Shell 2.1 spec - Removes EFI_SHELL_PROTOCOL21 - Adds RegisterGuidName, GetGuidName, GetGuidFromName, and GetEnvEx to EFI_SHELL_PROTOCOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15818 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d8de12c31628da255155a544641ae7473581f04 Author: Gao, Liming Date: Mon Aug 18 05:43:06 2014 +0000 Update PeiCore to follow PI spec to retrieve GUIDED section data when ExtractionPpi is not found. Enhance PeiCore Security Policy to check AuthenticationStatus when SecurityPpi is not found. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15817 6f19259b-4bc3-4df7-8a09-765794883524 commit 03af27533236a08309b60ba1f3236234f3de46bc Author: Hess Chen Date: Mon Aug 18 04:59:01 2014 +0000 This patch is going to retire the top level makefile on BaseTools for supporting a pure binary build without any complier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15816 6f19259b-4bc3-4df7-8a09-765794883524 commit f5ba4007ae30597c5a8b5dde20f2e0bac3f4f7bc Author: Qiu Shumin Date: Mon Aug 18 00:48:22 2014 +0000 ShellPkg: Fix comments. Refine code style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15815 6f19259b-4bc3-4df7-8a09-765794883524 commit da03183cd0da9e0623990da1c525736598b9ca63 Author: Laszlo Ersek Date: Sat Aug 16 16:19:11 2014 +0000 MdePkg: library INF files should reference feature PCDs under [FeaturePcd] This patch updates users of PcdVerifyNodeInList and PcdValidateOrderedCollection. Suggested-by: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15814 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a650d1fd124b5b22787f2bde2c102e9f5e8e404 Author: Laszlo Ersek Date: Sat Aug 16 16:18:59 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: silence invalid VS2005 warnings VS2005 reports the following build failure: BaseOrderedCollectionRedBlackTreeLib.c(151) : warning C4244: 'return' : conversion from 'int' to 'BOOLEAN', possible loss of data BaseOrderedCollectionRedBlackTreeLib.c(840) : warning C4244: 'return' : conversion from 'int' to 'BOOLEAN', possible loss of data This is incorrect. The ISO C standard guarantees that the expressions in question can only return values 0 and 1, both of which can be represented by BOOLEAN (== UINT8, == unsigned char). Silence the incorrect warnings with explicit casts to BOOLEAN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15813 6f19259b-4bc3-4df7-8a09-765794883524 commit 75955444cb6a5d9a5e85775ec2e9a36aedec61c8 Author: Laszlo Ersek Date: Sat Aug 16 16:18:53 2014 +0000 MdePkg: BaseOrderedCollectionRedBlackTreeLib: silence invalid gcc warning Gcc-4.4 reports the following build failure: BaseOrderedCollectionRedBlackTreeLib.c: In function 'OrderedCollectionInsert': BaseOrderedCollectionRedBlackTreeLib.c:586: error: 'Result' may be used uninitialized in this function This is incorrect. There are two areas of use of Result to consider: - In the very first while loop. The warning is likely not about this code area, because Result is assigned directly before use. - The last use of Result in the function. The build warning / error is incorrect. For Result to be uninitialized at that point, the very first while loop must not have been entered at all (because that loop assigns a value to Result). However, if that loop is never entered, then Parent is still NULL. And Parent==NULL implies that the use of Result is never reached, because we jump to the Done label just before it. Assign an irrelevant value of 0 to Result at the beginning of the function in order to silence the incorrect warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15812 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ccef56102cc104ad0bc881f5312f84fb4e569ef Author: Dong, Guo Date: Fri Aug 15 08:10:55 2014 +0000 1) Update code to use PcdFixedUsbCredentialProviderTokenFileName and PcdMaxVariableSize as patchable PCD instead of FixedAtBuild PCD. 2) Correct a typo in file comments of Tpm12Ownership.c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15811 6f19259b-4bc3-4df7-8a09-765794883524 commit a4faf336ea8e87d0b46e54ea64ce19c8574b69e5 Author: Fu, Siyuan Date: Fri Aug 15 05:33:34 2014 +0000 Use string pointer instead string buffer to avoid string copy operation. Use CopyMem() to guarantee the NULL terminal will always be appended to the destination string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15810 6f19259b-4bc3-4df7-8a09-765794883524 commit 1be2ed90a20618d71ddf34b8a07d038da0b36854 Author: Hess Chen Date: Fri Aug 15 03:06:48 2014 +0000 There is a limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. There is an OS API provided by Microsoft to add “\\?\” before the path header to support the long file path. Enable this feature on basetools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15809 6f19259b-4bc3-4df7-8a09-765794883524 commit b8a13d736961faff0d11241a0428abc44a084d6e Author: Chris Phillips Date: Thu Aug 14 20:42:40 2014 +0000 ShellPkg: Fix EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_GUID to match UEFI Shell 2.1 spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15808 6f19259b-4bc3-4df7-8a09-765794883524 commit 281b6b928d7490134d83e643c42092835309b9bc Author: lhauch Date: Thu Aug 14 20:22:33 2014 +0000 Roll-back from an accidental commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15807 6f19259b-4bc3-4df7-8a09-765794883524 commit ea648887161f34781135009a72f8e101b0110c40 Author: lhauch Date: Thu Aug 14 20:20:37 2014 +0000 Change svn:mime-type property on all Unicode files (extension .uni) in edk2 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Samer El-Haj-Mahmoud git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15806 6f19259b-4bc3-4df7-8a09-765794883524 commit c9df168fa0e1a797c72ee7eab2ec0cbfc3c5174b Author: Michael Kinney Date: Thu Aug 14 20:08:17 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: lhauch Fix the behavior of the –version flag in the Rsa2048Sha256 tools and update logic for showing program name, version, usage, and copyright information to match other BaseTools. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15805 6f19259b-4bc3-4df7-8a09-765794883524 commit e8a57ade2adbdb7830290c44bccd5b7137c80c09 Author: Jaben Carsey Date: Thu Aug 14 17:58:16 2014 +0000 ShellPkg add size cast to bit operations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15804 6f19259b-4bc3-4df7-8a09-765794883524 commit 83d1ffb92f165547d750586ef954c54f59b7fab3 Author: Gao, Liming Date: Thu Aug 14 14:30:32 2014 +0000 PcAtChipsetPkg: new AcpiTimerLib libraries. Two library instances are added to support BASE type and DXE type. Those libraries provides basic timer support using the ACPI timer hardware. The performance counter features are provided by the processors time stamp counter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15803 6f19259b-4bc3-4df7-8a09-765794883524 commit f61d69cc4425450450bf2b62a784a038b9bb8073 Author: Long, Qin Date: Thu Aug 14 10:16:57 2014 +0000 OpenSSL 0.9.8zb was released at 06-Aug-2014, including bug and security fixes. This patch is to catch the latest OpenSSL release. NOTE: The content of EDKII_openssl-0.9.8zb.patch is same with the old EDKII_openssl-0.9.8za.patch, and the extra changes are only name / directory modifications. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15802 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a53a034ec75671b66247597c0f948f8dc29e33b Author: Michael Kinney Date: Thu Aug 14 06:31:34 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Dong, Guo Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15801 6f19259b-4bc3-4df7-8a09-765794883524 commit 65ce860e494eb6d2b84eebf90b0774353f1f755a Author: Michael Kinney Date: Thu Aug 14 06:30:10 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Yingke Liu Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15800 6f19259b-4bc3-4df7-8a09-765794883524 commit a402e1292443f76486c8ab3cd011221e28a00c7d Author: Michael Kinney Date: Thu Aug 14 06:29:07 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Feng Tian Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg. The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID. MdePkg/Include/Guid/WinCertificate.h ================================= // // WIN_CERTIFICATE_UEFI_GUID.CertType // #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \ {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } } /// /// WIN_CERTIFICATE_UEFI_GUID.CertData /// typedef struct { EFI_GUID HashType; UINT8 PublicKey[256]; UINT8 Signature[256]; } EFI_CERT_BLOCK_RSA_2048_SHA256; MdePkg/Include/Protocol/Hash.h ================================= #define EFI_HASH_ALGORITHM_SHA256_GUID \ { \ 0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \ } The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region. While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase. I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers. Patch Summary ============== 1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256Sign -e|-d [options] positional arguments: input_file specify the input filename optional arguments: -e encode file -d decode file -o filename, --output filename specify the output filename --private-key PRIVATEKEYFILE specify the private key filename. If not specified, a test signing key is used. -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities. a. Wrapper for a set of OpenSsl command line utility operations b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. usage: Rsa2048Sha256GenerateKeys [options] optional arguments: -o [filename [filename ...]], --output [filename [filename ...]] specify the output private key filename in PEM format -i [filename [filename ...]], --input [filename [filename ...]] specify the input private key filename in PEM format --public-key-hash PUBLICKEYHASHFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in binary format --public-key-hash-c PUBLICKEYHASHCFILE specify the public key hash filename that is SHA 256 hash of 2048 bit RSA public key in C structure format -v, --verbose increase output messages -q, --quiet reduce output messages --debug [0-9] set debug level --version display the program version and exit -h, --help display this help text 3) BaseTools\Conf\tools_def.template a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID c. Tool is Rsa2049Sha256Sign 4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components 5) MdeModulePkg\Universal\SectionExtractionPei a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs 6) MdeModulePkg\Universal\SectionExtractionDxe a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols. 7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. 8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg. b. Based on algorithms from SecurityPkg Authenticated Variable services c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15799 6f19259b-4bc3-4df7-8a09-765794883524 commit fe7819402c285c2d006b79eb66981673fedf3d04 Author: Zeng, Star Date: Thu Aug 14 05:55:08 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg: Update PeiCore, SmbiosDxe and IsaSerialDxe to use PcdGetxx() instead of FixedPcdGetxx(). It changes some of the PCD declarations to add more supported PCD storage types and the change in the PCD access methods is associated with that. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zeng, Star Reviewed-by: Kinney, Michael D Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15798 6f19259b-4bc3-4df7-8a09-765794883524 commit a1360fa3de6dade1b9d204284356df52bc58e801 Author: Jeff Fan Date: Thu Aug 14 02:00:11 2014 +0000 Use StrnCat instead of StrCat to avoid target buffer overflow. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15797 6f19259b-4bc3-4df7-8a09-765794883524 commit 74a6d86079793bbd53e4d4fd67e6c3d1477f59fa Author: Gao, Liming Date: Wed Aug 13 08:39:54 2014 +0000 Add the missing parameter comments for BaseSerialPortLib16550 lib. MdePkg: Fix Clang build failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15796 6f19259b-4bc3-4df7-8a09-765794883524 commit ea5396f31a8db7344177b4dd5335ebd617861d58 Author: Ruiyu Ni Date: Wed Aug 13 06:31:08 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15795 6f19259b-4bc3-4df7-8a09-765794883524 commit c687b1464bb42a3c2d3eb2935ddd09752c6d2f2a Author: Ruiyu Ni Date: Wed Aug 13 06:18:06 2014 +0000 Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15794 6f19259b-4bc3-4df7-8a09-765794883524 commit df6bd1b65c15cb03a6aca59e477611d91608181c Author: Ruiyu Ni Date: Wed Aug 13 03:28:35 2014 +0000 Add UINT64 type cast when AND/OR with UINT64 Supports. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15793 6f19259b-4bc3-4df7-8a09-765794883524 commit 424d84556d4dfe3b05af00c06fd5d3480dccb111 Author: Laszlo Ersek Date: Tue Aug 12 07:29:17 2014 +0000 AppPkg: introduce OrderedCollectionTest In this patch a small application is added to AppPkg, with the following two goals: - demonstrate how to use OrderedCollectionLib, - allow users to test and "fuzz" BaseOrderedCollectionRedBlackTreeLib in particular, entering API "commands" interactively, or providing them from a script file. A shell script is included that generates such an API command script. Speaking about BaseOrderedCollectionRedBlackTreeLib specifically, OrderedCollectionTest validates the internal red-black properties of the tree after each read-write operation by setting the PcdValidateOrderedCollection feature flag to TRUE. The OrderedCollectionTest application's debugging environment is strictly specified in the DSC file, because OrderedCollectionTest is entirely useless for unit testing without full ASSERT() enablement. The OrderedCollectionTest application deliberately doesn't follow the edk2 coding style in the following: - const vs. CONST, - void vs. VOID, - assert() vs. ASSERT(), - calloc() and free() vs. AllocateZeroPool() and FreePool(), - integer types. This is because OrderedCollectionTest is a standard C application, not a UEFI application per se. In particular it relies on stdio. INTN, EFIAPI and CONST VOID are used only in two places, where we provide the comparator callbacks to OrderedCollectionLib. Proper range checking is ensured for integers. The application takes command input from stdin or a file (if the user requests it), sends command output to stdout or a file (if the user requests it), prints debug output to the console (as other AppPkg applications do when debugging is enabled for them), and prints diagnostics to stderr (like well behaved standard C programs should). Input/output selection is implemented manually because the old shell doesn't support input redirection at all, and because the new shell's input redirection does not co-operate with fgets() for the time being. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15792 6f19259b-4bc3-4df7-8a09-765794883524 commit cf556c6a587462cf916272597b34b9951279e7b6 Author: Laszlo Ersek Date: Tue Aug 12 07:29:04 2014 +0000 MdePkg: introduce BaseOrderedCollectionRedBlackTreeLib library instance edk2 should have a fast and easy-to-use associative array (a dictionary) type. Red-black trees have O(log(n)) worst case time complexity for lookup, insertion, and deletion (where n is the number of nodes in the tree). They support minimum and maximum lookup with the same time complexity, hence red-black trees double as priority queues as well. Given an iterator to a red-black tree node, getting the next or previous node (which corresponds to the ordered successor or the predecessor, respectively, according to the user-defined ordering) is O(log(n)) as well. The code reflects the Binary Search Trees and Red-Black Trees chapters of Introduction to Algorithms, by Cormen, Leiserson, Rivest. One point where the implementation diverges is the first phase of the Delete() operation. During that phase, the book's algorithm copies the key and other business *contents* of the successor node (in case the successor node is affected), and releases the successor node (instead of the node that the user requested to delete). While semantically correct, this would break the above iterator validity guarantee. This implementation replaces the copying of business contents between nodes with suitable relinking of nodes, so that all iterators (except the one whose deletion is being requested) remain valid. I had written this code originally in approx. 2002. I personally own the copyright of that version and am hereby relicensing it to Red Hat, under the BSDL. I had used the original code in a few personal projects since, for example in the lbzip2-0.x parallel (de)compressor, and now I've ported the library to edk2. Both during the original implementation and now during the porting I verified all the cases and their proofs as rigorously as I could, on paper. (NB, I couldn't find any errors in the 2002 code now.) During the porting to edk2, I documented all those cases in code comments as well (at least half of the source is documentation). These comments are not blind copies of diagrams from the Algorithms book, nor are they copies from my original code -- I've done them all fresh now, and I've only matched the results against the book. Reviewers are invited to sit down with a pen, some paper, the book, and the code. The Validate() function verifies the internal red-black properties of the tree. This function helps with unit testing, and is only invoked when requested with the PcdValidateOrderedCollection feature flag. A note about diagrams: edges represented by backslash (\) characters are often written as "\_", ie. with a following underscore. This is because line-trailing backslashes are processed very early in compilation (in translation phase 2), "splicing physical source lines to form logical source lines". Since the edk2 coding style requires "//" comments for such documentation, a trailing backslash would splice the next physical line into the "scope" of the comment. To prevent this, trailing backslashes are defanged by appending underscores, which should be visually bearable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15791 6f19259b-4bc3-4df7-8a09-765794883524 commit 250e4b0db1dd1755cc8785b1830b9c13f29aca8b Author: Kinney, Michael D Date: Tue Aug 12 07:28:52 2014 +0000 MdePkg: introduce OrderedCollectionLib library class This library class provides a set of APIs to manage an ordered collection of items: - Init(), - UnInit(), - Insert(), - Delete(), - IsEmpty(), - Next(), - Prev(), - Min(), - Max(), - Find(), - UserStruct(). There are many ways to implement an ordered collection. Depending on the frequency of the different actions, different internal implementations may have different performance, memory overhead, or code size. Developers can select the library instance for a platform or module in their DSC files that meets the needs of that platform or module. Commit-message-from: "Kinney, Michael D" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15790 6f19259b-4bc3-4df7-8a09-765794883524 commit 79966a6f35bcf374b80762e33bc47a1ad806ffc5 Author: Elvin Li Date: Tue Aug 12 05:19:34 2014 +0000 Fixed a bug in LegacyBiosDxe to allocate correct ranges of memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15789 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e684d3ca46cf93fbd767036ed75bd234edcb5df Author: jyao1 Date: Tue Aug 12 03:31:47 2014 +0000 Correct StrnCat length calculation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15788 6f19259b-4bc3-4df7-8a09-765794883524 commit 6c8cfb0751bd64020495f065407cae0b7c3dd6ce Author: Star Zeng Date: Tue Aug 12 01:41:25 2014 +0000 MdeModulePkg PeiCore: The DEBUG message (for HeapOffset and StackOffset) should be placed after HeapOffset is got. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15787 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f347d0f0a0db643c5ec134481aeab0232127ae2 Author: Laszlo Ersek Date: Mon Aug 11 22:00:01 2014 +0000 StdLib/LibC/Stdio: fix "missing braces around initializer" The member "fext._ub" is a structure (of type "struct __sbuf"), and the current initializer triggers StdLib/LibC/Stdio/vswscanf.c: In function 'vswscanf': StdLib/LibC/Stdio/vswscanf.c:75:10: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/Stdio/vswscanf.c:75:10: error: (near initialization for 'fext._ub') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15786 6f19259b-4bc3-4df7-8a09-765794883524 commit 599aa11f870264f6d86f3e1451afb6de07be1758 Author: Laszlo Ersek Date: Mon Aug 11 21:59:53 2014 +0000 StdLib/LibC/gdtoa: fix "missing braces around initializer" The member "u.L" is an array, and the current initializer triggers StdLib/LibC/gdtoa/strtof.c: In function '_strtof': StdLib/LibC/gdtoa/strtof.c:53:9: error: missing braces around initializer [-Werror=missing-braces] StdLib/LibC/gdtoa/strtof.c:53:9: error: (near initialization for 'u.L') [-Werror=missing-braces] cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15785 6f19259b-4bc3-4df7-8a09-765794883524 commit 1be8039054d81cd5e5f602a6f3cd13a062cc2900 Author: Gao, Liming Date: Mon Aug 11 07:05:49 2014 +0000 MdePkg: Fix Clang build failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15784 6f19259b-4bc3-4df7-8a09-765794883524 commit 31122d8c9ac34b8936cf09649cad6a8cbc93bbb9 Author: Gao, Liming Date: Mon Aug 11 06:38:28 2014 +0000 MdeModulePkg: BaseSerialPortLib16550 library to support PCI UART device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15783 6f19259b-4bc3-4df7-8a09-765794883524 commit 883e23d0d31205ce016d86d671704c198a47b204 Author: Gao, Liming Date: Mon Aug 11 06:23:51 2014 +0000 MdeModulePkg: new PlatformHookLib library with depex of SerialPortPpi. This library has one depex of SerialPortPpi. Then, the PEIM linked it has this depex so that it is dispatched after SerialPortPpi is installed. SerialPortPpi notifies the platform initialization done, then serial port will work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15782 6f19259b-4bc3-4df7-8a09-765794883524 commit 9bc250419d5125b657986ff43bc4ba9782f58571 Author: Gao, Liming Date: Mon Aug 11 05:40:40 2014 +0000 MdeModulePkg: DxeCore If GUIDED section has AUTH attribute only, DxeCore may wrongly set its AuthenticationStatus to 0 when its matched GUIDED extraction handler is not installed and Auth data is not verified. For this case, the return AuthenticationStatus should be EFI_AUTH_STATUS_NOT_TESTED. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Kinney, Michael D Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15781 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a228334f067bab982a9c2a5c952192b45a06e57 Author: Elvin Li Date: Fri Aug 8 09:10:57 2014 +0000 Added SMBIOS 2.8.0 updates. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15780 6f19259b-4bc3-4df7-8a09-765794883524 commit ff8ad584f3cc2e7475cd80495d45b5fbca00ec4f Author: Chen Fan Date: Fri Aug 8 07:50:21 2014 +0000 SourceLevelDebugPkg/DebugAgent: fix trivial typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15779 6f19259b-4bc3-4df7-8a09-765794883524 commit 1a45b15eae48d9bf498daf5b0c0771659d75faa2 Author: Jeff Fan Date: Fri Aug 8 05:52:01 2014 +0000 Add type cast on variable before operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15778 6f19259b-4bc3-4df7-8a09-765794883524 commit 31fc7b4d6a86e13687d57bd330a1e3e125ba1b94 Author: Jeff Fan Date: Fri Aug 8 05:51:21 2014 +0000 Add type cast on variable before operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15777 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ca7b36631dc6a241a6cff9539079da7628ccbe0 Author: Eric Dong Date: Fri Aug 8 03:20:29 2014 +0000 Clean the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15776 6f19259b-4bc3-4df7-8a09-765794883524 commit 954894f270e274269c914f09bce4e287273a99c1 Author: jyao1 Date: Fri Aug 8 02:15:41 2014 +0000 Rollback file GUID change, because it is VTF file and GUID is predefined. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Chris Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15775 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d1f4c621dd3a1ebc55394a24ff6695d39e0d95b Author: Andrew Fish Date: Fri Aug 8 00:57:50 2014 +0000 clang warns on guard macro not matching in .h file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15774 6f19259b-4bc3-4df7-8a09-765794883524 commit 2922e29ad86c1bb7b5e53e65eaf0098d866310d7 Author: Fu, Siyuan Date: Fri Aug 8 00:41:14 2014 +0000 Update network stack code to use StrnCpy instead of StrCpy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Dong, Eric Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15773 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f9bafeea6adcd690d899a58db9c1dd1b048df38 Author: jyao1 Date: Fri Aug 8 00:21:18 2014 +0000 Correct AsciiStrnCpy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15772 6f19259b-4bc3-4df7-8a09-765794883524 commit e1044f8074836b74188a2371ba70be05d0e0482b Author: Jaben Carsey Date: Thu Aug 7 20:02:40 2014 +0000 ShellPkg: Refactor string manipulation in cp command This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means. This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15771 6f19259b-4bc3-4df7-8a09-765794883524 commit 6e1e5405544724406f07344a5911298c3df44129 Author: Feng Tian Date: Thu Aug 7 08:54:34 2014 +0000 1) Add type cast for better coding style. 2) replace StrCpy() usage in Variable driver with StrnCpy(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15770 6f19259b-4bc3-4df7-8a09-765794883524 commit e935092fa7e1401201e6faadb04b0ae239dd97a5 Author: Qiu Shumin Date: Thu Aug 7 08:32:54 2014 +0000 Add type cast for better coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15769 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e24145420fc1c4d38ca22437bec44ee32d1465b Author: qlong Date: Thu Aug 7 07:56:31 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Long Qin Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15768 6f19259b-4bc3-4df7-8a09-765794883524 commit 86110f65ab7bcd9ce738d2bb56dff2e1373b7b1e Author: Eugene Cohen Date: Thu Aug 7 07:44:37 2014 +0000 Fix OpensslLib build issue for ARM. The changes are: The changes are: 1. Add RVCT ARM build target 2. Add suppression of warnings to get openssl building (1295,550,1293,111,68,177,223,144,513,188) 3. Remove architectures that RVCT cannot build for (IA32, X64, and IPF) 4. Add the -DOPENSSL_NO_MD2 flag to prevent link errors from MD2 references; the comments in the .inf assumes that this flag exists but it wasn’t actually set Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15767 6f19259b-4bc3-4df7-8a09-765794883524 commit 58dbfc3c0fb3ceb3ebbbbe57fa745275f1d9cd03 Author: jyao1 Date: Thu Aug 7 05:03:10 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15766 6f19259b-4bc3-4df7-8a09-765794883524 commit b04aba1773d313e50383b11acc599242c2723986 Author: Daryl McDaniel Date: Wed Aug 6 18:29:02 2014 +0000 StdLib: The formatting for double float values, within the gdtoa library, is improper. When running Enquire.efi, several errors similar to the following are produced: Maximum exponent = 128 Maximum number = 3.40282347e+38 *** WARNING: Possibly bad output from printf above expected value around 3.40282347e38, bit pattern: 11111111 11111111 01111111 01111111 sscanf gave -inf, bit pattern: 00000000 00000000 10000000 11111111 difference= inf Overflow doesn’t seem to generate a trap The memory allocation tests will also fail, sometimes leaving all available memory consumed. The correct output in the above example is: Maximum exponent = 128 Maximum number = 3.40282347e+38 Overflow doesn't seem to generate a trap The root cause is that all operations on values of Long or ULong type, within the gdtoa library, must be 32-bit operations. A previous change replaced the Long and ULong definitions with INTN and UINTN, respectively. While this is correct for a lot of Linux and NetBSD code, it was not correct for this library. This fix reverts the definitions of ULong and Long back to 32-bit types. A descriptive comment has also been added to the U union. Additional white-space has been added to tidy up the definitions of the word0 and word1 macros. Verified with Enquire.efi and the ISO/IEC C Library compliance Validation Suite. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15765 6f19259b-4bc3-4df7-8a09-765794883524 commit 09fd5328a48faf4f4dfda78015842317cd41c98c Author: Jaben Carsey Date: Wed Aug 6 16:18:38 2014 +0000 Updates the UEFI Shell to produce the new protocol with additional 4 functions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15764 6f19259b-4bc3-4df7-8a09-765794883524 commit 7aae3c355fda9d4548983edfdd27e0460fb9376c Author: Jaben Carsey Date: Wed Aug 6 16:17:42 2014 +0000 ShellPkg: add size cast to bit operations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15763 6f19259b-4bc3-4df7-8a09-765794883524 commit a81fcd30c1aff139f0007c277c49c52bf55c303c Author: jyao1 Date: Wed Aug 6 13:27:14 2014 +0000 Eliminate duplicated file GUID. Eliminate duplicate GUID definition. Do explicit data cast. Use StrnCpy instead of StrCpy. Update GCC assembly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15762 6f19259b-4bc3-4df7-8a09-765794883524 commit e7a8edfdf6128729737ec9eda360689a972b7c27 Author: Jaben Carsey Date: Tue Aug 5 23:26:51 2014 +0000 ShellPkg: Remove double typedef for same struct Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15761 6f19259b-4bc3-4df7-8a09-765794883524 commit 477a79e1eb9cb9fbb035c633bc06144e5e87baed Author: Jaben Carsey Date: Tue Aug 5 23:17:18 2014 +0000 Updates the logic to allow devices to support SFO output mode Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15760 6f19259b-4bc3-4df7-8a09-765794883524 commit ae315cc26984d308dbe07b8e01dea7c56a78f79d Author: Jaben Carsey Date: Tue Aug 5 23:16:39 2014 +0000 Fix the use of ASSERT and other fixes to memory allocation failures (like free before return for errors) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15759 6f19259b-4bc3-4df7-8a09-765794883524 commit c12383d5ea53e0a82577a45afaccb16761528541 Author: Jaben Carsey Date: Tue Aug 5 20:57:08 2014 +0000 Updates the total size logic and the SFO output per UEFI Shell 2.1 changes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15758 6f19259b-4bc3-4df7-8a09-765794883524 commit 9954df7b634358be430fa738f89334386b2a1860 Author: Jaben Carsey Date: Tue Aug 5 20:56:40 2014 +0000 Updates the logic to allow DmpStore to specify a name independent of specifying a GUID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15757 6f19259b-4bc3-4df7-8a09-765794883524 commit cab102c36bac10af35cbcdf8cf2fb5aa931f2953 Author: Jaben Carsey Date: Tue Aug 5 20:56:07 2014 +0000 Updates the logic to allow help to ouput help information from a dynamic shell command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15756 6f19259b-4bc3-4df7-8a09-765794883524 commit a737ea734b9d64d6b10e399d5d0a8539604decdd Author: Jaben Carsey Date: Tue Aug 5 20:55:36 2014 +0000 Updates the logic to allow RM and CP to have silent/quiet mode work successfully. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Lee Rosenbaum git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15755 6f19259b-4bc3-4df7-8a09-765794883524 commit cf812a204c2d3fbf50cae81995bc17bae93e28e9 Author: Jaben Carsey Date: Tue Aug 5 20:09:25 2014 +0000 This searches for handles that produce the dynamic command protocol after searching the commands compiled into the shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Eugene Cohen Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15754 6f19259b-4bc3-4df7-8a09-765794883524 commit 6306fd90b7056d69ea4519afc25121cc5bc9bce9 Author: Jaben Carsey Date: Tue Aug 5 18:03:49 2014 +0000 ShellPkg: Add Dynamic GUID registration into the current GUID<->String conversion process Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15753 6f19259b-4bc3-4df7-8a09-765794883524 commit 044ea4e54e0d2992d55582b6cfcb5d24156ae65d Author: Jaben Carsey Date: Tue Aug 5 17:52:18 2014 +0000 This adds the new APIs for UEFI Shell 2.1 and makes a new structure for shell implementations that are conformant to this new spec. It does not affect existing implementations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15752 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ce0e51851258a30f9cb148502edcb67a82cac16 Author: jyao1 Date: Tue Aug 5 03:59:56 2014 +0000 Eliminate duplicated file GUID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15751 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a1eb97d376a7d0539767f24bc37626745eb5575 Author: Jaben Carsey Date: Mon Aug 4 21:17:17 2014 +0000 ShellPkg: Add new UEFI Shell 2.1 protocol and fix comments in handle parsing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15750 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a6ac65dddb2d4cb4fa0abc130de63ee8073dc42 Author: Jaben Carsey Date: Mon Aug 4 20:28:55 2014 +0000 ShellPkg: Fix comments Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15749 6f19259b-4bc3-4df7-8a09-765794883524 commit b4e53e389d2a04678fb28bc445cd5b554bb175e0 Author: Olivier Martin Date: Mon Aug 4 14:18:13 2014 +0000 ArmPkg/ArmSmcLib: Fixed SMC helper functions The SMC helper functions were buggy as they were assuming that the values in x1-x7 registers were preserved across an SMC call, which is not the case. This patch fixes this issue. It also simplifies the code by providing only 1 version of the SMC helper function. We used to have 4 versions depending on the number of arguments. The problem with this approach was that the number of arguments also dictated the number of return values, which is completely unrelated. E.g. you can have an SMC call that takes 1 argument but returns 4 values. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15748 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a9dd4e8393177a48e5d8a773ce8aa42566045b9 Author: Olivier Martin Date: Mon Aug 4 14:12:57 2014 +0000 ArmPkg/IndustryStandard/ArmStdSmc.h: Update Standard Service SMC Calls Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15747 6f19259b-4bc3-4df7-8a09-765794883524 commit 48a42a1c701071632aa0180640fd2390e30abc01 Author: jyao1 Date: Mon Aug 4 13:32:52 2014 +0000 Add missing ACPI5.1 table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15746 6f19259b-4bc3-4df7-8a09-765794883524 commit 87280982b803cebd4b47980ec09eaa45a13d7676 Author: Harry Liebel Date: Mon Aug 4 08:44:11 2014 +0000 BaseTools: Add AArch64 ADR_PREL_LO21 and R_AARCH64_CONDBR19 relocations - ADR_PREL_LO21: support for loading a PC relative label offset. - R_AARCH64_CONDBR19: support for conditional branch instruction (ELF64 code: 280). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Signed-off-by: Olivier Martin Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15745 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a00645100049d31dd8937b0ada6db40e56fe2c6 Author: jyao1 Date: Mon Aug 4 08:24:27 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15744 6f19259b-4bc3-4df7-8a09-765794883524 commit a0e0fb6d9fa37f430c483c04e6333e3c32308a56 Author: jyao1 Date: Mon Aug 4 06:34:41 2014 +0000 Clean up code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15743 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e07e87fe4c12718101b592bf8c88a9447fc0965 Author: Fu, Siyuan Date: Mon Aug 4 01:28:26 2014 +0000 The pointer argument should be set to NULL if not used not FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15742 6f19259b-4bc3-4df7-8a09-765794883524 commit 35d74819a0d07eca1705bced5aafa238961a2ae2 Author: Harry Liebel Date: Mon Aug 4 01:26:57 2014 +0000 The pointer argument should be set to NULL if not used not FALSE. FALSE evaluates to 0. This was flagged by LLVM compiler as a warning: "expression which evaluates to zero treated as a null pointer constant of type 'EFI_MTFTP4_OVERRIDE_DATA *' [-Wnon-literal-null-conversion]" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-By: Fu, Siyuan Reviewed-By: Ye, Ting (ting.ye@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15741 6f19259b-4bc3-4df7-8a09-765794883524 commit a9e61a2511e93c0e7392f3a4837651876ab00e44 Author: Qiu Shumin Date: Mon Aug 4 01:06:19 2014 +0000 Update the en-US definition in 'UefiShellInstall1CommandsLib.uni', 'UefiShellLevel1CommandsLib.uni', 'UefiShellLevel3CommandsLib.uni' and 'UefiShellNetwork1CommandsLib.uni' to make them consistent. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15740 6f19259b-4bc3-4df7-8a09-765794883524 commit ae19003981f8d9c11a14a48f4f0e511eab5bb995 Author: Olivier Martin Date: Fri Aug 1 18:35:29 2014 +0000 ArmPlatformPkg/Bds: Signal EndOfDxe PI Event Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15739 6f19259b-4bc3-4df7-8a09-765794883524 commit 90152e593bf0f77c6cd01e08118e3c74dd8ee508 Author: Olivier Martin Date: Fri Aug 1 18:34:20 2014 +0000 EmbeddedPkg: FDT Configuration Table GUID Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15738 6f19259b-4bc3-4df7-8a09-765794883524 commit c3b6d97563982940a2af26671c371998684a2fd9 Author: Olivier Martin Date: Fri Aug 1 18:33:17 2014 +0000 ArmPlatformPkg: Removed the global ImageHandle when UefiBootServicesTableLib is included UefiBootServicesTableLib already defines gImageHandle that has been initialized with the value of ImageHandle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15737 6f19259b-4bc3-4df7-8a09-765794883524 commit d8162fb5aad91c4b6745acd6b706a95b5c7522ee Author: lhauch Date: Fri Aug 1 18:11:32 2014 +0000 CodeModule: BaseTools - tools_def.txt VS2010, VS2010x86, VS2012 and VS2012x86 update locations for rc.exe tool This change will point to the correct location of the rc.exe tool. RC.exe is used for building UEFI compliant drivers that must have a UEFI_HII_RESOURCE_SECTION generated as part of the .efi image file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Gao, Liming Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15735 6f19259b-4bc3-4df7-8a09-765794883524 commit ffbc792ce5edf8ec6250c9808dc4bcad8cfd08b8 Author: Elvin Li Date: Fri Aug 1 05:08:40 2014 +0000 MdeModulePkg: Fix wrong check for SetAttribute in Consplitter Original code check if Attribute > 0x7FFFFFFF, this is wrong and fail to check valid case per UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15734 6f19259b-4bc3-4df7-8a09-765794883524 commit cebd6ef9048067ab53ab03e344f9df2cb506080d Author: Eric Dong Date: Fri Aug 1 04:44:16 2014 +0000 Support --version command line for VfrCompile Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15733 6f19259b-4bc3-4df7-8a09-765794883524 commit 46737a64d0e8f5dcc525973d3313f95920155265 Author: Chen Fan Date: Fri Aug 1 02:45:45 2014 +0000 IntelFrameworkModulePkg BdsLib: Fix potential memory leak when calling BdsLibGetVariableAndSize Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15732 6f19259b-4bc3-4df7-8a09-765794883524 commit e66e86ee2d090e4e372419ef4eb137ece874d99c Author: Jaben Carsey Date: Thu Jul 31 18:07:43 2014 +0000 ShellPkg: Add new dynamic command protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15731 6f19259b-4bc3-4df7-8a09-765794883524 commit a31a3b4a3e16d10fee4bac2fc56eee24cd1a90a4 Author: Chen Fan Date: Thu Jul 31 15:45:27 2014 +0000 EmulatorPkg/Mpservice: Add StateLock where missing Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15730 6f19259b-4bc3-4df7-8a09-765794883524 commit 0dd40e14605814cc661da77ae4102c425cc4476c Author: Chen Fan Date: Thu Jul 31 15:45:21 2014 +0000 EmulatorPkg/Mpservice: Remove StackLock for Info.StateFlag Maybe we should add another lock for Info.StateFlag in the future rather than StackLock. at here, we get rid of it first. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15729 6f19259b-4bc3-4df7-8a09-765794883524 commit f9032449e84e8d85ee1af02f0ddc0c2880446cac Author: Chen Fan Date: Thu Jul 31 15:45:13 2014 +0000 EmulatorPkg/Mpservice: Remove addressof operator Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15728 6f19259b-4bc3-4df7-8a09-765794883524 commit e143c9e30c170cb49d287ab86a4478d926b99bf7 Author: Chen Fan Date: Thu Jul 31 15:45:04 2014 +0000 EmulatorPkg/Mpservice: CpuCheckAllAPsStatus: ProcedureLock => StateLock Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15727 6f19259b-4bc3-4df7-8a09-765794883524 commit f4a8ab280e061e80f43c37f272eb6e52ccb6ff96 Author: Laszlo Ersek Date: Thu Jul 31 15:44:52 2014 +0000 OvmfPkg/Csm/CsmSupportLib: fix "missing braces around initializer" Recent BaseTools changes trigger this gcc warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15726 6f19259b-4bc3-4df7-8a09-765794883524 commit 5967886d58e4ac7d46e0c6b7cc34fd9ba94fd6d1 Author: Laszlo Ersek Date: Thu Jul 31 15:44:43 2014 +0000 ShellPkg: UpdateStdInStdOutStdErr(): append BOM to new unicode file The >> operator redirects stdout to a file, using append mode and unicode encoding. Write the BOM when redirection happens to a new file (which starts out empty). This makes the >> operator behave similarly to the > operator, when the redirection target doesn't exist originally: OutUnicode && OutAppend && FileSize == 0 // >> to new unicode file vs. OutUnicode && !OutAppend // > to any unicode file (Note that (FileSize == 0) is equivalent to "new file" in this context, due to the earlier "Check that filetypes (Unicode/Ascii) do not change during an append".) Reported-by: Lowell Dennis Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15725 6f19259b-4bc3-4df7-8a09-765794883524 commit 94c2a04449a13ae76ad1f337b4e0db91cb6bd144 Author: Laszlo Ersek Date: Thu Jul 31 15:44:30 2014 +0000 ShellPkg: UpdateStdInStdOutStdErr(): extract WriteFileTag() Drop TagBuffer in the process. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15724 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a8e175b3329b9a31f937a67e1394653d8d587c4 Author: Eric Dong Date: Thu Jul 31 08:24:13 2014 +0000 Update vfr format for orderedlist opcode to consistent with other opcode, also compatible with old format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15723 6f19259b-4bc3-4df7-8a09-765794883524 commit 537bc124007a852b2c3b00cda91bad43f4045692 Author: Wang, Yu Date: Thu Jul 31 06:14:01 2014 +0000 Add VS2013 tool chain in BaseTools\Conf\tools_def.template. Also, two issues came up related to vs2013 build and caused the build to fail. Vs2013 issue #1: warning message about uninitialized variables or pointers like this: s:\incbld\ia32\intelframeworkmodulepkg\bus\isa\isabusdxe\isabus.c(395) : warning C4701: potentially uninitialized local variable 'DevicePathData' used s:\incbld\ia32\intelframeworkmodulepkg\bus\isa\isabusdxe\isabus.c(395) : warning C4703: potentially uninitialized local pointer variable 'DevicePathData' used LINK : fatal error LNK1257: code generation failed The following online messages shows discussions related to this vs2013 issue and how Microsoft engineer responded. They suggest a work around by adding the initialization for the variables. https://connect.microsoft.com/VisualStudio/feedback/details/816730/bogus-warning-from-vs-2013 Vs2013 issue #2: C:\Program Files\Windows Kits\8.1\include\um\winnt.h(5105) : error C2220: warning treated as error - no 'object' file generated C:\Program Files\Windows Kits\8.1\include\um\winnt.h(5105) : warning C4005: 'InterlockedCompareExchange64' : macro redefinition This happened for Nt32Pkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang, Yu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15722 6f19259b-4bc3-4df7-8a09-765794883524 commit d81c462d612d05ffdbafd5f6678f83b0f5fcfed2 Author: Elvin Li Date: Thu Jul 31 03:21:39 2014 +0000 MdeModulePkg: Removed valid text mode check in SetAttribute interface in GraphicsConsole. UEFI spec mentioned that the color mask can be set even when the device is in an invalid text mode. But the current code add text mode check. Removed the check now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15721 6f19259b-4bc3-4df7-8a09-765794883524 commit 784952b1898a5a8b65143a88b56b2b231ca21522 Author: Eric Dong Date: Wed Jul 30 01:19:21 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15720 6f19259b-4bc3-4df7-8a09-765794883524 commit f9e420d5d2a41707d495e39ebed23566e2d2e9b6 Author: Harry Liebel Date: Tue Jul 29 14:21:05 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Fix armcc warning causing build failure - Variable may be used before being set Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15719 6f19259b-4bc3-4df7-8a09-765794883524 commit 019680b3dcde5e1c88034e0bf92ffce509f211be Author: Ronald Cron Date: Tue Jul 29 14:19:57 2014 +0000 ArmPlatformPkg/Bds: Added boot options reordering Added the reordering of the boot options feature to the boot manager. The BootMenuSelectBootOption() has been split into DisplayBootOptions() that only displays the boot options and SelectBootOptions() that asks to select one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15718 6f19259b-4bc3-4df7-8a09-765794883524 commit 22a50a13e555102e1751c2f6665eb67855b43473 Author: Ronald Cron Date: Tue Jul 29 14:19:02 2014 +0000 ArmPlatformPkg/Bds: Corrected boot type detection Corrected the detection of file system and memory map boot option types. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15717 6f19259b-4bc3-4df7-8a09-765794883524 commit 66982010ed7350017f9f6f89b73137d4f92021df Author: Olivier Martin Date: Tue Jul 29 14:18:03 2014 +0000 ArmPlatformPkg/Bds: Do not ignore the error code in DefineDefaultBootEntries() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15716 6f19259b-4bc3-4df7-8a09-765794883524 commit 152286cea508549928b776e8a2ca62e089bc6790 Author: Ronald Cron Date: Tue Jul 29 14:17:05 2014 +0000 ArmPlatformPkg/Bds: Added TFTP boot option update Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15715 6f19259b-4bc3-4df7-8a09-765794883524 commit cf30b996d5d47835bf72921f351bb34c6790d8be Author: Ronald Cron Date: Tue Jul 29 14:16:10 2014 +0000 ArmPlatformPkg/Bds: Change the GetHIInput/EditHIInput to always return a valid IP address The new functions never return a invalid IP address. The user would be asked again if the IP address is mal-formed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15714 6f19259b-4bc3-4df7-8a09-765794883524 commit 889ac6a8b7d632c7c2dc203bd20b722b9ee57719 Author: Ronald Cron Date: Tue Jul 29 14:15:15 2014 +0000 ArmPlatformPkg/Bds: Got rid of RequestBootType argument Removed "RequestBootType" argument of the "*CreateDevicePathNode()" and "*UpdateDevicePathNode()" functions. A boolean field "Request BootType" has been added to the BDS_LOAD_OPTION_SUPPORT structure and is used by the "BootMenuAddBootOption()" and "BootMenuUpdateBootOption()" functions instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15713 6f19259b-4bc3-4df7-8a09-765794883524 commit ef0fa8e16bb50b04cd85cd0ef5ec8b16518fad0f Author: Harry Liebel Date: Tue Jul 29 14:13:21 2014 +0000 ArmPkg: Remove BasePeCoffLib ArmPkg contains unused and outdated code for runtime PE/COFF image relocation. - Use the version in MdePkg instead. - Remove references to this package from BeagleBoardPkg. ArmPkg/BasePeCoffLib was added to deal with MOVT instruction that was not part of the PE/COFF specification at that time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15712 6f19259b-4bc3-4df7-8a09-765794883524 commit 46d4d75cb2301d4af76a8fca6f9815e9699b3555 Author: Olivier Martin Date: Tue Jul 29 14:10:45 2014 +0000 ArmPkg/ArmLib.h: Fixed name of the argument Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15711 6f19259b-4bc3-4df7-8a09-765794883524 commit 3ab3d1388740fa3502e6cee5a1992b48e45b83c3 Author: Olivier Martin Date: Tue Jul 29 14:09:48 2014 +0000 ArmPkg/CpuDxe: Fixed some typo issues in the AArch64 exception code Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15710 6f19259b-4bc3-4df7-8a09-765794883524 commit f3c5066fa6e5e62c0584101d3a17c1e9ee523dd1 Author: Olivier Martin Date: Tue Jul 29 14:09:10 2014 +0000 ArmPkg/AArch64.h: Added Exception Syndrome Register definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15709 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a44c2273279b17f0c4a80be0ae8104d27333542 Author: Olivier Martin Date: Tue Jul 29 14:08:15 2014 +0000 ArmPkg/AArch64: Added ARM_HCR_TSC definition Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15708 6f19259b-4bc3-4df7-8a09-765794883524 commit 022cb42029bcbc8d5cec65bec981422868655d1c Author: Olivier Martin Date: Tue Jul 29 14:07:30 2014 +0000 ArmPkg/ArmPkg.dec: Added the interrupt numbers for the Hypervisor and Virtual Timers These numbers are mainly to reduce hardcoded numbers into the ACPI GTDT table. And also to match with the use of PcdArmArchTimerSecIntrNum and PcdArmArchTimerIntrNum into the GTDT ACPI Table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15707 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e119c677efc857a603b10ffc632ddfd5cd31b54 Author: Olivier Martin Date: Tue Jul 29 14:06:33 2014 +0000 ArmPkg/AArch64.h: Added SPSR and Timer register definitions These timer register definitions are AArch64 specific. It is the reason why they are into this file and not into Chipset/ArmArchTimer.h. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15706 6f19259b-4bc3-4df7-8a09-765794883524 commit c8ec22a266cdd134ac99c3021003710130613a40 Author: jyao1 Date: Tue Jul 29 02:21:52 2014 +0000 Add IntelFspPkg to support create FSP bin based on EDKII. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Ravi Rangarajan Reviewed by: Maurice Ma Reviewed by: Jiewen Yao Reviewed by: Giri Mudusuru Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15705 6f19259b-4bc3-4df7-8a09-765794883524 commit 0d807dae4adf222ee0c1b3abe504c9a271a46062 Author: Eric Dong Date: Tue Jul 29 02:00:55 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f35b140e14cf1e95ec9621adedaa29890ac4fc9 Author: Jordan Justen Date: Mon Jul 28 18:12:11 2014 +0000 OvmfPkg/build.sh: Support IA32+X64 build Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15703 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c023eb357632f1506d559ed54303ccee71ddf16 Author: Paolo Bonzini Date: Mon Jul 28 17:37:46 2014 +0000 BuildEnv: remove useless check before setting $WORKSPACE As long as $EDK_TOOLS_PATH is properly set, the BaseTools/ directory is not necessary in the workspace. The BuildEnv file itself suggests setting the variable if BaseTools/ is not available. However, this only works if the user also sets $WORKSPACE. Otherwise, BuildEnv refuses to set WORKSPACE itself and does not even try to use the preset $EDK_TOOLS_PATH. Remove the check that fails, as it does not have any practical benefit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15702 6f19259b-4bc3-4df7-8a09-765794883524 commit d54934498fc69d456bf648068d20c8fd8453fca7 Author: Paolo Bonzini Date: Mon Jul 28 17:37:40 2014 +0000 edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkout Since WORKSPACE should point at the EDK2 tree, the right place to check its validity is edksetup.sh, not BaseTools/BuildEnv. This patch makes sure that BuildEnv is always invoked with a valid WORKSPACE. This lets us show better error messages, and ensures that we never dirty the user's environment. BuildEnv will maintain backwards-compatibility and, should the variable be missing, it will be able to set a default WORKSPACE. Only the sanity checks will be of lower quality. Note that the error message in SetupEnv will never be shown if SetWorkspace sets WORKSPACE=`pwd`. Suggested-by: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Jordan Justen Signed-off-by: Paolo Bonzini git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15701 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bc14212b3f640f34c343e38c508ecfd5e8409e5 Author: Paolo Bonzini Date: Mon Jul 28 17:37:35 2014 +0000 edksetup.sh: Look for BuildEnv under EDK_TOOLS_PATH EDK_TOOLS_PATH is basically a replacement for $WORKSPACE/BaseTools. It makes sense to check for BuildEnv there, then, if $WORKSPACE is absent but $EDK_TOOLS_PATH is present. With this patch, it is possible to separately package tools in /usr and use them compile EDK2 (doing "rm -rf BaseTools" in the EDK2 tree). This is desirable for OS distributions that need to distribute the tools in a "free software" repository and OVMF in a "non-free software" repository; bundling the same code in two different packages causes confusion. It is also simpler for distros because the build process for BaseTools and OVMF is completely different. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen Signed-off-by: Paolo Bonzini git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15700 6f19259b-4bc3-4df7-8a09-765794883524 commit dc4ad1532e59fd1a185d6b90d1c2a92cf8713f40 Author: Jordan Justen Date: Mon Jul 28 17:37:25 2014 +0000 EmulatorPkg: Add support for GCC48 & GCC49 toolchains Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15699 6f19259b-4bc3-4df7-8a09-765794883524 commit 595a5bc928d403325593f66771770fe45cf744b2 Author: Jordan Justen Date: Mon Jul 28 17:37:19 2014 +0000 OvmfPkg/build.sh: Add support for GCC49 toolchain Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15698 6f19259b-4bc3-4df7-8a09-765794883524 commit dafe0fedc5085b6f117068ef1faacb6176512d87 Author: Jordan Justen Date: Mon Jul 28 17:37:10 2014 +0000 BaseTools: Add GCC49 toolchain; align data sections to 0x40 GCC 4.9 may use 64-byte (0x40) alignment for data sections. Therefore we use a different link script for GCC 4.9. The only difference from the gcc4.4-ld-script is the alignment for data sections. When using the GCC48 toolchain with GCC 4.9, this error would be encountered by GenFw: > GenFw: ERROR 3000: Invalid > Unsupported section alignment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15697 6f19259b-4bc3-4df7-8a09-765794883524 commit 2412c2978ea5735035f1a2e6bfb845a620ee022e Author: Jeff Bobzin (jeff.bobzin Date: Mon Jul 28 16:58:34 2014 +0000 ShellPkg: fix typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Bobzin (jeff.bobzin@insyde.com) Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15696 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e1005eca7186cbe61aaae09108f6fdf29959f22 Author: Eric Dong Date: Mon Jul 28 07:52:57 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15695 6f19259b-4bc3-4df7-8a09-765794883524 commit d4193108b51f5aae16805eaf753dfc9b6d7b15f2 Author: Eric Dong Date: Mon Jul 28 07:45:49 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15694 6f19259b-4bc3-4df7-8a09-765794883524 commit 94866d4035b84523a61488f000dcaad13bfd4aa5 Author: Eric Dong Date: Mon Jul 28 07:43:23 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15693 6f19259b-4bc3-4df7-8a09-765794883524 commit 613382e922cdae321168791df0b00f84176ba9db Author: Eric Dong Date: Mon Jul 28 07:41:49 2014 +0000 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15692 6f19259b-4bc3-4df7-8a09-765794883524 commit 47e255dfa3baeeb99e0ae3c8a5a4559e475a40c9 Author: Eric Dong Date: Mon Jul 28 07:36:46 2014 +0000 Fix build error with VS2013 toolchain for NT32 Package caused by function redefinition, use #if fix the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15691 6f19259b-4bc3-4df7-8a09-765794883524 commit 40578d09d1f9e8864e6d1eff95b9eeabee4b9947 Author: Eric Dong Date: Mon Jul 28 07:10:22 2014 +0000 Update the code to follow UEFI spec, process date/time/ref value type as buffer type when in an expression. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15690 6f19259b-4bc3-4df7-8a09-765794883524 commit f449affebd12c64e5ae2338caa7993e0daa10712 Author: jyao1 Date: Mon Jul 28 06:20:36 2014 +0000 Add ACPI5.1 header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15689 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a Author: Li, Elvin Date: Mon Jul 28 01:59:02 2014 +0000 Print the CodeType and Value of status code with fixed length. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li, Elvin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15687 6f19259b-4bc3-4df7-8a09-765794883524 commit 324c886410487f77e8643f6319f6cf751c65062b Author: Jordan Justen Date: Fri Jul 25 21:10:33 2014 +0000 BaseTools: Clear build versions to sync with buildtools/BaseTools Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15686 6f19259b-4bc3-4df7-8a09-765794883524 commit 8b7ebdb0055241e3e573fb7c561a969be33d591d Author: Gao, Liming liming.gao Date: Fri Jul 25 21:10:20 2014 +0000 Update GenFv tool to handle the file path with space. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming liming.gao@intel.com Review-by: Kinney, Michael D michael.d.kinney@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15685 6f19259b-4bc3-4df7-8a09-765794883524 commit 05154781676f8f591f4c0846ba6305ab9716c9e6 Author: Eric Dong Date: Fri Jul 25 21:10:10 2014 +0000 Report warning info if vfr file use the flags used for framework code only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15684 6f19259b-4bc3-4df7-8a09-765794883524 commit 15be099aa7ccc1ee4ace69f71eecae38beadfc9d Author: Eric Dong Date: Fri Jul 25 21:09:59 2014 +0000 Clean 1 build error and 1 warning for VfrCompiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15683 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d218f83f1d2aefb28d728ff01c89b10d103dc65 Author: Eric Dong Date: Fri Jul 25 21:09:48 2014 +0000 Report warning info if an action opcode has text two statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15682 6f19259b-4bc3-4df7-8a09-765794883524 commit 17e59b3346b7486fabbc57a13ef5b8c98d25a5a5 Author: Jaben Carsey Date: Fri Jul 25 18:46:23 2014 +0000 ShellPkg: Fix calls to SimpleTextOut->SetAttribute to not use reserved bits As the shell inverts foreground and background it needs to be sure that it properly masks off the reserved bits and this is important since the foreground and background are not the same numbers of bits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15681 6f19259b-4bc3-4df7-8a09-765794883524 commit 6cb9566f264e2fa2dcde695317945114e1b011c7 Author: Jaben Carsey Date: Fri Jul 25 15:57:20 2014 +0000 MdeModulePkg: Fix parameter verification for SetAttribute Check for 8th bit being reserved as per UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Michael Kinney Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15680 6f19259b-4bc3-4df7-8a09-765794883524 commit 54032ed9695764238d4a89873235bcbb42ba537e Author: lhauch Date: Fri Jul 25 14:07:00 2014 +0000 CodeModule: BaseTools - Adding the svn:external to the https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 This change allows users to checkout the edk2 project ignoring the svn:externals. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15679 6f19259b-4bc3-4df7-8a09-765794883524 commit d2f4e548e3d67666e0333dd60fc49f85a09acd01 Author: lhauch Date: Fri Jul 25 14:04:48 2014 +0000 CodeModule: BaseTools - Removing Win32 binaries to be replaced with an svn:external to the https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 This change allows users to checkout the edk2 project ignoring the svn:externals. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15678 6f19259b-4bc3-4df7-8a09-765794883524 commit 69c87efff4556df3aac9a12d869b0a9f131edd84 Author: Daryl McDaniel Date: Thu Jul 24 23:16:47 2014 +0000 StdLib/LibC/StdLib/Malloc.c: Revert cast removal to fix GCC build breakage. The cast to (void**) is needed for the last parameter of the AllocatePool call in malloc(). This is because type CPOOL_HEAD** is not automatically promoted to void**, as required by AllocatePool(). This was originally addressed in SVN revision 15474 but removed again in 15664. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed by: Stefan Kaeser git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15677 6f19259b-4bc3-4df7-8a09-765794883524 commit a33a2f62218e6e49a25d63474b7fe423d8ee4b71 Author: jyao1 Date: Thu Jul 24 06:52:43 2014 +0000 Add IntelFspWrapper to support boot EDKII on FSP bin. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao Reviewed by: Ravi Rangarajan Reviewed by: Maurice Ma Reviewed by: Giri Mudusuru Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15676 6f19259b-4bc3-4df7-8a09-765794883524 commit 34717ef034ed275a15683dafd29cb518af50fff0 Author: Elvin Li Date: Thu Jul 24 05:58:50 2014 +0000 Clear the whole EFI_PHYSICAL_ADDRESS CapsuleDataPtr64 to 0 at first to avoid rubbish data in high 32 bits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Review-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15675 6f19259b-4bc3-4df7-8a09-765794883524 commit 673c893016484fe8265e90d39719a0306be9bab2 Author: Eric Dong Date: Thu Jul 24 01:06:14 2014 +0000 Fix one memory leak. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15674 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fb4402246ffeaee2481a1dcf11df41c758ca2d5 Author: isakov-sl Date: Wed Jul 23 07:34:59 2014 +0000 Fixed one possible array out of bounds issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: isakov-sl@bk.ru Reviewed-by: Jeff Fan Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15673 6f19259b-4bc3-4df7-8a09-765794883524 commit 3facc089e552b84a526db48801e8a3fa00fabdec Author: Sergey Isakov Date: Wed Jul 23 02:13:14 2014 +0000 Fix wrong usage sizeof(SIZE). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov Signed-off-by: Jeff Fan Reviewed-by: Sergey Isakov Reviewed-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15672 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f6c5db258aee82f586b5b2858d0d979e89c916b Author: Elvin Li Date: Wed Jul 23 02:12:37 2014 +0000 Fix memory leak issues in BiosSnp module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15671 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c50db8adaf9d5ce071e27a518a46cd363ac5efe Author: Laszlo Ersek Date: Tue Jul 22 21:57:01 2014 +0000 OvmfPkg: build OVMF_VARS.fd, OVMF_CODE.fd, OVMF.fd OVMF_VARS.fd and OVMF_CODE.fd split the variable store and the firmware code in separate files. The PCDs' values continue to depend only on FD_SIZE_1MB vs. FD_SIZE_2MB. With the split files, it must be ensured on the QEMU command line that OVMF_VARS.fd and OVMF_CODE.fd be contiguously mapped so that they end exactly at 4GB. See QEMU commit 637a5acb (first released in v2.0.0). In this patch we must take care to assign each PCD only once. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15670 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c093f0c3ee8c0fde389faa2e70b596b960912d4 Author: Laszlo Ersek Date: Tue Jul 22 21:56:53 2014 +0000 OvmfPkg: extract varstore-related FD Layout Regions to an include file This saves code duplication between the Ia32, Ia32X64, and X64 flavors, and enables the next patch to include the varstore in new FD files by reference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15669 6f19259b-4bc3-4df7-8a09-765794883524 commit 70a2c7b11cbd6b1ad1fcb57b6f2011d534303984 Author: Chen Fan Date: Tue Jul 22 08:19:43 2014 +0000 EmulatorPkg/MpService: modify AP state should hold a mutex Add mutex when change AP state. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15668 6f19259b-4bc3-4df7-8a09-765794883524 commit f1bc233ae1255d64ce65948a208ab4b7810b01d4 Author: Tian, Feng Date: Tue Jul 22 03:06:43 2014 +0000 MdeModulePkg/AtaAtapiPassThru: Correct the algo of calculating PRDT number to avoid beyond the boundary of 32 bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15667 6f19259b-4bc3-4df7-8a09-765794883524 commit dcca25d17da32395b315804aaa811448dc317fed Author: Eric Dong Date: Mon Jul 21 09:59:06 2014 +0000 Refine code to follow good coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15666 6f19259b-4bc3-4df7-8a09-765794883524 commit d52b9d864efb0ba4b812538c45aef0b617bace39 Author: Star Zeng Date: Mon Jul 21 03:05:20 2014 +0000 MdePkg BaseLib: Fix a corner case of Source and Destination overlap. The overlap may happen when the address of Destination in UnicodeStrToAsciiStr() or Source in AsciiStrToUnicodeStr() is not two bytes aligned. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15665 6f19259b-4bc3-4df7-8a09-765794883524 commit dfa51bb619b455315a0476d0f2335da41268a2a2 Author: Daryl McDaniel Date: Thu Jul 17 20:54:49 2014 +0000 StdLib: Simple code cleanup StdLib/LibC/Main/Main.c Change Print to Debug statements. Ensure errno is initialized to 0 before calling main(). StdLib/LibC/StdLib/Malloc.c Aesthetic Cleanup: remove unnecessary cast, fix two whitespace alignment problems. StdLib/LibC/Uefi/InteractiveIO/NonCanonRead.c Change Include order. StdLib/Include/paths.h Add definition _PATH_LIB for the path to the library directory: /Efi/StdLib/lib. StdLib/LibC/Stdio/vfwscanf.c Align declarations and initializations. Initialize the multipurpose pointer, p, to NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15664 6f19259b-4bc3-4df7-8a09-765794883524 commit caf89d64ff700b3d8807f477c172feaaae85d5f3 Author: Daryl McDaniel Date: Thu Jul 17 01:55:23 2014 +0000 StdLib: Move GetPass.c out of Uefi and into PosixLib. Create LibPosix to contain all functions from PosixLib instead of individual libraries. Retains the ability to use the individual libraries, except GetPass, for backwards compatibility. StdLib/LibC/Uefi/GetPass.c COPY to StdLib/PosixLib/GetPass/GetPass.c DELETE StdLib/PosixLib/GetPass/GetPass.c NEW, COPIED from StdLib/LibC/Uefi/GetPass.c StdLib/PosixLib/PosixLib.inf Create a LibPosix library class to build all PosixLib functions into a single library. Move GetPass from LibC/Uefi to PosixLib.inf StdLib/LibC/Uefi/Uefi.inf Remove GetPass.c from sources. Remove IPF from VALID_ARCHITECTURES Update VERSION_STRING Align [Defines] on a two-character boundary Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15663 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b98d6ce44baea807223c67ddf97cc0dc9108741 Author: Long, Qin Date: Wed Jul 16 02:48:20 2014 +0000 Add comments for clarification about memset implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15662 6f19259b-4bc3-4df7-8a09-765794883524 commit f53da37ad034e0605509600803e627882fbf1e8e Author: Ronald Cron Date: Tue Jul 15 09:26:53 2014 +0000 ArmPkg/ArmLib.h: Removed GET_CORE_POS macro The platform independant GET_CORE_POS has been replaced by the platform dependent function ArmPlatformGetCorePosition(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15661 6f19259b-4bc3-4df7-8a09-765794883524 commit 8bf4ad4475c061a9ff4fc248ba7f11784d706342 Author: Ronald Cron Date: Tue Jul 15 09:25:57 2014 +0000 ArmPlatformPkg/Bds: Getting and editing IP addresses Reworked GetHIInputIP() function to use "NetLibStrToIp4()" library function to parse the IPv4 address instead of doing it by itself. Added function EditHIInputIP() in BdsHelper.c to edit an IPv4 address. To be used when updating a tftp boot option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15660 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d0ca2577c3788ee1087177df439246fe8f2b4fd Author: Olivier Martin Date: Tue Jul 15 09:24:25 2014 +0000 ARM Packages: Force the SEC modules to be 2K aligned for AArch64 The AArch64 Vector Table must be aligned on a 2K boundary. The FDF specification does not support 2K alignment but support 4K. A clear comment has been added to help integrator to understand why the assertion fails when porting to a new AArch64 platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15659 6f19259b-4bc3-4df7-8a09-765794883524 commit 9232ee533884b4b516b3979ce355e367a6254749 Author: Olivier Martin Date: Tue Jul 15 09:21:41 2014 +0000 ArmPkg/BdsLib: Removed PSCI discoverability from the Linux loader Some platforms might decide to not support PSCI in their FDT-aware Linux system even if their firmware supports it. It is the responsibility of the platform engineer to provide the appropriate FDT. The PCD gArmTokenSpaceGuid.PcdArmPsciSupport is not required anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15658 6f19259b-4bc3-4df7-8a09-765794883524 commit 6913a68302ad64e4e9981adf3bb572b9cf0d1dc0 Author: Olivier Martin Date: Tue Jul 15 09:18:44 2014 +0000 ArmPlatformPkg/ArmPlatformLib.h: Added documentation for ArmPlatformPeiBootAction() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15657 6f19259b-4bc3-4df7-8a09-765794883524 commit 2db16368d1554b3243c7b5c0f81aa226e8932722 Author: Ronald Cron Date: Tue Jul 15 09:17:36 2014 +0000 ArmPlatformPkg/Bds: Added update of Pxe boot option Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15656 6f19259b-4bc3-4df7-8a09-765794883524 commit e77d2f9db2d93896c882edfc1b239e04620503f1 Author: Eric Dong Date: Mon Jul 14 11:01:17 2014 +0000 Add check to make code more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15655 6f19259b-4bc3-4df7-8a09-765794883524 commit 93551a01feb97510c2417035cee75d63834e458d Author: Eric Dong Date: Mon Jul 14 06:14:20 2014 +0000 Check the validation when return from callback function to avoid use the invalid form set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15654 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ca7b0b8411811c2b71518c74f1666d17aa92f0f Author: Star Zeng Date: Mon Jul 14 01:38:19 2014 +0000 MdePkg PeiHobLib: Initialize Owner field of Resource HOB to 0 rather than random value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15653 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c71e1e05666d274a760e45866f65fafc2ccfbc6 Author: Jeff Fan Date: Fri Jul 11 02:36:56 2014 +0000 1. Save/restore ICR high 32bit value and check Delivery Status before sending IPI. It could be fix the interrupted issue between ICR high/low writes by SMI handler. 2. Save/restore CPU Interrupt state around sending IPI. It could avoid sending IPI be interrupted by CPU interrupt handler. 3. Add note for SetApicMode() API that must not be called from an interrupt handler or SMI handler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Kinney, Michael Reviewed-by: Mudusuru, Giri git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15652 6f19259b-4bc3-4df7-8a09-765794883524 commit d2ea3b8399243ff46d9c713d4a328aa81a773a3c Author: Fu, Siyuan Date: Thu Jul 10 07:46:34 2014 +0000 Fix a memory use after free bug in DHCP6 driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15651 6f19259b-4bc3-4df7-8a09-765794883524 commit cf1eb6e6f85952b0fad82b937054f611cf148d57 Author: Jeff Fan Date: Thu Jul 10 02:12:27 2014 +0000 Introduce one PCD PcdCpuInitIpiDelayInMicroSeconds to specify the delay value after sending out INIT IPI instead of hard code 10 MicroSeconds. Its default value is 10 millisecond per IA32 manual. Platform could customize this PCD value for performance requirement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Kinney, Michael git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15650 6f19259b-4bc3-4df7-8a09-765794883524 commit 5039b444fe8c2b8757de53b009d9f4c6bb0f9302 Author: Eric Dong Date: Thu Jul 10 01:52:28 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15649 6f19259b-4bc3-4df7-8a09-765794883524 commit 86b024546709d0b3ead8df3bf16fb4c866c05921 Author: Eric Dong Date: Thu Jul 10 01:25:41 2014 +0000 Fixed one code error, should use & instead of |. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15648 6f19259b-4bc3-4df7-8a09-765794883524 commit ffb91edfd5eef02d0f7e0326bfa7023e8ea9bb6d Author: Eugene Cohen Date: Wed Jul 9 11:14:36 2014 +0000 ArmPkg/ArmLib: Improved ArmConfigureMmu Performance Data & Instruction Caches can be kept enabled while the new translation table is filled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15647 6f19259b-4bc3-4df7-8a09-765794883524 commit 28087ef09f3ade5072ce1505a8acc8aff85787cd Author: Harry Liebel Date: Wed Jul 9 09:10:44 2014 +0000 MdePkg/BasePrintLib: Do not do operations with NULL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-By: Olivier Martin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15646 6f19259b-4bc3-4df7-8a09-765794883524 commit 85e2e0854bd158a561ee829d84635a1ff8128581 Author: Eric Dong Date: Wed Jul 9 08:30:07 2014 +0000 Refine the readme.txt for Duet platform, update the GCC tool chain to GCC44. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15645 6f19259b-4bc3-4df7-8a09-765794883524 commit bffaa2614af780e1f4c67b9f545adfafca0a692b Author: Eric Dong Date: Wed Jul 9 08:28:05 2014 +0000 Update the bat file, avoid change the original binary file in SVN, copy a temp file to use. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15644 6f19259b-4bc3-4df7-8a09-765794883524 commit 720f84a9d3b53ee567aa90c2362f4c4912d271de Author: Olivier Martin Date: Wed Jul 9 05:19:24 2014 +0000 The UEFI specification does not say anything when the pointers passed to WaitForEvent() are NULL. Passing NULL pointer would cause a segmentation fault in the current code. This change prevents to get segmentation faults in this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15643 6f19259b-4bc3-4df7-8a09-765794883524 commit e364478661e2a5e9195ce4a9f00761e154e48bfa Author: Chen Fan Date: Wed Jul 9 03:51:56 2014 +0000 Fixed typos: hanlder should be handler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15642 6f19259b-4bc3-4df7-8a09-765794883524 commit ae026b0a9b7a5d7b8f31ce6fe1aa9475787c9f3f Author: Eric Dong Date: Wed Jul 9 02:49:24 2014 +0000 Refine the sample for action, should not use text two part. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15641 6f19259b-4bc3-4df7-8a09-765794883524 commit 63442a19ba0523a8bbfc9c90bd4baa33cdbb0eb5 Author: Eric Dong Date: Wed Jul 9 01:50:55 2014 +0000 Fix build fail for VS2005 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15640 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d4deaaccb9b39106775d260ea0397c1991b0f04 Author: Eric Dong Date: Tue Jul 8 06:04:53 2014 +0000 Refine the save action for the browser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15639 6f19259b-4bc3-4df7-8a09-765794883524 commit a6908c99aa48551616c25cf594862d3629ce91c0 Author: Long, Qin Date: Tue Jul 8 03:03:24 2014 +0000 Update OpenSSL from 0.9.8w to the latest 0.9.8za. Main changes include: 1. Update the patch file for 0.9.8za; 2. Update the install scripts to align the path for 0.9.8za; 3. OpensslLib.inf : Update the OPENSSL_PATH for 0.9.8za; enable more OPENSLL FLAGS to disable those un-used algorithms for better build performance and size; 4. Update the HOWTO file to align new OpenSSL version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long, Qin Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15638 6f19259b-4bc3-4df7-8a09-765794883524 commit 4918a06a65f0b700c73164cfb4e8c18274a5e5af Author: Star Zeng Date: Tue Jul 8 01:42:46 2014 +0000 MdeModulePkg XhciPei: Fix build failure "conversion from 'UINT32' to 'UINT8', possible loss of data". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15637 6f19259b-4bc3-4df7-8a09-765794883524 commit 720624cce0e74cdec8547a8d31b24b39210bf007 Author: Eric Dong Date: Mon Jul 7 06:30:33 2014 +0000 Refine code to follow good coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15636 6f19259b-4bc3-4df7-8a09-765794883524 commit 60050b31bc13cf76685bc25654d5a2d95a9a273f Author: Star Zeng Date: Mon Jul 7 05:59:53 2014 +0000 MdeModulePkg XhciPei: Initialize ScratchPhy and ScratchEntryPhy in XhcPeiInitSched(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15635 6f19259b-4bc3-4df7-8a09-765794883524 commit 414f5bd1d74ea60b39b8cd3e7739196d78091cb3 Author: Star Zeng Date: Mon Jul 7 05:58:25 2014 +0000 MdeModulePkg XhciDxe: Initialize ScratchPhy and ScratchEntryPhy in XhcInitSched(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15634 6f19259b-4bc3-4df7-8a09-765794883524 commit 737adca337df5376980030c88324259aa265b3ab Author: Eric Dong Date: Mon Jul 7 05:56:26 2014 +0000 Restore the question value before call the CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15633 6f19259b-4bc3-4df7-8a09-765794883524 commit 0cecbe565aaac481cc06bd9e97c0a1b7642334e6 Author: Jordan Justen Date: Fri Jul 4 20:50:41 2014 +0000 EmulatorPkg: Add structure braces { } to fix build warning The GCC parameter -Wno-missing-braces was recently removed. This caused build warnings where structures were instantiated without proper brace usage. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15632 6f19259b-4bc3-4df7-8a09-765794883524 commit f58ba9ed6f413bc03f1a6f9e2115b970582e844f Author: Jordan Justen Date: Fri Jul 4 20:50:24 2014 +0000 EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c: Convert to CRLF (dos text) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15631 6f19259b-4bc3-4df7-8a09-765794883524 commit 42589b9ac9b9166c21ed95ca2a10f7113cb9cac6 Author: Olivier Martin Date: Fri Jul 4 14:47:11 2014 +0000 EmbeddedPkg/Lan9118Dxe: Handle EFI_STATUS from PhySoftReset() & SoftReset() - Make the function PhySoftReset() return EFI_STATUS - EFI_STATUS was treated as a signed integer by the caller which is not correct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15630 6f19259b-4bc3-4df7-8a09-765794883524 commit 42de09370fddac6446e071d1b613f477b20fc6bc Author: Ronald Cron Date: Fri Jul 4 14:46:21 2014 +0000 ArmPlatformPkg/Bds: Added boot timeout setting Added boot timeout setting in UEFI boot manager menu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15629 6f19259b-4bc3-4df7-8a09-765794883524 commit 1b0ac0dedf19041512de152f047cc5a943598521 Author: Olivier Martin Date: Fri Jul 4 14:41:30 2014 +0000 ArmPkg/ArmGic: Returned the InterruptId in ArmGicAcknowledgeInterrupt() The InterruptId has a different width for GicV2 and GicV3 (respectively 10bit and 24bit). The function prototype has been changed to return this value to make the caller GIC architecture version independent. Otherwise, we would have need to expose a different mask to allow the caller to retrieve this value from the read register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15628 6f19259b-4bc3-4df7-8a09-765794883524 commit f5241b5725aab99189c733df6b03687656f8b1e8 Author: Olivier Martin Date: Fri Jul 4 14:38:14 2014 +0000 ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15627 6f19259b-4bc3-4df7-8a09-765794883524 commit 793ca69f50b8f12d0c4f0d9ffa16ecbc967e4118 Author: Olivier Martin Date: Fri Jul 4 14:36:42 2014 +0000 ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicLib The support for GIcV2 was already existing. This change separate the GicV2 specific functions from the common Gic code (in preparation for GicV3 support). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15626 6f19259b-4bc3-4df7-8a09-765794883524 commit 60775c51a52ade2f4c63777cd037f99903c36068 Author: Olivier Martin Date: Fri Jul 4 11:27:28 2014 +0000 ArmPkg/ArmGic: Moved ArmGicDisableDistributor() to ArmGicLib.c The implementation is the same when we run in Secure or Non-Secure world. This change makes this function available for ArmGicSec.inf and ArmGicNonSec.inf. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15625 6f19259b-4bc3-4df7-8a09-765794883524 commit 0458b423b66eab6979ee9124ad8489d8e0e2bb50 Author: Olivier Martin Date: Fri Jul 4 11:26:33 2014 +0000 ArmPkg/ArmGic: Move RegisterInterruptSource() to the common GicDxe file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15624 6f19259b-4bc3-4df7-8a09-765794883524 commit 69b5dc9f8e926b5341405b729e58426c2a121470 Author: Olivier Martin Date: Fri Jul 4 11:25:29 2014 +0000 ArmPkg/ArmGic: Move the installation and the registration to InstallAndRegisterInterruptService() It will allow reusing the same code for GICv2 and GICv3 only drivers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15623 6f19259b-4bc3-4df7-8a09-765794883524 commit 397bdc990b018cb2fff01413636b4a23c4b23624 Author: Olivier Martin Date: Fri Jul 4 11:20:45 2014 +0000 ArmPkg/ArmGic: Make the GicDxe driver depends on ArmGicLib (cont) ... and also rename the ArmGicLib sources to use an explicit 'Lib' suffix. The renaming did not work well with SVN. Files were missing from the initial commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15622 6f19259b-4bc3-4df7-8a09-765794883524 commit e700a1fc9158cd8f956bd9d2a1867f47ee6591cc Author: Olivier Martin Date: Fri Jul 4 11:16:48 2014 +0000 ArmPkg/ArmGic: Introduced helper functions to access the GIC controller Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15621 6f19259b-4bc3-4df7-8a09-765794883524 commit 4edcf21de4a12b80440b2e8fe53dc9df60173b2d Author: Olivier Martin Date: Fri Jul 4 11:14:20 2014 +0000 ArmPkg/ArmGic: Make the GicDxe driver depends on ArmGicLib ... and also rename the ArmGicLib sources to use an explicit 'Lib' suffix. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15620 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ca815a4952ca3ef3bdb01f5dd2a1ee0a57ac319 Author: Olivier Martin Date: Fri Jul 4 11:13:27 2014 +0000 ArmPkg/ArmGic: Move out the EndOfInterrupt from the interrupt acknowledgement Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15619 6f19259b-4bc3-4df7-8a09-765794883524 commit d80401a16f250486baab14f02b044cf2cc1ac949 Author: Olivier Martin Date: Fri Jul 4 11:11:53 2014 +0000 ArmPkg/Drivers/ArmGic: Introduced ArmGicEndOfInterrupt() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15618 6f19259b-4bc3-4df7-8a09-765794883524 commit e1f2dfec3483e276d267f5ca3540c1505d631c60 Author: Star Zeng Date: Fri Jul 4 03:30:46 2014 +0000 MdeModulePkg XhciDxe: XHCI multiple interface alternate setting support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15617 6f19259b-4bc3-4df7-8a09-765794883524 commit 8acb3f7b54ec6ebf9c01b8c570f5ec0c7530be80 Author: Eric Dong Date: Fri Jul 4 01:58:48 2014 +0000 Refine the save action for the BdsDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15616 6f19259b-4bc3-4df7-8a09-765794883524 commit dda74d6d62806a6d2d1ebd3792f2825412ff25ea Author: Paulo Alcantara Date: Thu Jul 3 20:05:22 2014 +0000 EmulatorPkg/EmuSimpleFileSystemDxe: Fix incorrect return values upon allocation failure In EmuSimpleFileSystemOpenVolume() function - in case an allocation failed with AllocatePool() - EFI_UNSUPPORTED was being returned instead of EFI_OUT_OF_RESOURCES, which is incorrect. Even worse, in EmuSimpleFileSystemDriverBindingStart(), an unitiliasied variable (Status) will be returned in case of an allocation failure with AllocateZeroPool(). This patch fixes both issues by correctly returning EFI_OUT_OF_RESOURCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15615 6f19259b-4bc3-4df7-8a09-765794883524 commit 4451c6eb6a352aa87f2d13db27462c354c76644e Author: Paulo Alcantara Date: Thu Jul 3 20:05:14 2014 +0000 EmulatorPkg/EmuSimpleFileSystemDxe: Fix minor typos Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15614 6f19259b-4bc3-4df7-8a09-765794883524 commit 859b0db434b913f0798f78b1637fdb251e994875 Author: Star Zeng Date: Wed Jul 2 09:02:35 2014 +0000 SecurityPkg HashLibBaseCryptoRouterDxe/Tpm2DeviceLibRouterPei: Fixed GCC build failure after -Wno-missing-braces option in GCC removed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15613 6f19259b-4bc3-4df7-8a09-765794883524 commit a94733b0d6ff6531d50b981428b684dd9dbdb61f Author: Eric Dong Date: Wed Jul 2 05:54:41 2014 +0000 Correct the default value for date opcode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15612 6f19259b-4bc3-4df7-8a09-765794883524 commit d987459f8e0b78831c95188b5b0d712ed6a54c88 Author: Star Zeng Date: Wed Jul 2 03:20:49 2014 +0000 MdeModulePkg XhciPei/UsbBusPei: Add XHCI recovery support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15611 6f19259b-4bc3-4df7-8a09-765794883524 commit ef96ba3cbe6f9f3658f19407d4c2150dcd6eb457 Author: Star Zeng Date: Wed Jul 2 02:29:02 2014 +0000 MdeModulePkg SmmLockBoxSmmLib: Add debug message for the address of lockbox(smm) copy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15610 6f19259b-4bc3-4df7-8a09-765794883524 commit edc93a319184294dfa2f1764baceb02f49ccdcc5 Author: Olivier Martin Date: Tue Jul 1 09:27:19 2014 +0000 ArmPkg/BdsLib: Prevent memory leak whith TFTP In some case, the size of the downloaded TFTP image cannot be known. An arbitrary larger buffer is allocated to receive the image. We need to make sure when we free the buffer we free the size of the allocated buffer and not the size of the actual image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15609 6f19259b-4bc3-4df7-8a09-765794883524 commit a6217114e35fd10215513d8b026bd4e0c3770814 Author: Olivier Martin Date: Tue Jul 1 09:26:28 2014 +0000 ArmPkg/ArmCacheMaintenanceLib: Fixed comment (and coding style) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15608 6f19259b-4bc3-4df7-8a09-765794883524 commit 52659efb9c37066f6bf5f001374dd1a115cc1455 Author: Olivier Martin Date: Tue Jul 1 09:25:30 2014 +0000 EmbeddedPkg/SerialDxe: Fixed the mixture of RETURN_STATUS and EFI_STATUS Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15607 6f19259b-4bc3-4df7-8a09-765794883524 commit 6defc4db4c508adc52d7b5273ef22020b89e0ab5 Author: Olivier Martin Date: Tue Jul 1 09:24:07 2014 +0000 ArmPkg/CpuDxe/ArmV6: Return error status when ExceptionHandlersStart is not 32-byte aligned The function should detect and return the error in non-debug builds when the ASSERT does nothing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15606 6f19259b-4bc3-4df7-8a09-765794883524 commit e4ac870fe95adc7d178a79b73ad2792e0c8bfeb8 Author: Gao, Liming Date: Tue Jul 1 07:10:10 2014 +0000 Sync BaseTool trunk (version r2670) into EDKII BaseTools. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Liu, Yingke D (yingke.d.liu@intel.com) git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15605 6f19259b-4bc3-4df7-8a09-765794883524 commit 148af3872273ef476230db1d0df5ea00167853a1 Author: Tapan Shah Date: Mon Jun 30 20:14:24 2014 +0000 ShellPkg: Fix Ctrl+C support for dmpstore command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15604 6f19259b-4bc3-4df7-8a09-765794883524 commit 48178d7ab12ad5157500b5b58331175edcd1d400 Author: Fu, Siyuan Date: Mon Jun 30 07:48:23 2014 +0000 Fix a bug in IP4 driver when computing the network broadcast adress. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu, Siyuan Reviewed-By: Ye, Ting Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15603 6f19259b-4bc3-4df7-8a09-765794883524 commit 9e2364ef1203f81c8572766d360fb7b10c2cda56 Author: Jeff Fan Date: Mon Jun 30 06:13:53 2014 +0000 Fix the potential address overflow issue when checking PE signature. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15602 6f19259b-4bc3-4df7-8a09-765794883524 commit 8c01a99b8472f231e746c7eb9bade0ddddf2b445 Author: Gao, Liming Date: Fri Jun 27 19:15:35 2014 +0000 OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Fix GCC44 build failure. Initialize the input parameter FwhInstance in function GetFvbInstance(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Gao, Liming" Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15601 6f19259b-4bc3-4df7-8a09-765794883524 commit 891d8445b51b416bfe18fde3ef750f443cecc7c0 Author: Tapan Shah Date: Fri Jun 27 08:50:27 2014 +0000 MdeModulePkg/PiSmmCore: Initialize missing LoadedImage protocol fields for SMM driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15600 6f19259b-4bc3-4df7-8a09-765794883524 commit d070eef803b596d46a5721a61c92876bdd078873 Author: Chen Fan Date: Fri Jun 27 07:30:21 2014 +0000 EmulatorPkg/CpuRuntimeDxe: Fix typos in MpService mMpSercicesTemplate => mMpServicesTemplate Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15599 6f19259b-4bc3-4df7-8a09-765794883524 commit 523f48e771b1088c6e2cfddc5c56cde1ef9a2ab0 Author: Eric Dong Date: Thu Jun 26 03:24:25 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15598 6f19259b-4bc3-4df7-8a09-765794883524 commit d0f65b21c58b958ba370e774c6fe3ddc5ff1f3c7 Author: Eric Dong Date: Thu Jun 26 03:18:44 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15597 6f19259b-4bc3-4df7-8a09-765794883524 commit 6afd9f45bb4b72ef3952d1b01e9dee909f414b5e Author: Eric Dong Date: Thu Jun 26 03:17:59 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15596 6f19259b-4bc3-4df7-8a09-765794883524 commit b5f8b5b03dde02d13cedc87d42bccd5c822e2801 Author: Eric Dong Date: Thu Jun 26 03:16:27 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15595 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a18908695b8fb1a0ce325bd29b43d51aa65e07f Author: Eric Dong Date: Thu Jun 26 01:39:25 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15594 6f19259b-4bc3-4df7-8a09-765794883524 commit 81cd2f536ef0097392b51f96405321ce7b01350c Author: Eric Dong Date: Thu Jun 26 01:38:46 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15593 6f19259b-4bc3-4df7-8a09-765794883524 commit 45295cf5a58578b84e5092c3a3dd145c069c1db5 Author: Eric Dong Date: Wed Jun 25 06:51:36 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15592 6f19259b-4bc3-4df7-8a09-765794883524 commit 79ecd2dbfa41c6e121eaf320689caf01d331a91c Author: Eric Dong Date: Wed Jun 25 06:49:53 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15591 6f19259b-4bc3-4df7-8a09-765794883524 commit 1fee5304db562db9f0757af077da100336566cd9 Author: Eric Dong Date: Wed Jun 25 06:00:49 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15590 6f19259b-4bc3-4df7-8a09-765794883524 commit 393a3169c2a777e3ed899c85f7827258a13f0755 Author: Eric Dong Date: Wed Jun 25 05:44:37 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15589 6f19259b-4bc3-4df7-8a09-765794883524 commit 53db912ea1ef7be5cb40e7dbff55d3bc059d9f90 Author: Eric Dong Date: Wed Jun 25 05:16:52 2014 +0000 Refine code to make it more safely. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15588 6f19259b-4bc3-4df7-8a09-765794883524 commit 2f497dc147a1f05a13b8753a88b3e23e23a6b8a0 Author: Andrew Fish Date: Wed Jun 25 04:54:47 2014 +0000 MdeModulePkg/DxeMain: Zero ImageContext local variable before passing it down to PeCoffLoaderRelocateImageExtraAction() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Feng Tian Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15587 6f19259b-4bc3-4df7-8a09-765794883524 commit 84043adfe24d18d46ead4a3d743f61efdc0c9824 Author: Laszlo Ersek Date: Wed Jun 25 03:35:58 2014 +0000 OvmfPkg: add missing braces to aggregate and/or union initializers Lack of these braces causes build errors when -Wno-missing-braces is absent. Spelling out more braces also helps understanding the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15586 6f19259b-4bc3-4df7-8a09-765794883524 commit ffccb935fab8103ab4efef1d9f949aeb581c83df Author: Dong, Guo Date: Wed Jun 25 02:02:22 2014 +0000 Update code to always publish EFI_IMAGE_EXECUTION_INFO_TABLE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo Reviewed-by: Fu, Siyuan Reviewed-by: Gao, Liming Reviewed-by: Zhang, Chao B git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15585 6f19259b-4bc3-4df7-8a09-765794883524 commit 83c7a556a254048388d457d7a5a988ddff408b68 Author: Chris Phillips Date: Tue Jun 24 18:39:15 2014 +0000 ShellPkg: Fix 'mv' command to not attempt moving a file from write-protected media Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15584 6f19259b-4bc3-4df7-8a09-765794883524 commit b34039b2e17e682d78feb92afba20132cc7d1e0b Author: Gao, Liming Date: Tue Jun 24 02:25:23 2014 +0000 Add DEBUG message for all fields in AcpiS3Context. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15583 6f19259b-4bc3-4df7-8a09-765794883524 commit 66c777086b9564f7b4ccdf606b1092f44763ae54 Author: Gao, Liming Date: Tue Jun 24 02:24:13 2014 +0000 Add DEBUG message for all fields in AcpiS3Context. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15582 6f19259b-4bc3-4df7-8a09-765794883524 commit e837e22a94b3766f40047fde655e08996c601af5 Author: Gao, Liming Date: Tue Jun 24 02:22:47 2014 +0000 Correct comment typo in AsmReadCr0() function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15581 6f19259b-4bc3-4df7-8a09-765794883524 commit e71cb45263cd3e03887d24de81653f3b4b02d510 Author: Tapan Shah Date: Mon Jun 23 18:36:44 2014 +0000 ShellPkg: Move UpdateMapping() out of Map command and added to UefiShellCommandLib library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15580 6f19259b-4bc3-4df7-8a09-765794883524 commit b0fdce95f7c35f169d7aec8e95e96955c2194887 Author: Olivier Martin Date: Fri Jun 20 18:24:51 2014 +0000 ARM Packages: Fixed missing braces (the warning was disabled by GCC) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15578 6f19259b-4bc3-4df7-8a09-765794883524 commit ec6b8eda8fcb2e53fb90ee8d38c58cbe6d602665 Author: Olivier Martin Date: Fri Jun 20 18:23:37 2014 +0000 ArmPlatformPkg/SP804TimerLib: Checked both Metronome and Performance timers are initialized Prior to this change if Metronome timer was already initialized the initialization of the Performance timer was skipped. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15577 6f19259b-4bc3-4df7-8a09-765794883524 commit 97be2801745630eab090446211289a6315040a30 Author: Tycho Nightingale Date: Fri Jun 20 07:18:08 2014 +0000 PcAtChipsetPkg: Enable timer interrupt through I/O APIC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tycho Nightingale Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15576 6f19259b-4bc3-4df7-8a09-765794883524 commit 7d84fbbb5e504002646e17746dbb79a6f33d5f14 Author: Ruiyu Ni Date: Fri Jun 20 06:17:54 2014 +0000 Do not create boot option for logical block io device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15575 6f19259b-4bc3-4df7-8a09-765794883524 commit a618eaa1f45d53073784460ec2c8d9c3d097b789 Author: Laszlo Ersek Date: Thu Jun 19 06:13:29 2014 +0000 OvmfPkg: AcpiPlatformDxe: don't rely on unstable QEMU interface The fw_cfg file "etc/acpi/tables" is not a stable guest interface -- QEMU could rename it in the future, and/or introduce additional fw_cfg files with ACPI payload. Only the higher-level "etc/table-loader" file is considered stable, which contains a sequence of commands to assist firmware with reading QEMU ACPI tables from the FwCfg interface. Because edk2 provides publishing support for ACPI tables, OVMF only uses the Allocate command to find the names of FwCfg files to read and publish as ACPI tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15574 6f19259b-4bc3-4df7-8a09-765794883524 commit 374df8fc59622f78de0cefaf073c44076cc44f7e Author: Laszlo Ersek Date: Thu Jun 19 06:13:22 2014 +0000 OvmfPkg: AcpiPlatformDxe: exclude RSD PTR from QEMU's fw_cfg payload In one of the next patches we'll start scanning all fw_cfg files that QEMU advertises as carrying ACPI tables, not just "etc/acpi/tables". The RSD PTR table is known to occur in the "etc/acpi/rsdp" fw_cfg file. Since edk2 handles RSD PTR automatically, similarly to RSDT and XSDT, let's exclude RSD PTR too from the manually installed tables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15573 6f19259b-4bc3-4df7-8a09-765794883524 commit 2d1fe95066fb11e30f9028d70349669c24f6c289 Author: Laszlo Ersek Date: Thu Jun 19 06:13:12 2014 +0000 OvmfPkg: AcpiPlatformDxe: pass FwCfgFile to InstallQemuLinkedTables() Split InstallQemuLinkedTables() in two: - the function now takes the name of the fw_cfg file (from which ACPI tables are to be extracted) as a parameter, - the new function InstallAllQemuLinkedTables() calls the former with fw_cfg file names, and cumulatively tracks the ACPI tables installed by all invocations of the former. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15572 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a904296e42ea6b8c27a489db049aef05db629c2 Author: Laszlo Ersek Date: Thu Jun 19 06:13:01 2014 +0000 OvmgPkg: QemuFwCfgLib: export QEMU_FW_CFG_FNAME_SIZE Names of firmware configuration files always take 56 bytes (including at least one terminating NUL byte). Expose this constant to all consumers of QemuFwCfgLib because further interfaces may depend on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15571 6f19259b-4bc3-4df7-8a09-765794883524 commit 8819a096b1e4e449cfce224b74e5a943a450494e Author: Eric Dong Date: Thu Jun 19 01:58:09 2014 +0000 Fix GCC build fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15570 6f19259b-4bc3-4df7-8a09-765794883524 commit b0bc24aff5205e71aebbb7a15872974bb131d0f3 Author: Alex Williamson Date: Thu Jun 19 01:41:15 2014 +0000 The following call tree exposes a bug in the lifetime (ie. too late creation) of PciIoDevice->DevicePath. The bug can be triggered when PciBusDxe is built into OVMF, with qemu/KVM device assignment of a PCI-express device on the default 440FX machine type. OVMF correctly discovers that the device is PCIe and begins probing extended configuration space for the device. The root bridge has no way to access extended config space and correctly errors, sending us into the error reporting chain seen below. It's possible that this error path could also be reproduced on physical hardware when a PCI-to-PCIe bridge is present. GatherDeviceInfo() | GatherPpbInfo() | GatherP2CInfo() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] CreatePciIoDevice() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] AllocateZeroPool() LocateCapabilityRegBlock() [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoDevice->IsPciExp = TRUE LocatePciExpressCapabilityRegBlock() [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoConfigRead() via funcptr [MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c] RootBridgeIoPciRead() via funcptr [PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c] FAILS REPORT_STATUS_CODE_WITH_DEVICE_PATH() [MdePkg/Include/Library/ReportStatusCodeLib.h] ReportStatusCodeWithDevicePath() [MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c] ASSERT (DevicePath != NULL) <--+ CreatePciDevicePath() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] sets PciIoDevice->DevicePath ----------+ In English: - CreatePciIoDevice() allocates a zeroed out PCI_IO_DEVICE structure. - PciIoConfigRead() tries to access the (extended) config space, and fails. - PciIoConfigRead() wants to report a status code (read error) for the device path. - Unfortuantely, PciIoDevice->DevicePath is still NULL at that point. - The ASSERT() in ReportStatusCodeWithDevicePath() fires. Fix it by moving CreatePciDevicePath() into CreatePciIoDevice(), allowing PciIoDevice->DevicePath to be initialized before we begin probing the device capabilities: GatherDeviceInfo() | GatherPpbInfo() | GatherP2CInfo() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] CreatePciIoDevice() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] AllocateZeroPool() CreatePciDevicePath() [MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c] sets PciIoDevice->DevicePath -----------+ LocateCapabilityRegBlock() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoDevice->IsPciExp = TRUE | LocatePciExpressCapabilityRegBlock() | [MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c] PciIoConfigRead() via funcptr | [MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c] RootBridgeIoPciRead() via funcptr | [PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c] FAILS | REPORT_STATUS_CODE_WITH_DEVICE_PATH() | [MdePkg/Include/Library/ReportStatusCodeLib.h] ReportStatusCodeWithDevicePath() | [MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c] ASSERT (DevicePath != NULL) <-----+ Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Alex Williamson Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15567 6f19259b-4bc3-4df7-8a09-765794883524 commit 183ecff5668f46073548a7d10291b41d35052b12 Author: Jaben Carsey Date: Wed Jun 18 16:37:16 2014 +0000 ShellPkg: Remove use of ASSERT to test parameters Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15566 6f19259b-4bc3-4df7-8a09-765794883524 commit c5ed01d9da9ccbc7504a9299414d15bda3652007 Author: Victor Gouveia Date: Wed Jun 18 09:01:33 2014 +0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Victor Gouveia Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15565 6f19259b-4bc3-4df7-8a09-765794883524 commit 277fe9aa03ae0d52189a564db9363f17c1582e19 Author: Ruiyu Ni Date: Wed Jun 18 05:00:13 2014 +0000 Create boot option for all block IO devices no matter what the device path looks like. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15564 6f19259b-4bc3-4df7-8a09-765794883524 commit be9304f33f78a645512e76e6d44a69198d5f3c06 Author: Eric Dong Date: Wed Jun 18 02:19:50 2014 +0000 Support RouteConfig function for BdsDxe driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15563 6f19259b-4bc3-4df7-8a09-765794883524 commit 885f7fd0c767c2b39e6b60d20b575e7e95d4638d Author: Jaben Carsey Date: Mon Jun 16 21:58:50 2014 +0000 ShellPkg: Fix duplicate String IDs Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15562 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a70350fff479888871f2efbf688c8ca49aa92b5 Author: Andrew Fish Date: Mon Jun 16 08:31:41 2014 +0000 Fix build issues with Xcode in CryptoPkg and SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Ye Ting Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15561 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bf3ce9ff9912a3fbd64c199798bdfce4c9426ec Author: Andrew Fish Date: Mon Jun 16 08:30:41 2014 +0000 Fix build issues with Xcode in CryptoPkg and SecurityPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Ye Ting Reviewed-by: Long Qin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15560 6f19259b-4bc3-4df7-8a09-765794883524 commit 022ed0d7885af824ffce1ee700af6554df4c8d65 Author: Qiu Shumin Date: Fri Jun 6 08:47:18 2014 +0000 Use a compare operator for Non-Boolean comparison in 'map.c'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15559 6f19259b-4bc3-4df7-8a09-765794883524 commit 33eb033f8609d960ccf6c3ad9abb0acab5e1a08f Author: Jaben Carsey Date: Thu Jun 5 22:02:12 2014 +0000 ShellPkg: fix Comp command output The comp command was potentially displaying the incorrect offset into the file due to comparing 3 extra bytes for difference groups. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15558 6f19259b-4bc3-4df7-8a09-765794883524 commit 4ab4497c38b44832bc1f8b5d8cf77a6a254efed1 Author: Tian, Feng Date: Wed Jun 4 06:35:29 2014 +0000 MdeModulePkg/NvmExpressDxe: Check if CSTS.RDY is 0 to wait NVMe Host controller disable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15557 6f19259b-4bc3-4df7-8a09-765794883524 commit e9bf5b1dd192c5f14bb9b6f10f39329f79c30f54 Author: Jeff Fan Date: Wed Jun 4 01:47:24 2014 +0000 Rename TimeoutInSeconds to Timeout to avoid confusion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Mike Maslenkin Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15556 6f19259b-4bc3-4df7-8a09-765794883524 commit b4a6629fd91efdd235691f7d00b720f1073b9ff9 Author: Olivier Martin Date: Tue Jun 3 16:44:09 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Set CNTFRQ to 100Mhz for the Fast Models The timer frequency for the FVP Architectural Timers have been aligned to 100Mhz. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15555 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f1103bd1e247b129a05d19899af56b5d245f19c Author: Olivier Martin Date: Tue Jun 3 16:43:26 2014 +0000 ArmPkg/AsmMacroIoLib: Add support for ARM Compiler 6.00 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15554 6f19259b-4bc3-4df7-8a09-765794883524 commit ec17f0f56a1b6345baef5d73e6ed7bc2016f4b78 Author: Olivier Martin Date: Tue Jun 3 16:42:18 2014 +0000 ArmPkg/CpuDxe: Stack Pointer is not 8-bytes aligned in AArch32 interrupt handling See section "2.1 The need to align SP to a multiple of 8 at conforming call sites" in "Advisory Note. SP must be 8-byte aligned on entry to AAPCS-conforming functions" Source: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0046b/IHI0046B_ABI_Advisory_1.pdf Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15553 6f19259b-4bc3-4df7-8a09-765794883524 commit 27331bff97f4fb36bee3aad8e010576ca641304e Author: Olivier Martin Date: Tue Jun 3 16:39:23 2014 +0000 ArmPkg: Added new ARM Processor Feature Register definitions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15552 6f19259b-4bc3-4df7-8a09-765794883524 commit 01674afdad3460f1c1f5f7a941c4c5895c8c3f86 Author: Olivier Martin Date: Tue Jun 3 16:37:29 2014 +0000 ArmPkg/ArmLib: Drain Write Buffer before DCache maintenance operations. Cache maintenance operations by Set/Way require that the Write Buffer be drained before the cache is flushed. Without that, the flush can miss the most recent values written as they are still "pipelined". That has unfortunate consequences, especially where code is being copied to RAM. The fix is to add DSB instructions before the affected operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15551 6f19259b-4bc3-4df7-8a09-765794883524 commit 8b7f930a14d1d5480b707b60323e95450e7361c1 Author: Olivier Martin Date: Tue Jun 3 16:35:32 2014 +0000 ArmPlatformPkg/Ds5: Added script to profile EDK2 with ARM DSTREAM Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15550 6f19259b-4bc3-4df7-8a09-765794883524 commit 451b665890f69244f213d7aba4450394a21bc60c Author: Olivier Martin Date: Tue Jun 3 16:34:17 2014 +0000 ArmPkg/DefaultExceptionHandlerLib/Aarch64: Added friendly debug message Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15549 6f19259b-4bc3-4df7-8a09-765794883524 commit f747c71e301c7cf710d6511fbcc86a7ae6d475fa Author: Jaben Carsey Date: Wed May 28 17:31:22 2014 +0000 ShellPkg: fix display for map command with filtering This patch correctly displays map information when a filter was applied such as “map fs*” or “map f*”, including the use of “-c” to display the consist names first in this situation. It also moves a statement from both clauses of an “if/else” to above the “if” statement for efficiency. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15548 6f19259b-4bc3-4df7-8a09-765794883524 commit 0c41d28e598356f083c308f359d435e63a6e0ef9 Author: Jaben Carsey Date: Thu May 22 22:06:41 2014 +0000 ShellPkg: replace unrecognized Environment Variables with empty quotes so commands or applications know something existed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15547 6f19259b-4bc3-4df7-8a09-765794883524 commit b5ce69c3daf4b8e32a183fd0e53b657c70d6998a Author: Qiu Shumin Date: Thu May 22 08:32:50 2014 +0000 Update the comments for function 'InternalShellExecuteDevicePath' in ShellProtocol.c to make it consistent with parameter names. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15546 6f19259b-4bc3-4df7-8a09-765794883524 commit f3fc9d8dc987f9b78aeefd5800833c4c5bb8acf0 Author: Ruiyu Ni Date: Thu May 22 07:38:40 2014 +0000 Remove the RT attribute for HDDP variable and validate the variable content before using it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15545 6f19259b-4bc3-4df7-8a09-765794883524 commit ed2867debc8ee90ab65823e2fce73992044c795c Author: Ruiyu Ni Date: Thu May 22 07:34:35 2014 +0000 Remove the assertion which may cause IsDevicePathValid() hang in DEBUG build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15544 6f19259b-4bc3-4df7-8a09-765794883524 commit 21def103d55dd7b0fd5562634a21415afbb841e2 Author: Brendan Jackman Date: Wed May 21 05:59:47 2014 +0000 Add 'file not found' debug message to MTFTP. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-by: Fu, Siyuan Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15543 6f19259b-4bc3-4df7-8a09-765794883524 commit a145e28decc529bf26981ae57c3fc2ffe0b946f2 Author: Gabriel Somlo Date: Tue May 20 16:33:19 2014 +0000 OvmfPkg/SMBIOS: Add QEMU support to OVMF SMBIOS driver Locate QEMU SMBIOS data in fw_cfg and install it via the SMBIOS protocol. Starting with qemu-2.1, on pc/x86 machines of type >= 2.1, full SMBIOS tables are generated and inserted into fw_cfg (i.e., no per-field patching of locally generated structures is required). Aside from new code to extract a SMBIOS blob from fw_cfg, this patch utilizes the pre-existing infrastructure (already used by Xen) to handle final SMBIOS table creation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15542 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b23d767f6c762178503cf26e4c6d066fd311f25 Author: Gabriel Somlo Date: Tue May 20 16:33:11 2014 +0000 OvmfPkg/SMBIOS: Reuse handles supplied by underlying VM The SMBIOS specification requires some structure types to contain reference fields to other structures' handles. When InstallAllStructures() rebuilds the SMBIOS tables by traversing an existing source table, the use of SMBIOS_HANDLE_PI_RESERVED causes automatically generated, arbitrary handle numbers to be assigned to each cloned structure. This causes all reference handle fields to become invalid. This patch modifies InstallAllStructures() to reuse the original handle numbers supplied by the underlying VM, preserving the correctness of any included handle references. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen Tested-by: Anthony PERARD git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15541 6f19259b-4bc3-4df7-8a09-765794883524 commit 90803342b1b6060f1ddbb1aaea54fdf86a7ff9ad Author: Laszlo Ersek Date: Tue May 20 16:33:00 2014 +0000 OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) The Windows 2008 R2 SP1 (and Windows 7) UEFI guest's default video driver dereferences the real mode Int10h vector, loads the pointed-to handler code, and executes what it thinks to be VGA BIOS services in an internal real-mode emulator. Consequently, video mode switching doesn't work in Windows 2008 R2 SP1 when it runs on the pure UEFI build of OVMF, making the guest uninstallable. This patch adds a VGABIOS "shim" to QemuVideoDxe. For the first stdvga or QXL card bound, an extremely stripped down VGABIOS imitation is installed in the C segment. It provides a real implementation for the few services that are in fact necessary for the win2k8r2sp1 UEFI guest, plus some fakes that the guest invokes but whose effect is not important. The C segment is not present in the UEFI memory map prepared by OVMF. We never add memory space that would cover it (either in PEI, in the form of memory resource descriptor HOBs, or in DXE, via gDS->AddMemorySpace()). This way the handler body is invisible to all non-buggy UEFI guests, and the rest of edk2. The Int10h real-mode IVT entry is covered with a Boot Services Code page, making that too unaccessible to the rest of edk2. (Thus UEFI guest OSes different from the Windows 2008 family can reclaim the page. The Windows 2008 family accesses the page at zero regardless of the allocation type.) The patch is the result of collaboration: Initial proof of concept IVT entry installation and handler skeleton (in NASM) by Jordan Justen. Service tracing and implementation, data collection/analysis, and C coding by yours truly. Last minute changes by Gerd Hoffmann: - Use OEM mode number (0xf1) instead of standard 800x600 mode (0x143). The resolution of the OEM mode (0xf1) is not standardized; the guest can't expect anything from it in advance. - Use 1024x768 rather than 800x600 for more convenience in the Windows 2008 R2 SP1 guest during OS installation, and after normal boot until the QXL XDDM guest driver is installed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Gerd Hoffmann git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15540 6f19259b-4bc3-4df7-8a09-765794883524 commit d8f36fb56834e26a03e8993ca76d2f3870dd0b39 Author: Olivier Martin Date: Mon May 19 16:41:25 2014 +0000 ArmPkg/BdsLib: Added support for TFTP servers without 'tsize' extension Some TFTP servers do not have 'tsize' extension. This change allows to download files from TFTP servers that do not have this extension by trying to download the file into a pre-allocated buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15539 6f19259b-4bc3-4df7-8a09-765794883524 commit 6b5f577faf259dcb0955eb2263d34e7ebe773ff8 Author: Ruiyu Ni Date: Mon May 19 06:08:26 2014 +0000 Change PciIo::GetBarAttributes() to return unsupported for a unsupported bar even it's below 6 to follow the UEFI Spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15538 6f19259b-4bc3-4df7-8a09-765794883524 commit 36d6448c1ea7c32a45b719cdf04200227ae1ebb9 Author: Qiu Shumin Date: Mon May 19 00:39:48 2014 +0000 Handle multi instances device path while connecting console devices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15537 6f19259b-4bc3-4df7-8a09-765794883524 commit 67c49e4e28e050859b86dfe1a242b942a2705da3 Author: Olivier Martin Date: Fri May 16 00:11:35 2014 +0000 EmbeddedPkg/PrePiLib: Remove duplicated definition of EFI_STATUS_CODE_DATA_MAX_SIZE ... is already defined by MdeModulePkg\Include\Guid\StatusCodeDataTypeDebug.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15536 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bdb6d12a835a9b3d7729eaf51e3a4265a270cf5 Author: Ruiyu Ni Date: Thu May 15 07:22:27 2014 +0000 Change PciIo::GetBarAttributes() to return unsupported for a unsupported bar even it's below 6 to follow the UEFI Spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15535 6f19259b-4bc3-4df7-8a09-765794883524 commit ab82122dfebb90751b478b7c3cab9ed42051dbf4 Author: Tian, Feng Date: Thu May 15 07:09:14 2014 +0000 MdeModulePkg/AtaAtapiPassThru: Handle timeout 0 as indefinitely wait to strictly comply with UEFI spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Li, Elvin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15534 6f19259b-4bc3-4df7-8a09-765794883524 commit 129ff94661bd3a6c759b1e154c143d0136bedc7d Author: Olivier Martin Date: Thu May 15 01:13:05 2014 +0000 Fix some build issues (ARM toolchain). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Fu, Siyuan Reviewed-by: Wu, Jiaxin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15533 6f19259b-4bc3-4df7-8a09-765794883524 commit 36d66acf275135699fea9243e58e25990ab0db7f Author: Olivier Martin Date: Wed May 14 22:11:04 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fixed LBA for FVB FVB (for instance for UEFI Variable) might not be at the start of the NOR Flash. 'Lba' needs to be fixed up for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15532 6f19259b-4bc3-4df7-8a09-765794883524 commit 7c794bf4a04e483540e9490b8eaed2cfbc7499ea Author: Olivier Martin Date: Wed May 14 17:23:32 2014 +0000 ArmPlatformPkg/ArmVExpress-CTA15-A7.dsc: Fixed LAN controller name Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15531 6f19259b-4bc3-4df7-8a09-765794883524 commit 7282b505c5da686b95f6b2277bbd25a620d263ed Author: Jaben Carsey Date: Wed May 14 16:55:56 2014 +0000 ShellPkg: Add error messages to CP when destination file or directory cannot be opened/created Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15530 6f19259b-4bc3-4df7-8a09-765794883524 commit 09a43a5d5ce9285b27551d7909f038e350b360d9 Author: Jaben Carsey Date: Wed May 14 16:54:09 2014 +0000 ShellPkg: report error when EfiDecompress is run on a non-compressed file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Tapan Shah Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15529 6f19259b-4bc3-4df7-8a09-765794883524 commit 271ce4bd70953bf4ca5be7db9d7e65e470384896 Author: Brendan Jackman Date: Wed May 14 16:41:04 2014 +0000 ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15528 6f19259b-4bc3-4df7-8a09-765794883524 commit 1aaa6f61a55a4db594d264ab8c0b0c9ddac1110e Author: Brendan Jackman Date: Wed May 14 16:39:43 2014 +0000 ArmPkg/BdsLib: Fix allocating kernel buffer in TFTP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15527 6f19259b-4bc3-4df7-8a09-765794883524 commit 48ef4e4276fcd748f10f9a12f8dad6cc3c62ee01 Author: Olivier Martin Date: Wed May 14 05:32:07 2014 +0000 ArmPkg/CpuDxe/AArch64: Fixed SyncCacheConfig() when first entry is in 3-level If the first entry of the memory map is in the third level (case when the region at 0x0 is smaller than 4KB) then its descriptor type would be TT_TYPE_BLOCK_ENTRY_LEVEL3 (=0x3) which has the same value as TT_TYPE_TABLE_ENTRY (=0x3). The first condition in GetFirstPageAttribute() needed the table level to not mix these two descriptor types. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15526 6f19259b-4bc3-4df7-8a09-765794883524 commit 7da62bc02d70f11d6294efc71ccebb65199655d0 Author: Eric Dong Date: Wed May 14 01:52:31 2014 +0000 Based on request, export ResetRequired info used by browser. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15525 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ff8108177f541921ea6354ba6c6a3ffe6a1f333 Author: Qiu Shumin Date: Wed May 14 01:47:02 2014 +0000 Add code to connect device path of console devices correctly for Shell command 'connect -c'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15524 6f19259b-4bc3-4df7-8a09-765794883524 commit cd39fe082c886243b934b1ff4170ab32bbd0db2c Author: Olivier Martin Date: Tue May 13 21:16:42 2014 +0000 ShellPkg: Do not mix status when executing a command The function InternalShellExecuteDevicePath() did not differentiate an error occuring during the preparation of an image and an error occurring during its execution. A use case of the issue was when a EFI application was called in a EFI Shell script. If the EFI application was returning an error then the NSH script stopped its execution. While the EFI Shell specification says the script should continue its execution (see 4.2 Error Handling). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15523 6f19259b-4bc3-4df7-8a09-765794883524 commit 93e8d03cd178cde473672a29b4f0d7ff4d2ffdbc Author: Gao, Liming Date: Tue May 13 09:14:00 2014 +0000 Fix comment typos. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15522 6f19259b-4bc3-4df7-8a09-765794883524 commit 9145d31451064bd4b83d9ad3570f2cf75532b58d Author: Qiu Shumin Date: Tue May 13 01:44:02 2014 +0000 Update the comments for function 'ConvertPixelFormat' in UefiHandleParsingLib.c to make it consistent with parameter name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15521 6f19259b-4bc3-4df7-8a09-765794883524 commit 46d491d2587ee5cba735efb7e10ecdaec8aa5c70 Author: Gao, Liming Date: Mon May 12 09:41:58 2014 +0000 Update function descriptions of AIP EFI_ADAPTER_INFO_GET_SUPPORTED_TYPES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Qiu, Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15520 6f19259b-4bc3-4df7-8a09-765794883524 commit 690f491dbad5722ac25757f8177a41d7144d7a31 Author: Gao, Liming Date: Mon May 12 09:39:03 2014 +0000 Correct String language tag. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15519 6f19259b-4bc3-4df7-8a09-765794883524 commit 10ddca8db92de5a535ca1ab71b780260aae8003d Author: Mark Salter Date: Thu May 8 15:09:27 2014 +0000 ArmPkg/BdsLib: Fix booting with partial paths Boot entries created by efibootmgr may contain a partial device path to the EFI application to boot. These entries begin with a partition device path whereas entries created via ARM Boot Manager contain a full path to the EFI application. The ARM BDS code will fill in the missing parts of this partial device path as it does for removeable device paths. This allows the application to be loaded and started. However, the current code passes the original partial device path to gBS->LoadImage() and thus LoadImage is unable to find a DeviceHandle for the path. This means the application being booted cannot find the boot device from the Loaded Image Protocol structure. In the case of grub, this prevents the grub config file from being found. This patch fixes this by making sure the full path is propagated back to the caller of gBS->LoadImage() so that a proper DeviceHandle gets passed to the application being booted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mark Salter Signed-off-by: Olivier Martin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15518 6f19259b-4bc3-4df7-8a09-765794883524 commit 79e12331ef1e7c24b5be70d7bc79977ca103bab4 Author: Brendan Jackman Date: Thu May 8 15:08:39 2014 +0000 ArmPlatformPkg/BootMonFs: Cache the HW Description address This fixes a bug whereby the image description is written over file data when the file's size is close to a multiple of the block size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15517 6f19259b-4bc3-4df7-8a09-765794883524 commit e29771bb6e896d212f92ea32e67deacbecb51bea Author: Brendan Jackman Date: Thu May 8 15:06:06 2014 +0000 ArmPlatformPkg/BootMonFs: Fix flushing new files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15516 6f19259b-4bc3-4df7-8a09-765794883524 commit bf6091a95a6f27c500237b734670a4ec12430a94 Author: Brendan Jackman Date: Thu May 8 15:05:10 2014 +0000 ArmPlatformPkg/BootMonFs: Fix finding space for new files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15515 6f19259b-4bc3-4df7-8a09-765794883524 commit dcaf7c9012df9fb19b60454c9688d457e5fe2dc1 Author: Brendan Jackman Date: Thu May 8 15:04:16 2014 +0000 ArmPlatformPkg/BootMonFs: Don't write file header to media until Flush This prevents writing to a garbage location if the file has not been flushed before, as its BlockStart and BlockEnd are not set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15514 6f19259b-4bc3-4df7-8a09-765794883524 commit 35d3b52ddd168318892f8598611e6544b3f5a545 Author: Brendan Jackman Date: Thu May 8 15:03:05 2014 +0000 ArmPlatformPkg/BootMonFs: Fix permission check in SetFileInfo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15513 6f19259b-4bc3-4df7-8a09-765794883524 commit a9185e76185f045f5f64919f8ae165f3eb2f0dd6 Author: Brendan Jackman Date: Thu May 8 15:02:18 2014 +0000 ArmPlatformPkg/BootMonFs: Use DiskIO to read image descriptions Now that NorFlashDxe implements DiskIo directly and at a fine granularity this significantly improves performance. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15512 6f19259b-4bc3-4df7-8a09-765794883524 commit cc135144b9e319947ecf60316fe645b58e10f183 Author: Olivier Martin Date: Thu May 8 15:00:42 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Remove the last 16MB of the 32bit DRAM region Trusted Firmware will declare this region of DRAM as secure. There is no way for the non-secure world to access this memory region. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15511 6f19259b-4bc3-4df7-8a09-765794883524 commit f8a9910c9bee387c143029c95524bc3d3286ae55 Author: Brendan Jackman Date: Thu May 8 14:59:50 2014 +0000 ARM Packages: Use .8byte instead of .dword for pointers Clang doesn't recognise .dword Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15510 6f19259b-4bc3-4df7-8a09-765794883524 commit 73ca50096eea3edc64e2c635b6b6d99fbb5572d5 Author: Brendan Jackman Date: Thu May 8 14:59:04 2014 +0000 ARM Packages: Use AND instead of BIC instruction with immediate AARCH64 does not have a BIC-with-immediate instruction. GAS assembles it as a AND with the immediate inverted, but Clang's integrated assembler emits an error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15509 6f19259b-4bc3-4df7-8a09-765794883524 commit 7eb1d8522a583b2a0a8eea5034be7b30ab14e0f8 Author: Brendan Jackman Date: Thu May 8 14:57:51 2014 +0000 ArmPkg/CpuDxe/AArch64: use STUR instruction for signed offset The AARCH64 LDR and STR instructions only support signed offsets for post- and pre-indexed addressing. For normal signed offset addressing, the mnemonic is STUR. GNU As automatically assembles STR with signed offset as STUR, but Clang's integrated assembler doesn't. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15508 6f19259b-4bc3-4df7-8a09-765794883524 commit 0db208eacaf2727262e91b0c13b21300f203500f Author: Brendan Jackman Date: Thu May 8 14:56:42 2014 +0000 ArmPkg/CpuDxe/AArch64/ExceptionSupport.S: Fix immediate syntax GNU as assembles instructions without the '#' before immediates. Clang doesn't. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15507 6f19259b-4bc3-4df7-8a09-765794883524 commit 919a3a026cdddcdd603d18e2c7dd5c72a340ee8b Author: Brendan Jackman Date: Thu May 8 14:55:52 2014 +0000 ARM Packages: use GCC_ASM_EXPORT to export functions This ensures the .type directive is used to mark them as function symbols Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15506 6f19259b-4bc3-4df7-8a09-765794883524 commit 45440744c45dabc709550023a4d3766f908e8f7c Author: Brendan Jackman Date: Thu May 8 14:54:46 2014 +0000 ArmLib/AArch64Support.S: remove export of unimplemented function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15505 6f19259b-4bc3-4df7-8a09-765794883524 commit ef7b3786058cd29d1a180fa162e5034dd5557933 Author: Brendan Jackman Date: Thu May 8 14:54:11 2014 +0000 ARM Packages: Remove GCC filter for AARCH64 assembly files Some non-GCC toolchain might support the GNU assembly language. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15504 6f19259b-4bc3-4df7-8a09-765794883524 commit 5382a857be5061106f36d18640f685588cb827d5 Author: Olivier Martin Date: Thu May 8 14:53:02 2014 +0000 ArmPlatformPkg/Bds: Fix setting kernel command line Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15503 6f19259b-4bc3-4df7-8a09-765794883524 commit 452a9ee1a637baf7894943c9f850175f679f8ce6 Author: Brendan Jackman Date: Thu May 8 14:52:12 2014 +0000 ArmPlatformPkg/Drivers/NorFlashDxe: Directly implement DiskIO protocol This improves performance by accessing NOR with the fine granularity that the hardware permits, rather than the coarse granularity assumed by DiskIoDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15502 6f19259b-4bc3-4df7-8a09-765794883524 commit e691183822b324f30159d670b542746a83b55dde Author: Brendan Jackman Date: Thu May 8 14:50:44 2014 +0000 ArmPlatformPkg/ArmVExpressSecLibRTSM: Only use extended name of system registers for GCC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15501 6f19259b-4bc3-4df7-8a09-765794883524 commit 518c243d42731389502431a0fbf14b932f838888 Author: Harry Liebel Date: Thu May 8 14:48:55 2014 +0000 ArmPlatformPkg/NorFlashDxe: Optimise FVB protocol - Only read what needs reading, don't read the whole block. - Don't write back buffers containing no data after an erase. - Reduce number of NOR erases when writing data. Only erase the block when required. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15500 6f19259b-4bc3-4df7-8a09-765794883524 commit 0fb7e718a8587cf836266e16b9d091e0cd5a8498 Author: Tapan Shah Date: Wed May 7 22:38:16 2014 +0000 ShellPkg: Add a support to query AdapterInfo protocol for Shell ‘dh’ command. This patch adds support to display driver handles which has AdapterInfo protocol installed using ‘dh’ command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15499 6f19259b-4bc3-4df7-8a09-765794883524 commit 62c058ca9f28bb58f301fb0edae53a007350a5ef Author: Olivier Martin Date: Wed May 7 12:58:55 2014 +0000 ShellBinPkg: Updated ARM and AArch64 EFI Shell binaries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15498 6f19259b-4bc3-4df7-8a09-765794883524 commit d551cc64cdf1f943744294819220b78a60b10822 Author: Fu Siyuan Date: Wed May 7 06:17:31 2014 +0000 1. Mark the network volatile variables as deprecated in code comments and remove related code to set/get these variable. 2. Remove the GetTime() call when receiving Udp4/6 packets. Signed-off-by: Fu Siyuan Reviewed-by: Ye, Ting Reviewed-by: Wu, Jiaxin Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15497 6f19259b-4bc3-4df7-8a09-765794883524 commit 5966402ed51c5b611bf437c812047dc9c432a47e Author: Star Zeng Date: Tue May 6 02:11:23 2014 +0000 MdeModulePkg/IntelFrameworkModulePkg ACPI: Follow the new UEFI 2.4a spec to return EFI_ACCESS_DENIED for duplicated FADT, FACS or DSDT installation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15496 6f19259b-4bc3-4df7-8a09-765794883524 commit a06ec3e2af16c64709a77c8a354d6cec92185f1f Author: Ruiyu Ni Date: Mon May 5 07:33:21 2014 +0000 Add device path node/text conversion for NVMe device path node. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Jin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15495 6f19259b-4bc3-4df7-8a09-765794883524 commit 7447345a364e6aa5f5bd5219d25d28a2d6147bce Author: Jaben Carsey Date: Wed Apr 30 15:43:58 2014 +0000 ShellBinPkg: updating the binaries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15494 6f19259b-4bc3-4df7-8a09-765794883524 commit 609e0c581568c81aeb1d8cedab5e131629c1fd9c Author: Jaben Carsey Date: Wed Apr 30 15:32:27 2014 +0000 ShellPkg: Patch to enhance the output around GOP protocol This patch adds detailed information from the GOP protocol for commands (i.e. DH), that display details about the protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15493 6f19259b-4bc3-4df7-8a09-765794883524 commit b95eb5e097c74239abbbec38f9fde5faa1a68c98 Author: Tian, Feng Date: Wed Apr 30 03:38:05 2014 +0000 MdePkg/UefiScsiLib: Wrong function parameter comments in UefiScsiLib. It should be the number of transferred blocks rather than block size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15492 6f19259b-4bc3-4df7-8a09-765794883524 commit 73a9e82214f3b0935c8f05efa00a0997763f7294 Author: Tian, Feng Date: Wed Apr 30 03:36:14 2014 +0000 MdeModulePkg/ScsiDisk: Using back-off algorithm to dynamically adjust transfer length in a single SCSI/ATAPI transfer to reach best device compatibility. Besides this, the patch also fixed: 1) Wrong return value in SenseDataLength field of packet field of EFI_EXT_SCSI_PASS_THRU protocol, it should reflect real sense data length we got. 2) Wrong logic in ScsiDiskRequestSenseKeys that the logic makes SenseData pointer unaligned compared with BlockIo.Media.IoAlign field. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15491 6f19259b-4bc3-4df7-8a09-765794883524 commit 56dea5e177b4d9fc7e25b32c2e25963ad4068116 Author: Eric Dong Date: Mon Apr 28 06:53:29 2014 +0000 Config Access Protocol return value not follow spec, update code to follow it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15490 6f19259b-4bc3-4df7-8a09-765794883524 commit 1187b10f21de3d6f6e71e98e30c4b20a947e4541 Author: Ruiyu Ni Date: Mon Apr 28 06:30:14 2014 +0000 Early return when the "BootOrder" variable doesn't exist to avoid SetVariable() return EFI_NOT_FOUND. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15489 6f19259b-4bc3-4df7-8a09-765794883524 commit cd9944d72a2b51004efecdcf024a173721f1b3d1 Author: Larry Cleeton Date: Fri Apr 25 06:54:56 2014 +0000 Fix default VENDOR_CLASS in DHCP discover. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Larry Cleeton Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15488 6f19259b-4bc3-4df7-8a09-765794883524 commit 6add2be58309344ca9f7fa1f0098d6b11ee51463 Author: Olivier Martin Date: Thu Apr 24 19:31:53 2014 +0000 ArmPlatformPkg/ArmVExpress-CTA15-A7.fdf: Increased the size of FV after adding the Lan9118 driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15487 6f19259b-4bc3-4df7-8a09-765794883524 commit 02944eb70ed7e1cf639b8723a18c3b2fbf8fda06 Author: Olivier Martin Date: Thu Apr 24 19:30:11 2014 +0000 ArmPlatformPkg: Added Lan9118 support This is the on board Versatile Express Ethernet controller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15486 6f19259b-4bc3-4df7-8a09-765794883524 commit 46f2c53b544438c735708abba5dc66f83fd2dc4f Author: Olivier Martin Date: Thu Apr 24 19:29:11 2014 +0000 EmbeddedPkg: Added Lan9118 Dxe driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Signed-off-by: Brendan Jackman git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15485 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d6e1e5a069329d785844962a4628ac4bb09833c Author: Brendan Jackman Date: Thu Apr 24 19:27:46 2014 +0000 EmbeddedPkg/AndroidFastbootTransportTcpDxe: Implemented Android FastBoot over TCP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15484 6f19259b-4bc3-4df7-8a09-765794883524 commit 8bb7f03adeac67550af51472979f6f2a1162b217 Author: Olivier Martin Date: Thu Apr 24 10:37:48 2014 +0000 ArmPkg/ArmLib: Fixed AArch64 MMU code when a region overlaps 2 level-3 page tables Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15483 6f19259b-4bc3-4df7-8a09-765794883524 commit 50c455da008b74fea56489c5543fa585727b3211 Author: Gao, Liming Date: Thu Apr 24 02:19:23 2014 +0000 Correct the incorrect string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15482 6f19259b-4bc3-4df7-8a09-765794883524 commit aa4cf2ef963fe7eb0ba7a70bb7230bdde4edb6e8 Author: oliviermartin Date: Wed Apr 23 16:47:13 2014 +0000 ArmPkg/CpuDxe: Restore AArch64 system registers before returning from exception Current EDK2 source code does actually trigger nested interrupted (even if the PI spec says interrupt should not be nested). This issue has highlighted the lack of restoring ELR_EL2/ELR_EL1 register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off: Vijayakumar Subbu Signed-off: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15481 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e7f6f50cc7b05a0f6ec541ddce34211794d9c08 Author: Mauro Faccenda Date: Wed Apr 23 06:25:52 2014 +0000 Fix typo in function name PxeBcFlushStaionIp which should be PxeBcFlushStationIp. Signed-off-by: Mauro Faccenda Reviewed-by: Ye, Ting Reviewed-by: Fu, Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15480 6f19259b-4bc3-4df7-8a09-765794883524 commit d78687fc47647a5f13c31bd9dcbbf7cc31b10a98 Author: Eric Dong Date: Wed Apr 23 02:57:25 2014 +0000 Update code logic to let BDS UI can shows more than one formsets in one HiiHandle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15479 6f19259b-4bc3-4df7-8a09-765794883524 commit 5aecd343253d06393f3e56be0fd3fe8aa95eef99 Author: Olivier Martin Date: Tue Apr 22 10:13:38 2014 +0000 ArmPlatformPkg/Bds: Do not print garbage if the command line argument is empty Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15478 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f467fd33b2fc682ed5f1932453d47110345534e Author: Eric Dong Date: Mon Apr 21 02:17:29 2014 +0000 Fix GCC build fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15477 6f19259b-4bc3-4df7-8a09-765794883524 commit e6106e892d5fb4662b5dccf2891451b0e4bfe3e5 Author: Eric Dong Date: Fri Apr 18 06:40:13 2014 +0000 Refine the check expression result logic. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15476 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e2f32894bb31ba19c89e3561f97068761f5b5c0 Author: Eric Dong Date: Fri Apr 18 03:17:54 2014 +0000 Enhance the browser parse opcode logic, skip the opcode which is not defined in UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15475 6f19259b-4bc3-4df7-8a09-765794883524 commit 147113644f043b1b9bd88da4e2b4e79150c78084 Author: Paulo Alcantara Date: Thu Apr 17 20:59:50 2014 +0000 StdLib: StdLib/Malloc.c This patch fixes the following warning: "expected ‘void **’ but argument is of type ‘struct CPOOL_HEAD **’" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15474 6f19259b-4bc3-4df7-8a09-765794883524 commit 0aa39d284043be61b5f1222afdffd39a5abaf3aa Author: Olivier Martin Date: Wed Apr 16 09:31:01 2014 +0000 ArmPlatformPkg/Bds: Do not free NULL pointer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15473 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ecb9d1beee525d804cff388117e5243347a8791 Author: Jordan Justen Date: Tue Apr 15 23:53:35 2014 +0000 EmulatorPkg/Unix GCC: Add additional library search paths IA32: add /usr/lib/i386-linux-gnu X64: add /usr/lib/x86_64-linux-gnu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15471 6f19259b-4bc3-4df7-8a09-765794883524 commit acbdfd42e5326834aa9b25091d4826ab908684d7 Author: Jordan Justen Date: Tue Apr 15 23:53:26 2014 +0000 EmulatorPkg/Unix GCC: Link to libdl libdl is used for the dlopen and dlclose calls. We were already linking to it, but it appears it may have been pulled in automatically by the linker before. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15470 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a25ad8bd5db304f4e81a56d44b572979dba295c Author: Andrew Fish Date: Tue Apr 15 23:53:19 2014 +0000 EmulatorPkg: Add missing DisplayEngineDxe driver The BDS depends on the DisplayEngineDxe driver, but this driver was not added to the EmulatorPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15469 6f19259b-4bc3-4df7-8a09-765794883524 commit bfae1330cc2e7749fcf349a3a633e2e77f5f01c9 Author: Eric Dong Date: Tue Apr 15 15:38:48 2014 +0000 Update question validation logic, move the check pointer from after user input to after finish call the CHANGING callback. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15468 6f19259b-4bc3-4df7-8a09-765794883524 commit 387208ab04f54edb75c0853cf1ba1443bd796347 Author: Star Zeng Date: Tue Apr 15 09:19:04 2014 +0000 MdeModulePkg/SecurityPkg: Update TreePei to handle FvInfo2 and update FwVol of PeiCore to always install both FvInfo and FvInfo2. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao Reviewed-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15467 6f19259b-4bc3-4df7-8a09-765794883524 commit a78167a64190eaccc99f84a1485ecb50a4fd0e6f Author: Olivier Martin Date: Mon Apr 14 10:25:08 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Update the Runtime Code and Data number of pages This information give a hint to reserve some contiguous pages for runtime regions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15466 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fd184d0322dbd12abfd18753bd2d29a6637cbf3 Author: Eric Dong Date: Mon Apr 14 10:03:00 2014 +0000 Call EFI_BROWSER_ACTION_RETRIEVE for each form instead of only call once before enter this formset. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15465 6f19259b-4bc3-4df7-8a09-765794883524 commit 214698e70011b61728bc5e701e5912e6ed650321 Author: Olivier Martin Date: Mon Apr 14 09:04:31 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Added support for the additional 6GB memory of DRAM on Foundation Model The FVP Foundation model has additional DRAM regions at 0x08_8000_0000. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15464 6f19259b-4bc3-4df7-8a09-765794883524 commit bbf904d1549edd87a96f49283e86347419d314c0 Author: Jaben Carsey Date: Fri Apr 11 19:15:02 2014 +0000 ShellPkg: Fix using root of drive This allows near complete use of drive roots “fs0:” and “fs0:\” as directories and arguments to commands. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15463 6f19259b-4bc3-4df7-8a09-765794883524 commit 5f119dfc9068bed77462b1a00bc4763c861c7deb Author: Harry Liebel Date: Fri Apr 11 17:35:22 2014 +0000 ShellPkg: Fix compiler warning 'unused variable' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15462 6f19259b-4bc3-4df7-8a09-765794883524 commit df44112bdaeff35de546f474dc2b44dd242d8612 Author: Olivier Martin Date: Fri Apr 11 15:58:54 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Added support for the additional 2GB memory of DRAM on FVP The FVP Base and Foundation models have additional DRAM regions at 0x08_8000_0000. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15461 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e8ddb4a03f6a428332b55fc488473d65c430a74 Author: Olivier Martin Date: Fri Apr 11 15:58:13 2014 +0000 ArmPlatformPkg/ArmVExpressLibRTSM: Removed unused dead code This code is only specific to the ARM Versatile Express hardware board. There is no concept of logic tile on the FVP model. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15460 6f19259b-4bc3-4df7-8a09-765794883524 commit 13354807d4881376475c3dfa567df6b515aea9e0 Author: Harry Liebel Date: Fri Apr 11 15:57:06 2014 +0000 ArmPlatformPkg/Bds: Fix loading Timeout from NV storage Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15459 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c8bb1eb3bd7b40010924f23824a9e8d91af015c Author: Olivier Martin Date: Fri Apr 11 11:02:59 2014 +0000 ArmPlatformPkg/Bds: Do not start all devices when starting an OS loader EFI OS Loader application will be responsible to start their needed drivers. While other EFI applications (eg: EFI Shell) expect to have all their drivers started when they run. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15458 6f19259b-4bc3-4df7-8a09-765794883524 commit 3b3b72d62bccf43d51fb1cac81a465aade973a8a Author: Olivier Martin Date: Fri Apr 11 11:01:56 2014 +0000 ArmPlatformPkg/Bds: Allow to update EFI application boot entries Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15457 6f19259b-4bc3-4df7-8a09-765794883524 commit 5389972a63922952ee04784284668e04ac99772b Author: Olivier Martin Date: Fri Apr 11 11:00:47 2014 +0000 ArmPlatformPkg: Print arguments for EFI Application Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15456 6f19259b-4bc3-4df7-8a09-765794883524 commit 135b09a2c26d9c28f02c4d356a62ca8817344e15 Author: Olivier Martin Date: Fri Apr 11 10:59:48 2014 +0000 ArmPlatformPkg/Bds: Introduced helper function to detect if an Ascii/Unicode string is printable Some limitations: - it only supports unicode string that use ASCII character (< 0x100) - single character ASCII strings are interpreted as Unicode string - string cannot be longer than 2 x BOOT_DEVICE_OPTION_MAX (600 bytes) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15455 6f19259b-4bc3-4df7-8a09-765794883524 commit 6bcedcecb529a1bfa19df08e3a6ab300e7bf7764 Author: Olivier Martin Date: Fri Apr 11 10:59:06 2014 +0000 ArmPlatformPkg: Set PcdDefaultBootArgument to an empty unicode string Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15454 6f19259b-4bc3-4df7-8a09-765794883524 commit 55a9f75d149ea53d1c8b3da197ec344c2aedb848 Author: Olivier Martin Date: Fri Apr 11 10:57:47 2014 +0000 ArmPlatformPkg/Bds: Added support to detect if the binary is a EFI image Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15453 6f19259b-4bc3-4df7-8a09-765794883524 commit 06044819bb273fd0db56a988ed307cd70fa34358 Author: Olivier Martin Date: Fri Apr 11 10:57:00 2014 +0000 ArmPlatformPkg/Bds: Added support to pass parameters to EFI applications Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15452 6f19259b-4bc3-4df7-8a09-765794883524 commit 90a44ec4d85a03cf8feb4a95183aa3acfe246d13 Author: Olivier Martin Date: Fri Apr 11 10:56:02 2014 +0000 ArmPlatformPkg/Bds: Decoupled OptionalData for the EFI application boot entry from the Linux loader OptionalData for EFI Application does not contain any more specific information about the ArmPlatformPkg/Bds. OptionalData now only contains the data pass to the EFI application. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15451 6f19259b-4bc3-4df7-8a09-765794883524 commit 9fc9aa46ccf2d942b98d921bb22987fd232f6248 Author: Olivier Martin Date: Fri Apr 11 10:55:02 2014 +0000 ArmPlatformPkg/Bds: Add support to handle Unicode parameters Most UEFI applications expect unicode string parameter. This change is allows to support Ascii or Unicode strings. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15450 6f19259b-4bc3-4df7-8a09-765794883524 commit e213ae45524e00441287176b962008a13a093804 Author: Eric Dong Date: Fri Apr 11 06:17:03 2014 +0000 Update logic, only question with interactive attribute should trig the callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15449 6f19259b-4bc3-4df7-8a09-765794883524 commit 061d5462249664ba32d87803365c3355614b35b8 Author: Eric Dong Date: Fri Apr 11 06:15:57 2014 +0000 Sync value for string opcode after call the Callback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15448 6f19259b-4bc3-4df7-8a09-765794883524 commit 66a5771e7a6de31841f68fa7ac9545846d6d382a Author: Tian, Feng Date: Thu Apr 10 02:45:32 2014 +0000 MdeModulePkg/UsbMassStorage: Don't send READ_CAPACITY to unsupported usb mass storage type device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15447 6f19259b-4bc3-4df7-8a09-765794883524 commit d8adff447d234dd5bfafccfe3c1a5f2c858b6b02 Author: Eric Dong Date: Thu Apr 10 02:28:01 2014 +0000 Check the pointer before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15445 6f19259b-4bc3-4df7-8a09-765794883524 commit cc0b145e0f828a26715d4b483abee9b0a56ad6f7 Author: Fu Siyuan Date: Thu Apr 10 02:25:49 2014 +0000 Fix a bug in IP driver that the fragment overlap check may be skipped incorrectly. Signed-off-by: Fu Siyuan Reviewed-by: Ye, Ting Reviewed-by: Jin, Eric Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15443 6f19259b-4bc3-4df7-8a09-765794883524 commit 734b6c33ba6ec210eef3642e07479a5b9d445ef1 Author: Olivier Martin Date: Tue Apr 8 18:05:48 2014 +0000 ArmPlatformPkg/Bds: Check OptionalData is not NULL before accessing it Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15439 6f19259b-4bc3-4df7-8a09-765794883524 commit 1dbbfc176ffe8050d3de554acf246b2e21a6f650 Author: Olivier Martin Date: Tue Apr 8 18:03:25 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fixed driver to support UEFI Runtime mode - Added the NOR Flash region to the Runtime UEFI Memory Mapped IO - Caught the gEfiEventVirtualAddressChangeGuid event to fixup the NOR Flash pointers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15438 6f19259b-4bc3-4df7-8a09-765794883524 commit 2dff0c1ab2be86979ccb99db8b17bd3347b98b59 Author: Olivier Martin Date: Tue Apr 8 18:02:32 2014 +0000 ArmPlatformPkg/NorFlashDxe: Fix coding mistakes that would prevent Runtime mode - No allocation during Runtime mode (post ExitBootServices()) - Allocate all the persistent data into runtime space - Do not access BootServices API during Runtime mode Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15437 6f19259b-4bc3-4df7-8a09-765794883524 commit 000f80f77ba442329b62dc28c0bdd13c3e083ab0 Author: Olivier Martin Date: Tue Apr 8 18:01:32 2014 +0000 ArmPlatformPkg/NorFlashDxe: Declare the driver as a UEFI Runtime driver NorFlash driver is required by UEFI Variable services to read/write Non-Volatile UEFI variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15436 6f19259b-4bc3-4df7-8a09-765794883524 commit 18ee5b6d78d2275abc05dd58bf5062364a4e640e Author: Olivier Martin Date: Tue Apr 8 17:59:00 2014 +0000 ArmPlatformPkg/PL031RealTimeClock: Fixed driver to support UEFI Runtime Services - Removed PCD base address from the macro definition. The base address needs to be fixup when the driver runs in UEFI Runtime mode - Added the PL031 controller memory region to the Runtime UEFI Memory Mapped IO - Caught the gEfiEventVirtualAddressChangeGuid event to fixup the PL031 Base address Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15435 6f19259b-4bc3-4df7-8a09-765794883524 commit 9d34cac819eb5b36bf28728ef6f65d6e0439dac2 Author: Eric Dong Date: Tue Apr 8 06:17:33 2014 +0000 Refine the load form sets process for BrowserCallback function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15434 6f19259b-4bc3-4df7-8a09-765794883524 commit ad43bc6b2e3507187f48e21aa6fc95f4cee222f3 Author: Laszlo Ersek Date: Sat Apr 5 21:26:09 2014 +0000 OvmfPkg: PlatformPei: protect SEC's GUIDed section handler table thru S3 OVMF's SecMain is unique in the sense that it links against the following two libraries *in combination*: - IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/ LzmaCustomDecompressLib.inf - MdePkg/Library/BaseExtractGuidedSectionLib/ BaseExtractGuidedSectionLib.inf The ExtractGuidedSectionLib library class allows decompressor modules to register themselves (keyed by GUID) with it, and it allows clients to decompress file sections with a registered decompressor module that matches the section's GUID. BaseExtractGuidedSectionLib is a library instance (of type BASE) for this library class. It has no constructor function. LzmaCustomDecompressLib is a compatible decompressor module (of type BASE). Its section type GUID is gLzmaCustomDecompressGuid == EE4E5898-3914-4259-9D6E-DC7BD79403CF When OVMF's SecMain module starts, the LzmaCustomDecompressLib constructor function is executed, which registers its LZMA decompressor with the above GUID, by calling into BaseExtractGuidedSectionLib: LzmaDecompressLibConstructor() [GuidedSectionExtraction.c] ExtractGuidedSectionRegisterHandlers() [BaseExtractGuidedSectionLib.c] GetExtractGuidedSectionHandlerInfo() PcdGet64 (PcdGuidedExtractHandlerTableAddress) -- NOTE THIS Later, during a normal (non-S3) boot, SecMain utilizes this decompressor to get information about, and to decompress, sections of the OVMF firmware image: SecCoreStartupWithStack() [OvmfPkg/Sec/SecMain.c] SecStartupPhase2() FindAndReportEntryPoints() FindPeiCoreImageBase() DecompressMemFvs() ExtractGuidedSectionGetInfo() [BaseExtractGuidedSectionLib.c] ExtractGuidedSectionDecode() [BaseExtractGuidedSectionLib.c] Notably, only the extraction depends on full-config-boot; the registration of LzmaCustomDecompressLib occurs unconditionally in the SecMain EFI binary, triggered by the library constructor function. This is where the bug happens. BaseExtractGuidedSectionLib maintains the table of GUIDed decompressors (section handlers) at a fixed memory location; selected by PcdGuidedExtractHandlerTableAddress (declared in MdePkg.dec). The default value of this PCD is 0x1000000 (16 MB). This causes SecMain to corrupt guest OS memory during S3, leading to random crashes. Compare the following two memory dumps, the first taken right before suspending, the second taken right after resuming a RHEL-7 guest: crash> rd -8 -p 1000000 0x50 1000000: c0 00 08 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 1000010: d0 33 0c 00 00 c9 ff ff c0 10 00 01 00 88 ff ff .3.............. 1000020: 0a 6d 57 32 0f 00 00 00 38 00 00 01 00 88 ff ff .mW2....8....... 1000030: 00 00 00 00 00 00 00 00 73 69 67 6e 61 6c 6d 6f ........signalmo 1000040: 64 75 6c 65 2e 73 6f 00 00 00 00 00 00 00 00 00 dule.so......... vs. crash> rd -8 -p 1000000 0x50 1000000: 45 47 53 49 01 00 00 00 20 00 00 01 00 00 00 00 EGSI.... ....... 1000010: 20 01 00 01 00 00 00 00 a0 01 00 01 00 00 00 00 ............... 1000020: 98 58 4e ee 14 39 59 42 9d 6e dc 7b d7 94 03 cf .XN..9YB.n.{.... 1000030: 00 00 00 00 00 00 00 00 73 69 67 6e 61 6c 6d 6f ........signalmo 1000040: 64 75 6c 65 2e 73 6f 00 00 00 00 00 00 00 00 00 dule.so......... The "EGSI" signature corresponds to EXTRACT_HANDLER_INFO_SIGNATURE declared in MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c. Additionally, the gLzmaCustomDecompressGuid (quoted above) is visible at guest-phys offset 0x1000020. Fix the problem as follows: - Carve out 4KB from the 36KB gap that we currently have between PcdOvmfLockBoxStorageBase + PcdOvmfLockBoxStorageSize == 8220 KB and PcdOvmfSecPeiTempRamBase == 8256 KB. - Point PcdGuidedExtractHandlerTableAddress to 8220 KB (0x00807000). - Cover the area with an EfiACPIMemoryNVS type memalloc HOB, if S3 is supported and we're not currently resuming. The 4KB size that we pick is an upper estimate for BaseExtractGuidedSectionLib's internal storage size. The latter is calculated as follows (see GetExtractGuidedSectionHandlerInfo()): sizeof(EXTRACT_GUIDED_SECTION_HANDLER_INFO) + // 32 PcdMaximumGuidedExtractHandler * ( sizeof(GUID) + // 16 sizeof(EXTRACT_GUIDED_SECTION_DECODE_HANDLER) + // 8 sizeof(EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER) // 8 ) OVMF sets PcdMaximumGuidedExtractHandler to 16 decimal (which is the MdePkg default too), yielding 32 + 16 * (16 + 8 + 8) == 544 bytes. Regarding the lifecycle of the new area: (a) when and how it is initialized after first boot of the VM The library linked into SecMain finds that the area lacks the signature. It initializes the signature, plus the rest of the structure. This is independent of S3 support. Consumption of the area is also limited to SEC (but consumption does depend on full-config-boot). (b) how it is protected from memory allocations during DXE It is not, in the general case; and we don't need to. Nothing else links against BaseExtractGuidedSectionLib; it's OK if DXE overwrites the area. (c) how it is protected from the OS When S3 is enabled, we cover it with AcpiNVS in InitializeRamRegions(). When S3 is not supported, the range is not protected. (d) how it is accessed on the S3 resume path Examined by the library linked into SecMain. Registrations update the table in-place (based on GUID matches). (e) how it is accessed on the warm reset path If S3 is enabled, then the OS won't damage the table (due to (c)), hence see (d). If S3 is unsupported, then the OS may or may not overwrite the signature. (It likely will.) This is identical to the pre-patch status. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15433 6f19259b-4bc3-4df7-8a09-765794883524 commit e9d19a80afe61145433fe7f7f4c563c355c5c461 Author: Chris Phillips Date: Fri Apr 4 13:45:36 2014 +0000 ShellPkg: Fix command-line parsing to start with Argv[0] when comparing passed-in options Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15432 6f19259b-4bc3-4df7-8a09-765794883524 commit 81514a8ad0a0456503663522536fec9395760311 Author: Olivier Martin Date: Thu Apr 3 20:05:30 2014 +0000 ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint The stack size in the entrypoint (ie: $ARCH/ModuleEntryPoint.S) is calculated such as StackSize = PrimaryCoreStack + (core_count - 1) * SecondaryCoreStack While we were declaring the stacksize into the stack hob as: StackSize = PrimaryCoreStack + (cluster * 8) * SecondaryCoreStack If the number of cluster (ie: PcdClusterCount) were not defined correctly then the stack size declaration were not correct. It could cause stack corruption if the allocator allocates memory in this range. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15431 6f19259b-4bc3-4df7-8a09-765794883524 commit cddd490b2345e1aad85859eb84c0ee18c7ee8fce Author: Olivier Martin Date: Thu Apr 3 20:04:39 2014 +0000 ArmPlatformPkg/ArmVExpress-FVP-AArch64: Fixed number of cores and cluster for Base and Foundation models Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15430 6f19259b-4bc3-4df7-8a09-765794883524 commit 79480c8d7c3f3e6f10ed7853ce8bace30503899f Author: Olivier Martin Date: Wed Apr 2 17:33:44 2014 +0000 ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15428 6f19259b-4bc3-4df7-8a09-765794883524 commit d8dc9f0af56c68492d8a1be52efc1a711d3497f4 Author: Olivier Martin Date: Wed Apr 2 17:32:29 2014 +0000 ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist The function was allocating a buffer for the read value from the UEFI Variable. But it was returning the pointer of the default value when the variable was not present. It could cause error when the default value and the returned value were free when these addresses were the same (double FreePool on the same address). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15427 6f19259b-4bc3-4df7-8a09-765794883524 commit e3ff137e3652a85944ba1ba91ad61f09ef1ff248 Author: Dong Guo Date: Tue Apr 1 06:02:10 2014 +0000 Add missing parameter comment in AddPubKeyInStore() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15426 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fef1a3492fd2bced485ff6845914d5681067f52 Author: Eric Dong Date: Tue Apr 1 05:55:06 2014 +0000 Check the parameter before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15425 6f19259b-4bc3-4df7-8a09-765794883524 commit d0a5723f505aaad41115aff8138bc9df5cda8468 Author: Jaben Carsey Date: Mon Mar 31 21:06:13 2014 +0000 ShellPkg: Allow opening of root drive nodes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15424 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b5168d852be0d641be73e8399622704998c183f Author: Jaben Carsey Date: Mon Mar 31 20:43:04 2014 +0000 ShellPkg: Fix potential memory leak when failing to fully create a structure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15423 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f4b148993b1099de49cf736356f628c3c1201da Author: Paolo Bonzini Date: Mon Mar 31 20:36:23 2014 +0000 OvmfPkg: add a catch-all match for PCI devices in the OpenFirmware path In many cases, the second node in /pci@i0cf8/XYZ@DD,FF node is enough to match a UEFI device path; a typical cases is a NIC that is assigned from the host to the guest. Add a catch-all case for PCI devices, and reuse it for NICs since it works well for those too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15422 6f19259b-4bc3-4df7-8a09-765794883524 commit e04cca1d05e2329a5beee18a302467ba7ae482ed Author: Paolo Bonzini Date: Mon Mar 31 20:36:15 2014 +0000 OvmfPkg: non-null PcdLib instance for the CSM VideoDxe VideoDxe is a UEFI_DRIVER, so it has by default a null instance of PcdLib. It accesses two PCDs that are now dynamic (gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution and gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution). Similar to r15362 (OvmfPkg: non-null PcdLib instance for GraphicsConsoleDxe, 2014-03-22), we need to specify a non-null instance of PcdLib. This patch unbreaks the CSM VideoDxe module for OvmfPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15421 6f19259b-4bc3-4df7-8a09-765794883524 commit 96bbdbc856930abf38d0cc289536ebd11043f80f Author: Laszlo Ersek Date: Mon Mar 31 20:36:06 2014 +0000 OvmfPkg: AcpiPlatformDxe: download ACPI tables from QEMU Recent qemu versions compose all ACPI tables on the host side, according to the target hardware configuration, and make the tables available to any guest firmware over fw_cfg. See version compatibility information below. The feature moves the burden of keeping ACPI tables up-to-date from boot firmware to qemu (which is the source of hardware configuration anyway). This patch adds client code for this feature. Benefits of the qemu-provided ACPI tables include PCI hotplug for example. Qemu provides the following three fw_cfg files: - etc/acpi/rsdp - etc/acpi/tables - etc/table-loader "etc/acpi/rsdp" and "etc/acpi/tables" are similar, they are only kept separate because they have different allocation requirements in SeaBIOS. Both of these fw_cfg files contain preformatted ACPI payload. "etc/acpi/rsdp" contains only the RSDP table, while "etc/acpi/tables" contains all other tables, concatenated. The tables in these two fw_cfg files are filled in by qemu, but two kinds of fields are left incomplete in each table: pointers to other tables, and checksums (which depend on the pointers). Qemu initializes each pointer with a relative offset into the fw_cfg file that contains the pointed-to ACPI table. The final pointer values depend on where the fw_cfg files, holding the pointed-to ACPI tables, will be placed in memory by the guest. That is, the pointer fields need to be "relocated" (incremented) by the base addresses of where "/etc/acpi/rsdp" and "/etc/acpi/tables" will be placed in guest memory. This is where the third file, "/etc/table-loader" comes in the picture. It is a linker/loader script that has several command types: One command type instructs the guest to download the other two files. Another command type instructs the guest to increment ("absolutize") a pointer field (having a relative initial value) in the pointing ACPI table, present in some fw_cfg file, with the dynamic base address of the same (or another) fw_cfg file, holding the pointed-to ACPI table. The third command type instructs the guest to compute checksums over ranges and to store them. In edk2, EFI_ACPI_TABLE_PROTOCOL knows about table relationships -- it handles linkage automatically when a table is installed. The protocol takes care of checksumming too. RSDP is installed automatically. Hence we only need to care about the "etc/acpi/tables" fw_cfg file, determining the boundaries of each ACPI table inside it, and installing those tables. Qemu compatibility information: --------------+---------------------+------------------------------------- qemu version | qemu machine type | effects of the patch --------------+---------------------+------------------------------------- up to 1.6.x | any pc-i440fx | None. OVMF's built-in ACPI tables | | are used. --------------+---------------------+------------------------------------- any | up to pc-i440fx-1.6 | None. OVMF's built-in ACPI tables | | are used. --------------+---------------------+------------------------------------- 1.7.0 | pc-i440fx-1.7 | Potential guest OS crash, dependent | (default for 1.7.0) | on guest RAM size. | | | | DO NOT RUN OVMF on the (1.7.0, | | pc-i440fx-1.7) qemu / machine type | | combination. --------------+---------------------+------------------------------------- 1.7.1 | pc-i440fx-1.7 | OVMF downloads valid ACPI tables | (default for 1.7.1) | from qemu and passes them to the | | guest OS. --------------+---------------------+------------------------------------- 2.0.0-rc0 | pc-i440fx-1.7 or | OVMF downloads valid ACPI tables | later | from qemu and passes them to the | | guest OS. -------------+---------------------+------------------------------------- Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15420 6f19259b-4bc3-4df7-8a09-765794883524 commit 209c3922b7c8a4f7ddb54c9dd369500937395e58 Author: Laszlo Ersek Date: Mon Mar 31 20:35:58 2014 +0000 OvmfPkg: AcpiS3SaveDxe: do not load if S3 is unsupported/disabled in qemu The previous patch ensures that the LockBox is protected during DXE (but the OS can still drop it) if S3 is unsupported or disabled. However, S3 related drivers not only save data in the lockbox, they allocate objects with Reserved and AcpiNVS memory types too, which the OS can't (must not) release. This is a waste when S3 is unsupported or disabled. In OVMF a good "choke point" for these drivers is the entry point of AcpiS3SaveDxe. The messages of the following commits are relevant to the data and control flow: - SVN r15290 (git commit 8f5ca05b) - SVN r15305 (git commit 5a217a06) - SVN r15306 (git commit d4ba06df) Prevent AcpiS3SaveDxe from loading when S3 is unsupported or disabled. This should keep away (most of the) dependent drivers too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Matt Fleming Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15419 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e8a31f5c918edecd150c52e531bbaff0d5e0680 Author: Laszlo Ersek Date: Mon Mar 31 20:35:50 2014 +0000 OvmfPkg: PlatformPei: lifecycle fixes for the LockBox area If (mBootMode == BOOT_ON_S3_RESUME) -- that is, we are resuming --, then the patch has no observable effect. If (mBootMode != BOOT_ON_S3_RESUME && mS3Supported) -- that is, we are booting or rebooting, and S3 is supported), then the patch has no observable effect either. If (mBootMode != BOOT_ON_S3_RESUME && !mS3Supported) -- that is, we are booting or rebooting, and S3 is unsupported), then the patch effects the following two fixes: - The LockBox storage is reserved from DXE (but not the OS). Drivers in DXE may save data in the LockBox regardless of S3 support, potentially corrupting any overlapping allocations. Make sure there's no overlap. - The LockBox storage is cleared. A LockBox inherited across a non-resume reboot, populated with well-known GUIDs, breaks drivers that want to save entries with those GUIDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Matt Fleming Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15418 6f19259b-4bc3-4df7-8a09-765794883524 commit cbbac2e1efea27460d330ea87fefc2d86cf6b8bd Author: Dong Guo Date: Mon Mar 31 01:54:51 2014 +0000 Remove unused [PcdsDynamic, PcdsDynamicEx] section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fan, Jeff Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15416 6f19259b-4bc3-4df7-8a09-765794883524 commit 7a1f792dcf291d6e4c38d595e92de5c30d8ff9aa Author: Eric Dong Date: Fri Mar 28 05:51:51 2014 +0000 Check the input file pointer before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Guo, Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15412 6f19259b-4bc3-4df7-8a09-765794883524 commit c4571f04794154d405a69b79babfd74bcf9fc63a Author: Ruiyu Ni Date: Fri Mar 28 02:50:47 2014 +0000 Add check to avoid null pointer deference. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15410 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a4b498ee1f10d2ed7ac4f29f99d69d1abb9f24b Author: Star Zeng Date: Fri Mar 28 02:47:46 2014 +0000 SecurityPkg Variable: Add NULL pointer check. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15409 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c7e997ef1c81be69e6b4a8e2fa8cec013ee0d5f Author: Elvin Li Date: Fri Mar 28 02:34:31 2014 +0000 Add NULL pointer check in I2chost. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15408 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b0786b4fa46f89287293b514afd1ef5d4c24d07 Author: Elvin Li Date: Fri Mar 28 02:13:41 2014 +0000 Add ASSERT to check if NewVariable is NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15407 6f19259b-4bc3-4df7-8a09-765794883524 commit d6e88a6c60f49c73bea31a0f653d85c6f358ff0d Author: Chris Phillips Date: Thu Mar 27 18:21:43 2014 +0000 ShellPkg: Fix file system change issue that results in ASSERT Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15406 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bc363714e6bb2192a10b7b921c682eddd7cf8ec Author: Dong Guo Date: Thu Mar 27 11:03:04 2014 +0000 Remove hide TPM support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15405 6f19259b-4bc3-4df7-8a09-765794883524 commit 9a12e5825aa338f9a81fca3d451bb032fadaad33 Author: Dong Guo Date: Thu Mar 27 10:54:23 2014 +0000 Calculate enough space for 2 variables (public key and variable data) instead of directly setting them 1 by 1. Fixed a bug in public key reclaim(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15404 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c775600d5131cd9b55552f938750c7bdb36c478 Author: Eric Dong Date: Thu Mar 27 07:08:15 2014 +0000 Update code logic, remove ASSERT and use error handling. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15403 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bf04a71bff3d414cd3f880ccf7243c12d0f7268 Author: Jeff Fan Date: Thu Mar 27 06:02:54 2014 +0000 Not to copy mailbox into new space when debug agent initialization for S3 Boot Script. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15402 6f19259b-4bc3-4df7-8a09-765794883524 commit 90651f777344979cc3a85f56f10a176ceacaf065 Author: Gao, Liming Date: Thu Mar 27 05:11:02 2014 +0000 Remove RT attribute for variable PlatDriOver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15401 6f19259b-4bc3-4df7-8a09-765794883524 commit 44372159a2312201b04f48418f391d6823807e01 Author: Olivier Martin Date: Wed Mar 26 19:35:17 2014 +0000 ArmPkg/ArmCpuLib: Added A57 Errata 806969 This rare errata only affects r0p0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15400 6f19259b-4bc3-4df7-8a09-765794883524 commit 19dc108b65f6049c10663b713cea4bca83f9d801 Author: Olivier Martin Date: Wed Mar 26 19:34:32 2014 +0000 ArmPkg/ArmLib: Correct Error Handling in AArch64 There are several instances of asserts which do not also handle the error condition in Release builds. Because these functions are called in different location of the code and their parameters might change during the execution, it is safer to handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15399 6f19259b-4bc3-4df7-8a09-765794883524 commit cf02da5203db848a4ddcd6e33c2dec28c4ca4b74 Author: Olivier Martin Date: Wed Mar 26 19:33:51 2014 +0000 ArmPkg/ArmCortexA5xLib: Fixed setting of SMP bit On CortexA5x the SMP bit is BIT6 of CPUECTLR_EL1 register. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15398 6f19259b-4bc3-4df7-8a09-765794883524 commit 47d183db53d91a669b4b080036434e30cea01e29 Author: Olivier Martin Date: Wed Mar 26 19:32:48 2014 +0000 ArmPkg/ArmCortexA5x: Declared the helper functions to access the CPU Extended Control Register This register is A5x specific. It is the reason why the code moved from ArmLib to ArmCpuLib/ArmCortexA5xLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15397 6f19259b-4bc3-4df7-8a09-765794883524 commit 52d44f77c25a133d56871e7f42f9b4700ded6835 Author: Olivier Martin Date: Wed Mar 26 19:31:01 2014 +0000 ArmPkg/ArmLib: Added helper functions for accessing CPU ACTLR Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15396 6f19259b-4bc3-4df7-8a09-765794883524 commit b7dd4dbd26b122a2972a150bfee1cff66ec283c0 Author: Olivier Martin Date: Wed Mar 26 19:29:31 2014 +0000 ArmPkg/Chipset: Added ARMv8 CPU's PartNum PartNum is the field of MIDR that returns the CPU name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15395 6f19259b-4bc3-4df7-8a09-765794883524 commit ffcf17821526a7ad508210d22599de92fbf171ed Author: Olivier Martin Date: Wed Mar 26 19:28:35 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Add processor identifiers for Cortex A12/A7 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15394 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f25f7ddd0c3f8c9582ce523f7079d4a18218030 Author: Gao, Liming Date: Wed Mar 26 09:27:01 2014 +0000 Add check to make sure the data be valid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15393 6f19259b-4bc3-4df7-8a09-765794883524 commit f85acc224c8743cfc958a927f207ca846794a2cf Author: Star Zeng Date: Wed Mar 26 07:08:12 2014 +0000 PerfomancePkg Dp: Add missing EFIAPI for PrintToken(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15392 6f19259b-4bc3-4df7-8a09-765794883524 commit be9198c96d7815903a522da8d32cb7075144f693 Author: Ruiyu Ni Date: Wed Mar 26 04:23:48 2014 +0000 Remove RT attribute for variable LegacyDevOrder Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15391 6f19259b-4bc3-4df7-8a09-765794883524 commit d276ac10f184aea06b5b484c8eeef88c5d6df881 Author: Harry Liebel Date: Tue Mar 25 11:04:41 2014 +0000 ArmPkg/SemihostFs: Various fixes for the file system - Fix file deletion from the shell. - Fix file creation using the shell editor. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15390 6f19259b-4bc3-4df7-8a09-765794883524 commit 228fdff4bece78e53f44c79f5478dde7d51a8250 Author: Harry Liebel Date: Tue Mar 25 11:03:54 2014 +0000 ArmPkg/SemihostLib: Made arguments 'native' size The arguments passed to the semi-hosing backend should be of 'native' size to match register widths. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15389 6f19259b-4bc3-4df7-8a09-765794883524 commit b2bd493edbc9f31523210848ef39b4eb6a97f4a5 Author: Star Zeng Date: Tue Mar 25 06:56:55 2014 +0000 MdeModulePkg/SecurityPkg Variable: Calculate enough space for PlatformLang and Lang variables and use PcdUefiVariableDefaultLangDeprecate to turn off auto update between PlatformLang and Lang variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed-by: Guo Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15388 6f19259b-4bc3-4df7-8a09-765794883524 commit a8d8d430510db36bc421dd0cb9f9d6d45f5907ac Author: Eric Dong Date: Tue Mar 25 05:04:21 2014 +0000 Support load 64 bit image from 32 bit core. Add more enhancement to check invalid PE format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Jiewen, Yao Reviewed-by: Liming, Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15387 6f19259b-4bc3-4df7-8a09-765794883524 commit 5070befc3b9b013f36062c7cc08320c87c02f972 Author: Ruiyu Ni Date: Tue Mar 25 03:54:34 2014 +0000 Report the setting variable failure to platform through the status code when core cannot handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15386 6f19259b-4bc3-4df7-8a09-765794883524 commit 69fc8f080e07ea026e8fbb8610cfb89c099d6db2 Author: Ruiyu Ni Date: Tue Mar 25 02:38:54 2014 +0000 Report the setting variable failure to platform through the status code when core cannot handle the error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15385 6f19259b-4bc3-4df7-8a09-765794883524 commit 5456c26c2f00715c172791cb9bcc766afac1982b Author: Olivier Martin Date: Mon Mar 24 15:30:48 2014 +0000 ArmPkg/CompilerIntrinsicsLib: Added memset() to AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15384 6f19259b-4bc3-4df7-8a09-765794883524 commit 785e3cf68191adc4920c7a23137da736afd33697 Author: Olivier Martin Date: Mon Mar 24 15:29:50 2014 +0000 EmbeddedPkg: Added Isp1761UsbDxe to EmbeddedPkg.dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15383 6f19259b-4bc3-4df7-8a09-765794883524 commit 5ee57c2d7d45b500e522b3b9a1773cd2fdaa8dfa Author: Olivier Martin Date: Mon Mar 24 15:29:03 2014 +0000 ArmPkg/ArmLib: Removed unused AArch64 files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15382 6f19259b-4bc3-4df7-8a09-765794883524 commit 647517279d97297302780598122b80c8f4f855f1 Author: Olivier Martin Date: Mon Mar 24 15:26:22 2014 +0000 ArmPkg/ArmLib: Renamed Cp15CacheInfo into ArmCacheInfo CTR (Cache Type Register) has the same format on ARMv7 and AArch64. Renaming Cp15CacheInfo() into ArmCacheInfo() makes this function architecture independent. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15381 6f19259b-4bc3-4df7-8a09-765794883524 commit d9bd3f11cb47f8026a44721670f4abdfb9728a2a Author: Olivier Martin Date: Mon Mar 24 15:25:44 2014 +0000 ArmPkg/ArmLib: Removed unused ArmSwitchProcessorMode & ArmProcessorMode functions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15380 6f19259b-4bc3-4df7-8a09-765794883524 commit 0676fadd055203e784975f61b3f3c1778d4df499 Author: Olivier Martin Date: Mon Mar 24 15:25:01 2014 +0000 ArmPkg: Removed unused header files from source files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15379 6f19259b-4bc3-4df7-8a09-765794883524 commit c32aaba962242c2d32d5aff74ad593fcca7c5ac1 Author: Olivier Martin Date: Mon Mar 24 15:24:23 2014 +0000 ArmPkg: Fix typo in comment and trailing spaces Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15378 6f19259b-4bc3-4df7-8a09-765794883524 commit 2001537d53dbd0604f1457c56d4aae370a882d4f Author: Dong Guo Date: Sun Mar 23 23:47:18 2014 +0000 Comment PwdCredential driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15376 6f19259b-4bc3-4df7-8a09-765794883524 commit ddb2c493f7e7a565b52961222e8d544c613ca92e Author: Laszlo Ersek Date: Sat Mar 22 07:14:09 2014 +0000 OvmfPkg: PlatformDxe: connect RouteConfig() to platform data Establish the full stack of conversions when modifying the platform configuration: ConfigResp -- form engine / HII communication | [ConfigToBlock] | v MAIN_FORM_STATE -- binary representation of form/widget state | [FormStateToPlatformConfig] | v PLATFORM_CONFIG -- accessible to DXE and UEFI drivers | [PlatformConfigSave] | v UEFI non-volatile variable -- accessible to external utilities Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15375 6f19259b-4bc3-4df7-8a09-765794883524 commit cbd08bcc1787ae0166caa75cd340d45bb20295a7 Author: Laszlo Ersek Date: Sat Mar 22 07:14:03 2014 +0000 OvmfPkg: PlatformDxe: connect ExtractConfig() to platform data Establish the full stack of conversions in retrieving the platform configuration: MultiConfigAltResp -- form engine / HII communication ^ | [BlockToConfig] | MAIN_FORM_STATE -- binary representation of form/widget state ^ | [PlatformConfigToFormState] | PLATFORM_CONFIG -- accessible to DXE and UEFI drivers ^ | [PlatformConfigLoad] | UEFI non-volatile variable -- accessible to external utilities Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15374 6f19259b-4bc3-4df7-8a09-765794883524 commit 1df57ba3e66ad72f6ac67008aa9a99d4648e0200 Author: Laszlo Ersek Date: Sat Mar 22 07:13:57 2014 +0000 OvmfPkg: PlatformDxe: add save and discard buttons to the form The RouteConfig() function is also called now as expected. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15373 6f19259b-4bc3-4df7-8a09-765794883524 commit da07afaf5995e2e9c5c87c6389493fa892317dd0 Author: Laszlo Ersek Date: Sat Mar 22 07:13:50 2014 +0000 OvmfPkg: PlatformDxe: get available resolutions from GOP Generate the options for the drop-down list from the GOP resolutions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15372 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c08bbe59ca1e1667ffa4d0cf4d98b2a5d3a58f8 Author: Laszlo Ersek Date: Sat Mar 22 07:13:44 2014 +0000 OvmfPkg: QemuVideoDxe: serialize Start() against callbacks If Start() succeeds, the callback is only executed when the setup is complete (on the stack of RestoreTPL()), rather than on the stack of InstallMultipleProtocolInterfaces(), when the driver setup may yet be theoretically incomplete. If Start() fails, the protocol interface will have been uninstalled (rolled back) by the time the callback runs (again, on the stack of RestoreTPL()). Since protocol notification callbacks begin with locating the protocol interface in question, such attempts to locate will fail immediately and save some work in the callback. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15371 6f19259b-4bc3-4df7-8a09-765794883524 commit bc4c536628c619f1625fefb974d5cf189ce3e7ba Author: Jordan Justen Date: Sat Mar 22 07:13:38 2014 +0000 OvmfPkg/PlatformDxe: Silence warning seen with GCC48 IA32 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15370 6f19259b-4bc3-4df7-8a09-765794883524 commit 92e745505cd7244894a818d1ad747117245b5831 Author: Laszlo Ersek Date: Sat Mar 22 07:13:31 2014 +0000 OvmfPkg: PlatformDxe: add form widgets for video modes In this patch we populate the form with the two widgets related to video resolution: - A read-only string field displaying the preference for the next boot. - A drop-down list offering choices for changing the setting. This list is implemented with dynamically generated IFR opcodes. (In general, the current preference may be missing, or it may be invalid for the available video RAM size. The list of possible new settings is filtered with the video RAM size.) Because the form now becomes able to receive input, we must also implement ExtractConfig(). This function tells the HII engine about the state of the widgets. For now we set up both widgets with static data only: - The current preference always says "Unset". The driver code is still isolated from the backend (the UEFI variable store). - The list of possible resolutions offers 800x600 only. We don't interrogate the GOP yet. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15369 6f19259b-4bc3-4df7-8a09-765794883524 commit 276a7ea1477465baab954a9c8eec7b866554b465 Author: Laszlo Ersek Date: Sat Mar 22 07:13:24 2014 +0000 OvmfPkg: PlatformDxe: introduce state for the main form We'll need a C language (ie. structure) representation for the state of the visual elements on the form. We choose the Buffer Storage kind (see 29.2.5.6 "Storage" in UEFI 2.4A), because it's easy to work with. Note that the structure added in this patch has nothing to do with UEFI non-volatile variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15368 6f19259b-4bc3-4df7-8a09-765794883524 commit 877a4dbb02d5508008a7d63c05d39d82f47d449b Author: Laszlo Ersek Date: Sat Mar 22 07:13:18 2014 +0000 OvmfPkg: PlatformDxe: add an empty HII form ... which opens from the Device Manager window. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15367 6f19259b-4bc3-4df7-8a09-765794883524 commit bdaf30e4e6eb0172c4adecad6276e7bc26714b6a Author: Laszlo Ersek Date: Sat Mar 22 07:13:09 2014 +0000 OvmfPkg: PlatformDxe: set preferred video resolution from platform config The GraphicsConsoleDxe driver (in MdeModulePkg/Universal/Console) determines the preferred video resolution from the dynamic PCDs - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution Setting the graphics resolution during boot is useful when the guest OS (for lack of a dedicated display driver) continues to work with the original GOP resolution and framebuffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15366 6f19259b-4bc3-4df7-8a09-765794883524 commit 5267c89b4d114e16d5573f09c6f37af0b078abee Author: Laszlo Ersek Date: Sat Mar 22 07:13:02 2014 +0000 OvmfPkg: PlatformDxe: utility functions for saving / loading configuration The two functions introduced here allow the saving and loading of platform configuration to/from the non-volatile variable store. The PLATFORM_CONFIG structure and the two functions that take it / return it are generally meant for any DXE or UEFI driver that needs to access platform configuration. For now we keep this small "library" internal to PlatformDxe. The PLATFORM_CONFIG wire format is intended only to grow over time (as long as the variable GUID remains unchanged). At the introduction of new fields, new feature flags must be added, and recognized in PlatformConfigLoad(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15365 6f19259b-4bc3-4df7-8a09-765794883524 commit d945a8ba5bc082dfb037fc710dc616d35eb36de4 Author: Laszlo Ersek Date: Sat Mar 22 07:12:55 2014 +0000 OvmfPkg: introduce empty PlatformDxe This DXE driver will load/save persistent values for OVMF's config knobs, plus expose those knobs via HII. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15364 6f19259b-4bc3-4df7-8a09-765794883524 commit 732295d14974798bafa60bb590802f4ac4b3982f Author: Laszlo Ersek Date: Sat Mar 22 07:12:46 2014 +0000 OvmfPkg: introduce gOvmfPlatformConfigGuid This GUID should become a new "namespace" for UEFI variables that are specific to OVMF configuration (as opposed to standard UEFI global variables). We'll also use it as the GUID of the related HII form-set (ie. the interactive user interface). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15363 6f19259b-4bc3-4df7-8a09-765794883524 commit c4341e3a0e410f7c31a55edc4e7ea646c05f8c26 Author: Laszlo Ersek Date: Sat Mar 22 07:12:36 2014 +0000 OvmfPkg: non-null PcdLib instance for GraphicsConsoleDxe GraphicsConsoleDxe (a UEFI_DRIVER under MdeModulePkg/Universal/Console) determines the preferred video resolution from the dynamic PCDs - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution - gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution In one of the next patches, we'd like to change these PCDs. In order for GraphicsConsoleDxe to retrieve the new values dynamically, - it must be linked with the non-null instance of PcdLib, - OvmfPkg must provide dynamic defaults. We keep MdeModulePkg's 800x600 default resolution. (The UEFI specification requires video drivers to support 800x600.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15362 6f19259b-4bc3-4df7-8a09-765794883524 commit 5437d457b9894e5f00c6203d0660f9df053b7730 Author: Jiewen Yao Date: Fri Mar 21 02:51:42 2014 +0000 Fix current TPM device string missing. Use efivarstore instead of varstor, remove TPM disable. Signed-off-by: Jiewen Yao Reviewed-by: Guo Dong Reviewed-by: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15360 6f19259b-4bc3-4df7-8a09-765794883524 commit 553e86699d00ac8b7016fdfcb7fb747e89a1862d Author: Star Zeng Date: Fri Mar 21 01:16:07 2014 +0000 MdeModulePkg PCD: Fix PCD driver to return default data if size mismatch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15357 6f19259b-4bc3-4df7-8a09-765794883524 commit 68d151bbc9c2d48639e6de4a15d912158b10e9f7 Author: Dong Guo Date: Fri Mar 21 00:57:42 2014 +0000 Force UID modules build error to warn user that currently it is just a sample. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15356 6f19259b-4bc3-4df7-8a09-765794883524 commit eb5b60155a30428c12acd0b2c49b54159a4e55e8 Author: leroy.p.leahy Date: Thu Mar 20 22:05:51 2014 +0000 Fix TCP4/TCP6 connections. Connections were transitioning into the connected state and the polling was returning an error. Fix the polling routine to return success in this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: leroy.p.leahy@intel.com Reviewed-by: SREENIVASULA_REDDY@Dell.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15355 6f19259b-4bc3-4df7-8a09-765794883524 commit 774ccb4bcc9e4866ae9ab8422b99429c995c6039 Author: Jaben Carsey Date: Thu Mar 20 17:12:30 2014 +0000 ShellPkg: remove redudant code. call existing API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15354 6f19259b-4bc3-4df7-8a09-765794883524 commit 93b7308337a145632abdd2f1684e9bba60ffb448 Author: Jaben Carsey Date: Thu Mar 20 17:11:52 2014 +0000 ShellPkg: Remove unused function This function was not exposed outside the library and is not used internally. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15353 6f19259b-4bc3-4df7-8a09-765794883524 commit efb76d1a74db6b1dac07c1646dc4082d92b52b11 Author: Jaben Carsey Date: Thu Mar 20 17:10:57 2014 +0000 ShellPkg: Allow for LoadedImageProtocol information to be verbosely exported for commands like "dh" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15352 6f19259b-4bc3-4df7-8a09-765794883524 commit d120b4622e73140e32f6eeb8b18b36d75d3616b3 Author: Fu Siyuan Date: Thu Mar 20 08:19:28 2014 +0000 Removes MacString Rt attribute in Ip4Config/Mnp driver. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Yao, Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15351 6f19259b-4bc3-4df7-8a09-765794883524 commit 80e3a52238c5e946b1dc4c589ccf0fe285940c1d Author: Fu Siyuan Date: Thu Mar 20 06:04:50 2014 +0000 Use PXE_OPFLAGS_STATION_ADDRESS_WRITE when setting new MAC address for the NIC in SNP driver. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15350 6f19259b-4bc3-4df7-8a09-765794883524 commit 9bc5dabb10a29de5759de7f5ec3fe55307c5e226 Author: Star Zeng Date: Thu Mar 20 02:07:48 2014 +0000 MdeModulePkg/SecurityPkg Variable: Return error status to avoid inconsistency between PlatformLang and Lang. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15340 6f19259b-4bc3-4df7-8a09-765794883524 commit 25da08c8b2a73b375f57652104cfdbd0db82d31e Author: Dong Guo Date: Wed Mar 19 03:12:57 2014 +0000 Fix the return value bug when updating public key database variable failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15339 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e991a2f87e6146a203dc7ed138a77a1b9796c74 Author: Elvin Li Date: Wed Mar 19 02:42:36 2014 +0000 Did proper error handling when SetVariable failed, and put RTC write operation at the behind of SetVariable, if SetVariable failed, RTC content could not be changed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15338 6f19259b-4bc3-4df7-8a09-765794883524 commit ef4defca7a2b8b3bab11c51e92c7a82f9ab1de84 Author: Star Zeng Date: Tue Mar 18 09:10:13 2014 +0000 IntelFrameworkModulePkg AcpiS3SaveDxe: Remove ASSERT, add lock and remove RT for AcpiGlobalVariable variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15337 6f19259b-4bc3-4df7-8a09-765794883524 commit 4529d723108b6aa365927f85143d4897b4563477 Author: Elvin Li Date: Tue Mar 18 07:43:27 2014 +0000 Remove ASSERT when SetVariable for ConOutDev/ConInDev/ErrOutDev variables failed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15336 6f19259b-4bc3-4df7-8a09-765794883524 commit 304ae970ee25eed4c7ab4f153ceba8b37e1ee661 Author: Jaben Carsey Date: Mon Mar 17 17:18:08 2014 +0000 ShellPkg: Move a function into shared location Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15335 6f19259b-4bc3-4df7-8a09-765794883524 commit 560b2fb47aefebddcca6d5572438ad1c1ed5ce29 Author: Dong Guo Date: Mon Mar 17 08:38:32 2014 +0000 Add comments for PcdHideTpmSupport. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15334 6f19259b-4bc3-4df7-8a09-765794883524 commit e609aef97a174455a79f339b15f83713b99e3b03 Author: Ruiyu Ni Date: Mon Mar 17 08:24:07 2014 +0000 Do not reset system when the MemoryTypeInformation variable cannot be written. Remove the RT attribute for the MemoryTypeInformation variable because it’s not necessary. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15333 6f19259b-4bc3-4df7-8a09-765794883524 commit 4345d16427c4b88e2c4183b38eefb7015bc36bcf Author: Dong Guo Date: Mon Mar 17 08:23:54 2014 +0000 Remove unnecessary dependency in variable driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15332 6f19259b-4bc3-4df7-8a09-765794883524 commit a81d26ab358a6a5d30bbd5f613d73f59c452959a Author: Gao, Liming Date: Mon Mar 17 07:24:15 2014 +0000 Add comments to describe PlatformDriOverrideDxe is used for test purpose. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15331 6f19259b-4bc3-4df7-8a09-765794883524 commit fd704cbd17f6388520bcb57e6c9fec2a32362ca4 Author: Gao, Liming Date: Mon Mar 17 07:22:50 2014 +0000 Remove ASSERT check for SetVariable in FirmwarePerformanceDataTableDxe Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-by: Yao, Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15330 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a8c6c962a4abc75224799bfd03f2f68bb2a89e3 Author: Dong Guo Date: Mon Mar 17 05:46:53 2014 +0000 Fix the return status when physical presence variable and MemoryOverwriteRequestControl variable are corrupt. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Guo Reviewed-by: Fu Siyuan Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15329 6f19259b-4bc3-4df7-8a09-765794883524 commit 9c12f2d77fe8ac958e6da4ceb92378227dd6c676 Author: Fu Siyuan Date: Mon Mar 17 05:32:32 2014 +0000 Remove ASSERT when failed to Get/Set “AttemptOrder” and “ClientId” variable. Removes RT attribute for “AttemptOrder” variable. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Yao, Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15328 6f19259b-4bc3-4df7-8a09-765794883524 commit 1c9135a288234d15086a5b6f267dd4822d044064 Author: Laszlo Ersek Date: Thu Mar 13 17:35:03 2014 +0000 OvmfPkg: BDS: QemuBootOrder: don't leak unreferenced boot options The Boot#### variables that have become unreferenced in the new BootOrder variable won't ever be automatically reused for booting. They are "unreachable" resources that take up room in the variable store. Make an effort to remove them. This should plug the leak which, given sufficient reboots, exhausts the variable store with stale Boot#### variables and renders the VM unbootable. Reported-by: Michael Chang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15327 6f19259b-4bc3-4df7-8a09-765794883524 commit de5ae37bb23a67f936a9671e8a78c40f06fd5392 Author: Laszlo Ersek Date: Thu Mar 13 17:34:55 2014 +0000 OvmfPkg: BDS: remove historic (now defunct) boot mode hack When PI can distinguish the "full config" boot mode from "assume no changes", then the following BDS logic is correct: if BootMode == BOOT_WITH_FULL_CONFIGURATION: // // connect all devices // create & append each default boot option that's missing // BdsLibConnectAll BdsLibEnumerateAllBootOption else if BootMode == BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: // // just stick with current BootOrder and the Boot#### variables // referenced by it // In theory, the first branch is intended to run infrequently, and the "assume no changes" branch should run most of the time. However, some platforms can't tell these two boot modes apart. The following substitute had been introduced: // // Technically, always assume "full config", but the BootMode HOB is // actually meaningless wrt. to "full config" or "assume no changes". // ASSERT (BootMode == BOOT_WITH_FULL_CONFIGURATION); // // Key off the existence of BootOrder. Try to prepare an in-memory list // of boot options, based on BootOrder and the referenced Boot#### // variables. // Status = BdsLibBuildOptionFromVar() // // If that succeeded, we'll treat it as "assume no changes". If it // failed (*only* if it failed), we'll build default boot options, // calling it "full config": // if EFI_ERROR(Status): BdsLibConnectAll() BdsLibEnumerateAllBootOption(BootOptionList) What we have now in OVMF is a mixture of the hack, and the behavior that's theoretically correct for "full config": - We assert "full config" -- this is OK. - We call "connect all" and "enumerate all" deliberately -- this is OK too. It matches "full config" which we assert. - However, we also have the hack in place, which had been meant as an alternative. In order to clean this up, we either need to restore the hack to its original form (ie. comment out the unconditional calls again), or we ought to remove the hack altogether. The unconditional "connect all" + "enumerate all" calls are the correct approach for OVMF, because we want, in fact, to start with "full config". The QEMU boot order specification and the set of emulated devices might change "out of band", which excludes "assume no changes". In other words, removing the hack corresponds to the "real production" case that the comment hints at. Because SetBootOrderFromQemu() may change the BootOrder NvVar, we must preserve the BdsLibBuildOptionFromVar() function call, in order to refresh the in-memory list with the new boot priorities. (The last step of BdsLibEnumerateAllBootOption() is such a call too.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15326 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ffa9c616d41956d84b82e3c9792fd87e3d3e1ae Author: Ryan Harkin Date: Wed Mar 12 17:24:48 2014 +0000 ArmPlatformPkg/Bds: stop inputting more characters when string is full If EditHIInputStr() is called, say with a MaxCmdLine of 2, the user is currently allowed to enter 2 characters. If the second character is a carriage return/line feed, this is substituted with a NULL and the function returns. If the second character is a regular character, the loop terminated and the function returns. However, the buffer has not been NULL terminated. This patch prevents the user from entering a regular character as the final character and ensures that the only way out of the input is by pressing ESC or ENTER (or equivalent). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15325 6f19259b-4bc3-4df7-8a09-765794883524 commit cb77b48ad9ee73acfb78c1d800ace7417fb7a24e Author: Olivier Martin Date: Wed Mar 12 17:23:33 2014 +0000 ArmPlatformPkg/BootMonFs: Added support for new revision of the NOR Flash file system Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15324 6f19259b-4bc3-4df7-8a09-765794883524 commit 0698723204155fd5b9710e6a1de445782443b191 Author: Brendan Jackman Date: Mon Mar 10 18:13:13 2014 +0000 ShellPkg: ShellCommands/SetVar: Make '-rt' imply '-bs' It's invalid to set a variable that's available from runtime services but not from boot services. Currently if you pass '-rt' without '-bs' you get a generic 'Invalid Parameter' message. We should either print a more useful message in this case, or make '-rt' imply '-bs' (as this patch does). The Shell Spec is ambiguous on the matter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15323 6f19259b-4bc3-4df7-8a09-765794883524 commit 207256b79bf296c5db4d77c729ae79c63819e620 Author: jyao1 Date: Fri Mar 7 03:07:09 2014 +0000 Remove unused variable attribute flag. Signed off by: Jiewen Yao Reviewed by: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15321 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f344fffc7fb541d11edf4cf657f84549b334244 Author: Shumin Qiu Date: Fri Mar 7 01:06:37 2014 +0000 1.Add code to check the pointer 'CorrectedPath' in Ls.c line 460 before referenced. 2.Not use explicit comparisons to TRUE or FALSE for Boolean variable in Ls.c. 3.Add doxygen tags in comment and return type for 'ToLower' in ShellProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15320 6f19259b-4bc3-4df7-8a09-765794883524 commit 7292c69b2ae18cda8cd21f25daff85da1e69a23d Author: Daryl McDaniel Date: Fri Mar 7 01:05:30 2014 +0000 StdLib: Modify the memory allocation routines to not be dependent upon the internal structure of the EDK II memory pool. StdLib/LibC/StdLib/Malloc.c Create a private data structure, CPOOL_HEAD, which contains housekeeping information for StdLib’s memory allocation functions. An instance of this structure is prepended to every chunk of allocated memory. The structure links the allocation into a doubly-linked list and keeps track of the size of each allocation unit. This information is then available for use by the realloc function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge Reviewed-by: Rosenbaum, Lee G git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15319 6f19259b-4bc3-4df7-8a09-765794883524 commit de2eccc46a58280f259e60c6353b700e3a5aaddb Author: Mike Maslenkin Date: Wed Mar 5 08:45:13 2014 +0000 The size of platform memory above 1M is measured in kilobytes. This patch fixes truncation of this value. Actually 0 Mb memory size was set by reason of overflow of 16 bit word caused by wrong value used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mike Maslenkin Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15318 6f19259b-4bc3-4df7-8a09-765794883524 commit 81f2915669f734f34e3e83c83287e7371e298390 Author: Olivier Martin Date: Wed Mar 5 04:52:33 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Added Android FastBoot support That includes an implementation of FASTBOOT_PLATFORM_PROTOCOL for ARM Versatile Express. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15317 6f19259b-4bc3-4df7-8a09-765794883524 commit d3f99770c0aa0a4468062963ba5f1b7dd1ebcbbd Author: Olivier Martin Date: Wed Mar 5 04:51:31 2014 +0000 EmbeddedPkg/AndroidFastbootTransportUsbDxe: Implemented Android FastBoot over USB Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15316 6f19259b-4bc3-4df7-8a09-765794883524 commit 4257aa4d4b94489a86201fdf56cbd033a9bb518a Author: Olivier Martin Date: Wed Mar 5 04:33:37 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Added Isp1761 USB OTG driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15315 6f19259b-4bc3-4df7-8a09-765794883524 commit dbfd80d87363fe855eee7eadd029ff9c43e44bb2 Author: Olivier Martin Date: Wed Mar 5 04:32:48 2014 +0000 EmbeddedPkg/Isp1761UsbDxe: Driver for the NXP ISP1761's USB peripheral controller This driver doesn't support OTG - it simply sets the NXP ISP1761 in pure peripheral mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15314 6f19259b-4bc3-4df7-8a09-765794883524 commit d972f80b0866404f1141a3d2848cb7ecd023acfb Author: Olivier Martin Date: Wed Mar 5 04:31:04 2014 +0000 EmbeddedPkg/UsbDevice.h: Introduced USB Device Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15313 6f19259b-4bc3-4df7-8a09-765794883524 commit f6755908dee0d71926ec4f440edd384523746ef6 Author: Olivier Martin Date: Wed Mar 5 04:15:44 2014 +0000 EmbeddedPkg/AndroidFastboot: Introduce Android FastBoot Application This application enables Android FastBoot on UEFI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15312 6f19259b-4bc3-4df7-8a09-765794883524 commit ddd1436622131ced99193700dcd7dca5dc0aa315 Author: Olivier Martin Date: Wed Mar 5 04:14:02 2014 +0000 EmbeddedPkg/AndroidFastbootPlatform.h: Introduced Fastboot Platform Protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15311 6f19259b-4bc3-4df7-8a09-765794883524 commit d8fd88626bc97303a423733fd0baa208e28728ec Author: Olivier Martin Date: Wed Mar 5 04:12:35 2014 +0000 EmbeddedPkg/AndroidFastbootTransport.h: Introduced Android Fastboot Transport protocol Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15310 6f19259b-4bc3-4df7-8a09-765794883524 commit da78c88f4535dee0595a82678bec0d933fd7080e Author: Laszlo Ersek Date: Wed Mar 5 00:54:00 2014 +0000 OvmfPkg: raise DXEFV size to 8 MB This fixes build errors like: GenFds.py... the required fv image size 0x71b118 exceeds the set fv image size 0x700000 which is reported at least for: (a) -b DEBUG -D SECURE_BOOT_ENABLE -t GCC44, (b) -b DEBUG -D SECURE_BOOT_ENABLE -t GCC48 -D CSM_ENABLE Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15309 6f19259b-4bc3-4df7-8a09-765794883524 commit 34511266c2607b1d9ee99cff81649537d859a6ac Author: Jordan Justen Date: Tue Mar 4 08:04:20 2014 +0000 OvmfPkg: Add DebugAgentLib for Library class mapping for DXE_DRIVER This is needed for BootScriptExecutorDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15308 6f19259b-4bc3-4df7-8a09-765794883524 commit 939004009de251bfecec2a7c5c16d12f4a5adffe Author: Laszlo Ersek Date: Tue Mar 4 08:04:13 2014 +0000 OvmfPkg: S3 Resume: pull in BootScriptExecutorDxe This driver (from "MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf") is first loaded normally during DXE. When the EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL is installed by any DXE driver (purely as a form of notification), the driver reloads itself to reserved memory. During S3 Resume / PEI, the driver image is executed from there. In order to access the boot script saved during S3 Suspend, LockBox access is needed. The boot script is transferred internal to PiDxeS3BootScriptLib: Both S3SaveStateDxe and BootScriptExecutorDxe are statically linked against PiDxeS3BootScriptLib. Whichever is loaded first (during normal boot, in the DXE phase), allocates the root storage for the script. The address is then passed between the PiDxeS3BootScriptLib instances living in the two separate drivers thru the dynamic PcdS3BootScriptTablePrivateDataPtr PCD. Dependencies: BootScriptExecutorDxe gEfiLockBoxProtocolGuid [OvmfPkg/AcpiS3SaveDxe] S3BootScriptLib [PiDxeS3BootScriptLib] SmbusLib [BaseSmbusLibNull] LockBoxLib [OvmfPkg/Library/LockBoxLib] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15307 6f19259b-4bc3-4df7-8a09-765794883524 commit d4ba06dfdc3a0c2f6519d3dcaf4437e164d4ac91 Author: Laszlo Ersek Date: Tue Mar 4 08:04:04 2014 +0000 OvmfPkg: S3 Resume: fake LockBox protocol for BootScriptExecutorDxe BootScriptExecutorDxe, to be pulled in in the next patch, was written with the SMM implementation of LockBox in mind. That implementation is split in the following three parts: - client side (DXE/PEI) library, - SMM driver producing gEfiLockBoxProtocolGuid, - driver side (SMM) library. BootScriptExecutorDxe includes the client side LockBoxLib. So that the library can communicate with the SMM LockBox driver, BootScriptExecutorDxe has a Depex on gEfiLockBoxProtocolGuid, normally installed by the SMM LockBox driver. This is actually not a hard dependency, it just ensures correct load order between BootScriptExecutorDxe and MdeModulePkg/Universal/LockBox/SmmLockBox. The (client side) LockBox library instance in OVMF doesn't depend on a separate driver that produces gEfiLockBoxProtocolGuid. Nothing produces that GUID right now in OVMF. This prevents BootScriptExecutorDxe from loading. Install gEfiLockBoxProtocolGuid in our only S3-specific, custom DXE driver, in order to enable loading of BootScriptExecutorDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15306 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a217a0649b31db2f0e7a65e42f92fbebc3bef96 Author: Laszlo Ersek Date: Tue Mar 4 08:03:56 2014 +0000 OvmfPkg: S3 Suspend: save boot script after ACPI context The trigger to actually save the boot script is the installation of EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL, to be performed by any DXE driver. Installation of the protocol also locks down SMM (as its name indicates) and (in theory) prevents further LockBox access. We cannot install this protocol before BdsLibBootViaBootOption() is called (eg. in OVMF's PlatformBdsPolicyBehavior()), because BdsLibBootViaBootOption() calls EFI_ACPI_S3_SAVE_PROTOCOL.S3Save(), which needs LockBox access. We also can't install the protocol after BdsLibBootViaBootOption() returns, simply because control is never returned to us. Therefore modify our EFI_ACPI_S3_SAVE_PROTOCOL implementation so that the boot script is prepared and installed internally to S3Save(). (The boot script must contain at least one opcode, otherwise S3BootScriptLib runs into an assertion failure. We add a harmless (no-op) "information" opcode.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15305 6f19259b-4bc3-4df7-8a09-765794883524 commit b017b1b27a18af9519a0a18ed731d8d7c8cefa43 Author: Laszlo Ersek Date: Tue Mar 4 08:03:50 2014 +0000 OvmfPkg: S3 Suspend: enable creation/saving of an S3 Boot Script "MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf" produces the EFI_S3_SAVE_STATE_PROTOCOL which allows creation and saving of an S3 Boot Script, to be replayed in PEI during S3 Resume. The script contains opcodes and opcode arguments to configure CPU, PCI and IO resources. S3SaveStateDxe relies on the S3BootScriptLib library. The Null implementation is not useful for actually saving the boot script, we need the PiDxeS3BootScriptLib instance. The PiDxeS3BootScriptLib library instance depends on LockBoxLib, implemented for OVMF in one of the previous patches. PiDxeS3BootScriptLib also depends on SmbusLib. For now we opt for the Null instance of the latter. It means that SMBus commands in the boot script will have no effect when interpreted during S3 Resume. This should be fine for OvmfPkg and QEMU. EFI_S3_SAVE_STATE_PROTOCOL [S3SaveStateDxe] S3BootScriptLib [PiDxeS3BootScriptLib] SmbusLib [BaseSmbusLibNull] LockBoxLib [OvmfPkg/Library/LockBoxLib] When the EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL is installed by any DXE driver (purely as a form of notification), the S3SaveStateDxe driver saves the boot script to EfiACPIMemoryNVS, and links it into the LockBox. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15304 6f19259b-4bc3-4df7-8a09-765794883524 commit 389cbceb7fc0039ff68abf3df31886e6f85b8092 Author: Laszlo Ersek Date: Tue Mar 4 08:03:38 2014 +0000 OvmfPkg: S3 Suspend: save ACPI context "OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf" (originally: "IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf") produces the EFI_ACPI_S3_SAVE_PROTOCOL. When found, this protocol is automatically invoked by BdsLibBootViaBootOption(), in file "IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c", right before booting a boot option, to save ACPI S3 context. At that point during BDS, our AcpiPlatformDxe driver will have installed the FACS table (which AcpiS3SaveDxe has a use-time dependency upon). With regard to dependencies: AcpiS3SaveDxe implements EFI_ACPI_S3_SAVE_PROTOCOL by relying on LockBoxLib. BdsLibBootViaBootOption() EFI_ACPI_S3_SAVE_PROTOCOL [AcpiS3SaveDxe] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: Remove EmuNvramLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15303 6f19259b-4bc3-4df7-8a09-765794883524 commit 600c74bcd2c7be0d2d3e59364e3b676aa1e0ef7f Author: Laszlo Ersek Date: Tue Mar 4 08:03:31 2014 +0000 OvmfPkg: S3 Suspend: import specialized copy of AcpiS3SaveDxe "IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf" currently specifies a DepEx on gEfiMpServiceProtocolGuid (MP Services). The justification is the following code sequence: InstallAcpiS3Save() if PcdFrameworkCompatibilitySupport is set: InstallAcpiS3SaveThunk() if EFI_MP_SERVICES_PROTOCOL is available: GetVariable(ACPI_GLOBAL_VARIABLE) In English, the AcpiS3SaveDxe driver insists on the presence of MP Services *unconditionally* because, - if PcdFrameworkCompatibilitySupport is set (the default is false), - and MP Services are available (which is constant true under the above condition), then the AcpiS3SaveDxe driver would like to get the ACPI_GLOBAL_VARIABLE variable from the MP Services driver, rather than setting it itself. The DepEx prevents AcpiS3SaveDxe from loading under OvmfPkg, since we provide no MP Services implementation. This is particularly broken since the default PcdFrameworkCompatibilitySupport value is FALSE, making the entire code that would look at EFI_MP_SERVICES_PROTOCOL dead. Copy AcpiS3SaveDxe to OvmfPkg, substitute PcdFrameworkCompatibilitySupport with constant FALSE, and remove all code that becomes dead, including the DepEx. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15302 6f19259b-4bc3-4df7-8a09-765794883524 commit 6a7cba79b7b6d58f79a01bf29c900cb3ca6b5187 Author: Laszlo Ersek Date: Tue Mar 4 08:03:23 2014 +0000 OvmfPkg: implement LockBoxLib The S3 suspend/resume infrastructure depends on the LockBox library class. The edk2 tree currently contains Null and SMM instances. The Null instance is useless, and the SMM instance would require SMM emulation by including the SMM core and adding several new drivers, which is deemed too complex. Hence add a simple LockBoxLib instance for OVMF. jordan.l.justen@intel.com: * use PCDs instead of EmuNvramLib - clear memory in PlatformPei on non S3 boots * allocate NVS memory and store a pointer to that memory - reduces memory use at fixed locations Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15301 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fb6fc0f0538af2927905090c26a72d4de4112a4 Author: Laszlo Ersek Date: Tue Mar 4 08:03:06 2014 +0000 OvmfPkg: S3 Resume: pull in PEIM orchestrating S3 Resume "UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf" produces the EFI_PEI_S3_RESUME2 PEIM-to-PEIM Interface. When the platform-specific initialization code (in PEI) sets the Boot Mode to BOOT_ON_S3_RESUME, the DXE IPL (which is the last step in PEI) skips the DXE phase entirely, and executes the S3 Resume PEIM through the EFI_PEI_S3_RESUME2 interface instead. (See DxeLoadCore() in "MdeModulePkg/Core/DxeIplPeim/DxeLoad.c".) S3Resume2Pei depends on LockBoxLib. EFI_PEI_S3_RESUME2 [S3Resume2Pei] LockBoxLib [OvmfPkg/Library/LockBoxLib] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15300 6f19259b-4bc3-4df7-8a09-765794883524 commit 74e5c15842b75be9e7d2057ac0345cbf524b2234 Author: Jordan Justen Date: Tue Mar 4 08:02:59 2014 +0000 OvmfPkg/PlatformPei: Allocate PEI FV as ACPI NVS if S3 is supported On S3 resume, we skip decompression of the PEI FV, and expect to jump directly into it. For this to work, we need the OS to leave the memory range untouched. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15299 6f19259b-4bc3-4df7-8a09-765794883524 commit 78a38b73c39569aacca5c7a4f44bb896305a301a Author: Laszlo Ersek Date: Tue Mar 4 08:02:52 2014 +0000 OvmfPkg: PlatformPei: reserve early page tables on X64 On X64, the reset vector code in "OvmfPkg/ResetVector/Ia32/PageTables64.asm" identity maps the first 4GB of RAM for PEI, consuming six frames starting at 8MB. This range is declared by the PcdOvmfSecPageTablesBase/Size PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek [jordan.l.justen@intel.com: Move to MemDetect.c; use PCDs] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15298 6f19259b-4bc3-4df7-8a09-765794883524 commit e249f906f10f527ba273542a49b64778fd6b4fa2 Author: Laszlo Ersek Date: Tue Mar 4 08:02:45 2014 +0000 OvmfPkg: PlatformPei: reserve SEC/PEI temp RAM for S3 resume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek [jordan.l.justen@intel.com: move to MemDetect.c; use PCDs] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15297 6f19259b-4bc3-4df7-8a09-765794883524 commit a781f7099bc2584fd065f1947bedd49adfea0fa5 Author: Jordan Justen Date: Tue Mar 4 08:02:37 2014 +0000 OvmfPkg/Sec: Don't decompress the FV on S3 resume Since we marked the FV at PcdOvmfPeiMemFvBase as ACPI NVS memory, we can use it on S3 resume. The FV at PcdOvmfDxeMemFvBase may have been overwritten by the OS, but we do not use it's contents on S3 resume. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15296 6f19259b-4bc3-4df7-8a09-765794883524 commit bd386eaf86f1f55dd28d2c5b26a8c80b2a9002a8 Author: Jordan Justen Date: Tue Mar 4 08:02:30 2014 +0000 OvmfPkg/PlatformPei: Skip various items for S3 resume We will not be running DXE on S3 resume, so we don't need to do these initialization items: * Reserve EMU Variable memory range * Declare Firmware volumes * Add memory HOBs v5: * Move MiscInitialization back to running on S3 resume Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15295 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e54500fd48b56d8cf660c18656e10fe89ee3af7 Author: Jordan Justen Date: Tue Mar 4 08:02:16 2014 +0000 OvmfPkg: Add section of memory to use for PEI on S3 resume This 32k section of RAM will be declared to the PEI Core on S3 resume to allow memory allocations during S3 resume PEI. If the boot mode is BOOT_ON_S3_RESUME, then we publish the pre-reserved PcdS3AcpiReservedMemory range to PEI. If the boot mode is not BOOT_ON_S3_RESUME, then we reserve this range as ACPI NVS so the OS will not use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15294 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cdba6346b97562dad9809297cd7a32979a5a1d8 Author: Jordan Justen Date: Tue Mar 4 08:01:58 2014 +0000 OvmfPkg/PlatformPei: Detect S3 support for QEMU / KVM QEMU indicates whether S3 is supported or not in the fw-cfg interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15293 6f19259b-4bc3-4df7-8a09-765794883524 commit 14eb7a5be2d6415ca614fb62c28fd165eed3c572 Author: Laszlo Ersek Date: Tue Mar 4 08:01:49 2014 +0000 OvmfPkg QemuFwCfgLib: determine if S3 support is explicitly enabled Such a packaged query function will come in handy in the following patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: check for enabled rather than disabled] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15292 6f19259b-4bc3-4df7-8a09-765794883524 commit 979420df986e0b9ec3fe5cb2a1f72332a42c61c1 Author: Jordan Justen Date: Tue Mar 4 08:01:40 2014 +0000 OvmfPkg/PlatformPei: Add mBootMode driver variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15291 6f19259b-4bc3-4df7-8a09-765794883524 commit 8f5ca05b0d423de6da0208979aa82ccacfa9ce01 Author: Laszlo Ersek Date: Tue Mar 4 08:01:32 2014 +0000 OvmfPkg: PlatformPei: detect S3 Resume in CMOS and set boot mode accordingly Data is transferred between S3 Suspend and S3 Resume as follows: S3 Suspend (DXE): (1) BdsLibBootViaBootOption() EFI_ACPI_S3_SAVE_PROTOCOL [AcpiS3SaveDxe] - saves ACPI S3 Context to LockBox ---------------------+ (including FACS address -- FACS ACPI table | contains OS waking vector) | | - prepares boot script: | EFI_S3_SAVE_STATE_PROTOCOL.Write() [S3SaveStateDxe] | S3BootScriptLib [PiDxeS3BootScriptLib] | - opcodes & arguments are saved in NVS. --+ | | | - issues a notification by installing | | EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL | | | | (2) EFI_S3_SAVE_STATE_PROTOCOL [S3SaveStateDxe] | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - closes script with special opcode <---------+ | - script is available in non-volatile memory | via PcdS3BootScriptTablePrivateDataPtr --+ | | | BootScriptExecutorDxe | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - Knows about boot script location by <----+ | synchronizing with the other library | instance via | PcdS3BootScriptTablePrivateDataPtr. | - Copies relocated image of itself to | reserved memory. --------------------------------+ | - Saved image contains pointer to boot script. ---|--+ | | | | Runtime: | | | | | | (3) OS is booted, writes OS waking vector to FACS, | | | suspends machine | | | | | | S3 Resume (PEI): | | | | | | (4) PlatformPei sets S3 Boot Mode based on CMOS | | | | | | (5) DXE core is skipped and EFI_PEI_S3_RESUME2 is | | | called as last step of PEI | | | | | | (6) S3Resume2Pei retrieves from LockBox: | | | - ACPI S3 Context (path to FACS) <------------------|--|--+ | | | +------------------|--|--+ - Boot Script Executor Image <----------------------+ | | | | (7) BootScriptExecutorDxe | | S3BootScriptLib [PiDxeS3BootScriptLib] | | - executes boot script <-----------------------------+ | | (8) OS waking vector available from ACPI S3 Context / FACS <--+ is called Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen [jordan.l.justen@intel.com: move code into BootModeInitialization] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15290 6f19259b-4bc3-4df7-8a09-765794883524 commit bb97e78852ffadafce09523b304c7e5b4f6b30ee Author: Laszlo Ersek Date: Mon Mar 3 08:41:15 2014 +0000 OvmfPkg: QemuVideoDxe: add further BOCHS modes This brings the list of BOCHS video modes to par with the QEMU QXL implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15289 6f19259b-4bc3-4df7-8a09-765794883524 commit ec88061ec82d3ebf6a83d562d17583b70e32ce13 Author: Laszlo Ersek Date: Mon Mar 3 08:41:08 2014 +0000 OvmfPkg: QemuVideoDxe: filter BOCHS modes vs. available frame buffer size In the next patch we'll add many new BOCHS modes, some of which require large frame buffers. The size of the QXL VGA compatibility framebuffer can be changed with the -global qxl-vga.vgamem_mb=$NUM_MB QEMU option. If $NUM_MB would exceed 32, then the following two QEMU options are necessary instead: -global qxl-vga.vgamem_mb=$NUM_MB \ -global qxl-vga.ram_size_mb=$((NUM_MB*2)) because the compatibility framebuffer can't cover more than half of PCI BAR #0. The latter defaults to 64MB in size, and is controlled by "ram_size_mb". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15288 6f19259b-4bc3-4df7-8a09-765794883524 commit cd1526101469cb639c7166c0b750c5ebb810a446 Author: Laszlo Ersek Date: Mon Mar 3 08:40:59 2014 +0000 OvmfPkg: QemuVideoDxe: clarify QEMU_VIDEO_MODE_DATA.ModeNumber The field name "ModeNumber" in QEMU_VIDEO_MODE_DATA is misleading -- it is not immediately obvious whether this field carries a client-visible mode number, in the GOP sense, or an internal, card type specific mode index. After checking all references, rename the field to "InternalModeIndex". Also, when filling in the card type independent QEMU_VIDEO_MODE_DATA array from the card type specific mode array, distinguish the GOP mode number from the internal mode index in the debug message. This patch effects no functional changes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15287 6f19259b-4bc3-4df7-8a09-765794883524 commit 96b5f3977773b71702f67d99f5b758c1a184d2bf Author: Laszlo Ersek Date: Mon Mar 3 08:40:52 2014 +0000 OvmfPkg: QemuVideoDxe: eliminate useless Private->HardwareNeedsStarting Currently, QemuVideoGraphicsOutputQueryMode() reports EFI_NOT_STARTED when this boolean field is set. However, QemuVideoGraphicsOutputQueryMode() is only available to callers after the GOP interface has been installed. That in turn implies that the following partial call tree has succeeded without errors: QemuVideoControllerDriverStart() QemuVideoGraphicsOutputConstructor() QemuVideoGraphicsOutputSetMode(... 0 ...) HardwareNeedsStarting = FALSE InstallMultipleProtocolInterfaces(... GOP ...) That is, when QemuVideoGraphicsOutputQueryMode() is reached, HardwareNeedsStarting is always FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15286 6f19259b-4bc3-4df7-8a09-765794883524 commit 847e4c3477d3ecb7362c3b31fe9889384557e8ae Author: Laszlo Ersek Date: Mon Mar 3 08:40:44 2014 +0000 OvmfPkg: QemuVideoDxe: plug remaining leaks in Stop() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15285 6f19259b-4bc3-4df7-8a09-765794883524 commit 99a6dce3c2abd348bba7ae62e25488a2381369f7 Author: Laszlo Ersek Date: Mon Mar 3 08:40:35 2014 +0000 OvmfPkg: QemuVideoDxe: disentangle UEFI driver model use in Stop() A bus driver needs to pay attention whether its Stop() function is being called on the "main" controller handle (NumberOfChildren == 0) or on the child handles (NumberOfChildren > 0). In QemuVideoDxe, all our resources are associated with the one child handle (and the Private data structure) *except* the top-level PciIo protocol reference. Be conscious of which mode Stop() is being called for. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15284 6f19259b-4bc3-4df7-8a09-765794883524 commit 42d0cad751d610a8e6680ffd468fc40c970e96c0 Author: Laszlo Ersek Date: Mon Mar 3 08:40:28 2014 +0000 OvmfPkg: QemuVideoDxe: simplify UEFI driver model use in Supported() / Start() A bus driver is allowed to ignore the actual value of RemainingDevicePath in Supported() and Start(), and to produce all child handles at once. This in effect means the following invariants for QemuVideoDxe: - (RemainingDevicePath == NULL), and - (Private->GopDevicePath != NULL) Simplify Supported() and Start() by substituting constant TRUE and FALSE (as appropriate) in expressions that check RemainingDevicePath and/or Private->GopDevicePath. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15283 6f19259b-4bc3-4df7-8a09-765794883524 commit d89186bc869bfedd9f83f8e52f995dfd04691521 Author: Laszlo Ersek Date: Mon Mar 3 08:40:19 2014 +0000 OvmfPkg: QemuVideoDxe: tidy up error checking/handling in & under Start() In QemuVideoControllerDriverStart(): - remove redundant zero-initialization of: - Private->Handle (2 locations) - Private->GopDevicePath (when at devpath end) - remove fields used for error handling only: - PciAttributesSaved - tigthen scope of temporaries: - MmioDesc - AcpiDeviceNode - supplement missing error checks: - AppendDevicePathNode() can fail with out-of-memory (2 locations) - when installing GopDevicePath - retval of QemuVideoGraphicsOutputConstructor() (can justifiedly fail with out-of-resources) - plug leaks on error: - free GopDevicePath (AppendDevicePathNode() allocates dynamically) - uninstall GopDevicePath - free Private->ModeData - call QemuVideoGraphicsOutputDestructor() - uninstall GOP In QemuVideoGraphicsOutputConstructor(), called by Start(): - supplement missing error checks: - QemuVideoGraphicsOutputSetMode() retval (it can fail with out-of-resources) - plug leaks on error: - free Mode->Info - free Mode In QemuVideoCirrusModeSetup() and QemuVideoBochsModeSetup(), both called by Start(): - supplement missing error checks: - AllocatePool() can fail in both In QemuVideoGraphicsOutputDestructor(), called by Start() on the error path: - plug leaks: - free Private->LineBuffer, which is allocated in Start() -> Constructor() -> SetMode() In QemuVideoGraphicsOutputSetMode(), called by Start() indirectly: - remove redundant zero-assignment to: - Private->LineBuffer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15282 6f19259b-4bc3-4df7-8a09-765794883524 commit 57a1b9c4252985ee5d631340fed453e73e0c9146 Author: jyao1 Date: Sat Mar 1 12:25:31 2014 +0000 Add comment for S3BootScriptSaveMemPoll API, since it does not match PI specification. Signed-off by: Jiewen Yao Reviewed by: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15280 6f19259b-4bc3-4df7-8a09-765794883524 commit a4ab7df48fbb4d953b7ddc6d27b5bf9a0502fa64 Author: Olivier Martin Date: Sat Mar 1 11:05:44 2014 +0000 ArmPlatformPkg/ArmVExpressDxe: Platform specific driver for ARM VExpress based platform This driver should be used when adding code specific to a platform based on ARM VExpress based board. ArmFvpDxe driver has been renamed into ArmVExpressDxe driver to support the hardware based platforms and the model based platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15279 6f19259b-4bc3-4df7-8a09-765794883524 commit 35a3e762614cd83a40209daaa39b82b81dc7db80 Author: Olivier Martin Date: Sat Mar 1 11:01:44 2014 +0000 EmbeddedPkg: Added support for AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15278 6f19259b-4bc3-4df7-8a09-765794883524 commit 27995cd5d6ea40639d6034b8b7cbb84f625f1a4a Author: Olivier Martin Date: Sat Mar 1 11:01:00 2014 +0000 ArmPkg: Tidy assembler code - Fixed typo - Removed unreachable 'dead' loop Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15277 6f19259b-4bc3-4df7-8a09-765794883524 commit f6c5a29bb9041caf66426ddced7454f9051124eb Author: Olivier Martin Date: Sat Mar 1 11:00:07 2014 +0000 ArmPkg/ArmLib: Rationalise ArmReadMidr and cognate functions. The function ArmReadMidr has been recently added, but that functionality was already present under other names such as Cp15IdCode and ArmMainIdCode. This change removes redundant code and moves the function to the Common library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15276 6f19259b-4bc3-4df7-8a09-765794883524 commit 992a1f830d94d87d98c1e2066f46f00200bdfd4c Author: Olivier Martin Date: Sat Mar 1 10:59:25 2014 +0000 ArmPkg/ArmLib: Fix compilation error with -O3 switch A warning is reported because ArmArchTimerReadReg may theoretically result in an unititialised value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15275 6f19259b-4bc3-4df7-8a09-765794883524 commit f0247796cbc23568121463683fefe7a211d439e3 Author: Olivier Martin Date: Sat Mar 1 10:58:46 2014 +0000 ArmPkg/ArmLib: ArmReadVBar implementation missing in AArch64 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15274 6f19259b-4bc3-4df7-8a09-765794883524 commit eaa84fd553eb2288f1e192430a1800bf45e51c56 Author: Olivier Martin Date: Sat Mar 1 10:57:55 2014 +0000 ArmPkg: Replace single dead loop. Several assembler macros use a loop at the label "dead" to trap an error. This is difficult to debug as there is no indication of how one arrived at the loop. This change replaces dead with distinct loops locally in the macro, which means the cause of the hang is detectable to the debugger. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15273 6f19259b-4bc3-4df7-8a09-765794883524 commit 0ff0e414d13afd3cad5017a98bc1e257f64ed6d4 Author: Olivier Martin Date: Sat Mar 1 10:57:09 2014 +0000 ArmPkg/ArmLib: Move common definitions from ArmV7Lib.h & AArch64Lib.h to ArmLib.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15272 6f19259b-4bc3-4df7-8a09-765794883524 commit f716d7b8c5aca0d913edd8925808e474df4d3bdb Author: Shumin Qiu Date: Fri Feb 28 00:36:03 2014 +0000 Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15271 6f19259b-4bc3-4df7-8a09-765794883524 commit b9b77ab1ba0e5138307150a1a3caa4342d464f16 Author: Brendan Jackman Date: Wed Feb 26 09:46:40 2014 +0000 ShellPkg/ShellProtocol.c: Fix case sensitivity in GetAlias and SetAlias ShellCommandIsOnAliasList is case insensitive, but GetAlias and SetAlias use the UEFI variable services, which are case sensitive. Force alias names to lowercase to get around this. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15270 6f19259b-4bc3-4df7-8a09-765794883524 commit b572d3f0db2e1b837885907dbeff2cce7e733e04 Author: Eric Dong Date: Wed Feb 26 08:13:10 2014 +0000 When exit from GetFullStringFromHiiFormPackages function, should update the PointerProgress parameter if necessary. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15263 6f19259b-4bc3-4df7-8a09-765794883524 commit e8c737ae79a091418d9bd81501d0463dce6dcef7 Author: Jaben Carsey Date: Tue Feb 25 23:03:17 2014 +0000 ShellPkg: Add missing header files Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Daryl McDaniel daryl.mcdaniel@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15262 6f19259b-4bc3-4df7-8a09-765794883524 commit e840822b2dbd83c886a86eeecf78db48dd009bf2 Author: Olivier Martin Date: Tue Feb 25 10:37:49 2014 +0000 ShellBinPkg: ARM binaries update based on 15257. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15261 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a8406adb367e8b0d2f107adfc6c141b953d938d Author: Shumin Qiu Date: Tue Feb 25 08:30:32 2014 +0000 Add code to check whether the pointer 'CorrectedPath' and 'FullPath' are NULL before used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15260 6f19259b-4bc3-4df7-8a09-765794883524 commit e27ecde731feeeb59d9e04e25c4bd77f187b5864 Author: Ari Zigler Date: Tue Feb 25 05:20:31 2014 +0000 Fix the bug for the structure definition of _EFI_ADAPTER_INFORMATION_PROTOCOL in AdapterInformation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ari Zigler Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15259 6f19259b-4bc3-4df7-8a09-765794883524 commit e794f18021ccd8fa8f7bbdb3bc85143282dbc12a Author: Jaben Carsey Date: Mon Feb 24 22:26:49 2014 +0000 ShellBinPkg: binary update based on 15257. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15258 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a6f286257da8a9082bcffb4bcbe62bb01468dfb Author: Olivier Martin Date: Mon Feb 24 19:21:38 2014 +0000 ArmPkg/AsmMacroIoLibV8.h: Correct 32 bit accesses in asm macros Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15257 6f19259b-4bc3-4df7-8a09-765794883524 commit 51ad04cbd1ecb31aa91a611a251573ab72553b4e Author: Olivier Martin Date: Mon Feb 24 19:20:16 2014 +0000 ARM Packages: Include 'AsmMacroIoLibV8.h' instead of the 32bit version Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15256 6f19259b-4bc3-4df7-8a09-765794883524 commit b83a92b34e1cea8b7f697bbad228c694278dfb8c Author: Garrett Kirkendall Date: Mon Feb 24 16:27:48 2014 +0000 ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Garrett Kirkendall Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15255 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f9c86067477e7e898773518a244a09ebb086385 Author: Olivier Martin Date: Mon Feb 24 14:14:13 2014 +0000 edksetup.bat: Fixed corrupts CYGWIN_HOME The .BAT file checks for existance of the directory c:\cygwin and, if it exists, always resets CYGWIN_HOME to that path. That means that if CYGWIN_HOME is set to say c:\cygwin64, it gets corrupted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15254 6f19259b-4bc3-4df7-8a09-765794883524 commit 7ef23d9c2c2fe8e295f85d44591dd9f0d1fbc0bc Author: Olivier Martin Date: Mon Feb 24 14:09:00 2014 +0000 BaseTools: Rectify use of @ in .BAT files. Tracing of the .BAT files is obscured by use of the @ prefix and is confused by the "echo on" at the end of toolsetup.bat. Silent all the 'echo' with '@'. And remove '@' from the non 'echo' line to make easier to trace the batch files when 'echo on'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15253 6f19259b-4bc3-4df7-8a09-765794883524 commit c1cdcab9526506673b882017845a043cead8bc69 Author: Andrew Fish Date: Mon Feb 24 10:30:48 2014 +0000 EmbeddedPkg/PrePiLib: Fixed incorrect type casting A pointer on a UINTN variable was used instead of UINT32 one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15252 6f19259b-4bc3-4df7-8a09-765794883524 commit 70f1d5e75655dc71142d363df809c25d07c3e99d Author: Eric Dong Date: Fri Feb 21 06:27:05 2014 +0000 Check the Config access protocol before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15251 6f19259b-4bc3-4df7-8a09-765794883524 commit 929fb3be4169eb520272056c00b11bb3fb3f6458 Author: Jaben Carsey Date: Tue Feb 18 21:53:00 2014 +0000 ShellPkg: Update "ls" command to better handle "-r" parameter This makes sure that recursion into sub directories looks through all subdirectories, not just those that match the initial search pass. Also only prints out any information for directories in which at least one matching file is found. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15250 6f19259b-4bc3-4df7-8a09-765794883524 commit ebddddadff3ce37c21bf41b2b46252c0a9390cfb Author: Olivier Martin Date: Tue Feb 18 18:32:31 2014 +0000 ArmPlatformPkg/ArmRealViewEbPkg: Fixed assertion in RuntimeDxe An assertion that was comparing the block size with the size of the storage was failing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15249 6f19259b-4bc3-4df7-8a09-765794883524 commit b0824968930584cb85fcc4e70feaac1a285f2ab6 Author: Olivier Martin Date: Tue Feb 18 18:31:11 2014 +0000 ArmPlatformPkg/ArmRealViewEbPkg: Added MMC support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15248 6f19259b-4bc3-4df7-8a09-765794883524 commit 27c304f442538e3aeb1bcc5a6e52194a577dcde0 Author: Eric Dong Date: Tue Feb 18 10:53:57 2014 +0000 Update configrequest string at runtime for dynamic created question. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15247 6f19259b-4bc3-4df7-8a09-765794883524 commit a6c0ad816ac8f26d1af38f1a2c2ea538a852cb5b Author: Eric Dong Date: Tue Feb 18 10:50:40 2014 +0000 Update the ValueChanged flag before call CHANGED callback type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15246 6f19259b-4bc3-4df7-8a09-765794883524 commit da5ae569b9be641b80fa30184021aea3f907635d Author: Olivier Martin Date: Mon Feb 17 16:01:41 2014 +0000 Add flag to make UEFI run from DRAM or FLASH for FVPs - By setting the 'ARM_FVP_RUN_NORFLASH' flag at compile time UEFI will be linked to run from NOR FLASH0 on FVPs. - The RAM load location is currently set to 128MB from base of DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15245 6f19259b-4bc3-4df7-8a09-765794883524 commit b1239a2491262b1561f994d939b64beac37fe819 Author: Eric Dong Date: Thu Feb 13 06:05:09 2014 +0000 Set the Reset flag if user select one statement which has reset attribute and not has storage. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15244 6f19259b-4bc3-4df7-8a09-765794883524 commit e4c83a4f9cad7f2c362727cdeb3f5daf297ec270 Author: Gao, Liming Date: Thu Feb 13 03:37:07 2014 +0000 Fixed the issue in ExitBootServices() implementation to avoid the potential boot service usage after () after gCpu->DisableInterrupt (). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin Reviewed-by: Michael Kinney Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15243 6f19259b-4bc3-4df7-8a09-765794883524 commit d5b5440bf205a37c8ae0ac4b873cd976a9598326 Author: Jaben Carsey Date: Wed Feb 12 18:27:07 2014 +0000 ShellPkg: refactor elimination of non-replaced environment variables This changes how non-replaced environment variables are found and eliminated from the command line. This new method makes sure that the found environment variables are not using escaped characters and that they do not stretch over quoted strings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15242 6f19259b-4bc3-4df7-8a09-765794883524 commit e6f3ed43400bc9d02ff3e2728579cc9f35f71405 Author: Leif Lindholm Date: Wed Feb 12 15:30:34 2014 +0000 ARM Packages: CRLF fixup Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15241 6f19259b-4bc3-4df7-8a09-765794883524 commit 9401d6f4b989d977f8b0aa4946168a92b748aead Author: Olivier Martin Date: Wed Feb 12 15:14:41 2014 +0000 ArmPkg/ArmLib: Added ArmReadMidr() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15240 6f19259b-4bc3-4df7-8a09-765794883524 commit 226d5572ad829bbe6f8a66ee2a5aad7887244e09 Author: Olivier Martin Date: Wed Feb 12 15:13:44 2014 +0000 ArmPkg/BdsLib: Removed unused MachineType argument (AArch64) MachineType was used on 32-bit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15239 6f19259b-4bc3-4df7-8a09-765794883524 commit abc0e1072dde87bd1782673a4c6a17cacf26dab5 Author: Olivier Martin Date: Wed Feb 12 15:12:41 2014 +0000 ArmPkg: Removed unused header 'BdsUnixLib.h' This header contains a function that does not exist. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15238 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7 Author: Olivier Martin Date: Wed Feb 12 15:11:29 2014 +0000 EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0 Last commit from git://git.jdl.com/software/dtc.git: commit 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf Author: Jon Loeliger Date: Sat Jun 22 12:54:28 2013 -0500 Tag Version 1.4.0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15237 6f19259b-4bc3-4df7-8a09-765794883524 commit e30acb47ce10ef7774dc4501860824381b2713fc Author: Olivier Martin Date: Wed Feb 12 15:09:58 2014 +0000 ArmPlatformPkg/BdsLib: Let the user press enter when inputting booleans Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15236 6f19259b-4bc3-4df7-8a09-765794883524 commit e645bd857df95a8e2fac220fe98772cc6d37dee4 Author: Olivier Martin Date: Wed Feb 12 11:37:57 2014 +0000 MdeModulePkg/DiskIo: Introduced 'PcdDiskIoDataBufferBlockNum' PcdDiskIoDataBufferBlockNum replaced the hardcoded value into the Disk I/O driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-By: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15235 6f19259b-4bc3-4df7-8a09-765794883524 commit 336c8e116b3e2e11dccdac163d0a85fc3c58fd3d Author: Eric Dong Date: Wed Feb 12 06:31:10 2014 +0000 Keep highlight on the current highlight menu if form auto exit, not exit by user input. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15234 6f19259b-4bc3-4df7-8a09-765794883524 commit 2080f676df886be48f227d7bb74fd6b30b20e431 Author: jyao1 Date: Wed Feb 12 06:04:58 2014 +0000 Add more check for PE COFF SizeOfHeader field. Signed-off by: jiewen yao reviewed by: eric dong Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15233 6f19259b-4bc3-4df7-8a09-765794883524 commit 5dc6ab16971eb237a90099ac7c496ebef3902e6a Author: Eric Dong Date: Wed Feb 12 03:34:48 2014 +0000 Set the free buffer pointer to NULL to avoid later free again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15232 6f19259b-4bc3-4df7-8a09-765794883524 commit f3a14a0f575e7e856ff4d90d7d0ab73f7e02ae41 Author: Shumin Qiu Date: Wed Feb 12 01:52:27 2014 +0000 Add code to check the return status for ShellReadFile and ShellWriteFile when execute the 'cp' command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15231 6f19259b-4bc3-4df7-8a09-765794883524 commit a7563b08d937bf6cf2c751b753b7743381c73c6c Author: Shumin Qiu Date: Wed Feb 12 01:51:15 2014 +0000 Add code to check whether the pointer 'PathForReturn' in ShellProtocol.c is NULL before used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15230 6f19259b-4bc3-4df7-8a09-765794883524 commit 892eccc8d8697ada395b50738c099f8596a78d82 Author: Eric Dong Date: Wed Feb 12 01:45:35 2014 +0000 Update the logic, only check the value change status for user input action, not detect the change caused by Hii driver change through SetBrowserData function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15229 6f19259b-4bc3-4df7-8a09-765794883524 commit c8d54a6d8dd259a28d02bf95ed7e48efb251e414 Author: Eric Dong Date: Wed Feb 12 01:35:42 2014 +0000 Adjust date/time opcode before use it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15228 6f19259b-4bc3-4df7-8a09-765794883524 commit f07ccd05274b8f37a736f2c97c854af6af7b277d Author: Elvin Li Date: Wed Feb 12 01:21:51 2014 +0000 Fix several typo issues. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15227 6f19259b-4bc3-4df7-8a09-765794883524 commit fc4c7b30d9f0e5d3d9bc8dad13c5737c3da34f29 Author: Jaben Carsey Date: Tue Feb 11 23:56:32 2014 +0000 ShellPkg: Fix changing to file system with 2 colons like "fs0::" first colon must be last character in the string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15226 6f19259b-4bc3-4df7-8a09-765794883524 commit ba71f790583850b01a6336a3ac246a0ced877ce5 Author: Jaben Carsey Date: Tue Feb 11 23:37:18 2014 +0000 ShellPkg: Fix uninitialized Variable error Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15225 6f19259b-4bc3-4df7-8a09-765794883524 commit fe6c94d2e158e13fb6452979fc730fdd7c8f6447 Author: Brendan Jackman Date: Tue Feb 11 22:46:56 2014 +0000 ShellPkg: InternalShellExecuteDevicePath: avoid memory leaks Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15224 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e2b20a1ad4b777d2834075bcd9a38f364e42c99 Author: Brendan Jackman Date: Tue Feb 11 22:45:18 2014 +0000 ShellPkg: Make Argv[0] the full file path of the command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15223 6f19259b-4bc3-4df7-8a09-765794883524 commit da92bf853f573d244278ab944720005598fa0450 Author: Brendan Jackman Date: Tue Feb 11 22:43:36 2014 +0000 ShellPkg: Error out when ProcessCommandLine fails Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15222 6f19259b-4bc3-4df7-8a09-765794883524 commit 0477054bc0f5c891a098280cffde0aed549262b3 Author: Brendan Jackman Date: Tue Feb 11 22:42:49 2014 +0000 ShellPkg: Fixed Memory leak in UefiMain() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15221 6f19259b-4bc3-4df7-8a09-765794883524 commit 23385d63195945990aa1eb18c8659e2bf882aa59 Author: Brendan Jackman Date: Tue Feb 11 22:39:49 2014 +0000 ShellPkg: Manually parse parameters We can't use ShellCommandLineParse as it would error out when the shell was called with args like "cp -r foo bar", because "-r" is not a recognised shell option A different way to avoid some of this manual parsing would be to prepend '^' to each argument, but that would still require the degree of parsing necessary to work out which words are part of the command and which are shell options. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15220 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eb5cf94a10d14a291e4ba706892e54b03106f33 Author: Jaben Carsey Date: Tue Feb 11 20:36:05 2014 +0000 ShellPkg: Prevent "set" command from updating %lasterror% Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey reviewed-by: Laurie Jarlstrom git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15219 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a718ba91ba255f2629b274ff07bd7adb0ad7ab1 Author: Star Zeng Date: Tue Feb 11 08:00:52 2014 +0000 MdeModulePkg UsbBusPei: Produce a USB I/O PPI for all USB Interfaces a USB Device advertises in its USB configuration. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15218 6f19259b-4bc3-4df7-8a09-765794883524 commit 3038da1b93b782334ad346be52d6cbaa19555830 Author: Tian, Feng Date: Tue Feb 11 08:00:13 2014 +0000 Fix incorrect return status in InitializeDebugPortDriver() & DebugPortSupported(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Li, Elvin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15217 6f19259b-4bc3-4df7-8a09-765794883524 commit b80eed7d6d94090bd5b9ddb9720d473b855d20cc Author: Elvin Li Date: Tue Feb 11 00:13:50 2014 +0000 Remove redundant IsUnicodeFiFoEmpty ()in UnicodeFiFoRemoveOneKey(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15216 6f19259b-4bc3-4df7-8a09-765794883524 commit 52f8e370ac06543a21258a61ace0e004d589af5b Author: Tian, Feng Date: Tue Feb 11 00:10:18 2014 +0000 MdeModulePkg/ScsiDisk:If the SCSI device target status is in CHECK_CONDITION, then parse sense data to decide which actions need to be done. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15215 6f19259b-4bc3-4df7-8a09-765794883524 commit 489c314207bb083ed107a5f2249fbb2f2615c0e0 Author: Mauro Faccenda Date: Sun Feb 9 02:01:20 2014 +0000 OvmfPkg: QemuBootOrder: initialize IsFinal variable to make MSVC happy The BOOLEAN IsFinal variable initialization isn't properly seen by MSVC. To make it compile OVMF the variable needs to be initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Mauro Faccenda Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15214 6f19259b-4bc3-4df7-8a09-765794883524 commit 620b682e144abf8333317976ba73c3b2f25ffeb6 Author: Jordan Justen Date: Sun Feb 9 01:58:58 2014 +0000 OvmfPkg/PlatformPei: Remove duplicate Xen memory map debug message This duplicate message was intended to be removed from r15207 before it was committed. (It was pointed out by Wei Liu.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15213 6f19259b-4bc3-4df7-8a09-765794883524 commit 5b05611330bf23450a688bf1899de9525d82b654 Author: Leandro G. Biss Becker Date: Wed Feb 5 21:16:47 2014 +0000 ShellPkg: patch to the "for" command when used with "in" iterating files in a folder. (for %x in *.txt). The result values (%x) have misplaced quotation marks and some spaces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leandro G. Biss Becker Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15212 6f19259b-4bc3-4df7-8a09-765794883524 commit 3f3659e2f70055c073566910149eb08019ceb6c2 Author: Olivier Martin Date: Wed Feb 5 12:55:27 2014 +0000 ArmPlatformPkg/Scripts/Makefile: Update after edksetup.sh changes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15211 6f19259b-4bc3-4df7-8a09-765794883524 commit 139b57737413a7d95bc35edf4a5463a599965edb Author: Olivier Martin Date: Wed Feb 5 12:54:46 2014 +0000 MmcIdentification: Don't error out for SD cards SD cards don't respond to CMD1 immediately following CMD0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15210 6f19259b-4bc3-4df7-8a09-765794883524 commit 80ae629190d77fd552a9bd9dc48e6d2da3683ecc Author: Olivier Martin Date: Wed Feb 5 12:54:03 2014 +0000 ArmPlatformPkg/ArmVExpress.dsc.inc: Exposed the 2 NOR Flash filesystem to UEFI BootMonFs (file system used on the VExpress NOR Flash) is now supported on both NOR Flash regions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15209 6f19259b-4bc3-4df7-8a09-765794883524 commit 4e57d6d70b836dc5888603b9c0c7c00177e3d063 Author: Olivier Martin Date: Wed Feb 5 12:53:09 2014 +0000 ArmPkg/ArmLib: VBAR_ELx not written correctly when handler above 4GB The function ArmWriteVBar had a UINT32 parameter. Need to change it to UINT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15208 6f19259b-4bc3-4df7-8a09-765794883524 commit 2818c158de6a164d012e6afb0fc145656aed4e4b Author: Jordan Justen Date: Sat Feb 1 21:22:54 2014 +0000 OvmfPkg/PlatformPei: Add RAM for Xen in InitializeRamRegions Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15207 6f19259b-4bc3-4df7-8a09-765794883524 commit c034906e107080a55361693964d3c18ba9ffda66 Author: Jordan Justen Date: Sat Feb 1 21:22:48 2014 +0000 OvmfPkg/PlatformPei: Add InitializeRamRegions function In the next commit we will update the Xen boot path to also use this function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15206 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b455f7bf0da7ab11a6366a1ab9ac3c8905411a4 Author: Jordan Justen Date: Sat Feb 1 21:22:43 2014 +0000 OvmfPkg/PlatformPei: Merge Xen support into MemMapInitialization Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15205 6f19259b-4bc3-4df7-8a09-765794883524 commit c191a58fac8901952b44c31856c9f25e390b09b5 Author: Jordan Justen Date: Sat Feb 1 21:22:36 2014 +0000 OvmfPkg/PlatformPei: Set PcdPciDisableBusEnumeration in InitializeXen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15204 6f19259b-4bc3-4df7-8a09-765794883524 commit 18f31ada8d5f02a42408dfe4092a8bcc71fc4ed9 Author: Jordan Justen Date: Sat Feb 1 21:22:25 2014 +0000 OvmfPkg/PlatformPei: Add XenPublishRamRegions This will be called from a unified MemDetect function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15203 6f19259b-4bc3-4df7-8a09-765794883524 commit b98b4941e266526bf4c75f9004c869bfe9ef2f14 Author: Jordan Justen Date: Sat Feb 1 21:22:19 2014 +0000 OvmfPkg/PlatformPei: Hide Xen Leaf details Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15202 6f19259b-4bc3-4df7-8a09-765794883524 commit b621bb0a3ce81cabc31e28e055e3206068d5aa77 Author: Jordan Justen Date: Sat Feb 1 21:22:12 2014 +0000 OvmfPkg/PlatformPei: Add mXen boolean to indicate Xen is running Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15201 6f19259b-4bc3-4df7-8a09-765794883524 commit 1bb6bfaa082be625512297a3250be58e2f999341 Author: Leif Lindholm Date: Thu Jan 30 19:26:53 2014 +0000 edksetup.sh: Fix typo and return code The typo was a check for the string "BaseTool" instead of "BaseTools". Also fixed the issue where the script returned success even when configuration failed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15200 6f19259b-4bc3-4df7-8a09-765794883524 commit ef9086c3a52572fbd7f9c16e57093086224ce914 Author: Jordan Justen Date: Thu Jan 30 19:26:46 2014 +0000 edksetup.sh: Code style Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15199 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d25bed4bd18daff0b7151e47542b5edd0467fd7 Author: Jordan Justen Date: Thu Jan 30 01:06:47 2014 +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 Reviewed-by: Laszlo Ersek Reviewed-by: Bill Paul git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15198 6f19259b-4bc3-4df7-8a09-765794883524 commit c3cf8daa0f5091ce13e4c20252d5f3fb2a1a193d Author: Laszlo Ersek Date: Wed Jan 29 21:44:23 2014 +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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15197 6f19259b-4bc3-4df7-8a09-765794883524 commit 869b17ccdc05f7bad76b3dd61ebc6e5d7466e577 Author: Jordan Justen Date: Wed Jan 29 21:44:16 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15196 6f19259b-4bc3-4df7-8a09-765794883524 commit f76e9eba9deded0a2a25987256ccd5ca7b828927 Author: Jordan Justen Date: Wed Jan 29 21:44:09 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15195 6f19259b-4bc3-4df7-8a09-765794883524 commit c2fcbc853f92c5a52d868be3eb3b33161c127eab Author: Dong Guo Date: Tue Jan 28 07:00:06 2014 +0000 Add description information for the GUID and Library class defined in DEC file Signed-off-by: Dong Guo Reviewed-by: Gao, Liming Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15194 6f19259b-4bc3-4df7-8a09-765794883524 commit 74b7ec58c410c06fda1bc2d205e0c9119b7e22e0 Author: Chen Fan Date: Tue Jan 28 02:30:10 2014 +0000 Fix ResetVectorVtf0.asm comment typo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15193 6f19259b-4bc3-4df7-8a09-765794883524 commit 729220eacac90990e9145fd129036ffc1488e1eb Author: Parmeshwr Prasad Date: Tue Jan 28 02:18:23 2014 +0000 Handle command line parameter "-? -h --help" and any other. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Parmeshwr Prasad Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15192 6f19259b-4bc3-4df7-8a09-765794883524 commit 71c49eafc54f2f3158ed8861a90cb6eb95e13f97 Author: Shumin Qiu Date: Tue Jan 28 00:59:46 2014 +0000 Add initializing code for local variable 'CalleeExitStatus' and 'ExitStatus' in 'Shell.c'. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15191 6f19259b-4bc3-4df7-8a09-765794883524 commit 7bc3ec3d80985b10bf8f4f9c4203ccd8c1cd6e7e Author: Shumin Qiu Date: Tue Jan 28 00:37:11 2014 +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 Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15190 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c1e62f35a5a5ad28b2f7f29ae0bf1d255b229a3 Author: Tian, Hot Date: Mon Jan 27 05:36:53 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15189 6f19259b-4bc3-4df7-8a09-765794883524 commit f51461c829c124288a930829a78e2a5a799f4039 Author: Gao, Liming Date: Mon Jan 27 05:23:15 2014 +0000 Sync BaseTool trunk (version r2649) into EDKII BaseTools. Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15188 6f19259b-4bc3-4df7-8a09-765794883524 commit 7771be9fd0b9b3c7f5c0659c416535171de31191 Author: Shumin Qiu Date: Mon Jan 27 04:54:05 2014 +0000 Fix the typo for the structure definition of EFI_ADAPTER_INFO_NETWORK_BOOT in AdapterInformation. Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15187 6f19259b-4bc3-4df7-8a09-765794883524 commit 6924dbdf399fdb807e019932fb83b91fd4170dc3 Author: Gao, Liming Date: Sun Jan 26 09:33:22 2014 +0000 Rollback the change 15178. And, update NameString IScsiDxeStrings[] to IScsi4DxeStrings[] to match its BASE_NAME Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15186 6f19259b-4bc3-4df7-8a09-765794883524 commit 506560e75abceaab3cd8f7b7508f9d26b3c6036d Author: Star Zeng Date: Sun Jan 26 02:49:41 2014 +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 Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15185 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ddc2ff3efa00b0e2233ae28f64cf58d63dafd2a Author: Brendan Jackman Date: Fri Jan 24 22:32:38 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15184 6f19259b-4bc3-4df7-8a09-765794883524 commit 3877d0f581536430fffe572ec3ceea29e0d50602 Author: Brendan Jackman Date: Fri Jan 24 22:31:07 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15183 6f19259b-4bc3-4df7-8a09-765794883524 commit 708793148d0706c251e7971e55759f089874b471 Author: Brendan Jackman Date: Fri Jan 24 22:29:53 2014 +0000 ShellLib/UefiShellLib.c: Fix doc comment for ShellOpenFileMetaArg Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15182 6f19259b-4bc3-4df7-8a09-765794883524 commit d9c7741d4f1787f8f370faab7432a86f63bdc611 Author: Brendan Jackman Date: Fri Jan 24 22:28:36 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15181 6f19259b-4bc3-4df7-8a09-765794883524 commit 5223c1213506f3a8f3c120a6620258d2b071db84 Author: Brendan Jackman Date: Fri Jan 24 22:27:11 2014 +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 Reviewed-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15180 6f19259b-4bc3-4df7-8a09-765794883524 commit fed3be946c8bff1372e106eec8cfd73524036ceb Author: Jaben Carsey Date: Fri Jan 24 20:33:17 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15179 6f19259b-4bc3-4df7-8a09-765794883524 commit b0c975b61a47b1b3c7e2e91b9e6aa9321d702a79 Author: Gao, Liming Date: Fri Jan 24 14:39:30 2014 +0000 Update Module BaseName to avoid the same name. Remove the unused extern C name. Signed-off-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15178 6f19259b-4bc3-4df7-8a09-765794883524 commit 7017c2699de96b20cef4076a561036bb017461d6 Author: Garrett Kirkendall Date: Fri Jan 24 13:10:54 2014 +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 Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15177 6f19259b-4bc3-4df7-8a09-765794883524 commit ace287611f35b7525bc8e7468e9093ea32d2464e Author: Gao, Liming Date: Fri Jan 24 09:33:11 2014 +0000 Update Module BaseName to avoid the same name. Signed-off-by: Gao, Liming Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15176 6f19259b-4bc3-4df7-8a09-765794883524 commit 201edad3279eea683ec629c7651e26e2fc459880 Author: Gao, Liming Date: Fri Jan 24 09:32:30 2014 +0000 Update Module BaseName to avoid the same name. Signed-off-by: Gao, Liming Reviewed-by: Dong, Guo Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15175 6f19259b-4bc3-4df7-8a09-765794883524 commit ca4e58d8e390794e9fd8b7eb46073260d19f5e1d Author: Fu Siyuan Date: Fri Jan 24 05:33:18 2014 +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 Reviewed-by: Ni, Ruiyu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15174 6f19259b-4bc3-4df7-8a09-765794883524 commit f20fc992aee02c54404b68c46abd30ffbdd9888e Author: Fu Siyuan Date: Thu Jan 23 08:36:37 2014 +0000 Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15173 6f19259b-4bc3-4df7-8a09-765794883524 commit 2b53e39435ee46ccf7addaef2a9b32fdfbc30fc0 Author: Tian, Hot Date: Thu Jan 23 05:27:14 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15172 6f19259b-4bc3-4df7-8a09-765794883524 commit 675723cbcaa67746062d8af9af16f5d342ba12f6 Author: Dong Guo Date: Thu Jan 23 03:19:38 2014 +0000 Fix PCD help information format and a typo. Signed-off-by: Dong Guo Reviewed-by: Gao, Liming Reviewed-by: Yao Jiewen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15171 6f19259b-4bc3-4df7-8a09-765794883524 commit 27582c41bacab463c9ca8db219c257dcd6081b32 Author: Eric Dong Date: Thu Jan 23 02:00:15 2014 +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 Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15170 6f19259b-4bc3-4df7-8a09-765794883524 commit 96179cb36e78bd21e64e7b00c0dc914cb9844850 Author: Eric Dong Date: Thu Jan 23 01:57:04 2014 +0000 Refine the logic when return success, should not clean the buffer in this case. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15169 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a78d29cb83521617eac4e819a81f981110de7b1 Author: Olivier Martin Date: Thu Jan 23 01:01:08 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15168 6f19259b-4bc3-4df7-8a09-765794883524 commit c2d87a49f788fd9a38a1150e265d2ef2f59fcc77 Author: Olivier Martin Date: Thu Jan 23 00:59:08 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15167 6f19259b-4bc3-4df7-8a09-765794883524 commit eb98fc6de8d3a2d2085b988e760255f5ef8c859a Author: Olivier Martin Date: Thu Jan 23 00:57:56 2014 +0000 ArmPlatformPkg: Removed the hardware floating point build flags Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15166 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b485fde02278cdcab881e99f86d31812a939349 Author: Olivier Martin Date: Thu Jan 23 00:56:29 2014 +0000 EmbeddedPkg/MmcDxe: Fix mixed EOL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15165 6f19259b-4bc3-4df7-8a09-765794883524 commit 14868afbb8d66f9934111fc8f1879053343264d9 Author: Shumin Qiu Date: Thu Jan 23 00:29:53 2014 +0000 Update prints of variable attributes from 'RS' to 'RT' for 'Dmpstore' command. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15164 6f19259b-4bc3-4df7-8a09-765794883524 commit f614ce7ebb1f131a9cd508048ee1123eef5b30a7 Author: Shumin Qiu Date: Thu Jan 23 00:27:52 2014 +0000 Update the comments in function headers to follow Doxygen special documentation blocks in section 2.3.5. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15163 6f19259b-4bc3-4df7-8a09-765794883524 commit 7798fb83de4b2505a8e17457256b113a05d8475c Author: Tian, Hot Date: Wed Jan 22 08:41:16 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15162 6f19259b-4bc3-4df7-8a09-765794883524 commit af0202a4ca3ca50c4c0166531980ce9b3884d6c6 Author: Tian, Hot Date: Wed Jan 22 08:40:49 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15161 6f19259b-4bc3-4df7-8a09-765794883524 commit d42aab6e615abc574064e949f0b194a3ccaf01f0 Author: Tian, Hot Date: Wed Jan 22 08:40:29 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15160 6f19259b-4bc3-4df7-8a09-765794883524 commit 1f345b7d29d4619168885f522e665d3138a48850 Author: Tian, Hot Date: Wed Jan 22 08:40:06 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15159 6f19259b-4bc3-4df7-8a09-765794883524 commit 1cc799c5b3d41f6f24078752e8ebee38c1f6a0b2 Author: Tian, Hot Date: Wed Jan 22 08:39:50 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15158 6f19259b-4bc3-4df7-8a09-765794883524 commit 44de1013cfcd481efee629c1f75f4eebd99bc13c Author: Tian, Hot Date: Wed Jan 22 08:39:32 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15157 6f19259b-4bc3-4df7-8a09-765794883524 commit 8db92ab59be3f6eb6039575d1baa2b2e044edede Author: Tian, Hot Date: Wed Jan 22 08:39:09 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15156 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b738c76f56f8eda171f14b8f9b20e34b66be476 Author: Tian, Hot Date: Wed Jan 22 08:38:50 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15155 6f19259b-4bc3-4df7-8a09-765794883524 commit 4c8f6044a2ae275071ab6cd6557b584784c093ce Author: Tian, Hot Date: Wed Jan 22 08:38:20 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15154 6f19259b-4bc3-4df7-8a09-765794883524 commit c27b9ffe86a8c1d8476154f725682ad2afa8e7d5 Author: Tian, Hot Date: Wed Jan 22 08:35:25 2014 +0000 Fix CRLF format Signed-off-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15153 6f19259b-4bc3-4df7-8a09-765794883524 commit cb162780fee8f7d101cdcf3ca5db63fa2b6000db Author: Fu Siyuan Date: Wed Jan 22 01:57:06 2014 +0000 Re-execute the failed SCSI command if iSCSI driver could reinstates the session successfully. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Tian, Feng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15152 6f19259b-4bc3-4df7-8a09-765794883524 commit b36f701d4f925172516cfdee72915e3217c92551 Author: Jordan Justen Date: Tue Jan 21 19:39:13 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15151 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b4b783dbe49102e5acaa9852e737820a645a559 Author: Jordan Justen Date: Tue Jan 21 19:39:04 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15150 6f19259b-4bc3-4df7-8a09-765794883524 commit b6f564a7633224b04e297b7a36af751fecd7641f Author: Jordan Justen Date: Tue Jan 21 19:38:57 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15149 6f19259b-4bc3-4df7-8a09-765794883524 commit c67178b7725f04beac51736233ac5a51f4db2b45 Author: Jordan Justen Date: Tue Jan 21 19:38:50 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15148 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cb6b0e068092d6a92d49b532703b70713e9d277 Author: Jordan Justen Date: Tue Jan 21 19:38:43 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15147 6f19259b-4bc3-4df7-8a09-765794883524 commit b382ede3864e17e8827dbc90c7d4f1540b94ff3f Author: Jordan Justen Date: Tue Jan 21 19:38:34 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15146 6f19259b-4bc3-4df7-8a09-765794883524 commit bb4aa855f3615352d1cbe733b1a329f6d94c7264 Author: Jordan Justen Date: Tue Jan 21 19:38:25 2014 +0000 OvmfPkg/Sec/SecMain.c: Convert to CRLF (dos) text Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15145 6f19259b-4bc3-4df7-8a09-765794883524 commit 5300cf02b9146bddedb7585f44cebb0be4f91856 Author: Jordan Justen Date: Tue Jan 21 19:38:16 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15144 6f19259b-4bc3-4df7-8a09-765794883524 commit 66a110d7c9a63aea280253de4d242e4a9037d4c3 Author: Ruiyu Ni Date: Tue Jan 21 07:34:41 2014 +0000 Optimize the code to not call StrToBuf when DataLength is 0. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15143 6f19259b-4bc3-4df7-8a09-765794883524 commit 2d441ca9cd79aae0d26ee7f464ddbee2a28d2121 Author: Laszlo Ersek Date: Mon Jan 20 08:50:06 2014 +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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15142 6f19259b-4bc3-4df7-8a09-765794883524 commit d0115279bececedb61bc40d4006d74365b4a30b6 Author: Jordan Justen Date: Mon Jan 20 08:49:58 2014 +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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15141 6f19259b-4bc3-4df7-8a09-765794883524 commit 2c86b6b785f50a38c52949c46fd2b1d00fc80721 Author: Jaben Carsey Date: Fri Jan 17 17:51:09 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15140 6f19259b-4bc3-4df7-8a09-765794883524 commit d91e3ba5e705907c670a0bedb6906e2165ab112d Author: Gao, Liming Date: Fri Jan 17 06:07:01 2014 +0000 Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15139 6f19259b-4bc3-4df7-8a09-765794883524 commit 8a83534019104ade4cd339538e0e8c11548fe9d4 Author: Gao, Liming Date: Fri Jan 17 06:06:30 2014 +0000 Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15138 6f19259b-4bc3-4df7-8a09-765794883524 commit ff284c56a11a9a9b32777c91bc069093d5b5d8a9 Author: jyao1 Date: Fri Jan 17 03:51:01 2014 +0000 CapsulePei coalesce need add more sanity check for each Capsule Fragment. Signed-off by: jiewen yao Reviewed by: elvin li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15137 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a1966c4e2f04374178872b064c3a8e42a0eb776 Author: jyao1 Date: Fri Jan 17 03:42:09 2014 +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 Reviewed by: liming gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15136 6f19259b-4bc3-4df7-8a09-765794883524 commit 4dd8c7af196bae9d27d82b9dbb8692dde66c3a10 Author: Jaben Carsey Date: Thu Jan 16 16:53:56 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15135 6f19259b-4bc3-4df7-8a09-765794883524 commit 8e4a89a335e1dd5c8649bb293bc609358b6a8b86 Author: Jaben Carsey Date: Thu Jan 16 16:53:23 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15134 6f19259b-4bc3-4df7-8a09-765794883524 commit 31b018a663be0fb23f3a4f612aaedf86a8bd10fc Author: Jaben Carsey Date: Thu Jan 16 16:52:39 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15133 6f19259b-4bc3-4df7-8a09-765794883524 commit 974d61171fcbd33374c626ea69adc2519402d830 Author: Laszlo Ersek Date: Thu Jan 16 10:35:55 2014 +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 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15132 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ad8d7d012c9d1a4481a497727590531fa0b325c Author: Reece R. Pollack Date: Thu Jan 16 10:31:14 2014 +0000 ArmPlatformPkg/ArmVExpress-RTSM-A15_MPCore.fdf: Added Generic Network drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reece R. Pollack Signed-off-by: Steven Kinney Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15131 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c20c0c37aadab8356f7d074bfd1e6944fad32c2 Author: Reece R. Pollack Date: Thu Jan 16 10:28:23 2014 +0000 ArmPlatformPkg/ArmVExpress-RTSM-A15.fdf: Added the generic Network drivers Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Reece R. Pollack Signed-off-by: Steven Kinney Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15130 6f19259b-4bc3-4df7-8a09-765794883524 commit 1eee8f37892e95824e9bbc4f045a6d93c0f87589 Author: Ryan Harkin Date: Thu Jan 16 10:25:00 2014 +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 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15129 6f19259b-4bc3-4df7-8a09-765794883524 commit 95c2e69ad6a6dcd74c0964404fd7e037be7391a4 Author: Gao, Liming Date: Thu Jan 16 02:42:17 2014 +0000 Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15128 6f19259b-4bc3-4df7-8a09-765794883524 commit b9ababa39d90959c48348198f8fddab210fb89c2 Author: jyao1 Date: Thu Jan 16 02:03:10 2014 +0000 Follow UEFI2.4.a spec, add more description on parameter check. Signed-off by: jiewen yao Reviewed by: qin long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15127 6f19259b-4bc3-4df7-8a09-765794883524 commit 94e0955d3e8a3d949e3f00fe69b2827a637058c3 Author: Olivier Martin Date: Thu Jan 16 00:06:13 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15126 6f19259b-4bc3-4df7-8a09-765794883524 commit 33fc8b0fec5fca4a8936348cba2b1beee0bc0ed5 Author: Roy Franz Date: Wed Jan 15 16:24:00 2014 +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 Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15125 6f19259b-4bc3-4df7-8a09-765794883524 commit cf9530e6864f87e58c1c65b5a1198586700f7182 Author: Olivier Martin Date: Wed Jan 15 12:24:31 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15124 6f19259b-4bc3-4df7-8a09-765794883524 commit 92720fe9c9c42a3a8e32958f53f7bf10c0679e06 Author: Ryan Harkin Date: Wed Jan 15 12:22:06 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A9 BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15123 6f19259b-4bc3-4df7-8a09-765794883524 commit bdf67cd688b48c65da2b7282217f15d6b98ec869 Author: Ryan Harkin Date: Wed Jan 15 12:19:29 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: add virtio to RTSM A15 BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15122 6f19259b-4bc3-4df7-8a09-765794883524 commit 4b128e5d4d08c95213bc2320480e2a1272e3de7e Author: Ryan Harkin Date: Wed Jan 15 12:18:29 2014 +0000 ArmPlatformPkg/ArmVExpressPkg: Add virtio to RTSM A15 MPCore BSP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15121 6f19259b-4bc3-4df7-8a09-765794883524 commit 382e45e7fd04312e54affee81db2dd0a2be5d496 Author: Gao, Liming Date: Wed Jan 15 11:51:38 2014 +0000 ArmPlatformPkg/PeiServicesTablePointerLib: Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15120 6f19259b-4bc3-4df7-8a09-765794883524 commit 5d6a5aee0ba4231fe0227c7c08e4203e4ad6d377 Author: Ruiyu Ni Date: Wed Jan 15 07:51:22 2014 +0000 Follow UEFI spec to convert unrecognized device path structure from/to hex dump text. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15119 6f19259b-4bc3-4df7-8a09-765794883524 commit 875670e2c624119d8bc6d463b90433cf9b92d099 Author: Ruiyu Ni Date: Wed Jan 15 07:48:05 2014 +0000 Update Debug Agent initialization message to change the version string from "1.3.1" to "1.4" Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15118 6f19259b-4bc3-4df7-8a09-765794883524 commit d6211ea1f3cca982b55f159c94309bba968f4af6 Author: Ruiyu Ni Date: Wed Jan 15 07:46:38 2014 +0000 Change the library global variable to add library name prefix to avoid potential compilation failure. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15117 6f19259b-4bc3-4df7-8a09-765794883524 commit 620f846f49182b2bdcb406a769b04c15790b2443 Author: Fu Siyuan Date: Wed Jan 15 07:19:58 2014 +0000 Fix bug that PXEv4 boot fail if PXEv6 is performed firstly. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15116 6f19259b-4bc3-4df7-8a09-765794883524 commit ffd332cac1e28051533efb295242df959888d7bb Author: Gao, Liming Date: Wed Jan 15 02:17:30 2014 +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 Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15115 6f19259b-4bc3-4df7-8a09-765794883524 commit ffdb421ca50c3bb4b31f89707da4c99ca8299a77 Author: Gao, Liming Date: Wed Jan 15 02:16:57 2014 +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 Reviewed-by: Kinney, Michael D git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15114 6f19259b-4bc3-4df7-8a09-765794883524 commit 2405af19936960172d3ad0ae895691bd273a3215 Author: Olivier Martin Date: Tue Jan 14 15:31:01 2014 +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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15113 6f19259b-4bc3-4df7-8a09-765794883524 commit 5511b319f2adcadbff6590380f84537349b0395b Author: Shumin Qiu Date: Tue Jan 14 07:30:50 2014 +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 Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15112 6f19259b-4bc3-4df7-8a09-765794883524 commit 9938c13d45f1f0860369278a1e61a6fce8bfc7ec Author: Gao, Liming Date: Tue Jan 14 06:05:12 2014 +0000 Update FMP Header file Comments per UEFI2.4A Signed-off-by: Gao, Liming Reviewed-by: Qiu, Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15111 6f19259b-4bc3-4df7-8a09-765794883524 commit ed95ad4e40a823e82e0ac09c1bbe2a8e1684f90e Author: Eric Dong Date: Tue Jan 14 02:19:30 2014 +0000 Update the comments to follow spec update. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15110 6f19259b-4bc3-4df7-8a09-765794883524 commit 49bb76ff717a8a02e23ef0585b142e5117fbaee1 Author: Jaben Carsey Date: Mon Jan 13 18:52:48 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15109 6f19259b-4bc3-4df7-8a09-765794883524 commit 8da53ddd3b8a7e670fb1bdabe134f0ce7fc451a3 Author: Olivier Martin Date: Mon Jan 13 18:52:12 2014 +0000 ShellPkg: remove unreachable break statements Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15108 6f19259b-4bc3-4df7-8a09-765794883524 commit 8844288c4e0c67cf7e765a92aafe62f76e3e86b1 Author: Jaben Carsey Date: Mon Jan 13 18:47:18 2014 +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 Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15107 6f19259b-4bc3-4df7-8a09-765794883524 commit b00c06f018bb86bec276dcd8e3038e0a06221b09 Author: Olivier Martin Date: Mon Jan 13 17:47:17 2014 +0000 EdkShellPkg/ShellR64.patch: Update patch to fix RVCTLINUX build Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15106 6f19259b-4bc3-4df7-8a09-765794883524 commit 7cf782218443f77249de07f366d53023d75c3701 Author: jyao1 Date: Mon Jan 13 13:42:42 2014 +0000 Fix typo in PCD description in SecurityPkg. Signed-off by: jiewen yao Reviewed by: guo dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15105 6f19259b-4bc3-4df7-8a09-765794883524 commit 5109015c9a0b241fc3181cf874f9681ff741f3eb Author: jyao1 Date: Mon Jan 13 13:25:30 2014 +0000 Follow UEFI2.4.a spec, deprecate 6 hash algo. Signed-off by: jiewen yao Reviewed by: qin long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15104 6f19259b-4bc3-4df7-8a09-765794883524 commit e958b94662d2a5cd838d59b463dcb38a1ccfb56b Author: Jaben Carsey Date: Mon Jan 13 07:30:08 2014 +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 Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15103 6f19259b-4bc3-4df7-8a09-765794883524 commit 483b86b918fad5bfe8ecf3d4e2b6655a26e07d2d Author: Shumin Qiu Date: Mon Jan 13 07:28:01 2014 +0000 Set the type of return value from function 'LoadVariablesFromFile' in 'DmpStore.c' to match the type of 'ShellStatus'. Signed-off-by: Shumin Qiu Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15102 6f19259b-4bc3-4df7-8a09-765794883524 commit 66bd412ad4f76cef8971445197314acd2be5e651 Author: Shumin Qiu Date: Mon Jan 13 05:09:27 2014 +0000 Add a new header file to define Adapter Information Protocol. Signed-off-by: Shumin Qiu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15101 6f19259b-4bc3-4df7-8a09-765794883524 commit 37eae4c7d86135b2acd33a32bdf99d8e7759785a Author: Ruiyu Ni Date: Mon Jan 13 03:28:01 2014 +0000 Add EFI_FILE_PROTOCOL_LATEST_REVISION macro to SimpleFileSystem.h. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15100 6f19259b-4bc3-4df7-8a09-765794883524 commit 8cb92971e491cddd59b74eb24bf403c97d37cab1 Author: Fu Siyuan Date: Mon Jan 13 02:53:50 2014 +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 Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15099 6f19259b-4bc3-4df7-8a09-765794883524 commit 20182c7ea10f9f2ec48037ad7b0338185e45ecac Author: Ruiyu Ni Date: Sat Jan 11 03:21:21 2014 +0000 Fix GCC build failure. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15098 6f19259b-4bc3-4df7-8a09-765794883524 commit 9f7f0697b7dcada75704f2c54b816cf79448010b Author: Jaben Carsey Date: Fri Jan 10 22:34:13 2014 +0000 ShellPkg: add the last PCIe extended capability decodings Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15097 6f19259b-4bc3-4df7-8a09-765794883524 commit e1c9edd6b6ea5e78f02e382b254de40cf708d20c Author: Jaben Carsey Date: Fri Jan 10 22:30:37 2014 +0000 MdePkg: add missing #defines for decoding PCIe 2.1 extended capability structures Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15096 6f19259b-4bc3-4df7-8a09-765794883524 commit 75a5e2ef4e3b3a3c1d25ef0be3621edf541237c3 Author: Jaben Carsey Date: Fri Jan 10 16:42:45 2014 +0000 ShellPkg: remove potential memory leak with new apps on old shell This pointer never gets free when running new apps on the old shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15095 6f19259b-4bc3-4df7-8a09-765794883524 commit 012305d551c953b6581ec38ef4534355e428cc8e Author: Jaben Carsey Date: Fri Jan 10 16:41:54 2014 +0000 ShellPkg: remove double free operation This pointer gets free twice and this does not work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15094 6f19259b-4bc3-4df7-8a09-765794883524 commit c357fd6a1f79e2d7b0a1bd01994b8d33925bfff5 Author: Olivier Martin Date: Fri Jan 10 11:27:31 2014 +0000 ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 The System Memory region might be out of the 32-bit memory space. This change has been validated on the FVP AArch64 model using 4GB of DRAM at 0x8_0000_0000: - # System Memory (2GB) - gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 - gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000 + # System Memory (4GB) + gArmTokenSpaceGuid.PcdSystemMemoryBase|0x800000000 + gArmTokenSpaceGuid.PcdSystemMemorySize|0x100000000 EFI Shell and Linux kernel boot successfully. Note: This change has not been validated on AArch32. I expect some early assembly code to not work. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15093 6f19259b-4bc3-4df7-8a09-765794883524 commit 18b24f924f06f2345c0410d145d14e1a9a500dc8 Author: Fu Siyuan Date: Fri Jan 10 08:24:29 2014 +0000 Fix bug in unload function: Check if component name protocol exist, only uninstall it when it really exists. Signed-off-by: Fu Siyuan Reviewed-by: Tian, Feng Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15092 6f19259b-4bc3-4df7-8a09-765794883524 commit 9325f68430361597e811f2ae2ad88a4b3440da09 Author: Ruiyu Ni Date: Fri Jan 10 07:29:32 2014 +0000 Update PcAtChipsetPkg package version from 0.2 to 0.3 Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15091 6f19259b-4bc3-4df7-8a09-765794883524 commit 0a2326aff75d4581dfc526f9011ad004d8b7af72 Author: Feng Tian Date: Fri Jan 10 07:15:52 2014 +0000 MdeModulePkg/NvmExpressDxe: Fix a bug in NvmExpressDxe driver’s Unload() that forget to uninstall the DriverSupportedEfiVersionProtocol Signed-off-by: Feng Tian Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15090 6f19259b-4bc3-4df7-8a09-765794883524 commit 2bc3256ca6d439ebf5d85d5e74e5f3e68df14130 Author: Gao, Liming Date: Fri Jan 10 05:25:50 2014 +0000 Sync BaseTool trunk (version r2640) into EDKII BaseTools. Signed-off-by: Gao, Liming Reviewed-by: Liu, Jiang A git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15089 6f19259b-4bc3-4df7-8a09-765794883524 commit 8d9e16963ee86478776e2f504a776ec712fb0c77 Author: Ruiyu Ni Date: Fri Jan 10 04:57:57 2014 +0000 New EdkShell binaries. Update EdkShellBinPkg.dec version from 0.4 to 0.5. Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15088 6f19259b-4bc3-4df7-8a09-765794883524 commit 54d5bb7d16536cab30d782825b0d342f4e02ab4c Author: Ruiyu Ni Date: Fri Jan 10 03:42:36 2014 +0000 Fix a bug in DebugPort driver's Unload() that leaves the DriverBinding/ComponentName(2) installed. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15087 6f19259b-4bc3-4df7-8a09-765794883524 commit 554dddfcd938be621514593d2b2d0d86f42579ac Author: Jeff Fan Date: Fri Jan 10 02:48:49 2014 +0000 Fix bug when reserve stack space to fill exception context. Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15086 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d13123720d2ac07155f98764e527c2fe5598ade Author: Ruiyu Ni Date: Fri Jan 10 02:44:43 2014 +0000 New FatDxe binary. Update DEC revision to 0.3. Signed-off-by: Ruiyu Ni Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15085 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ab63eb9e0abef7afa3aab364cb4268752994bc8 Author: Long, Qin Date: Fri Jan 10 02:30:22 2014 +0000 Update CryptoPkg version: 0.92 -> 0.93 Signed-off-by: Long, Qin Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15084 6f19259b-4bc3-4df7-8a09-765794883524 commit 7e63fc9de941fd4e7d075feb5267f5cf96a80d45 Author: Ruiyu Ni Date: Fri Jan 10 01:52:24 2014 +0000 Add the feature "dmpstore -l" and "dmpstore -s". The file format is as below: := + := Each variable representation in the file has a CRC32 value which can provide a mechanism to detect the file modification. When any CRC32 is incorrect, dmpstore rejects to load the variables from the file. Signed-off-by: Ruiyu Ni Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15083 6f19259b-4bc3-4df7-8a09-765794883524 commit 3a140833977300023e2188644ef81654aeafd826 Author: Tian, Feng Date: Fri Jan 10 01:43:02 2014 +0000 Updates MdeModulePkg package version from 0.92 to 0.93 Signed-off-by: Tian, Feng Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15082 6f19259b-4bc3-4df7-8a09-765794883524 commit 7527b53dcbd17ce26636c908de8f84d2e57d3cba Author: Dong Guo Date: Fri Jan 10 01:24:51 2014 +0000 Upgrade package version to 0.93 Signed-off-by: Dong Guo Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15081 6f19259b-4bc3-4df7-8a09-765794883524 commit 4d92c2246c36fa4d7c1211a611132e18805bdf6c Author: Jeff Fan Date: Fri Jan 10 01:21:14 2014 +0000 Update SourceLevelDebugPkg version: 0.85->0.86 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15080 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ad15074f4e5538341bbf256ecbdb42a1f3fed05 Author: Jeff Fan Date: Fri Jan 10 01:20:26 2014 +0000 Update UefiCpuPkg version: 0.2->0.3 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15079 6f19259b-4bc3-4df7-8a09-765794883524 commit da69cde194b45f99a428eb48110579fae0375fb6 Author: Jeff Fan Date: Fri Jan 10 01:19:03 2014 +0000 Update IntelFrameworkModulePkg version: 0.92->0.93 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15078 6f19259b-4bc3-4df7-8a09-765794883524 commit e21893a8010210775a8dd8e663570fd0143d81ba Author: Jeff Fan Date: Fri Jan 10 01:18:20 2014 +0000 Update IntelFrameworkPkg version: 0.92->0.93 Signed-off-by: Jeff Fan Reviewed-by: Hot Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15077 6f19259b-4bc3-4df7-8a09-765794883524 commit a1d20250e539b9b7d60d4887db8d5650fd4de2de Author: Jaben Carsey Date: Thu Jan 9 21:55:03 2014 +0000 MdePkg: Add PCI Express 2.1 and 3.0 structures This adds PCI Express extended capabilities structures. These structures are required for enhancements to the shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15076 6f19259b-4bc3-4df7-8a09-765794883524 commit 5c5a34d485eb200c81f89ebc8553a77167ba2c44 Author: Olivier Martin Date: Thu Jan 9 19:15:06 2014 +0000 MmcDxe: Perform diagnostics specifically on the requested controller In RunDiagnostics, find the controller specified by ControllerHandle and run diagnostics only on that controller, returning EFI_UNSUPPORTED if it isn't in the driver's pool of managed devices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15075 6f19259b-4bc3-4df7-8a09-765794883524 commit b4fdedc2543c6d193c70ae5339a56824a9729e68 Author: Olivier Martin Date: Thu Jan 9 19:06:25 2014 +0000 MmcDxe: Adding eMMC support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15074 6f19259b-4bc3-4df7-8a09-765794883524 commit 4f67c7ffa1ed419e44084b2679c49a2f4e95ba65 Author: Jaben Carsey Date: Thu Jan 9 18:05:24 2014 +0000 ShellPkg: remove memory leak in file handle list The shell was not freeing sufficient memory when freeing a list of files. The structure contained a pointer which was being left behind. I made a new function to replace the shared freeing function which frees the “Path” member of the SHELL_COMMAND_FILE_HANDLE structure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15073 6f19259b-4bc3-4df7-8a09-765794883524 commit 4922715d85564441d7cf16bac1a1fa67673f6877 Author: Jaben Carsey Date: Thu Jan 9 18:02:26 2014 +0000 ShellPkg: Fix NSH parsing This skips lines in NSH files that are completely comments. This reduces the memory overhead and the later processing. This also frees memory correctly when a second memory allocation fails. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15072 6f19259b-4bc3-4df7-8a09-765794883524 commit c1f9c34621fae9bec20c2b2fce134b9dba2b0ba1 Author: Jaben Carsey Date: Thu Jan 9 17:59:46 2014 +0000 ShellPkg: Remove memory leak from file list usage This change removes an un-used parameter that was then causing a leak since the memory was assumed to be used. This also verifies that the list is freed when no longer needed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15071 6f19259b-4bc3-4df7-8a09-765794883524 commit 705bffb568b36813ff6eccbe5a93cffb0b143044 Author: Jaben Carsey Date: Thu Jan 9 16:54:13 2014 +0000 ShellPkg: Add more output to PCI command for extended configuration. there is a new non-spec parameter "-_e" which allows additional information output to be controlled. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15070 6f19259b-4bc3-4df7-8a09-765794883524 commit 2fa77862fd4e962c81524ffd667b62a6adbcff22 Author: Elvin Li Date: Thu Jan 9 08:47:03 2014 +0000 If the driver does not start before, we do not disconnect driver and we must still uninstall other protocols on image handle. The original implementation of error return is not correct. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15069 6f19259b-4bc3-4df7-8a09-765794883524 commit e6aaef28b8cdc06ae22bdd5c5813746e9495012d Author: Fu Siyuan Date: Thu Jan 9 07:05:09 2014 +0000 Update NetworkPkg package version to 0.94. Signed-off-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15068 6f19259b-4bc3-4df7-8a09-765794883524 commit c93bcb7ef453337f9daae42c6b27492c4f6555ed Author: Eric Dong Date: Thu Jan 9 05:59:53 2014 +0000 Return to BMM page if parse the file info failed. Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Siyuan Fu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15067 6f19259b-4bc3-4df7-8a09-765794883524 commit 21d9882c61b5ec6276d8c5bb39b6ac3c1e9a7ea4 Author: Gao, Liming Date: Thu Jan 9 05:25:56 2014 +0000 Clarify PcdPeiCoreMaxPeimPerFv description that means the maximum supported file count in one FV, not only PEIM. Signed-off-by: Gao, Liming Reviewed-by: Zeng, Star git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15066 6f19259b-4bc3-4df7-8a09-765794883524 commit e3a7caeaed4c007962a697943c541735ae5a4ebe Author: Gao, Liming Date: Thu Jan 9 05:15:53 2014 +0000 Updates MdePkg package version from 1.03 to 1.04 Signed-off-by: Gao, Liming Reviewed-by: Tian, Hot git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15065 6f19259b-4bc3-4df7-8a09-765794883524 commit bad2be3ed8349fc85038412c81d77898508e3fb2 Author: Star Zeng Date: Thu Jan 9 02:57:10 2014 +0000 MdeModulePkg FaultTolerantWrite: Let FaultTolerantWrite driver to depend on gEfiRuntimeArchProtocolGuid to consume gBS->CalculateCrc32(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15064 6f19259b-4bc3-4df7-8a09-765794883524 commit f5d2935d7a2123311ac66d03e4bee078c9da8315 Author: Liming Gao Date: Thu Jan 9 01:54:43 2014 +0000 Correct function comments of S3BootScriptCloseTable(). Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15063 6f19259b-4bc3-4df7-8a09-765794883524 commit e8480a183c838a95b9ee78b5a5efa7aa57de9425 Author: Liming Gao Date: Thu Jan 9 01:53:33 2014 +0000 Correct function comments of S3BootScriptCloseTable(). Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15062 6f19259b-4bc3-4df7-8a09-765794883524 commit f9ed6c93af4d21052c22e8c032cb9c426f75b50c Author: Yi Li Date: Thu Jan 9 01:32:58 2014 +0000 Add processor family 2 definition in SMBIOS header file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yi Li Reviewed by: Star Zeng Reviewed by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15061 6f19259b-4bc3-4df7-8a09-765794883524 commit 03bc7c2b09c6f36930a5138c7727c0c4048539a7 Author: Shumin Qiu Date: Thu Jan 9 00:30:27 2014 +0000 Add code to check whether the pointer 'NewBuffer' in 'FileHandelWrappers.c' and the pointer 'FoundVarName' in 'Dmpstore.c' are NULL before used. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15060 6f19259b-4bc3-4df7-8a09-765794883524 commit 0b716fd7649f13ca6c214aa47f39ab00212c7d6e Author: Eric Dong Date: Wed Jan 8 08:21:22 2014 +0000 Rollback the patch 15054. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15059 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f497f8f71fa1c38b0b0204ff06f1d6d8256d8f1 Author: Elvin Li Date: Wed Jan 8 03:47:43 2014 +0000 Check if component name protocol exist, uninstall it when it really exists. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15058 6f19259b-4bc3-4df7-8a09-765794883524 commit 94caa81c35093b4e1b6fb043e1290f3ca24f8c2c Author: oliviermartin Date: Tue Jan 7 11:20:14 2014 +0000 ArmPlatformPkg/ArmFvpDxe: Fixed the line endings The line endings for EDK2 source files should be CRLF. git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15057 6f19259b-4bc3-4df7-8a09-765794883524 commit 0befb08d23593e0c6fcb0b7fc45bce74b822cced Author: Star Zeng Date: Tue Jan 7 09:28:33 2014 +0000 MdePkg PcdLib: Except for SizeOfBuffer is greater than the maximum size supported, align the behavior of LibPcdSetPtr with LibPcdSetN to handle error status returned. Let the comments to be aligned with code behavior for LibPcdSetX APIs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15056 6f19259b-4bc3-4df7-8a09-765794883524 commit f0c5095b274b2b35867d5245119aa1aba0acc87e Author: Eric Dong Date: Tue Jan 7 08:07:47 2014 +0000 This patch fix date/time op-code shows abnormal. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15055 6f19259b-4bc3-4df7-8a09-765794883524 commit eff077992ab3fa9d4a71d11c2f3cf507d2c88e2a Author: Eric Dong Date: Tue Jan 7 07:34:20 2014 +0000 Not update the status until parse the file info success. Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15054 6f19259b-4bc3-4df7-8a09-765794883524 commit 44c8400a7de8a4c3e183c64ee8ff689b8ef4a90c Author: Jeff Fan Date: Tue Jan 7 06:24:16 2014 +0000 MtrrDebugPrintAllMtrrs() should loop until the max physical address is reached. GetMemoryCacheTypeFromMtrrType () should return the default memory type instead of UC type for MTRR_CACHE_INVALID_TYPE. Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15053 6f19259b-4bc3-4df7-8a09-765794883524 commit 31c2a2c7c07365abd3ee9389b390ac4c8b7d4aac Author: Ruiyu Ni Date: Tue Jan 7 02:23:10 2014 +0000 Enhance Shell 2.0 to not depend on keyboard driver implementation to fix the "CTRL+s" pause malfunction issue. Signed-off-by: Ruiyu Ni Reviewed-by: Carsey Jaben git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15052 6f19259b-4bc3-4df7-8a09-765794883524 commit de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe Author: Shumin Qiu Date: Tue Jan 7 01:51:08 2014 +0000 Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether pointer 'DataBuffer' in 'DmpStore.c' is NULL before used. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15051 6f19259b-4bc3-4df7-8a09-765794883524 commit 56a9e699dd04da798417732265404b70fe879866 Author: Star Zeng Date: Mon Jan 6 03:36:31 2014 +0000 MdeModulePkg CdExpressPei: Use correct PeiServices pointer to call low level BlockIoPpi->ReadBlocks. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15050 6f19259b-4bc3-4df7-8a09-765794883524 commit 979fc9eab575aa33bdcccec709e1791cd1cf5148 Author: Fu Siyuan Date: Mon Jan 6 03:01:09 2014 +0000 Bug fix: IpSec driver treats BOOLEAN as EFI_STATUS in error handling code. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15049 6f19259b-4bc3-4df7-8a09-765794883524 commit 8ff272ee837ebdfba6b72ed3dcf5e7ab136d8af0 Author: Fu Siyuan Date: Mon Jan 6 02:17:12 2014 +0000 Fix “reconnect -r” ASSERT after VLAN configured. Signed-off-by: Fu Siyuan Reviewed-by: Zhang, Chao B Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15048 6f19259b-4bc3-4df7-8a09-765794883524 commit ecec42044078d60fc517d3474c0ebf82d0f15633 Author: Fu Siyuan Date: Mon Jan 6 02:08:05 2014 +0000 Update PXE driver to support PXE forced mode. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo Reviewed-by: Jin, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15047 6f19259b-4bc3-4df7-8a09-765794883524 commit c90decb997484a34652a8ca2a90b358f929d41f2 Author: Laszlo Ersek Date: Fri Jan 3 19:57:36 2014 +0000 OvmfPkg: QemuFwCfgLib: implement for SEC The QemuFwCfgSecLib library instance - is stateless, - has no library constructor, - is available to SEC client code, - must be queried with QemuFwCfgIsAvailable() before use, - is restricted to SEC in order to limit the explicit querying requirement. (There is no current user.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15046 6f19259b-4bc3-4df7-8a09-765794883524 commit 2ce7e221e70214b094e2e54d0e6dc9491a742dd3 Author: Laszlo Ersek Date: Fri Jan 3 19:57:26 2014 +0000 OvmfPkg: QemuFwCfgLib: extract stateful implementation The current implementation of QemuFwCfgLib is: - stateful - implicitly initialized in the library constructor. OVMF's SEC runs from read-only memory/flash. When the library is linked into a SEC binary (which currently never happens), the "mQemuFwCfgSupported" global variable becomes read-only, making the library non-functional. Extract the stateful, implicitly initialized library implementation into a separate file, making room for a stateless, explicitly queried implementation that's usable in SEC. Restrict the stateful implementation to the current, non-SEC clients. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15045 6f19259b-4bc3-4df7-8a09-765794883524 commit 0dc231c9bd1a5aecfbcd373a50dc348a5dfbd38a Author: Laszlo Ersek Date: Fri Jan 3 19:57:17 2014 +0000 OvmfPkg: QemuFwCfgLib: introduce InternalQemuFwCfgIsAvailable() This internal function allows separation of library-internal and for-clients external availability of fw_cfg. The interface contract of QemuFwCfgIsAvailable() is changed so that now it may modify fw_cfg state. All current users are compliant with the new contract. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15044 6f19259b-4bc3-4df7-8a09-765794883524 commit e55bf53ba9f59f16a6dabe8ac08db25bc91df770 Author: Jordan Justen Date: Fri Jan 3 19:19:43 2014 +0000 OvmfPkg/create-release.py: Read License.txt files Rather than embedding the License information in this script, we now read the License.txt files from MdePkg & FatBinPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15043 6f19259b-4bc3-4df7-8a09-765794883524 commit 57dcb83f5963b5e88c78381d1bc63db1fbb8f3ed Author: Jordan Justen Date: Fri Jan 3 19:19:38 2014 +0000 OvmfPkg/create-release.py: Support git hash versions Previously we would run 'git svn info' if a .svn directory wasn't found. This would fail if the current local commit was not from git-svn. Now we look for the svn info in the output from git log. If the svn version is not in a git-svn-id tag from git log, then we use the git commit hash. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15042 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d3d4a7e9fa89e66b27b5769e129e9234c0e4455 Author: Jordan Justen Date: Fri Jan 3 19:19:32 2014 +0000 OvmfPkg/create-release.py: Support GCC44 through GCC47 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15041 6f19259b-4bc3-4df7-8a09-765794883524 commit 4272d1a7c190c6f74f89c32fdf48f795fe9ac25a Author: Jordan Justen Date: Fri Jan 3 19:19:26 2014 +0000 OvmfPkg/create-release.py: Remove '-alpha' from filename The source control revision is still the produced filename. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15040 6f19259b-4bc3-4df7-8a09-765794883524 commit e3a0222a9b4f1733985b24d7218444f4166dc085 Author: Jordan Justen Date: Fri Jan 3 19:19:20 2014 +0000 OvmfPkg/README: Update OVMF status Remove 'Alpha' status tag. Let's just refer to the OVMF releases by their revision control version. Remove 'stabilize UEFI Linux' to-do item. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15039 6f19259b-4bc3-4df7-8a09-765794883524 commit 210c880fa95ff1d441f9dda18b9d6dc45496182e Author: Jordan Justen Date: Fri Jan 3 19:19:14 2014 +0000 OvmfPkg/README: Update information about running OVMF The new instructions document -pflash & -bios options for running OVMF on QEMU. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15038 6f19259b-4bc3-4df7-8a09-765794883524 commit 300f2c6ad5300c473037910200cf2d24ab38ecbc Author: Liming Gao Date: Fri Jan 3 03:27:18 2014 +0000 Correct function comments of S3BootScriptSaveDispatch2(). Signed-off-by: Liming Gao Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15037 6f19259b-4bc3-4df7-8a09-765794883524 commit 18d3e280624f0748237b82fdf7e10b1e25797a01 Author: Liming Gao Date: Thu Jan 2 07:16:09 2014 +0000 Update the heap migration logic to avoid memory overflow. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15036 6f19259b-4bc3-4df7-8a09-765794883524 commit d958a7e0bca33102c27eaa86b07de196b7bba098 Author: Liming Gao Date: Thu Jan 2 02:38:32 2014 +0000 Correct the RemainingPages calculation in PEI AllocatePages service. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15035 6f19259b-4bc3-4df7-8a09-765794883524 commit 91403ce938695e2ea2f27ac1ce796812a0aa22e8 Author: Liming Gao Date: Tue Dec 31 07:19:52 2013 +0000 Update MemoryAllocationLib AllocateAlignedPages API comments for memory overflow ASSERT case. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15034 6f19259b-4bc3-4df7-8a09-765794883524 commit 1346352d5210661c92ae4343c9a69d9aa3b730e1 Author: Liming Gao Date: Tue Dec 31 07:19:09 2013 +0000 Update MemoryAllocationLib.AllocateAlignedPages API comments for memory overflow ASSERT case. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15033 6f19259b-4bc3-4df7-8a09-765794883524 commit 27bace9b3ee288a2befb63a405cc0882882ef136 Author: Eric Dong Date: Tue Dec 31 04:46:53 2013 +0000 Keep consistent about the return value between the caller and callee. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15032 6f19259b-4bc3-4df7-8a09-765794883524 commit 3e108dfd7dcd495732e86d2d1339364033512ecf Author: Shumin Qiu Date: Tue Dec 31 04:01:17 2013 +0000 Set the type of variable 'StatusCode' as SHELL_STATUS to match the parameter type of function 'SetLastError'. Signed-off-by: Shumin Qiu Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15031 6f19259b-4bc3-4df7-8a09-765794883524 commit 6307a8b6dc054339db3b3d9733f2ce1a248b483c Author: Eric Dong Date: Mon Dec 30 06:07:29 2013 +0000 Rollback the change 15021. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15030 6f19259b-4bc3-4df7-8a09-765794883524 commit af8aa62d5941518e6397c13a567a06b5eabd68d2 Author: David Woodhouse Date: Mon Dec 30 01:14:13 2013 +0000 MdePkg: First instruction after clearing CR0.PE must be a far jmp. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Woodhouse Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15029 6f19259b-4bc3-4df7-8a09-765794883524 commit 321c89c208f4b1afaab37c33cf355dba11090ed5 Author: David Woodhouse Date: Mon Dec 30 01:12:10 2013 +0000 Clean up hard-coded offsets and other utter bogosity in Thunk16.S Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Woodhouse Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15028 6f19259b-4bc3-4df7-8a09-765794883524 commit efd6b412c65a157ac040c9ed70024ed5ad77af61 Author: Star Zeng Date: Sun Dec 29 07:14:57 2013 +0000 MdeModulePkg Pcd DXE: Handle the case gPcdDataBaseHobGuid HOB is not present. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15027 6f19259b-4bc3-4df7-8a09-765794883524 commit b8b86ec6e002f135e3343454f30a951cdb10e1ee Author: Jeff Fan Date: Fri Dec 27 08:10:37 2013 +0000 Update HostSequenceNo for Command packet instead for Response packet. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15026 6f19259b-4bc3-4df7-8a09-765794883524 commit 96c83393f0fd1e186d016a2e26e5aa20b2ec75a8 Author: Jeff Fan Date: Fri Dec 27 06:14:25 2013 +0000 Remove Debug message output from UpdateMailboxContent(), it may cause Mailbox locker nested issue. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15025 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a0c0e15950b1a30290c97dcbde7a20afdbd6dfe Author: Laszlo Ersek Date: Thu Dec 26 21:05:17 2013 +0000 OvmfPkg: QemuFwCfgLib: drop bogus dependency on UefiBootServicesTableLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15024 6f19259b-4bc3-4df7-8a09-765794883524 commit 4a9fab7d72dc7f0bf4cae454e403bd939ca6f32d Author: Laszlo Ersek Date: Thu Dec 26 20:44:29 2013 +0000 OvmfPkg: PlatformPei: reuse PublishPeiMemory() in MemDetect() Although SVN r14944 ("OvmfPkg: introduce PublishPeiMemory") copied a big chunk of code from MemDetect(), calling the new PublishPeiMemory() function in MemDetect() could not have replaced the original code in the latter. However, with the help of the previous patch, we can do it now. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15023 6f19259b-4bc3-4df7-8a09-765794883524 commit 9ab36385be96377cd97299a975ca9456bbfd887b Author: Laszlo Ersek Date: Thu Dec 26 20:44:20 2013 +0000 OvmfPkg: PlatformPei: simplify memory range expressions in MemDetect() Exploit that (MemoryBase + MemorySize) always equals LowerMemorySize. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15022 6f19259b-4bc3-4df7-8a09-765794883524 commit 80873def607ba8056e5aab40eaa3be07e9a5ec19 Author: Eric Dong Date: Thu Dec 26 04:19:37 2013 +0000 Keep consistent about the return value between the caller and callee. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15021 6f19259b-4bc3-4df7-8a09-765794883524 commit b8b5ff5acd0d292bcd804e589d28677af5098573 Author: Elvin Li Date: Wed Dec 25 07:52:55 2013 +0000 Update XhcWaitOpRegBit to take Timout argument as microsecond. Signed-off-by: Elvin Li Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15020 6f19259b-4bc3-4df7-8a09-765794883524 commit 5142926433b4fbcb94a2b63d52ac1489db407826 Author: Shumin Qiu Date: Wed Dec 25 00:55:33 2013 +0000 Fix ECC errors:1.Update the comments in function headers to follow the Doxygen special documentation. 2.Make the first line of text in a comment block end with a period. 3.Update the member variable name for SHELL_OPERATION_TYPES to follow the rules "Must contain lower case characters". 4. Return type of a function should exist and in the first line. Signed-off-by: Shumin Qiu Reviewed-by: Dong, Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15019 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fa0da7d52815979be31b8252aae839883dc7b0c Author: Laszlo Ersek Date: Tue Dec 24 07:25:31 2013 +0000 Add default way for switch in function 'RunCommandOrFile' of 'Shell.c'. Signed-off-by: Laszlo Ersek Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15018 6f19259b-4bc3-4df7-8a09-765794883524 commit bdebd2cecf015a5feb11e99269731cac606167e8 Author: Wu Jiaxin Date: Mon Dec 23 08:43:09 2013 +0000 Fix a bug for vlan ping failure. Signed-off-by: Wu Jiaxin Reviewed-by: Fu Siyuan Reviewed-by: Jin Eric git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15017 6f19259b-4bc3-4df7-8a09-765794883524 commit da660118bd391d1f421f99921f9f15a66a8fc7ea Author: Star Zeng Date: Mon Dec 23 06:41:36 2013 +0000 MdePkg PcdLib: Follow the comment of LibPcdGetNextToken to ASSERT when an invalid TokenNumber input. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15016 6f19259b-4bc3-4df7-8a09-765794883524 commit adcd7381bb2ab1108b13a838218d8d59e09b54d4 Author: Star Zeng Date: Mon Dec 23 06:33:12 2013 +0000 MdeModulePkg Pcd: Extend PcdVpdBaseAddress to support PcdsPatchableInModule type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15015 6f19259b-4bc3-4df7-8a09-765794883524 commit 5bd12b0555989b714d47abe628d846861d350efe Author: Jaben Carsey Date: Fri Dec 20 22:33:01 2013 +0000 ShellPkg: fix DmpStore for deleting This change allows DmpStore command to delete all variables whereas before it would stop after a single deletion due to looping errors. It uses a recursive function and deletes the last item returned from GetNextVariableName() first and then goes "backwards" to the first items. This can't delete authenticated variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15014 6f19259b-4bc3-4df7-8a09-765794883524 commit 4692bc0b81d822e467435c7a7b9e6470dff1b8d2 Author: Jeff Fan Date: Fri Dec 20 05:49:15 2013 +0000 Only save HostSequenceNo for new command in Debug Timer handler. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15013 6f19259b-4bc3-4df7-8a09-765794883524 commit f3b113bf614119f4b54858f909606954be75b3f3 Author: Jeff Fan Date: Fri Dec 20 05:42:41 2013 +0000 1. Only dump CPU Context and CpuDeadLoop () for CPU exception. 2. mEnabledInterruptNum is total enabled interrupt number, InterruptType should less than mEnabledInterruptNum. Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15012 6f19259b-4bc3-4df7-8a09-765794883524 commit 6bd644638de46eeecb50292b2851a5045ebf1cac Author: Jaben Carsey Date: Fri Dec 20 01:13:36 2013 +0000 ShellPkg: pre-verify split commands This makes sure that all parts of commands split via pipe operation are valid before starting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15011 6f19259b-4bc3-4df7-8a09-765794883524 commit 12a27a6d81246493ea4cf66e97172ff252ca38a2 Author: Jaben Carsey Date: Thu Dec 19 22:09:17 2013 +0000 ShellPkg: API name typo. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15010 6f19259b-4bc3-4df7-8a09-765794883524 commit 404b3f439492fac48207f5a8cb7ecc89f4287100 Author: Jaben Carsey Date: Thu Dec 19 22:03:37 2013 +0000 ShellPkg: fix whitespace character trimming This makes TrimSpaces() trim tab characters off the end of the string also (not just the beginning). Also updates loop to prevent buffer underrun. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15009 6f19259b-4bc3-4df7-8a09-765794883524 commit e3eb7d825adae351f1a45e7809c8506b364ee059 Author: Jaben Carsey Date: Thu Dec 19 21:55:13 2013 +0000 ShellPkg: CTRL-C stops a running script at the same time This makes CTRL-C stop a running script after trying to stop the command. And adds comments to describe the behavior more clearly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15008 6f19259b-4bc3-4df7-8a09-765794883524 commit 806c49db0538080ac397892c750b86d1c55d32af Author: Jaben Carsey Date: Thu Dec 19 16:05:34 2013 +0000 ShellPkg: Refactor the RunCommand API This almost completely splits the RunCommand API into sub-routines. - the ProcessCommandLineToFinal API handles replacing the a found alias and any found environment variables. This will redirect "-?" to "help", if necessary. Upon return, the command line is complete and finalized. It may still have redirection in it, and those will get chopped off later (but no further modifications occur). - the SetupAndRunCommandOrFile API handles updating and then later restoring StdIn, StdOut, and StdErr (and removing their information from the command line). It will call into RunCommandOrFile. - the RunCommandOrFile API divides the logic to RunInternalCommand, RunScriptFile, or running an .EFI file directly. - the RunInternalCommand API handles updating and then restoring Argc and Argv. It will run the internal command in between. - the SetLastError API handles updating of the environment variable "lasterror" - the DoHelpUpdateArgcArgv was changed to DoHelpUpdate and now works on the raw command line and not the argc/argv. This allows the processing to be moved earlier. Note this change has the following positive side effects (this eliminates unnecessary step): - Argc/Argv are only updated for internal commands (as they are library based) - no Argv/Argc/StdIn/StdOut/StdErr processing is done for file system changes. - The ProcessCommandLineToFinal API exists and it's critical to the ability to correctly pre-process split ("|") command lines ahead of time to verify their correctness. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15007 6f19259b-4bc3-4df7-8a09-765794883524 commit 8dcd84b9d756172401d26ab2bad66316a7061b65 Author: Shumin Qiu Date: Thu Dec 19 02:03:42 2013 +0000 Converse the return value from 'int' to 'BOOLEAN' for function ‘ContainsSplit’ in Shell.c. Signed-off-by: Shumin Qiu Reviewed-by: Ni, Ruiyu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15006 6f19259b-4bc3-4df7-8a09-765794883524 commit 957914ee65e634eaa4743872ace6e9ac9ad446e4 Author: Laszlo Ersek Date: Wed Dec 18 19:57:57 2013 +0000 OvmfPkg: VirtioBlkInit(): log topology attributes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15005 6f19259b-4bc3-4df7-8a09-765794883524 commit 6476804e3cd2e1da23dee03024a21ab0e5c1f8ec Author: Laszlo Ersek Date: Wed Dec 18 19:57:46 2013 +0000 OvmfPkg: VirtioBlkInit(): expose virtio-blk topology in BlockIo UEFI spec virtio spec ======================================= ================================= LowestAlignedLba EFI_LBA (UINT64) alignment_offset u8 +-------------------------------------- +-------------------------------- | first LBA that is aligned to a | offset of first aligned | physical block boundary (SCSI | logical block | definition) LogicalBlocksPerPhysicalBlock UINT32 physical_block_exp u8 +-------------------------------------- +-------------------------------- | number of logical blocks per | # of logical blocks per | physical block [...] does not contain | physical block (log2) | an exponential value OptimalTransferLengthGranularity UINT32 opt_io_size le32 +-------------------------------------- +-------------------------------- | optimal transfer length granularity | optimal (suggested maximum) I/O | as a number of logical blocks [...] A | size in blocks | value of 0 means there is no reported | optimal transfer length granularity Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15004 6f19259b-4bc3-4df7-8a09-765794883524 commit 21479c3c80fa4742027537d91f57fbf469848208 Author: Laszlo Ersek Date: Wed Dec 18 19:57:36 2013 +0000 OvmfPkg/VirtioBlkDxe/VirtioBlk.c: rewrap overlong lines Lines should be no longer than 79 characters. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15003 6f19259b-4bc3-4df7-8a09-765794883524 commit 5cf69d48367ced77799af6554a00ad556f657a6c Author: Laszlo Ersek Date: Wed Dec 18 19:57:28 2013 +0000 OvmfPkg: IndustryStandard/VirtioBlk: introduce topology-related definitions Based on , which is the last text format revision. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15002 6f19259b-4bc3-4df7-8a09-765794883524 commit 1d17076b0084664a4ea3009117f767f35254f6be Author: Laszlo Ersek Date: Wed Dec 18 19:57:18 2013 +0000 OvmfPkg: IndustryStandard/VirtioBlk: add extra horizontal whitespace We're going to introduce a new macro and a new VIRTIO_BLK_CONFIG member that need realignment of existing definitions and comments. Separate out the whitespace changes in this patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15001 6f19259b-4bc3-4df7-8a09-765794883524 commit d4468cdf14e37bdbb35bff98c04e984d0622fcd1 Author: Ruiyu Ni Date: Wed Dec 18 05:51:22 2013 +0000 Rollback the change to EFI_BOOT_KEY_DATA structure since UEFI Spec adds the clarification that bitfields are ordered such that bit 0 is the least significant bit. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15000 6f19259b-4bc3-4df7-8a09-765794883524 commit 5fdd2a818bc34ac9316adcc26522ca06bcce700b Author: Eric Dong Date: Wed Dec 18 03:02:52 2013 +0000 Update code to avoid using potential NULL pointer. Signed-off-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14999 6f19259b-4bc3-4df7-8a09-765794883524 commit e7831c9070bc832f7ef8eee58c99a66653a17d56 Author: Jaben Carsey Date: Tue Dec 17 22:23:05 2013 +0000 ShellPkg: Add missing function header comments I found that some function headers had insufficient/incorrect information. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14998 6f19259b-4bc3-4df7-8a09-765794883524 commit c81863953f2aca16b2347e7e9977a06fcd1f13aa Author: Jaben Carsey Date: Tue Dec 17 21:40:41 2013 +0000 ShellPkg: Fix "for" command statement initialization. The shell was failing to correctly parse up to the space only for “run (1 3)” and also losing the space for “in ” a b” c” for loop initialization. This fixes for initialization to be correct. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14997 6f19259b-4bc3-4df7-8a09-765794883524 commit 06f1982a6498731d9ef96a16b3fcd5937f317bd8 Author: Laszlo Ersek Date: Tue Dec 17 18:17:55 2013 +0000 OvmfPkg: QemuFlashFvbServicesRuntimeDxe: fix out-of-LBA write access When QemuFlashWrite() is asked to write a range that includes the last byte of the LBA, then the byte that the function uses to switch the flash device back to read mode (ROMD mode in KVM speak) actually falls out of the LBA. Normally this doesn't cause visible problems. However, if the variable store and the firmware code are backed by separate flash devices, as implemented by [Qemu-devel] [PATCH v2] hw/i386/pc_sysfw: support two flash drives http://thread.gmane.org/gmane.comp.emulators.qemu/243678 plus [edk2] [edk2 PATCH] OvmfPkg: split the variable store to a separate file http://thread.gmane.org/gmane.comp.bios.tianocore.devel/5045/focus=5046 then the READ_ARRAY_CMD not only reaches a different LBA, it reaches a different qemu device. This results in a guest reboot soon after. Fix this by ensuring that we always stay within the LBA just written when issuing READ_ARRAY_CMD. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14996 6f19259b-4bc3-4df7-8a09-765794883524 commit 077c7aeec07361fc36f8090be46959adb7d38873 Author: Eric Dong Date: Tue Dec 17 08:33:06 2013 +0000 Update code to support guid op nest in the statement. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14995 6f19259b-4bc3-4df7-8a09-765794883524 commit c5fba0fea419f796c229f787a8717f9c15ad87c5 Author: Fu Siyuan Date: Tue Dec 17 07:46:11 2013 +0000 Fix a bug in TCP driver’s component name print function. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14994 6f19259b-4bc3-4df7-8a09-765794883524 commit 9b8e61be26dd303ffb88785bee63bdd1410b6234 Author: Liming Gao Date: Tue Dec 17 06:21:33 2013 +0000 Fix two issues in PeiCore. 1. HOB address is not 8 byte alignment. 2. FV with the max supported PEIM can't be dispatched. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14993 6f19259b-4bc3-4df7-8a09-765794883524 commit 98c4caa1e9504f87bda712f4df03c6817f869658 Author: Eric Dong Date: Tue Dec 17 05:00:17 2013 +0000 Get entire variable data for efi varstore at first time. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14992 6f19259b-4bc3-4df7-8a09-765794883524 commit 4636295f460da20b7c1e5db1283262167193bf77 Author: Ruiyu Ni Date: Tue Dec 17 05:00:10 2013 +0000 Add the missing assignment of EFI_DISK_IO2_TOKEN::Token in FlushDiskEx() implementation. Without the assignment, system may hang sometimes. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14991 6f19259b-4bc3-4df7-8a09-765794883524 commit c6cef635326906241a0856d833836f82959b11a5 Author: Shumin Qiu Date: Tue Dec 17 01:04:38 2013 +0000 Update code to ensure the pointer ‘CurrentName’ in function ‘PerformSingleMappingDisplay’ isn’t null before being processed. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14990 6f19259b-4bc3-4df7-8a09-765794883524 commit 6f05676ddd1d8bfade58d7530afa173e513c9a62 Author: Shumin Qiu Date: Mon Dec 16 01:53:11 2013 +0000 Add a new line to initialize the variable “PassThruProtocol” in ConsoleWrapers.c to ensure the initialization not to be a part of its declaration. Signed-off-by: Shumin Qiu Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14989 6f19259b-4bc3-4df7-8a09-765794883524 commit f67eb9d8ba27a9303a9081daa2db374a7b77fbf5 Author: Star Zeng Date: Mon Dec 16 01:34:01 2013 +0000 MdeModulePkg CapsuleRuntimeDxe: Get PcdMaxSizeNonPopulateCapsule and PcdMaxSizePopulateCapsule by PcdGet32 in EntryPoint. PcdMaxSizeNonPopulateCapsule and PcdMaxSizePopulateCapsule are declared to support Dynamic, but used by FixedPcdGet32 in CapsuleRuntimeDxe. QueryCapsuleCapabilities is a runtime interface and PCD protocol can’t be used in runtime environment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14988 6f19259b-4bc3-4df7-8a09-765794883524 commit 4374c2e535edad27d8c4c6516d2f1bb68403afca Author: Chris Ruffin Date: Sun Dec 15 20:47:39 2013 +0000 OvmfPkg/QemuVideoDxe: child handles should have open parent protocol BY_CHILD_CONTROLLER The QemuVideoDxe driver creates child controller handles, so it is acting as a hybrid bus driver. The child handles should open the parent's bus protocol BY_CHILD_CONTROLLER to properly maintain the protocol usage count. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14987 6f19259b-4bc3-4df7-8a09-765794883524 commit cc31ac1e40034b631793e068d49acdfccb56e46d Author: Jaben Carsey Date: Fri Dec 13 23:53:59 2013 +0000 ShellPkg: add error messages into function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14986 6f19259b-4bc3-4df7-8a09-765794883524 commit 5a5eb8069cc91e0334f3dfec17da672ac326fa55 Author: Jaben Carsey Date: Fri Dec 13 21:58:51 2013 +0000 ShellPkg: Refactor updating command line for help use Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14985 6f19259b-4bc3-4df7-8a09-765794883524 commit ceecdc62ab73e5b726630345865a512c780c134e Author: lpleahy leroy.p.leahy Date: Fri Dec 13 19:22:39 2013 +0000 Fix the non-blocking behavior for connect. The behavior was correct if the code polled the connect routine but was not correct when using select to complete the asynchronous request. This change fixes the select case by moving where some of the operations performed upon the connection completion. Signed-off-by: lpleahy leroy.p.leahy@intel.com Reviewed-by: Daniel Moura oxesoft@gmail.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14984 6f19259b-4bc3-4df7-8a09-765794883524 commit daf705847f33db1f7a17c1c5b2a01d8f8ccba0ac Author: Jaben Carsey Date: Fri Dec 13 18:45:43 2013 +0000 ShellPkg: Refactor change to current file system This moves the initialization for handling file system changes into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14983 6f19259b-4bc3-4df7-8a09-765794883524 commit 680db511530e8b4e12545cad97cd344aba930201 Author: Jaben Carsey Date: Fri Dec 13 18:18:27 2013 +0000 ShellPkg: Refactor Split/Pipe based command lines This moves the initialization for handling command lines with pipe ‘|’ into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14982 6f19259b-4bc3-4df7-8a09-765794883524 commit e94784c68de85297290b02153ac50c91cdf82b8c Author: Olivier Martin Date: Fri Dec 13 12:05:01 2013 +0000 ArmPlatformPkg/ArmFvpDxe: Added Virtio Block support Right now the ARM Platform driver does not do much, but I expect to move most platform specific code into platform specific driver in the future. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - ensure / document that the VIRTIO_BLK_DEVICE_PATH structure must be packed - fix whitespace damage in definition of "mVirtioBlockDevicePath" - the platform driver is added to all platform DSC and FDF files in the previous patch; this patch focuses on virtio only Change-Id: I3505bfc5b31085b8017bd9e6895a155bd7a2eee9 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14981 6f19259b-4bc3-4df7-8a09-765794883524 commit 1e69576f532762743096bddf562d3d57a65986e5 Author: Olivier Martin Date: Fri Dec 13 12:03:55 2013 +0000 ArmPlatformPkg/ArmVExpressPkg: Added the empty 'ArmFvpDxe' platform UEFI driver Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - For uniformity, add the empty driver to ArmVExpress-RTSM-AEMv8Ax4-foundation.* too in this patch, not just ArmVExpress-RTSM-AEMv8Ax4.*. V4 added the empty driver to ArmVExpress-RTSM-AEMv8Ax4-foundation.* not sooner than the next patch, fusing it with other (= virtio) functionality. Let's split these changes cleanly. Change-Id: I7d635011c8d3ac59097c728b7c7786d8677c80cb Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14980 6f19259b-4bc3-4df7-8a09-765794883524 commit a1ac5791fffcd461b9dac857aede74e429b8a7e8 Author: Jeff Fan Date: Fri Dec 13 06:15:50 2013 +0000 Check Context before use it. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14979 6f19259b-4bc3-4df7-8a09-765794883524 commit b7ae87510788ac12529858b4cdd509f90c6451b2 Author: Jeff Fan Date: Fri Dec 13 04:46:47 2013 +0000 Fix meta file issue. Signed-off-by: Jeff Fan Reviewed-by: Liming Gao Reviewed-by: Hesheng Chen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14978 6f19259b-4bc3-4df7-8a09-765794883524 commit f98f5ec304ec22d3bbc8bee2a78d22fea28e1321 Author: Laszlo Ersek Date: Fri Dec 13 03:22:33 2013 +0000 UefiCpuPkg: S3Resume2Pei: align return stacks explicitly S3RestoreConfig2() can optionally stack-switch to the SMM S3 Resume Entry Point and ask it to transfer to S3ResumeExecuteBootScript(). Similarly, S3ResumeExecuteBootScript() stack-switches explicitly to the boot script executor, and asks it to transfer to S3ResumeBootOs(). Currently the stack pointers specified for the SMM S3 Resume Entry Point and the boot script executor to use for returning are derived from addresses of the first local variables in S3RestoreConfig2() and S3ResumeExecuteBootScript(), respectively. Since (theoretically) the stack grows down as local variables are defined and functions are called, the idea is presumably to allow the respective callee to overwrite the caller's local variables. (The callees in question can never return normally, only by explicit stack switching.) Taking the address of "Status" is less portable than optimal however. Compilers are free to juggle local variables at build time as they please, including order and alignment on the stack. For example, when the code is built for 64-bit PEI with gcc-4.8.2, the address of "Status" trips up the alignment assertion in SwitchStack(). Let's align the address of "Status" down to CPU_STACK_ALIGNMENT explicitly. If a compiler ensures such alignment and places "Status" at the highest address automatically, then this change has no effect. Otherwise, we'll prepare ReturnStackPointer values that (a) are correctly aligned, (b) preserve the same amount or more (but never less) from the caller's local variables than before, which should be safe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14977 6f19259b-4bc3-4df7-8a09-765794883524 commit ddc0be58660a396471e1035e2d45d2b4a33ebd9f Author: Feng Tian Date: Fri Dec 13 01:43:27 2013 +0000 MdeModulePkg/XhciDxe: Fix ICC compiler build warning. Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14976 6f19259b-4bc3-4df7-8a09-765794883524 commit 6ba2921da3c0b7db303b6db44810158a1fefd737 Author: Jaben Carsey Date: Fri Dec 13 00:13:59 2013 +0000 ShellPkg: add API for determining operation type There are no callers for this new API yet. They will be added in the next commits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14975 6f19259b-4bc3-4df7-8a09-765794883524 commit 1ef61d039062f551d47ce009c4b5df9f5324f3ea Author: Jaben Carsey Date: Thu Dec 12 21:44:23 2013 +0000 ShellPkg: Refactor Variable replacement into separate function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14974 6f19259b-4bc3-4df7-8a09-765794883524 commit ca53c0af0037ad585f7455efc9ee1656bec8d176 Author: Jaben Carsey Date: Thu Dec 12 21:16:38 2013 +0000 ShellPkg: Refactor Alias replacement into separate function Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14973 6f19259b-4bc3-4df7-8a09-765794883524 commit ad2bc85412dcc566dae32cd4b18da356ace1ea3d Author: Jaben Carsey Date: Thu Dec 12 18:42:18 2013 +0000 ShellPkg: refactor out leading and trailing space trimming Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14972 6f19259b-4bc3-4df7-8a09-765794883524 commit 321a8d494f19277f764b4a9128b898d10b6db01a Author: Jaben Carsey Date: Thu Dec 12 17:55:37 2013 +0000 ShellPkg: typo in the last commit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14971 6f19259b-4bc3-4df7-8a09-765794883524 commit 71914406e894c462dc9255c7a18f9cbe3651b8f8 Author: Laszlo Ersek Date: Thu Dec 12 17:28:05 2013 +0000 OvmfPkg: Virtio drivers: fix incorrect casts in init functions The recent patch OvmfPkg: Make the VirtIo devices use the new VIRTIO_DEVICE_PROTOCOL was fixed up at commit time, in order to silence warnings issued by the Visual Studio compiler. Differences between the posted and committed patch: > diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > -index 17b9f71..96a0d9f 100644 > +index 17b9f71..f09b0d1 100644 > --- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > +++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c > @@ -23,7 +23,6 @@ > @@ -994,7 +998,7 @@ > + // step 4c -- Report GPFN (guest-physical frame number) of queue. > + // > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > + if (EFI_ERROR (Status)) { > + goto ReleaseQueue; > + } > @@ -1495,7 +1499,7 @@ > goto Exit; > } > diff --git a/OvmfPkg/VirtioNetDxe/SnpInitialize.c b/OvmfPkg/VirtioNetDxe/SnpInitialize.c > -index 6cee014..8dcf9da 100644 > +index 6cee014..4203fbd 100644 > --- a/OvmfPkg/VirtioNetDxe/SnpInitialize.c > +++ b/OvmfPkg/VirtioNetDxe/SnpInitialize.c > @@ -57,14 +57,15 @@ VirtioNetInitRing ( > @@ -1539,7 +1543,7 @@ > - Status = VIRTIO_CFG_WRITE (Dev, Generic.VhdrQueueAddress, > - (UINTN) Ring->Base >> EFI_PAGE_SHIFT); > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Ring->Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Ring->Base >> EFI_PAGE_SHIFT); > if (EFI_ERROR (Status)) { > - VirtioRingUninit (Ring); > + goto ReleaseQueue; > @@ -1721,7 +1725,7 @@ > Exit: > gBS->RestoreTPL (OldTpl); > diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > -index b836fb3..bcec676 100644 > +index b836fb3..2223c9c 100644 > --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c > @@ -38,7 +38,6 @@ > @@ -1908,7 +1912,7 @@ > + // step 4c -- Report GPFN (guest-physical frame number) of queue. > + // > + Status = Dev->VirtIo->SetQueueAddress (Dev->VirtIo, > -+ (UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > ++ (UINT32)(UINTN) Dev->Ring.Base >> EFI_PAGE_SHIFT); > if (EFI_ERROR (Status)) { > goto ReleaseQueue; > } These casts are incorrect -- they throw away address bits >=32 before shifting, which can break the drivers in guests with more than 4GB RAM. The bug is clearly an artifact of the edk2 coding style, which requires cast expressions to be written as (type) expression rather than the usual (type)expression The latter correctly reflects that casts have one of the strongest bindings in C. The former actively obscures that fact. Cf. (type) expr1 >> expr2 vs. (type)expr1 >> expr2 Make sure we shift before we truncate. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14970 6f19259b-4bc3-4df7-8a09-765794883524 commit 518c8cdc5c52e8d356075f28354b18a6e5830ca6 Author: Jaben Carsey Date: Thu Dec 12 17:27:27 2013 +0000 ShellPkg: Refactor out the searching for pipe characters Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14969 6f19259b-4bc3-4df7-8a09-765794883524 commit ece77e4047c36ddd177949e81d548bda244ea8a7 Author: Olivier Martin Date: Wed Dec 11 16:58:39 2013 +0000 OvmfPkg/Virtio: Removed VirtioReadDevice() / VirtIoWriteDevice() functions These functions did not provide much more than the new protocol functions VIRTIO_DEVICE_PROTOCOL.ReadDevice() / VIRTIO_DEVICE_PROTOCOL.WriteDevice(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jordan Justen Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14968 6f19259b-4bc3-4df7-8a09-765794883524 commit 64106abf4b702f1fb583740ecaa0885a31b18b0e Author: Olivier Martin Date: Wed Dec 11 16:58:30 2013 +0000 OvmfPkg/Virtio.h: Removed definition of VIRTIO_HDR This definition is specific to VirtIo over PCI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jordan Justen Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14967 6f19259b-4bc3-4df7-8a09-765794883524 commit 56f65ed838e8d73e91d54a8ed984d777c936843c Author: Olivier Martin Date: Wed Dec 11 16:58:22 2013 +0000 OvmfPkg: Make the VirtIo devices use the new VIRTIO_DEVICE_PROTOCOL This change replaces the accesses to the PCI bus from the Block, Scsi and Net drivers by the use of the new VIRTIO_DEVICE_PROTOCOL protocol that abstracts the transport layer. It means these drivers can be used on PCI and MMIO transport layer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - VirtioFlush(): update comment block in VirtioLib.[hc]; error code is propagated from VirtIo->SetQueueNotify(). - VirtioBlkInit(): jump to Failed label if SetPageSize() fails - VirtioBlkInit(): fixup comment, and add error handling, near SetQueueNum() call - VirtioBlkDriverBindingStart(): remove redundant (always false) check for a subsystem device ID different from VIRTIO_SUBSYSTEM_BLOCK_DEVICE; VirtioBlkDriverBindingSupported() handles it already - VirtioNetGetFeatures(): update stale comment block - VirtioNetGetFeatures(): retrieve MAC address byte for byte (open-coded loop) - VirtioNetDriverBindingStart(): remove redundant (always false) check for a subsystem device ID different from VIRTIO_SUBSYSTEM_NETWORK_CARD; VirtioNetDriverBindingSupported() handles it already - VirtioNetInitRing(): call SetQueueNum() and SetQueueAlign() for proper MMIO operation - VirtioNetInitialize(): fix destination error label for when SetPageSize() fails - VirtioScsi.c: fix comment block of VIRTIO_CFG_WRITE()/VIRTIO_CFG_READ() - VirtioScsiInit(): fix destination error label for when SetPageSize() fails - VirtioScsiInit(): call SetQueueNum() and SetQueueAlign() for proper MMIO operation Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14966 6f19259b-4bc3-4df7-8a09-765794883524 commit 6fb4e772a0ad14399532201d1b9ecb811c9c7262 Author: Olivier Martin Date: Wed Dec 11 16:57:59 2013 +0000 OvmfPkg/VirtioMmioDeviceLib: Implement VIRTIO_DEVICE_PROTOCOL for VirtIo Devices over MMIO Why is the virtio-mmio implementation of the protocol a library, instead of a driver binary? The UEFI driver model would encourage to create a virtio-mmio driver instead of a library. But the reasons why I created a library are: - A virtio-mmio driver would imply an additional protocol that would probably have a single attribute field: typedef struct { PHYSICAL_ADDRESS BaseAddress; } VIRTIO_MMIO_DEVICE_PROTOCOL; - There is no (easy) way to scan the available VirtIo devices on a platform. So, the UEFI firmware for this platform would need a driver to produce instances for every virtio devices it wants to expose in UEFI. A single call to a helper library (ie: VirtioMmioDeviceLib) make the porting easier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - typo fix in VirtioMmioInstallDevice() comment block - plug MmioDevice leak in VirtioMmioUninstallDevice() - return EFI_INVALID_PARAMETER in VirtioMmioGetQueueAddress() if QueueAddress is NULL - VirtioMmioSetQueueSize(): fix return value (it's a status code) - VirtioMmioSetPageSize(): check against EFI_PAGE_SIZE with "if" plus EFI_UNSUPPORTED, rather than ASSERT() - VirtioMmioDeviceWrite(), VirtioMmioDeviceRead(): remove redundant (FieldSize > 8) checks - VirtioMmioDeviceLib.inf: drop UefiDriverEntryPoint library dependency Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14965 6f19259b-4bc3-4df7-8a09-765794883524 commit 3bb56c062e9a57c575f2375a7078ac37e9a86dd5 Author: Olivier Martin Date: Wed Dec 11 16:57:49 2013 +0000 OvmfPkg/VirtioPciDeviceDxe: Implement VIRTIO_DEVICE_PROTOCOL for VirtIo Devices over PCI This change implements the VIRTIO_DEVICE_PROTOCOL for the PCI transport layer. The VirtIo device drivers will interact with the PCI-based VirtIo devices through this protocol implementation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - updated comment block on VirtioPciDeviceRead() - return EFI_UNSUPPORTED instead of failed ASSERT() in VirtioPciSetPageSize() - VirtioPciIoRead(): restore the original requirement that FieldSize equal BufferSize exactly (not only divide it). The looping added in v4 did not match the comment block, and the only place that used it in v4 (ie. VirtioNetGetFeatures()) needs an open-coded loop anyway (will be done in a later part of v5). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14964 6f19259b-4bc3-4df7-8a09-765794883524 commit fc4d1ce57406871ae699b745d4e96c8241c6949b Author: Olivier Martin Date: Wed Dec 11 16:57:40 2013 +0000 OvmfPkg/VirtioDevice.h: Introduced VIRTIO_DEVICE_PROTOCOL protocol This protocol introduces an abstraction to access the VirtIo Configuration and Device spaces. The registers in these spaces are located at a different offset and have a different width whether the transport layer is either PCI or MMIO. This protocol would also allow to support VirtIo PCI devices with MSI-X capability in a transparent way (Device space is at a different offset when a PCIe device has MSI-X capability). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin v5: - add disclaimer (two instances) about the protocol being work in progress Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14963 6f19259b-4bc3-4df7-8a09-765794883524 commit ad793176debf98a4da016e4b32840d0e30f718aa Author: Elvin Li Date: Wed Dec 11 08:53:19 2013 +0000 Add additional check mRuntimeSmbiosEntryPoint == NULL to avoid K9 error. Signed-off-by: Elvin Li Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14962 6f19259b-4bc3-4df7-8a09-765794883524 commit 4db0b65c06430382d9328012f9538065c5aa78b5 Author: Liming Gao Date: Wed Dec 11 08:22:43 2013 +0000 Correct INF file to make module pass ICC compiler. Signed-off-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14961 6f19259b-4bc3-4df7-8a09-765794883524 commit 7476ad722c4212f66a06ca0aabfabce27b82eae1 Author: Daryl McDaniel Date: Tue Dec 10 22:16:57 2013 +0000 StdLib: Update Copyright Notices. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Matthew Stanbro git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14960 6f19259b-4bc3-4df7-8a09-765794883524 commit 6d16cca5766396f048432bea57a0ad03a3c3d49d Author: Daryl McDaniel Date: Tue Dec 10 21:42:59 2013 +0000 StdLib: Remove an unnecessary dependency from LibWchar. LibWchar is now a standalone library which can be used independent of the rest of StdLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Matthew Stanbro git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14959 6f19259b-4bc3-4df7-8a09-765794883524 commit 19a4497259a24d0b9838c7e79c9ec4f5baf9828e Author: Jaben Carsey Date: Tue Dec 10 18:41:35 2013 +0000 ShellPkg: Refactor Pipe handling This moves some logic for handling command lines with pipe ‘|’ into a separate function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14958 6f19259b-4bc3-4df7-8a09-765794883524 commit b2ce4a396135c666e613d3608f342c217c62750e Author: Olivier Martin Date: Tue Dec 10 16:39:54 2013 +0000 ARM Packages: Removed 'inline' keyword 'inline' keyword is not supported by the C89 (version used by EDK2). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14957 6f19259b-4bc3-4df7-8a09-765794883524 commit 62436c2162f2201eb105169b414719705adb7e3e Author: Olivier Martin Date: Tue Dec 10 16:39:04 2013 +0000 ArmPkg/AArch64Mmu.h: Fix 'Shift is >= width of type' Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14956 6f19259b-4bc3-4df7-8a09-765794883524 commit 377a32dbed62b66f6d45589d3cae7a8253691422 Author: Olivier Martin Date: Tue Dec 10 16:38:17 2013 +0000 ArmPkg/ArmDisassemblerLib: Fixed logical/bitwise operator confusion Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14955 6f19259b-4bc3-4df7-8a09-765794883524 commit 77d7af47585336f7afff00e0415156e96c22253b Author: Olivier Martin Date: Tue Dec 10 16:37:10 2013 +0000 ArmPkg/ArmMpCoreInfo.h: Fixed macro definition Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14954 6f19259b-4bc3-4df7-8a09-765794883524 commit 0e0fb74a067a1be9d3395a1f37f8645cc0a885d5 Author: Fu Siyuan Date: Tue Dec 10 09:14:39 2013 +0000 1. Add ISCSI iBFT CHAP types to IScsiBootFirmwareTable.h. 2. Fix ISCSI iBFT's CHAP type mismatch bug caused by 14918. Signed-off-by: Fu Siyuan Reviewed-by: Liming Gao Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14953 6f19259b-4bc3-4df7-8a09-765794883524 commit 62eeb52af7efe656f518baf59555e29c15bfa3be Author: Elvin Li Date: Tue Dec 10 01:42:56 2013 +0000 Per PI 1.3 spec, when Reserved bit set in the SlaveAddress parameter, EFI_NOT_FOUND should be returned in EFI_I2C_HOST_PROTOCOL.QueueRequest(). Signed-off-by: Elvin Li Reviewed-by: Leahy Leroy P Reviewed-by: Lin Jie git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14952 6f19259b-4bc3-4df7-8a09-765794883524 commit 3520e03f3dbfeeda7140933129027589e893413e Author: Jaben Carsey Date: Mon Dec 9 23:00:21 2013 +0000 ShellPkg: Remove invalid ASSERT There was an assumption that this API would never fail. That is not true and the return value is checked just a few lines later. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14951 6f19259b-4bc3-4df7-8a09-765794883524 commit 194ae48daebe53555cdfbaa75235fbf9e830b79d Author: Jaben Carsey Date: Mon Dec 9 22:55:13 2013 +0000 ShellPkg: Add support for CTRL-C within shell user prompting This allows for the user to get out of answering a question with CTRL-C Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14950 6f19259b-4bc3-4df7-8a09-765794883524 commit 0f83ac340fef4972b1542d29613a90230695749b Author: Eric Dong Date: Mon Dec 9 03:22:36 2013 +0000 Refine code to fix potential code bug. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14949 6f19259b-4bc3-4df7-8a09-765794883524 commit 05de47ef04864cd9d55228b2065d7397387e54ac Author: Eric Dong Date: Mon Dec 9 03:21:29 2013 +0000 Refine code to fix potential code bug. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14948 6f19259b-4bc3-4df7-8a09-765794883524 commit 42f75495f3a89f30747406f7bf8fec9919da7b28 Author: Shumin Qiu Date: Mon Dec 9 02:24:39 2013 +0000 Follow Shell specification to make sure the “command.man” file is always used no matter “command.efi -?” or “command -?” is typed. Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14947 6f19259b-4bc3-4df7-8a09-765794883524 Revision graph left in /home/xc_osstest/results/bisect.ovmf.build-i386.xen-build.{dot,ps,png,html}. ---------------------------------------- 34048: tolerable ALL FAIL flight 34048 ovmf real-bisect [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/34048/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: build-i386 5 xen-build fail baseline untested jobs: build-i386 fail ------------------------------------------------------------ sg-report-flight on osstest.cam.xci-test.com logs: /home/xc_osstest/logs images: /home/xc_osstest/images Logs, config files, etc. are available at http://www.chiark.greenend.org.uk/~xensrcts/logs Test harness code can be found at http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary