mirror_edk2.git
7 years agoRoll back check in r15180 which caused the shell always returns EFI_ABORTED no matter...
Ruiyu Ni [Thu, 18 Sep 2014 01:58:03 +0000 (01:58 +0000)]
Roll back check in r15180 which caused the shell always returns EFI_ABORTED no matter what exit-code is specified for "exit" command.

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

7 years agoShellPkg: Fix the support for command line comments.
Qiu Shumin [Thu, 18 Sep 2014 01:21:01 +0000 (01:21 +0000)]
ShellPkg: Fix the support for command line comments.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-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@16126 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoStdLib: Fix parameter type errors.
Stefan Kaeser [Wed, 17 Sep 2014 20:58:16 +0000 (20:58 +0000)]
StdLib: Fix parameter type errors.

Fix casts of parameters to sprintf() so that they have the correct type.

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

7 years agoBaseTools: Update the BaseTools/Source/Python/Makefile to check for dependent files
Gao, Liming [Wed, 17 Sep 2014 08:47:01 +0000 (08:47 +0000)]
BaseTools: Update the BaseTools/Source/Python/Makefile to check for dependent files

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

7 years agoShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up.
Ni Ruiyu [Wed, 17 Sep 2014 08:41:31 +0000 (08:41 +0000)]
ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ni Ruiyu <ruiyu.ni@intel.com>
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@16123 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Remove redundant quotes in file path string for Shell command parameters.
Qiu Shumin [Wed, 17 Sep 2014 07:58:31 +0000 (07:58 +0000)]
ShellPkg: Remove redundant quotes in file path string for Shell command parameters.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <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@16122 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Remove redundant quotes for command 'FOR' in Shell.
Qiu Shumin [Wed, 17 Sep 2014 07:52:35 +0000 (07:52 +0000)]
ShellPkg: Remove redundant quotes for command 'FOR' in Shell.

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

7 years agoShellPkg: Use compare operator for non-Boolean comparisons.
Qiu Shumin [Wed, 17 Sep 2014 07:48:27 +0000 (07:48 +0000)]
ShellPkg: Use compare operator for non-Boolean comparisons.

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

7 years agoShellPkg: Add support for GCC stack protector
Ronald Cron [Tue, 16 Sep 2014 18:21:24 +0000 (18:21 +0000)]
ShellPkg: Add support for GCC stack protector

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: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16116 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Specify AArch64 intrinsics library
Harry Liebel [Tue, 16 Sep 2014 17:46:07 +0000 (17:46 +0000)]
ShellPkg: Specify AArch64 intrinsics library

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

7 years agoUpdate Build Tool version from 0.51 to 0.60
Gao, Liming [Tue, 16 Sep 2014 09:03:00 +0000 (09:03 +0000)]
Update Build Tool version from 0.51 to 0.60

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

7 years agoSupport DSC and FDF file out of WORKSPACE by GenFds.
Yingke Liu [Tue, 16 Sep 2014 08:33:40 +0000 (08:33 +0000)]
Support DSC and FDF file out of WORKSPACE by GenFds.

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

7 years agoRefine the code, remove the useless code.
Eric Dong [Tue, 16 Sep 2014 07:01:03 +0000 (07:01 +0000)]
Refine the code, remove the useless code.

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

7 years agoArmPlatformPkg: separate PlatformPei and PlatformPeiLib
Ard Biesheuvel [Tue, 16 Sep 2014 00:56:50 +0000 (00:56 +0000)]
ArmPlatformPkg: separate PlatformPei and PlatformPeiLib

This separates PlatformPei and PlatformPeiLib so the latter can be
overridden by a specific platform.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Laszlo Ersek <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@16110 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoEmbeddedPkg/Lan9118Dxe: Fixed typo
Olivier Martin [Tue, 16 Sep 2014 00:55:47 +0000 (00:55 +0000)]
EmbeddedPkg/Lan9118Dxe: Fixed typo

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

7 years agoArmPsciResetSystemLib: read PSCI method in constructor
Ard Biesheuvel [Tue, 16 Sep 2014 00:51:17 +0000 (00:51 +0000)]
ArmPsciResetSystemLib: read PSCI method in constructor

As this library is used in the implementation of a Runtime Service,
make sure to access dynamic PCDs only in the constructor.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <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@16108 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPlatformPkg/NorFlashDxe: use MmioWrite () not memory stores
Ard Biesheuvel [Tue, 16 Sep 2014 00:41:45 +0000 (00:41 +0000)]
ArmPlatformPkg/NorFlashDxe: use MmioWrite () not memory stores

