]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
9 years agoBaseTools: Fix clang C++ build error
Anderw Fish [Thu, 28 Aug 2014 05:04:57 +0000 (05:04 +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 <afish@apple.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15932 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago[BaseTools] clang warns that since BaseAddress is unsigned it can never be < 0.
Anderw Fish [Thu, 28 Aug 2014 05:02:35 +0000 (05:02 +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 <afish@apple.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15931 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools: add support Xcode 5 in the EmulatorPkg
Andrew Fish [Thu, 28 Aug 2014 04:57:12 +0000 (04:57 +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 <afish@apple.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15930 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg:Unix: Add support for X11 on Mac OS X via XQuartz
Anderw Fish [Thu, 28 Aug 2014 03:38:21 +0000 (03:38 +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 <afish@apple.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15929 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFrameworkPkg: INF/DEC file updates to EDK II packages
Gao, Liming [Thu, 28 Aug 2014 03:21:49 +0000 (03:21 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15928 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFrameworkPkg: INF/DEC file updates to EDK II packages
Gao, Liming [Thu, 28 Aug 2014 03:21:06 +0000 (03:21 +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.<TokenSpaceGuid>] validation error messages.

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

9 years agoIntelFrameworkPkg: INF/DEC file updates to EDK II packages
Gao, Liming [Thu, 28 Aug 2014 03:20:46 +0000 (03:20 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15926 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFrameworkPkg: INF/DEC file updates to EDK II packages
Gao, Liming [Thu, 28 Aug 2014 03:19:58 +0000 (03:19 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15925 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdated GenBootSector, GenCrc32 and GenPage to remove duplicate “Build” word in the...
lhauch [Wed, 27 Aug 2014 16:14:42 +0000 (16:14 +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 <larry.hauch@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15924 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/TimerDxe: Fixed real time period
Olivier Martin [Wed, 27 Aug 2014 10:13:36 +0000 (10:13 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15923 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/TimerDxe: Fixed the reloading of the period
Olivier Martin [Wed, 27 Aug 2014 10:12:55 +0000 (10:12 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15922 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/TimerDxe: Changed calculation to allow 1KHz granularity frequency
Olivier Martin [Wed, 27 Aug 2014 10:12:00 +0000 (10:12 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15921 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: INF/DEC file updates to EDK II packages
Gao, Liming [Wed, 27 Aug 2014 09:39:59 +0000 (09:39 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15920 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: INF/DEC file updates to EDK II packages
Gao, Liming [Wed, 27 Aug 2014 09:39:04 +0000 (09:39 +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.<TokenSpaceGuid>] validation error messages.

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

9 years agoMdePkg: INF/DEC file updates to EDK II packages
Gao, Liming [Wed, 27 Aug 2014 09:37:07 +0000 (09:37 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15918 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: INF/DEC file updates to EDK II packages
Gao, Liming [Wed, 27 Aug 2014 09:33:09 +0000 (09:33 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15917 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg DxeCore: Don't cache memory mapped IO FV.
Star Zeng [Wed, 27 Aug 2014 08:31:44 +0000 (08:31 +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 <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15916 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/UsbBusDxe: Fix a bug about the alternate setting number which should...
Feng Tian [Wed, 27 Aug 2014 04:08:06 +0000 (04:08 +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 <feng.tian@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15915 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine the fix for the bug that cause assert when do the reconnect in the callback...
Eric Dong [Wed, 27 Aug 2014 03:29:01 +0000 (03:29 +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 <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15914 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCryptoPkg: Add support of AARCH64 architecture
Ronald Cron [Tue, 26 Aug 2014 15:06:45 +0000 (15:06 +0000)]
CryptoPkg: Add support of AARCH64 architecture

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Long, Qin <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15913 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCryptoPkg: Add support to build with ARM GCC
Ronald Cron [Tue, 26 Aug 2014 15:05:58 +0000 (15:05 +0000)]
CryptoPkg: Add support to build with ARM GCC

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Long, Qin <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15912 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCryptoPkg: Update to build with RVCT
Ronald Cron [Tue, 26 Aug 2014 15:05:22 +0000 (15:05 +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 <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Long, Qin <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15911 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAcpiS3Save could try to check PcdIdentifyMappingPageTablePtr is NULL, if it is not...
Elvin Li [Tue, 26 Aug 2014 12:28:15 +0000 (12:28 +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 <elvin.li@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15910 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. CapsuleLongModeBuffer variable should not have EFI_VARIABLE_RUNTIME_ACCESS attribute.
Elvin Li [Tue, 26 Aug 2014 12:26:32 +0000 (12:26 +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 <elvin.li@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15909 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmbeddedPkg/FdtLib: Added support to load FDT from Firmware Volume
Olivier Martin [Tue, 26 Aug 2014 10:21:48 +0000 (10:21 +0000)]
EmbeddedPkg/FdtLib: Added support to load FDT from Firmware Volume

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

9 years agoArmPlatformPkg/NorFlashDxe: Clean the driver
Olivier Martin [Tue, 26 Aug 2014 10:20:47 +0000 (10:20 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15907 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg: Provide mechanism to get BootMonFS file information (cont.)
Harry Liebel [Tue, 26 Aug 2014 10:19:52 +0000 (10:19 +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 <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15906 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmbeddedPkg/FdtLib: Added support to load Fdt from Semihosting
Olivier Martin [Tue, 26 Aug 2014 10:18:28 +0000 (10:18 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15905 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Fix compiler warning
Harry Liebel [Tue, 26 Aug 2014 10:17:05 +0000 (10:17 +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 <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15904 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmArchTimerLib: Remove non required [depex] and IoLib
Olivier Martin [Tue, 26 Aug 2014 10:16:16 +0000 (10:16 +0000)]
ArmPkg/ArmArchTimerLib: Remove non required [depex] and IoLib

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

9 years agoArmPlatformPkg/BootMonFs: Provide mechanism to get BootMonFS file information
Harry Liebel [Tue, 26 Aug 2014 10:15:21 +0000 (10:15 +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 <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15902 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoARM Packages: Replace tabs by spaces for indentation
Ronald Cron [Tue, 26 Aug 2014 10:14:17 +0000 (10:14 +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 <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15901 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Fixed condition on LOAD_OPTION_CATEGORY_BOOT
Olivier Martin [Tue, 26 Aug 2014 10:12:06 +0000 (10:12 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15900 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoClean up the framework style code.
Eric Dong [Tue, 26 Aug 2014 07:46:38 +0000 (07:46 +0000)]
Clean up the framework style code.

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

9 years agoThe original code does not initialize the global width constants before creating...
Samer El-Haj-Mahmoud elhaj [Tue, 26 Aug 2014 07:16:29 +0000 (07:16 +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 <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15898 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to:
Hess Chen [Tue, 26 Aug 2014 07:14:38 +0000 (07:14 +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 <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15897 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to:
Hess Chen [Tue, 26 Aug 2014 05:58:02 +0000 (05:58 +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 <hesheng.chen@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15896 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd PCI PMC and PMCSR register definitions from PCI Power Management Interface Specif...
Samer El-Haj-Mahmoud elhaj [Tue, 26 Aug 2014 05:30:49 +0000 (05:30 +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 <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15895 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate EFI_DRIVER_HEALTH_HII_MESSAGE definition from UEFI 2.4 specification to replac...
Samer El-Haj-Mahmoud elhaj [Tue, 26 Aug 2014 05:02:58 +0000 (05:02 +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 <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15894 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to correct the external PCD database generation rule to support...
Feng, Bob C [Tue, 26 Aug 2014 02:52:24 +0000 (02:52 +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 <bob.c.feng@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15893 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEDK II Contributions.txt: Note acceptable contribution licenses
Jordan Justen [Mon, 25 Aug 2014 23:10:18 +0000 (23:10 +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 <jordan.l.justen@intel.com>
Reviewed-by: Mark Doran <mark.doran@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15892 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAppPkg/Applications/Sockets/TftpServer: Make the include file names match the case...
Daryl McDaniel [Mon, 25 Aug 2014 20:47:20 +0000 (20:47 +0000)]
AppPkg/Applications/Sockets/TftpServer: Make the include file names match the case of the files in the file system.

Change “#include <sys/Stat.h>” to “#include <sys/stat.h>”.

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

9 years agoBootSectImage.exe, EfiLdrImage.exe and Split.exe tools have incorrect output from...
lhauch [Mon, 25 Aug 2014 20:06:55 +0000 (20:06 +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 <larry.hauch@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15890 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Replace non-ASCII character in Pci.c to fix GCC build error
Qiu Shumin [Mon, 25 Aug 2014 17:56:27 +0000 (17:56 +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 <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
Tested-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15889 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAppend the terminating null character at the end of the string to avoid buffer overflow.
Qiu Shumin [Mon, 25 Aug 2014 08:04:52 +0000 (08:04 +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 <shumin.qiu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15888 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix nmake cleanall bugs.
Yingke Liu [Mon, 25 Aug 2014 05:00:34 +0000 (05:00 +0000)]
Fix nmake cleanall bugs.

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

9 years agoThis patch is going to:
Hess Chen [Mon, 25 Aug 2014 01:16:34 +0000 (01:16 +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 <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15886 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Update 'pci' command for updated class codes
Jaben Carsey [Fri, 22 Aug 2014 17:02:11 +0000 (17:02 +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 <jaben.carsey@intel.com>
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15885 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fixes and updates for the 'devices' command
Chris Phillips [Fri, 22 Aug 2014 17:00:49 +0000 (17:00 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15884 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdated version, missed the last two commits and to add the SVN Revision property...
lhauch [Fri, 22 Aug 2014 16:08:47 +0000 (16:08 +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 <larry.hauch@intel.com>
Reviewed-by:

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

9 years agoShellPkg: Refactor string manipulation
Jaben Carsey [Fri, 22 Aug 2014 16:06:55 +0000 (16:06 +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 <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15882 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFixed the PATH again.
lhauch [Fri, 22 Aug 2014 15:56:54 +0000 (15:56 +0000)]
Fixed the PATH again.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lhauch <larry.hauch@intel.com>
Reviewed-by:

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

9 years agoUpdated to check for NASM_PREFIXE system environment variable, also to fix an issue...
lhauch [Fri, 22 Aug 2014 15:47:45 +0000 (15:47 +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 <larry.hauch@intel.com>
Reviewed-by:

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

9 years agoUpdate TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMax...
Dong, Guo [Fri, 22 Aug 2014 05:05:22 +0000 (05:05 +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 <guo.dong@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15879 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOnly reserve the aligned memory instead of reserving the unaligned memory in PeiMemor...
Gao, Liming [Fri, 22 Aug 2014 02:34:20 +0000 (02:34 +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 <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15878 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFspPkg BaseCacheLib: State CacheAsRamLib in its inf, because it consumes Disable...
Star Zeng [Fri, 22 Aug 2014 01:23:28 +0000 (01:23 +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 <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15877 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoDo not access transfer ring when endpoint is isochronous type and control type. And...
Elvin Li [Fri, 22 Aug 2014 01:13:48 +0000 (01:13 +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 <elvin.li@intel.com>
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15876 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: leave quotes around params
Jaben Carsey [Thu, 21 Aug 2014 22:13:08 +0000 (22:13 +0000)]
ShellPkg: leave quotes around params

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

9 years agoStdLib/LibC/gdtoa: Initialize variables before use, update the Kmax definition.
Daryl McDaniel [Thu, 21 Aug 2014 20:58:05 +0000 (20:58 +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 <daryl.mcdaniel@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Jaben carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15874 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fixes and updates for the 'parse' command
Chris Phillips [Thu, 21 Aug 2014 20:28:32 +0000 (20:28 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15873 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fixes and updates for the 'memmap' command
Chris Phillips [Thu, 21 Aug 2014 20:26:32 +0000 (20:26 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15872 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Add support for UEFI Shell 2.1 spec command line comments
Chris Phillips [Thu, 21 Aug 2014 20:18:47 +0000 (20:18 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15871 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fixes and updates for the 'drivers' command
Chris Phillips [Thu, 21 Aug 2014 20:16:32 +0000 (20:16 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15870 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fix 'ls -sfo' and 'map -sfo' output format to match UEFI Shell 2.1 spec
Chris Phillips [Thu, 21 Aug 2014 19:59:49 +0000 (19:59 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15869 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSetting the svn property, svn:executable on the new scripts.
lhauch [Thu, 21 Aug 2014 17:20:55 +0000 (17:20 +0000)]
Setting the svn property, svn:executable on the new scripts.

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

9 years agoAdding files for proposed replacement for edksetup.bat.
lhauch [Thu, 21 Aug 2014 16:41:41 +0000 (16:41 +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 <larry.hauch@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15867 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: Introduced BaseStackCheckLib (cont.)
Andrew Fish [Thu, 21 Aug 2014 09:23:58 +0000 (09:23 +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 <afish@apple.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15866 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to:
Hess Chen [Thu, 21 Aug 2014 07:51:21 +0000 (07:51 +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 <hesheng.chen@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15865 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAutoGen.c can only be generated if the module has intermediate object files generated...
Yingke Liu [Thu, 21 Aug 2014 07:12:33 +0000 (07:12 +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 <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15864 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAllocate exact memory size for string buffer to avoid buffer overflow.
Qiu Shumin [Thu, 21 Aug 2014 05:35:25 +0000 (05:35 +0000)]
Allocate exact memory size for string buffer to avoid buffer overflow.

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

9 years agoAppend the terminating null character at the end of the string to avoid buffer overflow.
Qiu Shumin [Thu, 21 Aug 2014 05:26:25 +0000 (05:26 +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 <shumin.qiu@intel.com>
Reviewed-by: Tian Feng <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15862 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCheck in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools...
Ruiyu Ni [Thu, 21 Aug 2014 03:45:30 +0000 (03:45 +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 <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15861 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. AutoGen.c should be generated if it is not empty even if there are no C source...
Yingke Liu [Thu, 21 Aug 2014 01:39:18 +0000 (01:39 +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 <yingke.d.liu@intel.com>
Reviewed-by: Chen, Hesheng <hesheng.chen@intel.com>
Reviewed-by: Feng, Bob C <bob.c.feng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15860 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf.
Olivier Martin [Wed, 20 Aug 2014 23:20:54 +0000 (23:20 +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 <Olivier.Martin@arm.com>
Reviewed-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Includes some cosmetic changes to enhance readability.

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

9 years agoStdLib/LibC: Fix ARM symbol problems
Harry Liebel [Wed, 20 Aug 2014 21:55:45 +0000 (21:55 +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 <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15858 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAppPkg: Enable ARM and AArch64 support
Harry Liebel [Wed, 20 Aug 2014 21:51:49 +0000 (21:51 +0000)]
AppPkg: Enable ARM and AArch64 support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15857 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf.
Olivier Martin [Wed, 20 Aug 2014 21:11:26 +0000 (21:11 +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 <Olivier.Martin@arm.com>
Reviewed-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
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 <daryl.mcdaniel@intel.com>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15856 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib: Add a runtime helper function for VC++ 64-bit right shift on Ia32 target...
Daryl McDaniel [Wed, 20 Aug 2014 20:38:43 +0000 (20:38 +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 <daryl.mcdaniel@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15855 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools: Added support for GCC stack protector for ARM architecture
Olivier Martin [Wed, 20 Aug 2014 18:02:38 +0000 (18:02 +0000)]
BaseTools: Added support for GCC stack protector for ARM architecture

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

9 years agoARM Packages: Added support for GCC stack protector
Olivier Martin olivier.martin [Wed, 20 Aug 2014 18:01:50 +0000 (18:01 +0000)]
ARM Packages: Added support for GCC stack protector

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

9 years agoMdePkg: Introduced BaseStackCheckLib (cont.)
Andrew Fish [Wed, 20 Aug 2014 18:00:38 +0000 (18:00 +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 <afish@apple.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15852 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: Introduced BaseStackCheckLib
Andrew Fish [Wed, 20 Aug 2014 17:58:46 +0000 (17:58 +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 <afish@apple.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15851 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmLib/ArmV7: Fixed ArmIsMpCore()
Olivier Martin [Wed, 20 Aug 2014 17:57:34 +0000 (17:57 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15850 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoARM Packages: Removed malicious trailing spaces
Olivier Martin [Wed, 20 Aug 2014 11:38:45 +0000 (11:38 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15849 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate TcgPei and TrEEPei driver to make gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMax...
Dong, Guo [Wed, 20 Aug 2014 09:37:26 +0000 (09:37 +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 <guo.dong@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15848 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to:
Hess Chen [Wed, 20 Aug 2014 07:41:38 +0000 (07:41 +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 <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15847 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg PeiCore: Add NULL pointer check.
Star Zeng [Wed, 20 Aug 2014 07:05:55 +0000 (07:05 +0000)]
MdeModulePkg PeiCore: Add NULL pointer check.

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

9 years agoIntelFrameworkModulePkg/SourceLevelDebugPkg: Fix the typo about word “hanlde”
Eric Dong [Wed, 20 Aug 2014 04:31:22 +0000 (04:31 +0000)]
IntelFrameworkModulePkg/SourceLevelDebugPkg: Fix the typo about word “hanlde”

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

9 years agoFix an issue of building BaseTools from sources using VS2013.
Yingke Liu [Wed, 20 Aug 2014 02:26:07 +0000 (02:26 +0000)]
Fix an issue of building BaseTools from sources using VS2013.

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

9 years agoMdePkg: BaseOrderedCollectionRedBlackTreeLib: improve coding style
Eric Dong [Wed, 20 Aug 2014 02:06:12 +0000 (02:06 +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 <eric.dong@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15843 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fix typo in 'uni' files.
Qiu Shumin [Wed, 20 Aug 2014 01:20:53 +0000 (01:20 +0000)]
ShellPkg: Fix typo in 'uni' files.

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

9 years agoShellPkg: Move mHandleParsingHiiHandle init out of the constructor
Chris Phillips [Tue, 19 Aug 2014 23:15:22 +0000 (23:15 +0000)]
ShellPkg: Move mHandleParsingHiiHandle init out of the constructor

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

9 years agoShellPkg: Fixes for timezone handling and 'date -sfo'
Chris Phillips [Tue, 19 Aug 2014 23:05:44 +0000 (23:05 +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 <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15840 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Refactor string manipulation in UefiShellLib command
Jaben Carsey [Tue, 19 Aug 2014 21:00:34 +0000 (21:00 +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 <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15839 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Check while string up to space, not the character
Jaben Carsey [Tue, 19 Aug 2014 20:58:03 +0000 (20:58 +0000)]
ShellPkg: Check while string up to space, not the character

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

9 years agoArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes
Olivier Martin [Tue, 19 Aug 2014 13:36:36 +0000 (13:36 +0000)]
ArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes

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

9 years agoArmPlatformPkg/Scripts: Update the profiling script to work on AArch64 with the lates...
Olivier Martin [Tue, 19 Aug 2014 13:36:00 +0000 (13:36 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15836 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/BdsLib: Prevent a hang in BdsConnectDevicePath() when a sub-device path is...
Olivier Martin [Tue, 19 Aug 2014 13:35:14 +0000 (13:35 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15835 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Fixed typo issue
Olivier Martin [Tue, 19 Aug 2014 13:34:12 +0000 (13:34 +0000)]
ArmPlatformPkg/Bds: Fixed typo issue

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

9 years agoARM Packages: Removed trailing spaces
Ronald Cron [Tue, 19 Aug 2014 13:29:52 +0000 (13:29 +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 <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524