mirror_edk2.git
9 years agoFatBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:25:52 +0000 (15:25 +0000)]
FatBinPkg: Added ARM Binaries

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ray Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13756 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEdkShellPkg: Added new patch to support EFI Shell project revision 61
oliviermartin [Thu, 27 Sep 2012 15:23:33 +0000 (15:23 +0000)]
EdkShellPkg: Added new patch to support EFI Shell project revision 61

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ray Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13755 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEdkShellBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:20:41 +0000 (15:20 +0000)]
EdkShellBinPkg: Added ARM Binaries

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ray Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13754 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOmap35xxPkg/Flash: Fixed 'NandStatus may be used before being set'
oliviermartin [Thu, 27 Sep 2012 13:41:04 +0000 (13:41 +0000)]
Omap35xxPkg/Flash: Fixed 'NandStatus may be used before being set'

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13753 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoARM Packages: Minor typo, mispellings and coding style changes
oliviermartin [Thu, 27 Sep 2012 13:39:40 +0000 (13:39 +0000)]
ARM Packages: Minor typo, mispellings and coding style changes

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13752 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnable EFI_IFR_DEFAULT2 opcode in browser.
ydong10 [Thu, 27 Sep 2012 11:19:56 +0000 (11:19 +0000)]
Enable EFI_IFR_DEFAULT2 opcode in browser.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13751 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd debug port and debug port 2 table.
jyao1 [Thu, 27 Sep 2012 06:33:35 +0000 (06:33 +0000)]
Add debug port and debug port 2 table.

signed off by: jiewen.yao@intel.com
reviewed by: liming.gao@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13750 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSave and disable CPU interrupt before programming MTRR settings, and restore the...
vanjeff [Thu, 27 Sep 2012 03:04:31 +0000 (03:04 +0000)]
Save and disable CPU interrupt before programming MTRR settings, and restore the CPU interrupt after programming MTRR setting.

signed-off-by: Kinney, Michael D <michael.d.kinney@intel.com>
reviewed-by: Bjorge, Erik C <erik.c.bjorge@intel.com>
reviewed-by: Jeff Fan <jeff.fan@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13749 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoReset system only when the pre-allocated memory is more than 1.5 of needed memory...
niruiyu [Thu, 27 Sep 2012 02:57:01 +0000 (02:57 +0000)]
Reset system only when the pre-allocated memory is more than 1.5 of needed memory and boot mode is BOOT_WITH_DEFAULT_SETTING, or less than the needed memory.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Elvin Li<elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13748 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/EblCmdLib: Fixed 'performance' command
oliviermartin [Wed, 26 Sep 2012 20:24:10 +0000 (20:24 +0000)]
ArmPlatformPkg/EblCmdLib: Fixed 'performance' command

Added support for performance counter that counts up or down

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13747 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions
oliviermartin [Wed, 26 Sep 2012 20:22:37 +0000 (20:22 +0000)]
ArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13746 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero
oliviermartin [Wed, 26 Sep 2012 20:21:20 +0000 (20:21 +0000)]
ArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13745 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT
oliviermartin [Wed, 26 Sep 2012 20:19:53 +0000 (20:19 +0000)]
ArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13744 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE
oliviermartin [Wed, 26 Sep 2012 20:12:55 +0000 (20:12 +0000)]
ArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE

This makefile can be used to build EDK2 from Eclipse CDT plug-in.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13743 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove local function IsValidDevicePath and use new interface provided by UefiDeviceP...
niruiyu [Wed, 26 Sep 2012 09:01:23 +0000 (09:01 +0000)]
Remove local function IsValidDevicePath and use new interface provided by UefiDevicePathlib.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Eric Dong<eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13742 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.
darylm503 [Tue, 25 Sep 2012 22:01:58 +0000 (22:01 +0000)]
StdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.