When writing to the flash, make sure to use MmioWrite () wrappers instead
of letting the compiler generate the store instructions. This is needed
because under virtualization, store instructions with multiple outputs
(i.e., store pair or store with writeback) cannot be emulated efficiently
when operating on MMIO ranges.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <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@16107 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoBaseTools/Source/C: Only used '-Wno-self-assign' when BaseTools are built on DARWIN
Andrew Fish [Tue, 16 Sep 2014 00:38:12 +0000 (00:38 +0000)]
BaseTools/Source/C: Only used '-Wno-self-assign' when BaseTools are built on DARWIN

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
Tested-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@16106 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoMdeModulePkg XhciPei/UsbBusPei: Enhance code for better device compatibility.
Star Zeng [Mon, 15 Sep 2014 09:33:16 +0000 (09:33 +0000)]
MdeModulePkg XhciPei/UsbBusPei: Enhance code for better device compatibility.

1. Add delay after set device address and get configuration descriptor.
2. Sync the change at R15876 in XhciDxe to do not access transfer ring when endpoint is isochronous type or control type.

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

7 years ago1. Use the PciIo->GetBarAttributes to find the logical bar index of the memory mapped...
Fu, Siyuan [Mon, 15 Sep 2014 03:37:58 +0000 (03:37 +0000)]
1. Use the PciIo->GetBarAttributes to find the logical bar index of the memory mapped bar and IO mapped bar.
2. Remove unused code for undi 3.0.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-By: Ye, Ting (ting.ye@intel.com)
Reviewed-By: Ni, Ruiyu <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16104 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoThe current Makefile only checks the primary python file, such as build.py and does...
lhauch [Fri, 12 Sep 2014 22:59:04 +0000 (22:59 +0000)]
The current Makefile only checks the primary python file, such as build.py and does not check other files in tool’s directory tree.
This modification adds all of the other files within the tool’s directory tree that would be a cause to rebuild the tool.

The format in the Makefile for listing these other files was selected to allow the nightly build script to detect changes in the additional files.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lhauch <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@16103 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Fix ASSERT when bcfg moving boot option with source location = total number...
Tapan Shah [Fri, 12 Sep 2014 16:46:23 +0000 (16:46 +0000)]
ShellPkg: Fix ASSERT when bcfg moving boot option with source location = total number of boot options
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16102 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoThis patch is going to fix the issue of the mis-match between the index of Platform...
Feng, Bob C [Fri, 12 Sep 2014 08:46:30 +0000 (08:46 +0000)]
This patch is going to fix the issue of the mis-match between the index of Platform DynamicPcd list and Dynamic Pcd generated token number.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng, Bob C <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@16101 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoUefiCpuPkg: error: invalid instruction mnemonic 'retf'
Nikolai Saoukh [Fri, 12 Sep 2014 08:38:23 +0000 (08:38 +0000)]
UefiCpuPkg: error: invalid instruction mnemonic 'retf'

.S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Nikolai Saoukh <nms@otdel-1.org>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16100 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoBaseTools: Fix the regression issue after enbaling s_* an d_* macros in FDF.
Yingke Liu [Fri, 12 Sep 2014 06:57:22 +0000 (06:57 +0000)]
BaseTools: Fix the regression issue after enbaling s_* an d_* macros in FDF.

Add the missing 'MacroDict' field in FfsInfStatement.

The issue is that BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 448, in __ExtendMacro__
    String = GenFdsGlobalVariable.MacroExtend(String, self.MacroDict)
AttributeError: OptRomInfStatement instance has no attribute 'MacroDict'

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <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@16099 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoUefiCpuPkg: error: invalid instruction mnemonic 'retf'
Nikolai Saoukh [Fri, 12 Sep 2014 02:59:34 +0000 (02:59 +0000)]
UefiCpuPkg: error: invalid instruction mnemonic 'retf'

.S assembler files must be AT&T syntax ones. So Intel syntax mnemonic is not good. Discovered by clang integrated assembler.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Nikolai Saoukh <nms@otdel-1.org>
Reviewed-by: Andrew 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@16098 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoFix a bug that Dhcp6CalculateLeaseTime() function use incorrect offset on the IaAddre...
Fu, Siyuan [Fri, 12 Sep 2014 00:51:58 +0000 (00:51 +0000)]
Fix a bug that Dhcp6CalculateLeaseTime() function use incorrect offset on the IaAddress pointer.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-By: Ye, Ting (ting.ye@intel.com)
Reviewed-By: Wu, Jiaxin <jiaxin.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16097 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoStdLib: Fix some build problems and obscure bugs.
daryl.mcdaniel [Thu, 11 Sep 2014 21:42:26 +0000 (21:42 +0000)]
StdLib: Fix some build problems and obscure bugs.

