]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
9 years agoArmPkg,ArmPlatformPkg: Allow dynamic PCDs for memory base and size
Ard Biesheuvel [Tue, 9 Sep 2014 16:11:30 +0000 (16:11 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16079 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: Move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib
Ard Biesheuvel [Tue, 9 Sep 2014 16:10:18 +0000 (16:10 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16078 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/TimerDxe: Register the virt and hyp timer interrupts at init time.
Ard Biesheuvel [Tue, 9 Sep 2014 16:08:42 +0000 (16:08 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16077 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: add ArmGenericTimerCounterLib implementation using virtual timer
Ard Biesheuvel [Tue, 9 Sep 2014 16:07:43 +0000 (16:07 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16076 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: add ArmGenericTimerCounterLib implementation using physical timer
Ard Biesheuvel [Tue, 9 Sep 2014 16:06:10 +0000 (16:06 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16075 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: add ArmGenericTimerCounterLib interface
Ard Biesheuvel [Tue, 9 Sep 2014 16:04:39 +0000 (16:04 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16074 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: Renamed ArmArchTimerLib.h to ArmArchTimer.h
Ard Biesheuvel [Tue, 9 Sep 2014 16:03:21 +0000 (16:03 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16073 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: allow dynamic GIC base addresses
Ard Biesheuvel [Tue, 9 Sep 2014 16:00:47 +0000 (16:00 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16072 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: allow dynamically discovered timer interrupts
Ard Biesheuvel [Tue, 9 Sep 2014 15:59:38 +0000 (15:59 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16071 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Fix delete boot option
Harry Liebel [Tue, 9 Sep 2014 15:58:33 +0000 (15:58 +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 <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@16070 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmDisassemblerLib: ARMThumb and AArch64 fixes
Harry Liebel [Tue, 9 Sep 2014 15:57:18 +0000 (15:57 +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 <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@16069 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUefiCpuPkg: CpuExceptionHandlerLib: Make self modifying code work with Xcode
Anderw Fish [Tue, 9 Sep 2014 06:50:51 +0000 (06:50 +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 <afish@apple.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16068 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSourceLevelDebugPkg: DebugAgentLib: Fix clang/Xcode 5 compile/link errors
Anderw Fish [Tue, 9 Sep 2014 06:27:45 +0000 (06:27 +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 <afish@apple.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16067 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: AcpiTimerLib: Access power mgmt regs based on host bridge type
Gabriel Somlo [Tue, 9 Sep 2014 03:18:30 +0000 (03:18 +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 <somlo@cmu.edu>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16066 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg: Fix XCODE Link Issue in DxeCore
Gao, Liming [Tue, 9 Sep 2014 02:35:41 +0000 (02:35 +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 <liming.gao@intel.com>
Reviewed-by: Andrew Fish <afish@apple.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Replace assignment statement with 'StrnCpy' to append terminal NULL charact...
Qiu Shumin [Tue, 9 Sep 2014 01:47:19 +0000 (01:47 +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 <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@16064 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis file allows a developer to add a new tool in either the C or Python trees, add...
lhauch [Fri, 5 Sep 2014 14:15:40 +0000 (14:15 +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 <Toolname>.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 <larry.hauch@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16063 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Not add redundant quotes any longer to parameters with spaces.
Jaben Carsey [Fri, 5 Sep 2014 02:05:16 +0000 (02:05 +0000)]
ShellPkg: Not add redundant quotes any longer to parameters with spaces.

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

9 years agoShellPkg: Refine the code style and comment.
Qiu Shumin [Fri, 5 Sep 2014 01:01:24 +0000 (01:01 +0000)]
ShellPkg: Refine the code style and comment.

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

9 years agoShellPkg: Update BCFG command for correct use and errors on moving
Jaben Carsey [Thu, 4 Sep 2014 20:55:29 +0000 (20:55 +0000)]
ShellPkg: Update BCFG command for correct use and errors on moving

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

9 years agoMdePkg NASM Thunk16: Add missing ASM_PFX for InternalAsmThunk16
Jordan Justen [Thu, 4 Sep 2014 15:17:57 +0000 (15:17 +0000)]
MdePkg NASM Thunk16: Add missing ASM_PFX for InternalAsmThunk16

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

9 years agoMdePkg NASM Thunk16: Work around NASM 2.09.04 - 2.10rc1 bug
Jordan Justen [Thu, 4 Sep 2014 15:17:48 +0000 (15:17 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16058 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools/AutoGen: Remove redundant copy action for binary module
Hess Chen [Thu, 4 Sep 2014 08:32:44 +0000 (08:32 +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 <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@16057 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdates the logic to allow RM and CP to have silent/quiet mode work successfully.
Jaben Carsey [Wed, 3 Sep 2014 17:44:53 +0000 (17:44 +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 <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@16056 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSecurityPkg VariableRuntimeDxe: Bug fix and and refine debug message.
Dong, Guo [Wed, 3 Sep 2014 09:19:30 +0000 (09:19 +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 <guo.dong@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Zeng, Star <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16055 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg VariableRuntimeDxe: Bug fix and and refine debug message.
Dong, Guo [Wed, 3 Sep 2014 09:16:04 +0000 (09:16 +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 <guo.dong@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Zeng, Star <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16054 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Fix dynamic command help
Harry Liebel [Wed, 3 Sep 2014 09:04:00 +0000 (09:04 +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 <Harry.Liebel@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16053 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Add DXE_DRIVER class type to some libraries
Harry Liebel [Wed, 3 Sep 2014 09:03:10 +0000 (09:03 +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 <Harry.Liebel@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16052 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCryptoPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:56:12 +0000 (08:56 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16051 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSecurityPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:51:17 +0000 (08:51 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16050 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoNetworkPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:50:27 +0000 (08:50 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16049 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSourceLevelDebugPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:49:15 +0000 (08:49 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16048 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUefiCpuPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:48:53 +0000 (08:48 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16047 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoPcAtChipsetPkg: Convert non DOS format files to DOS format and rename the same module...
Gao, Liming [Wed, 3 Sep 2014 08:48:29 +0000 (08:48 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16046 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFrameworkModulePkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:45:37 +0000 (08:45 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16045 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg: Convert non DOS format files to DOS format and remove unused module...
Gao, Liming [Wed, 3 Sep 2014 08:39:12 +0000 (08:39 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16044 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFrameworkPkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:37:09 +0000 (08:37 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16043 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: Convert non DOS format files to DOS format
Gao, Liming [Wed, 3 Sep 2014 08:33:28 +0000 (08:33 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16042 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools/UPT: Replace os.linesep with '\r\n' when generating UNI files.
Hess Chen [Wed, 3 Sep 2014 08:25:10 +0000 (08:25 +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 <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@16041 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoIntelFspPkg/IntelFspWrapperPkg: Fix some typos.
Star Zeng [Wed, 3 Sep 2014 06:48:38 +0000 (06:48 +0000)]
IntelFspPkg/IntelFspWrapperPkg: Fix some typos.

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

9 years agoBaseTools/CommonLib: Add a step to convert ":\\" to ":\"
Hess Chen [Wed, 3 Sep 2014 02:09:19 +0000 (02:09 +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 <hesheng.chen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16039 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Refactor string manipulation
Jaben Carsey [Tue, 2 Sep 2014 20:17:38 +0000 (20:17 +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@16038 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCleanup UefiShellDebug1CommandsLib strings to :
Samer El-Haj-Mahmoud elhaj [Tue, 2 Sep 2014 20:16:47 +0000 (20:16 +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 <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16037 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate SmbiosView Shell command to display additional CPU Family
Samer El-Haj-Mahmoud elhaj [Tue, 2 Sep 2014 20:03:36 +0000 (20:03 +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 <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16036 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShellPkg: Prevent StrnCpy from overwriting null terminator when source is larger...
Scott Duplichan [Tue, 2 Sep 2014 19:50:09 +0000 (19:50 +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 <scott@notabs.org>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16035 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMinor format update: add missing space in copyright line
Tian, Hot [Tue, 2 Sep 2014 07:50:29 +0000 (07:50 +0000)]
Minor format update: add missing space in copyright line

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

9 years agoUpdate CryptoPkg package version to 0.94.
Long Qin [Tue, 2 Sep 2014 07:08:30 +0000 (07:08 +0000)]
Update CryptoPkg package version to 0.94.

Signed-off-by: Long Qin <qin.long@intel.com>
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

9 years agoUpdate SecurityPkg package version to 0.94.
Dong, Guo [Tue, 2 Sep 2014 07:05:34 +0000 (07:05 +0000)]
Update SecurityPkg package version to 0.94.

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

9 years agoUpdate MdeModulePkg package version to 0.94.
Feng Tian [Tue, 2 Sep 2014 05:54:02 +0000 (05:54 +0000)]
Update MdeModulePkg package version to 0.94.

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

9 years agoUpdate IntelFrameworkModulePkg package version to 0.94.
Jeff Fan [Tue, 2 Sep 2014 05:34:36 +0000 (05:34 +0000)]
Update IntelFrameworkModulePkg package version to 0.94.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
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

9 years agoUpdate IntelFrameworkPkg package version to 0.94.
Jeff Fan [Tue, 2 Sep 2014 05:27:55 +0000 (05:27 +0000)]
Update IntelFrameworkPkg package version to 0.94.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
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

9 years agoUpdate MdePkg package version from 1.04 to 1.05
Gao, Liming [Tue, 2 Sep 2014 05:10:46 +0000 (05:10 +0000)]
Update MdePkg package version from 1.04 to 1.05

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

9 years agoUpdate NetworkPkg package version to 0.95.
Fu Siyuan [Tue, 2 Sep 2014 03:16:10 +0000 (03:16 +0000)]
Update NetworkPkg package version to 0.95.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
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

9 years agoARM Packages: Removed unused PcdArmPrimaryCore
Olivier Martin [Mon, 1 Sep 2014 17:41:38 +0000 (17:41 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16026 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib NASM Thunk16: Initialize _16GdtrBase to 0
Jordan Justen [Mon, 1 Sep 2014 17:24:08 +0000 (17:24 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16025 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib NASM Thunk16: Remove remaining 'DB' code
Jordan Justen [Mon, 1 Sep 2014 17:23:57 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16024 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib NASM Thunk16: Use bits 16 for 16-bit code
Jordan Justen [Mon, 1 Sep 2014 17:23:51 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16023 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib NASM Thunk16: Use NASM local labels
Jordan Justen [Mon, 1 Sep 2014 17:23:39 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16022 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib Thunk16: Replace X64 GAS Thunk16 with NASM version
Jordan Justen [Mon, 1 Sep 2014 17:23:33 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16021 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg BaseLib Thunk16: Replace IA32 GAS Thunk16 with NASM version
Jordan Justen [Mon, 1 Sep 2014 17:23:22 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16020 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg Base.h: Always define ASM_PFX
Jordan Justen [Mon, 1 Sep 2014 17:23:10 +0000 (17:23 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16019 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools tools_def: Indicate that NASM 2.07 or later is required
Jordan Justen [Mon, 1 Sep 2014 17:22:58 +0000 (17:22 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16018 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoBaseTools build_rule: Add .nasm => .obj build rule
Jordan Justen [Mon, 1 Sep 2014 17:22:51 +0000 (17:22 +0000)]
BaseTools build_rule: Add .nasm => .obj build rule

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

9 years agoBaseTools tools_def: Add NASM_FLAGS
Jordan Justen [Mon, 1 Sep 2014 17:07:19 +0000 (17:07 +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 <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16016 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg: allow dynamically discovered PL031 RTC
Ard Biesheuvel [Mon, 1 Sep 2014 15:58:51 +0000 (15:58 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16015 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore
Ard Biesheuvel [Mon, 1 Sep 2014 15:57:51 +0000 (15:57 +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 <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16014 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/BdsLib/Arm: Check Linux image and parameters are not overlapping
Olivier Martin [Mon, 1 Sep 2014 13:24:01 +0000 (13:24 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16013 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/BdsLib/Arm: Clean Data cache before disabling it
Olivier Martin [Mon, 1 Sep 2014 13:21:54 +0000 (13:21 +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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16012 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoHalRuntimeServicesExampleLib/Rtc.c : Added missing comments
Ronald Cron [Mon, 1 Sep 2014 13:20:41 +0000 (13:20 +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 <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@16011 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/Bds: Corrected a bug in IsPrintableString()
Ronald Cron [Mon, 1 Sep 2014 13:19:43 +0000 (13:19 +0000)]
ArmPlatformPkg/Bds: Corrected a bug in IsPrintableString()

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

9 years agoArmPlatformPkg/Bds: Correct copy of an unaligned Unicode string
Ronald Cron [Mon, 1 Sep 2014 13:17:23 +0000 (13:17 +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 <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@16009 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix VS2013 build failure.
Ruiyu Ni [Mon, 1 Sep 2014 08:48:01 +0000 (08:48 +0000)]
Fix VS2013 build failure.

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

9 years agoShellPkg Build failure of AllocateZeroPool usage. This patch updates AllocateZeroPool...
Gao, Liming [Sun, 31 Aug 2014 07:58:31 +0000 (07:58 +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 <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16007 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch is going to fix the issue of only Default SkuId is built into the External...
Feng, Bob C [Sat, 30 Aug 2014 12:59:03 +0000 (12:59 +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 <bob.c.feng@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16006 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through...
Jaben Carsey [Fri, 29 Aug 2014 22:01:54 +0000 (22:01 +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 <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@16005 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through...
Jaben Carsey [Fri, 29 Aug 2014 21:57:42 +0000 (21:57 +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 <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@16004 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through...
Jaben Carsey [Fri, 29 Aug 2014 21:17:46 +0000 (21:17 +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 <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@16003 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through...
Jaben Carsey [Fri, 29 Aug 2014 21:17:27 +0000 (21:17 +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 <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@16002 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThis patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through...
Jaben Carsey [Fri, 29 Aug 2014 21:17:03 +0000 (21:17 +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 <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@16001 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoThe binaries of ShellBinPkg are generated with ShellPkg project 15999. The binaries...
Jaben Carsey [Fri, 29 Aug 2014 21:15:05 +0000 (21:15 +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 <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16000 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRegister pre-defined command aliases in sorted order.
Tapan Shah [Fri, 29 Aug 2014 20:43:08 +0000 (20:43 +0000)]
Register pre-defined command aliases in sorted order.

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

9 years agoAdd CTRL+C support for ‘devices’ command.
Tapan Shah [Fri, 29 Aug 2014 20:41:14 +0000 (20:41 +0000)]
Add CTRL+C support for ‘devices’ command.

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

9 years agoCleanup UefiShellLevel1CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:40:21 +0000 (20:40 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15997 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd CTRL+C support for ‘drivers’ command.
Tapan Shah [Fri, 29 Aug 2014 20:38:27 +0000 (20:38 +0000)]
Add CTRL+C support for ‘drivers’ command.

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

9 years agoAdd CTRL+C support for ‘dh’ command.
Tapan Shah [Fri, 29 Aug 2014 20:37:32 +0000 (20:37 +0000)]
Add CTRL+C support for ‘dh’ command.

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

9 years agoCleanup UefiShellDriver1CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:36:23 +0000 (20:36 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15994 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd CTRL+C support for ‘devtree’ command.
Tapan Shah [Fri, 29 Aug 2014 20:34:34 +0000 (20:34 +0000)]
Add CTRL+C support for ‘devtree’ command.

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

9 years agoCleanup UefiShellInstall1CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:33:31 +0000 (20:33 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15992 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd CTRL+C support for ‘attrib’ command.
Tapan Shah [Fri, 29 Aug 2014 20:32:15 +0000 (20:32 +0000)]
Add CTRL+C support for ‘attrib’ command.

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

9 years agoCleanup UefiShellLevel2CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:30:58 +0000 (20:30 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15990 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd CTRL+C support for ‘ls’ command.
Tapan Shah [Fri, 29 Aug 2014 20:24:58 +0000 (20:24 +0000)]
Add CTRL+C support for ‘ls’ command.

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

9 years agoAdd new aliases called ‘move’ and ‘mount’ for ‘mv’ and ‘map’ commands respectively.
Tapan Shah [Fri, 29 Aug 2014 20:22:48 +0000 (20:22 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15988 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd new alias called ‘cat’ for ‘type’ command.
Tapan Shah [Fri, 29 Aug 2014 20:19:36 +0000 (20:19 +0000)]
Add new alias called ‘cat’ for ‘type’ command.

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

9 years agoCleanup UefiShellNetwork1CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:17:57 +0000 (20:17 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15986 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCleanup UefiShellLevel3CommandsLib commands help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:16:24 +0000 (20:16 +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 <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15985 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCleanup UefiDpLib ‘dp’ command help output string to :
Tapan Shah [Fri, 29 Aug 2014 20:02:38 +0000 (20:02 +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 <tapandshah@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15984 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg: Unix: Use XCODE5 and lldb if Xcode 5 is detected
Anderw Fish [Fri, 29 Aug 2014 18:58:36 +0000 (18:58 +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 <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@15983 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg: Unix: Add LLDB support for Xcode 5
Anderw Fish [Fri, 29 Aug 2014 18:52:42 +0000 (18:52 +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 <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@15982 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg: Unix: Fix uninitiailzed variable bug.
Anderw Fish [Fri, 29 Aug 2014 18:45:26 +0000 (18:45 +0000)]
EmulatorPkg: Unix: Fix uninitiailzed variable bug.

clang warns on this error.

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

9 years agoBaseTools: Cleanup XCODE build rules
Anderw Fish [Fri, 29 Aug 2014 18:34:04 +0000 (18:34 +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 <afish@apple.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15980 6f19259b-4bc3-4df7-8a09-765794883524