StdLib/Include/
  stdlib.h
    Update MB_CUR_MAX to 3, the max. size of a MBCS character.
    Improve comments for wcstombs()
    Declare implementation-specific MBCS utility functions:
      OneWcToMcLen()    Determine the number of bytes needed to represent
                        a Wide character as a MBCS character.
      EstimateWtoM()    Determine the number of bytes needed to represent
                        a Wide character string as a MBCS string.
      CountMbcsChars()  Determine the number of characters in a MBCS string.

  wchar.h
    Improve comments.

StdLib/Include/sys/
  fcntl.h
    Define new Open flags.
    Remove obsolete and commented-out lines.

  termios.h
    Add Intel Copyright notice and Open-Source License.
    Change c_cc index macros into enumerated values.
    Clean up flag definitions for visual alignment as well as UEFI relevance.
    Move c_ispeed and c_ospeed termios members to end for better alignment.
    Comment out declarations for functions not yet implemented.
    Add an enum defining values for the UEFI extended function keys.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
Reviewed-by: jaben.carsey@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13741 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI...
vanjeff [Tue, 25 Sep 2012 02:44:53 +0000 (02:44 +0000)]
1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI triggered.
2. Fix issue that PlatformHookAfterSmiDispatch() and PERF_END() are not called in the case mInLegacyBoot is TRUE.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13740 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib/LibC/StdLib/Malloc.c: Make the free() function conform to the ISO/IEC 9899...
darylm503 [Mon, 24 Sep 2012 22:44:03 +0000 (22:44 +0000)]
StdLib/LibC/StdLib/Malloc.c:  Make the free() function conform to the ISO/IEC 9899 (C95) specification.

The C95 specification states: "The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation.  If ptr is a null pointer, no action occurs".  The UEFI FreePool() function, which the StdLib implementation of free() uses, does not make this check.  This fix adds a check for null to the free() function such that if the pointer argument is NULL, nothing is done.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13739 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoClean the build warning.
ydong10 [Mon, 24 Sep 2012 06:58:21 +0000 (06:58 +0000)]
Clean the build warning.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13738 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd new API IsDevicePathValid() to UefiDevicePathLib.
niruiyu [Mon, 24 Sep 2012 03:20:35 +0000 (03:20 +0000)]
Add new API IsDevicePathValid() to UefiDevicePathLib.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Liming Gao<liming.gao@intel.com>
Reviewed-by: Kinney Michael D<michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13737 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoHandle the case when OpROM wants to completely remove itself.
niruiyu [Mon, 24 Sep 2012 02:57:47 +0000 (02:57 +0000)]
Handle the case when OpROM wants to completely remove itself.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Elvin Li<elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13736 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define...
darylm503 [Thu, 20 Sep 2012 21:01:21 +0000 (21:01 +0000)]
StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <jcarsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd TperReset Logic By using MOR bit - Remove the unnecessary parameter.
qianouyang [Wed, 19 Sep 2012 02:14:51 +0000 (02:14 +0000)]
Add TperReset Logic By using MOR bit - Remove the unnecessary parameter.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13734 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd a dialog box with help message when user changes the state of "Attempt Secure...
sfu5 [Fri, 14 Sep 2012 07:28:37 +0000 (07:28 +0000)]
Add a dialog box with help message when user changes the state of "Attempt Secure Boot" check box.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13733 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the issue that FTW driver fail to reclaim WorkSpace.
lzeng14 [Fri, 14 Sep 2012 06:54:35 +0000 (06:54 +0000)]
Fix the issue that FTW driver fail to reclaim WorkSpace.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Hengyan Tao <hengyan.tao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13732 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Fix a bug when comparing two timestamp in auth-variable driver.
sfu5 [Fri, 14 Sep 2012 02:59:35 +0000 (02:59 +0000)]
1. Fix a bug when comparing two timestamp in auth-variable driver.
2. Remove the TimeCompare function in Bds since it's not used anymore.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13731 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix coding style issue
czhang46 [Thu, 13 Sep 2012 11:28:27 +0000 (11:28 +0000)]
Fix coding style issue