StdLib\
  BsdSocketLib\
    ns_print.c
      Use "%lu" format instead of "%Lu".  A capital 'L' specifies (long double) in print formats.
      Add a cast from char to (unsigned int) to match its sprintf format.
    res_debug.c
      Use "%lu" format instead of "%Lu".  A capital 'L' specifies (long double) in print formats.
  EfiSocketLib\
    Socket.c
      Update copyright & correct formatting
  Include\
    sys\
      EfiCdefs.h
        Update copyright date
        Change type of LONGN and ULONGN to INTN and UINTN, respectively.
      errno.h
        Update copyright date
        Add enum member '__ESUCCESS = 0'
      fcntl.h
        Update copyright date
        Improve comment for O_EXCL
      stat.h
        Update copyright date
        Reorder the S_* flags
        Put the S_* predicate macros in the same order as their flag definitions
        Add a function header comment to the stat() function declaration.
    errno.h
      Update copyright date
      Define new ESUCCESS error code
    wchar.h
      Update copyright date
      Correct the description of the Nptr parameter to the wcstol, wcstoll, wcstoul, and wcstoull functions.
    x86\float.h
      Update copyright date
      Define 'long double' limits for non-Microsoft compilers
  LibC\
    Containers\Queues\Fifo.c
      Rewrite to make more robust and secure (zeros out old data)
    StdLib\realpath.c
      Update copyright date
      Reformat descriptive comment for realpath()
      Add terminating CRLF

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: Erik Bjorge <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@16096 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoOvmfPkg: resolve BcfgCommandLib class for ShellPkg/.../Shell.inf
Laszlo Ersek [Thu, 11 Sep 2014 19:11:37 +0000 (19:11 +0000)]
OvmfPkg: resolve BcfgCommandLib class for ShellPkg/.../Shell.inf

SVN r16092 ('ShellPkg: Add a new library for "bcfg" command') introduced a
new library class (and an instance for it) called BcfgCommandLib.

SVN r16093 ('ShellPkg: Use the new library for "bcfg" command') rebased
ShellPkg to the new library, introducing a new [LibraryClasses]
dependency.