Signed-off-by : Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by   : Guo Dong<guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13730 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
czhang46 [Thu, 13 Sep 2012 08:34:32 +0000 (08:34 +0000)]
Add ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
Section Extraction Protocol

Signed-off-by: Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by  : Gao Liming<liming.gao@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13729 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:20:34 +0000 (10:20 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13728 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:19:50 +0000 (10:19 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13727 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
erictian [Wed, 12 Sep 2012 08:25:25 +0000 (08:25 +0000)]
SecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13726 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
erictian [Wed, 12 Sep 2012 08:24:10 +0000 (08:24 +0000)]
MdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13725 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: fix gPcAtChipsetPkgTokenSpaceGuid build break
jljusten [Wed, 12 Sep 2012 07:19:39 +0000 (07:19 +0000)]
OvmfPkg: fix gPcAtChipsetPkgTokenSpaceGuid build break

In OvmfPkgIa32X64.dsc:

Paraphrasing svn rev 13350: gPcAtChipsetPkgTokenSpaceGuid is declared in
PcAtChipsetPkg.dec and used via AcpiPlatformDxe.inf, but with the latest
build tools, since this package builds multiple architectures (IA32 & X64)
and AcpiPlatformDxe is used on X64 only, it is now necessary to place the
gPcAtChipsetPkgTokenSpaceGuid PCD's in the [PcdsFixedAtBuild.X64] section.

In the two other .dsc files:

Make a similar change to keep file contents more easily comparable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[jordan.l.justen@intel.com: change all .dsc files to keep them diffable]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13724 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: key PMBA setup in Platform PEI off of PMREGMISC/PMIOSE, not Xen
jljusten [Wed, 12 Sep 2012 07:19:28 +0000 (07:19 +0000)]
OvmfPkg: key PMBA setup in Platform PEI off of PMREGMISC/PMIOSE, not Xen

This matches the logic in AcpiTimerLib.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13723 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: enable PIIX4 IO space in the PEI phase
jljusten [Wed, 12 Sep 2012 07:19:16 +0000 (07:19 +0000)]
OvmfPkg: enable PIIX4 IO space in the PEI phase

I. There are at least three locations in OvmfPkg that manipulate the PMBA
and related PIIX4 registers.

1. MiscInitialization() [OvmfPkg/PlatformPei/Platform.c]
   module type: PEIM -- Pre-EFI Initialization Module
   (a) currently sets the PMBA only: 00.01.3 / 0x40 bits [15:6]

2. AcpiTimerLibConstructor() [OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c]
   module type: BASE -- probably callable anywhere after PEI
   (a) sets the PMBA if needed:      00.01.3 / 0x40 bits [15:6]
   (b) sets PCICMD/IOSE if needed:   00.01.3 / 0x04 bit  0
   (c) sets PMREGMISC/PMIOSE:        00.01.3 / 0x80 bit  0

3. AcpiInitialization() [OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c]
   module type: DXE_DRIVER -- Driver eXecution Environment
   (a) sets SCI_EN, which depends on correct PMBA setting from earlier

(
  The relative order of #1 and #3 is dictated minimally by their module
  types. Said relative order can be verified with the boot log:

       27 Loading PEIM at 0x00000822320 EntryPoint=0x00000822580
          PlatformPei.efi
       28 Platform PEIM Loaded
     1259 PlatformBdsInit
     1270 PlatformBdsPolicyBehavior

  Line 28 is printed by InitializePlatform()
  [OvmfPkg/PlatformPei/Platform.c] which is the entry point of that
  module. The other two lines are printed by the corresponding functions
  in "OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c".
)

Currently #2 (AcpiTimerLibConstructor()) is called in a random spot
(whenever it gets loaded from the firmware image) and masks the
insufficient setup in #1. We shouldn't depend on that, PEI should finish
with IO space being fully accessibe. In addition, PEI should program the
same PMBA value as AcpiTimerLib.

II. The PEI change notwithstanding, AcpiTimerLib should stay defensive and
ensure proper PM configuration for itself (either by confirming or by
doing).

III. Considering a possible cleanup/unification of #2 and #3: timer
functions relying on AcpiTimerLibConstructor(),

- MicroSecondDelay()
- NanoSecondDelay()
- GetPerformanceCounter()
- GetPerformanceCounterProperties()
- GetTimeInNanoSecond()

may be called before #3 is reached (in Boot Device Selection phase), so we
should not move the initialization from #2 to #3. (Again, AcpiTimerLib
should contain its own setup.)

We should also not move #3 to an earlier phase -- SCI_EN is premature
unless we're about to boot real soon ("enable generation of SCI upon
assertion of PWRBTN_STS, LID_STS, THRM_STS, or GPI_STS bits").

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13722 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib
jljusten [Wed, 12 Sep 2012 07:19:04 +0000 (07:19 +0000)]
OvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13721 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield
jljusten [Wed, 12 Sep 2012 07:18:50 +0000 (07:18 +0000)]
OvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield

The Index Register Base Address bitfield is selected by the binary mask
00000000 00000000 11111111 11000000, 0xFFC0; fix the typo.

Reported-by: Gleb Natapov <gleb@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13720 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: extract the PBMA used in AcpiTimerLib into a PCD
jljusten [Wed, 12 Sep 2012 07:18:35 +0000 (07:18 +0000)]
OvmfPkg: extract the PBMA used in AcpiTimerLib into a PCD

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13719 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: assorted whitespace removal
jljusten [Wed, 12 Sep 2012 07:18:21 +0000 (07:18 +0000)]
OvmfPkg: assorted whitespace removal

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13718 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix compile error
czhang46 [Wed, 12 Sep 2012 01:23:04 +0000 (01:23 +0000)]
Fix compile error

Signed-off-by : Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by   : Eric Dong  <Eric.Dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13717 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the error code info.
ydong10 [Tue, 11 Sep 2012 10:53:37 +0000 (10:53 +0000)]
Enhance the error code info.

Signed-off-by: Dong Eric <eric.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13716 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the comments.
ydong10 [Tue, 11 Sep 2012 10:26:44 +0000 (10:26 +0000)]
Enhance the comments.

Signed-off-by: Dong Eric <eric.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13715 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnable TPM measurement lib to measure all PE image from a FV unmeasured by TcgPei
czhang46 [Tue, 11 Sep 2012 02:26:50 +0000 (02:26 +0000)]
Enable TPM measurement lib to measure all PE image from a FV unmeasured by TcgPei

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong, Guo  <guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13714 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoModify UDP and IP to transmit on all network adapters instead of just the first netwo...
lpleahy [Mon, 10 Sep 2012 19:04:41 +0000 (19:04 +0000)]
Modify UDP and IP to transmit on all network adapters instead of just the first network adapter.
Fix comment in Socket.c.

Signed-off-by: lpleahy
Reviewed and tested by: Sreenivasula Reddy of Dell

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13713 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine code to make it more safely.
ydong10 [Mon, 10 Sep 2012 09:35:43 +0000 (09:35 +0000)]
Refine code to make it more safely.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13712 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the check for options in the question.
ydong10 [Mon, 10 Sep 2012 08:29:32 +0000 (08:29 +0000)]
Enhance the check for options in the question.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13711 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoWhen question not have storage with it, not restore old value for it.
ydong10 [Mon, 10 Sep 2012 03:03:40 +0000 (03:03 +0000)]
When question not have storage with it, not restore old value for it.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13710 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd type cast to avoid sign extension on x64 tip.
vanjeff [Mon, 10 Sep 2012 02:36:17 +0000 (02:36 +0000)]
Add type cast to avoid sign extension on x64 tip.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13709 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoWhen SerialPortWrite() is called with a non-NULL Buffer and NumberOfBytes is passed...
niruiyu [Mon, 10 Sep 2012 02:32:45 +0000 (02:32 +0000)]
When SerialPortWrite() is called with a non-NULL Buffer and NumberOfBytes is passed in as 0, just do a flush.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Kinney Michael D<michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13708 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCache the state whether the ROM image contains EFI Option ROM when loading the ROM...
niruiyu [Fri, 7 Sep 2012 03:15:25 +0000 (03:15 +0000)]
Cache the state whether the ROM image contains EFI Option ROM when loading the ROM content from PCI device to memory to avoid re-parsing the ROM image to check the EFI Option ROM.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Elvin Li<elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13707 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix always allocate memory issue.
ydong10 [Fri, 7 Sep 2012 01:55:33 +0000 (01:55 +0000)]
Fix always allocate memory issue.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13706 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix display color error when scroll up/down the screen.
ydong10 [Fri, 7 Sep 2012 01:54:47 +0000 (01:54 +0000)]
Fix display color error when scroll up/down the screen.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13705 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the memory leak issue and enhance the check for CoreReadImageFile return.
lzeng14 [Fri, 7 Sep 2012 01:35:44 +0000 (01:35 +0000)]
Fix the memory leak issue and enhance the check for CoreReadImageFile return.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ting Ye <ting.ye@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13704 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCheck the return code from CoreLocateDevicePath() in MdeModulePkg/Core/Dxe/Image...
lzeng14 [Thu, 6 Sep 2012 05:00:34 +0000 (05:00 +0000)]
Check the return code from CoreLocateDevicePath() in MdeModulePkg/Core/Dxe/Image/Image.c CoreLoadImageCommon().

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13703 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoTcgPei is a generic module, so move PcdFirmwareVersionString to generic Pcd list
czhang46 [Thu, 6 Sep 2012 02:46:07 +0000 (02:46 +0000)]
TcgPei is a generic module, so move PcdFirmwareVersionString to generic Pcd list

Signed-off-by : Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by   : Guo Dong   <guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13702 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoCheck the value of Hdr.dwLength for signed EFI image before image validation.
sfu5 [Thu, 6 Sep 2012 02:15:59 +0000 (02:15 +0000)]
Check the value of Hdr.dwLength for signed EFI image before image validation.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13701 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine coding style.
ydong10 [Wed, 5 Sep 2012 08:46:51 +0000 (08:46 +0000)]
Refine coding style.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13700 6f19259b-4bc3-4df7-8a09-765794883524

9 years agofix compile error in TcgPei
czhang46 [Wed, 5 Sep 2012 00:32:12 +0000 (00:32 +0000)]
fix compile error in TcgPei

signed-off-by: Zhang Chao <chao.b.zhang@intel.com>
reviewed-by  : Dong Guo   <guo.dong@inte.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13699 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSet mode 0 (80x25) when Consplitter does not exist.
li-elvin [Tue, 4 Sep 2012 09:43:22 +0000 (09:43 +0000)]
Set mode 0 (80x25) when Consplitter does not exist.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13698 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix build fail.
ydong10 [Tue, 4 Sep 2012 08:35:16 +0000 (08:35 +0000)]
Fix build fail.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13697 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRefine the code to make it more safely.
ydong10 [Mon, 3 Sep 2012 01:59:05 +0000 (01:59 +0000)]
Refine the code to make it more safely.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13696 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib: Fix possible compiler warnings when doing enumerate type comparison.
rsun3 [Mon, 3 Sep 2012 01:07:54 +0000 (01:07 +0000)]
StdLib: Fix possible compiler warnings when doing enumerate type comparison.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13695 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmbeddedPkg/MmcDxe: The timeout while waiting for the programming to be complete...
oliviermartin [Fri, 31 Aug 2012 16:29:23 +0000 (16:29 +0000)]
EmbeddedPkg/MmcDxe: The timeout while waiting for the programming to be complete was decreased twice.

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13694 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg: Changed Uncached System Memory from EFI_MEMORY_UC to EFI_MEMORY_WC
oliviermartin [Fri, 31 Aug 2012 16:24:01 +0000 (16:24 +0000)]
ArmPkg: Changed Uncached System Memory from EFI_MEMORY_UC to EFI_MEMORY_WC

EFI_MEMORY_UC is mapped to Strongly Ordered memory while EFI_MEMORY_WC is
mapped to Uncached Normal/System memory.
This change improve performance while accessing uncached regions in the
System Memory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Olivier Martin <oliviermartin@arm.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13693 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRestore EditBuffer before call the callback function to avoid get error data.
ydong10 [Thu, 30 Aug 2012 10:48:17 +0000 (10:48 +0000)]
Restore EditBuffer before call the callback function to avoid get error data.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13692 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoShould pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string...
erictian [Wed, 29 Aug 2012 09:23:34 +0000 (09:23 +0000)]
Should pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string length.

Signed-off-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13691 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd check for DevicePathNode.
lgao4 [Wed, 29 Aug 2012 05:10:30 +0000 (05:10 +0000)]
Add check for DevicePathNode.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13690 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEmulatorPkg/PlatformSmbiosDxe: Fix build issue with UNIXGCC
jljusten [Tue, 28 Aug 2012 21:21:57 +0000 (21:21 +0000)]
EmulatorPkg/PlatformSmbiosDxe: Fix build issue with UNIXGCC

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13689 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/BlockMmioToBlockIoDxe: Fix allocation size error
jljusten [Tue, 28 Aug 2012 21:21:44 +0000 (21:21 +0000)]
OvmfPkg/BlockMmioToBlockIoDxe: Fix allocation size error

When allocating the BLOCK_MMIO_TO_BLOCK_IO_DEVICE structure, we were
not allocating a large enough amount. We were allocating the size of
the pointer, rather than the size of the structure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13688 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOVMF X64: Allow enabling SOURCE_DEBUG_ENABLE on GCC44
jljusten [Tue, 28 Aug 2012 21:21:30 +0000 (21:21 +0000)]
OVMF X64: Allow enabling SOURCE_DEBUG_ENABLE on GCC44

Currently if SOURCE_DEBUG_ENABLE is enabled when building with
GCC44, then the SEC module will not fit into SECFV.

This change increases the size of SECFV to allow this.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13687 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix comparisons of enumerated types which may cause warnings for some compilers.
rsun3 [Tue, 28 Aug 2012 06:48:28 +0000 (06:48 +0000)]
Fix comparisons of enumerated types which may cause warnings for some compilers.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13686 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoTcgPei need to measure anything to PCR in S3 bootpath, so skip shadow logic.
czhang46 [Tue, 28 Aug 2012 03:16:10 +0000 (03:16 +0000)]
TcgPei need to measure anything to PCR in S3 bootpath, so skip shadow logic.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13685 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOnly disable Debug Timer for x64 platforms in S3RestoreConfig2().
vanjeff [Tue, 28 Aug 2012 02:37:45 +0000 (02:37 +0000)]
Only disable Debug Timer for x64 platforms in S3RestoreConfig2().

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13684 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: get boot order from QEMU
jljusten [Mon, 27 Aug 2012 23:28:30 +0000 (23:28 +0000)]
OvmfPkg: get boot order from QEMU

Set the boot order based on configuration retrieved from QEMU.

Attempt to retrieve the "bootorder" fw_cfg file from QEMU. Translate the
OpenFirmware device paths therein to UEFI device path fragments. Match the
translated fragments against the enumerated BootOptionList, and rewrite
the BootOrder NvVar so that it corresponds to the order described in
fw_cfg.

The user is expected to configure working boot options first.

Tested via virt-manager's boot order widget.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13683 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/PlatformPei: Shrink memory range for PCI MMIO allocation
jljusten [Mon, 27 Aug 2012 23:28:15 +0000 (23:28 +0000)]
OvmfPkg/PlatformPei: Shrink memory range for PCI MMIO allocation

Including the range of [0xFC000000, 0xFD000000) for PCI MMIO
allocation created a conflict for Xen's HVM loader.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13682 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoChange Bcfg.c to use the new definition of EFI_KEY_OPTION.
niruiyu [Mon, 27 Aug 2012 10:09:34 +0000 (10:09 +0000)]
Change Bcfg.c to use the new definition of EFI_KEY_OPTION.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Eric Dong<eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13681 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Add debug init flag DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 in Debug Agent Library.
vanjeff [Mon, 27 Aug 2012 08:36:23 +0000 (08:36 +0000)]
1. Add debug init flag DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 in Debug Agent Library.
2. Update Capsule modules to consume debug agent library to support source debugging in x64 code.
3. Update BootScriptExecutorDxe module to support source debugging on S3 path.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13680 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd comments to explain the reason return status is not checked. The return status...
li-elvin [Mon, 27 Aug 2012 08:20:27 +0000 (08:20 +0000)]
Add comments to explain the reason return status is not checked. The return status of KeyboardRead is not used.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13679 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoChange Bcfg.c to use the new definition of EFI_KEY_OPTION.
niruiyu [Mon, 27 Aug 2012 05:05:24 +0000 (05:05 +0000)]
Change Bcfg.c to use the new definition of EFI_KEY_OPTION.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Eric Dong<eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13678 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUse firmware version instead of hardcode string for S-CRTM version identifier
czhang46 [Mon, 27 Aug 2012 00:52:18 +0000 (00:52 +0000)]
Use firmware version instead of hardcode string for S-CRTM version identifier

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Fu, Siyuan <siyuan.fu@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13677 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix bugs in PXE driver when using option 43 for boot server list and boot menu prompt.
sfu5 [Fri, 24 Aug 2012 08:25:42 +0000 (08:25 +0000)]
Fix bugs in PXE driver when using option 43 for boot server list and boot menu prompt.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13676 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove MOR check box feature. should not have a switch to turn off MOR.
czhang46 [Fri, 24 Aug 2012 00:37:40 +0000 (00:37 +0000)]
Remove MOR check box feature. should not have a switch to turn off MOR.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong, Guo  <guo.dong@intel.com>
Reviewed-by  : Mike, Wu   <mike.wu@intel.com>
Reviewed-by  : Erik C Bjorge <erick.c.bjorge@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13675 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the bug in PciBusNoEnumerationDxe driver to correct parse the 64bit BAR.
niruiyu [Thu, 23 Aug 2012 12:28:42 +0000 (12:28 +0000)]
Fix the bug in PciBusNoEnumerationDxe driver to correct parse the 64bit BAR.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Rui Sun<rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13674 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the bug in PciBus driver to correct parse the 64bit BAR.
niruiyu [Thu, 23 Aug 2012 12:28:22 +0000 (12:28 +0000)]
Fix the bug in PciBus driver to correct parse the 64bit BAR.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Rui Sun<rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13673 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate the DxeImageVerificationLib to handle the signed image which CertType is set...
sfu5 [Thu, 23 Aug 2012 07:55:35 +0000 (07:55 +0000)]
Update the DxeImageVerificationLib to handle the signed image which CertType is set to EFI_CERT_TYPE_PKCS7_GUID.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13672 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Initialize certdb variable with correct value of list size.
sfu5 [Thu, 23 Aug 2012 06:53:51 +0000 (06:53 +0000)]
1. Initialize certdb variable with correct value of list size.
2. Use gloable database array instead of calling AllocateZeroPool in SetVariable.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13671 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix PeiCryptLib build issue.
tye1 [Thu, 23 Aug 2012 03:31:00 +0000 (03:31 +0000)]
Fix PeiCryptLib build issue.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13670 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd TcgDxeHashLogExtendEvent EventLogLastEntry parameter update logic
czhang46 [Thu, 23 Aug 2012 03:17:33 +0000 (03:17 +0000)]
Add TcgDxeHashLogExtendEvent  EventLogLastEntry parameter update logic

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong Guo <guo.dong@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13669 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Added SetLocalApicBaseAdress() and GetLocalApicBaseAddress() APIs in Local APIC...
vanjeff [Thu, 23 Aug 2012 01:42:01 +0000 (01:42 +0000)]
1. Added SetLocalApicBaseAdress() and GetLocalApicBaseAddress() APIs in Local APIC library.
2. Updated Local APIC library instances to get Local APIC base Address by invoking GetLocalApicBaseAddress() instead of by PCD PcdCpuLocalApicBaseAddress.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Kinney Michael D <michael.d.kinney@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13668 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoSet correct DS/ES/FS/GS/SS segment selectors after GDT loaded.
vanjeff [Wed, 22 Aug 2012 08:56:50 +0000 (08:56 +0000)]
Set correct DS/ES/FS/GS/SS segment selectors after GDT loaded.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13667 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoGet correct GOP protocol for physical GOP device.
li-elvin [Wed, 22 Aug 2012 08:52:04 +0000 (08:52 +0000)]
Get correct GOP protocol for physical GOP device.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13666 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the check for some fields in the PE image before use it.
ydong10 [Wed, 22 Aug 2012 08:04:53 +0000 (08:04 +0000)]
Enhance the check for some fields in the PE image before use it.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jiewen Yao<jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13665 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd additional delay in DHCP6 InfoRequest interface to wait for link local address...
sfu5 [Wed, 22 Aug 2012 08:01:19 +0000 (08:01 +0000)]
Add additional delay in DHCP6 InfoRequest interface to wait for link local address DAD to finish.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: qianouyang <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13664 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg/AtaAtapiPassThru: Move error check behind the place that SetupFIS frame...
erictian [Wed, 22 Aug 2012 07:12:10 +0000 (07:12 +0000)]
MdeModulePkg/AtaAtapiPassThru: Move error check behind the place that SetupFIS frame is received.

This way is used to avoid that the subsequent operations are treated as failure if the last operation is wrong.

Signed-off-by: Tian Feng <feng.tian@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13663 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRoll back one unnecessary change in Dispatcher.c, which is added by previous patch.
lgao4 [Wed, 22 Aug 2012 02:44:05 +0000 (02:44 +0000)]
Roll back one unnecessary change in Dispatcher.c, which is added by previous patch.

Signed-off-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13662 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 02:33:00 +0000 (02:33 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Update three Security Handlers to depend on new SecurityManagementLib APIs to register Security service for SAP2

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13661 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 02:32:12 +0000 (02:32 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Update SecurityManagementLib to support SAP2 and SAP services.
2. Update SecurityStub driver to produce SAP2 and SAP protocol both.
3. Update DxeCore and SmmCore to use SAP2 and SAP service to verify Image.
4. Update DxeCore ConnectController() to use SAP2 service to check user permission.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13660 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoChange the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields.
niruiyu [Wed, 22 Aug 2012 02:24:40 +0000 (02:24 +0000)]
Change the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields.
Change the BDS module in IntelFrameworkModulePkg to use the new EFI_BOOT_KEY_DATA definition.

Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com>
Reviewed-by: Eric Dong<eric.dong@intel.com>
Reviewed-by: Kinney Michael D<michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13659 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd PI1.2.1 SAP2 support and UEFI231B mantis 896
lgao4 [Wed, 22 Aug 2012 01:30:23 +0000 (01:30 +0000)]
Add PI1.2.1 SAP2 support and UEFI231B mantis 896
1. Add SAP2 protocol definition in MdePkg

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Guo Dong <dong.guo@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13658 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the check when ImageRead function return.
ydong10 [Tue, 21 Aug 2012 08:38:58 +0000 (08:38 +0000)]
Enhance the check when ImageRead function return.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13657 6f19259b-4bc3-4df7-8a09-765794883524