Library classes must be resolved to library instances in client platform
descriptions (DSC's). Since OVMF is a client platform, import the same
library resolution as seen in "ShellPkg/ShellPkg.dsc" (added in SVN
r16092).

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

7 years agoAdd support for ${s_*} and ${d_*} macros for in FDF file for the INF files, and for...
Abner Chang [Thu, 11 Sep 2014 06:44:17 +0000 (06:44 +0000)]
Add support for ${s_*} and ${d_*} macros for in FDF file for the INF files, and for each statement in the build rules.
The following keywords are supported:
"src", "s_path", "s_dir", "s_name", "s_base", "s_ext", "dst", "d_path", "d_name", "d_base", "d_ext"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Abner Chang <abner.chang@hp.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Larry Hauch <larry.hauch@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16094 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Use the new library for "bcfg" command
Jaben Carsey [Wed, 10 Sep 2014 20:55:37 +0000 (20:55 +0000)]
ShellPkg: Use the new library for "bcfg" command

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed by: Tapan Shah <tapandshah@hp.com>

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

7 years agoShellPkg: Add a new library for "bcfg" command
Jaben Carsey [Wed, 10 Sep 2014 20:30:38 +0000 (20:30 +0000)]
ShellPkg: Add a new library for "bcfg" command

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed by: Tapan Shah <tapandshah@hp.com>

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

7 years agoArmPlatformPkg/PL031RealTimeClockLib: use virtual address of runtime services
Ard Biesheuvel [Wed, 10 Sep 2014 18:49:43 +0000 (18:49 +0000)]
ArmPlatformPkg/PL031RealTimeClockLib: use virtual address of runtime services

This library accesses SystemTable->RuntimeServices at runtime,
which means it should take care to use its updated value after
SetVirtualAddressMap () is called.

Replace references to gRT with mRT, which we initialize to gRT
and update to its virtual value on a virtual address change event.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Laszlo Ersek <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@16091 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg/TimerDxe: Read timer frequency from CPU
Ard Biesheuvel [Wed, 10 Sep 2014 18:48:47 +0000 (18:48 +0000)]
ArmPkg/TimerDxe: Read timer frequency from CPU

The PCD gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz is used in the
SEC phase (if applicable) to write the platform's counter frequency
to the CNTFRQ system register, as this needs to be done by the highest
exception level implemented.

Under virtualization, we should be able to rely on the host to have
initialized this register to a sane value, as we run at EL1 and only
use the virtual timer, so the PcdArmArchTimerFreqInHz PCD has little
meaning here.

So in either case, by the time we enter the DXE phase, we can use the
CNTFRQ system register to read the frequency instead of looking at the
PCD.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <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@16090 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg: Introduced ArmPsciResetSystemLib
Ard Biesheuvel [Wed, 10 Sep 2014 18:47:30 +0000 (18:47 +0000)]
ArmPkg: Introduced ArmPsciResetSystemLib

This implementation of EfiResetSystemLib uses ARM PSCI calls to perform
reboot and poweroff, using either HVC or SMC calls.

Contributed-under: TianoCore Contribution Agreement 1.0
Acked-by: Laszlo Ersek <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@16089 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg: Add ArmHvcLib
Ard Biesheuvel [Wed, 10 Sep 2014 18:46:23 +0000 (18:46 +0000)]
ArmPkg: Add ArmHvcLib

This is a utility library closely modeled after ArmSmcLib, that allows
hypervisor call (HVC) instructions to be issued from C code.

Change-Id: I5f5c65f83e910ff98dbb2f5b031dad8c4f663daa
Contributed-under: TianoCore Contribution Agreement 1.0
Acked-by: Laszlo Ersek <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@16088 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg: Add PSCI 0.2 constants for system poweroff and reset
Ard Biesheuvel [Wed, 10 Sep 2014 18:45:08 +0000 (18:45 +0000)]
ArmPkg: Add PSCI 0.2 constants for system poweroff and reset

Change-Id: I683a603300812578c15cf3c1e0ccb7574fdb5caf
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <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@16087 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper
Ard Biesheuvel [Wed, 10 Sep 2014 18:44:19 +0000 (18:44 +0000)]
ArmPkg/ArmSmcLib: fix stack handling in .asm version of SMC wrapper

This fixes a bug in the stack handling in the RVCT .asm version
of the SMC wrapper.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <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@16086 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoBaseTools: Fix XCODE5 to work properly with NASM
Andrew Fish [Wed, 10 Sep 2014 16:48:59 +0000 (16:48 +0000)]
BaseTools: Fix XCODE5 to work properly with NASM

The default object type for NASM is raw binary, and this will not link.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <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@16085 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoMdeModulePkg/UsbBusDxe: Fixed Clang build error.
Nikolai Saoukh [Wed, 10 Sep 2014 06:14:26 +0000 (06:14 +0000)]
MdeModulePkg/UsbBusDxe: Fixed Clang build error.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Nikolai Saoukh <nms@otdel-1.org>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16084 6f19259b-4bc3-4df7-8a09-765794883524

7 years agoShellPkg: Replace the usage of StrnCpy with CopyMem to avoid potential buffer overflo...
Qiu Shumin [Wed, 10 Sep 2014 01:03:43 +0000 (01:03 +0000)]
ShellPkg: Replace the usage of StrnCpy with CopyMem to avoid potential buffer overflow and refine the code style.

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

7 years agoAppPkg: Add the Arithchk utility and clean up some build problems.
daryl.mcdaniel [Tue, 9 Sep 2014 22:37:02 +0000 (22:37 +0000)]
AppPkg: Add the Arithchk utility and clean up some build problems.

AppPkg\
  AppPkg.dsc
    Update copyright date
    Add Component ArithChk.inf
  Applications\
    Main\
      Main.inf
        Remove DevShell dependency
    Python\
      Python-2.7.2\Modules\
        socketmodule.c
          Initialize addro, in sock_sendto(), before use.
    ArithChk\
      ArithChk.inf
      arithchk.c
        NEW
        This is a direct port of the arithchk program which is included as part of the NetBSD gdtoa library.

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

7 years agoStdLib: Changes needed to support XCODE5
Andrew Fish [Tue, 9 Sep 2014 21:59:08 +0000 (21:59 +0000)]
StdLib: Changes needed to support XCODE5

I had to make the following changes to make this build work: >build -p AppPkg/AppPkg.dsc -a X64 -t XCODE5

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

7 years agoEmbeddedPkg: Split off FDT loading functionality from FdtLib
Ard Biesheuvel [Tue, 9 Sep 2014 17:59:19 +0000 (17:59 +0000)]
EmbeddedPkg: Split off FDT loading functionality from FdtLib

Split off the recently added functionality to load device tree images and
install them as configuration tables, as it introduces a dependency on
UefiBootServicesTableLib, preventing FdtLib from being used during SEC and
PEI phases.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Laszlo Ersek <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@16080 6f19259b-4bc3-4df7-8a09-765794883524

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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