10 years agoAdd new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
ydong10 [Wed, 30 May 2012 07:36:00 +0000 (07:36 +0000)]
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also replace old interface with new one.

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

rsun3 [Wed, 30 May 2012 05:24:42 +0000 (05:24 +0000)]

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

10 years agoAccording to UEFI spec 2.3.1a. hardware error record variable should use the EFI_HARD...
lzeng14 [Wed, 30 May 2012 02:53:10 +0000 (02:53 +0000)]
According to UEFI spec 2.3.1a. hardware error record variable should use the EFI_HARDWARE_ERROR_VARIABLE VendorGuid and have the L"HwErrRec####" name convention, #### is a printed hex value and no 0x or h is included in the hex value.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13373 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoReturn EFI_WRITE_PROTECTED when setting HwErrRecSupport Global Variable at runtime.
lzeng14 [Wed, 30 May 2012 02:42:26 +0000 (02:42 +0000)]
Return EFI_WRITE_PROTECTED when setting HwErrRecSupport Global Variable at runtime.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13372 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEnable wide string for title and help string
ydong10 [Tue, 29 May 2012 11:07:05 +0000 (11:07 +0000)]
Enable wide string for title and help string

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

10 years agoMdeModulePkg/Ata: Clear PxCmd.SUD bit when the port has no device presented at AHCI...
erictian [Tue, 29 May 2012 07:05:33 +0000 (07:05 +0000)]
MdeModulePkg/Ata: Clear PxCmd.SUD bit when the port has no device presented at AHCI mode.

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

10 years agoMdeModulePkg/Ata: Use a new Pcd named "PcdAtaSmartEnable" to control if enabling...
erictian [Tue, 29 May 2012 06:59:26 +0000 (06:59 +0000)]
MdeModulePkg/Ata: Use a new Pcd named "PcdAtaSmartEnable" to control if enabling S.M.A.R.T feature by default.

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

10 years agoUpdate DxeCore and FwVolDxe drivers to inherit authentication status for the FV image...
lzeng14 [Tue, 29 May 2012 05:22:01 +0000 (05:22 +0000)]
Update DxeCore and FwVolDxe drivers to inherit authentication status for the FV image, if the image came from an FV image file and section in another firmware volume.

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

10 years agoOptimize the log entry search algorithm to save boot performance.
lzeng14 [Tue, 29 May 2012 05:02:43 +0000 (05:02 +0000)]
Optimize the log entry search algorithm to save boot performance.
1. Search from the first entry can be changed to Search from the end entry, because most End just follows its Start.
2. Match Start and End entry, the first comparison can be changed from Handle to EndTimeStamp, because only zero EndTimeStamp is required to be matched.

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

10 years agoRefine the code to follow coding style.
ydong10 [Mon, 28 May 2012 07:03:26 +0000 (07:03 +0000)]
Refine the code to follow coding style.

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

10 years agoUpdate to use correct file name for video option.
niruiyu [Mon, 28 May 2012 06:37:32 +0000 (06:37 +0000)]
Update to use correct file name for video option.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13365 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix a bug in DxeImageVerificationLib to use the correct certificate length when verif...
sfu5 [Mon, 28 May 2012 04:51:53 +0000 (04:51 +0000)]
Fix a bug in DxeImageVerificationLib to use the correct certificate length when verifying a signed EFI image.

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

10 years agoFix build failed
ydong10 [Mon, 28 May 2012 02:39:50 +0000 (02:39 +0000)]
Fix build failed

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

10 years agoRefine logic about validate boot option.
ydong10 [Fri, 25 May 2012 05:04:13 +0000 (05:04 +0000)]
Refine logic about validate boot option.

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

10 years agoMove PcdExtFpdtBootRecordPadSize to the correct PCD section in MdeModulePkg.dec to...
lgao4 [Fri, 25 May 2012 03:25:43 +0000 (03:25 +0000)]
Move PcdExtFpdtBootRecordPadSize to the correct PCD section in MdeModulePkg.dec to support all PCD types.

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

10 years agoCorrect a bug in AsmCpuidEx() to return correct ECX and EDX.
niruiyu [Fri, 25 May 2012 03:02:26 +0000 (03:02 +0000)]
Correct a bug in AsmCpuidEx() to return correct ECX and EDX.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13359 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoRemove the check of signature because the code which looks for the input NotifyHandle...
niruiyu [Thu, 24 May 2012 08:29:09 +0000 (08:29 +0000)]
Remove the check of signature because the code which looks for the input NotifyHandle in the internal linked list is enough.
Enhance ConSplitter to register hot keys for new connected consoles.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13358 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoMdePkg UefiTcgPlatform.h: Add definition for EV_CPU_MICROCODE event type.
rsun3 [Thu, 24 May 2012 05:23:33 +0000 (05:23 +0000)]
MdePkg UefiTcgPlatform.h: Add definition for EV_CPU_MICROCODE event type.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13357 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEnhance the ConPlatform driver's matching algorithm to manage the console controller...
niruiyu [Thu, 24 May 2012 03:33:39 +0000 (03:33 +0000)]
Enhance the ConPlatform driver's matching algorithm to manage the console controller when it shares the same parent with a certain instance in the "ConOut".

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

10 years agoSync BaseTools Trunk (version r2524) to EDKII main trunk.
lgao4 [Wed, 23 May 2012 08:27:14 +0000 (08:27 +0000)]
Sync BaseTools Trunk (version r2524) to EDKII main trunk.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liu Yingke <yingke.d.liu@intel.com>
Reviewed-by: Yurui Zeng <yurui.zeng@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13353 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate the way to allocate high PMM, firstly try to allocate high PMM below 16MB...
li-elvin [Wed, 23 May 2012 07:26:17 +0000 (07:26 +0000)]
Update the way to allocate high PMM, firstly try to allocate high PMM below 16MB, if it fails, allocate high PMM below 4GB.

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

10 years agoupdate copyright format
hhtian [Wed, 23 May 2012 00:47:12 +0000 (00:47 +0000)]
update copyright format

Signed-off-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13351 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix build break in OvmfPkgIa32X64.dsc where gEfiSecurityPkgTokenSpaceGuid was no...
leegrosenbaum [Wed, 23 May 2012 00:22:50 +0000 (00:22 +0000)]
Fix build break in OvmfPkgIa32X64.dsc where gEfiSecurityPkgTokenSpaceGuid was no longer found.

It is declared in SecurityPkg.dec, but with the latest build tools, since this package builds multiple architectures (IA32 & X64) and there are no IA32 modules used from the SecurityPkg, it is now necessary to place the gEfiSecurityPkgTokenSpaceGuid PCD's in a [PcdsFixedAtBuild.X64] section.

Signed-off-by: lee.g.rosenbaum@intel.com
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13350 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoShellPkg: Enable Ctrl-C characters to be processed over serial interfaces that do...
jcarsey [Tue, 22 May 2012 22:16:37 +0000 (22:16 +0000)]
ShellPkg: Enable Ctrl-C characters to be processed over serial interfaces that do not pass control key modifiers (like SimpleTextInOutSerial)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
reviewed-by: Jaben Carsey jaben.carsey@intel.com

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

10 years agoSNP driver for ASIX Electronics AX88772 found in SMC Networks SMC2209 USB/Ethernet...
lpleahy [Tue, 22 May 2012 17:08:33 +0000 (17:08 +0000)]
SNP driver for ASIX Electronics AX88772 found in SMC Networks SMC2209 USB/Ethernet 10/100 adapter.

Signed-off-by: lpleahy
Contributed-by: Intel
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13348 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoMdePkg: Add Eject/Read12/Write12 cmds to Atapi.h
erictian [Tue, 22 May 2012 08:07:42 +0000 (08:07 +0000)]
MdePkg: Add Eject/Read12/Write12 cmds to Atapi.h

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

10 years agoUpdate PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT messag...
lgao4 [Mon, 21 May 2012 06:10:21 +0000 (06:10 +0000)]
Update PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT message if ASSERT message is too big.

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

10 years agoUefiCpuPkg: Added code to enable Local APIC.
geekboy15a [Fri, 18 May 2012 20:29:14 +0000 (20:29 +0000)]
UefiCpuPkg: Added code to enable Local APIC.

This patch enables interrupt delivery via the Local APIC as part of the initialization process.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13338 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoDuetPkg: Enabled build with new version of CpuDxe driver.
geekboy15a [Fri, 18 May 2012 20:22:36 +0000 (20:22 +0000)]
DuetPkg: Enabled build with new version of CpuDxe driver.

Added a definition to the LocalApicLib in the project files to allow Duet to build with the updated version of the CpuDxe driver.

Tracker: 207345

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13337 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoClean ParentHandle field when image is loaded directly from the firmware's boot manager.
ydong10 [Fri, 18 May 2012 02:43:23 +0000 (02:43 +0000)]
Clean ParentHandle field when image is loaded directly from the firmware's boot manager.

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

10 years agoAdd logic to validate variable before use it.
ydong10 [Fri, 18 May 2012 02:24:25 +0000 (02:24 +0000)]
Add logic to validate variable before use it.

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

10 years agoAdd logic to validate console variables when enter BDS.
ydong10 [Fri, 18 May 2012 02:13:29 +0000 (02:13 +0000)]
Add logic to validate console variables when enter BDS.

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

jyao1 [Wed, 16 May 2012 06:03:55 +0000 (06:03 +0000)]

signed off by: jiewen.yao@intel.com
reviewed by: rui.sun@intel.com

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

10 years agoAdd Perf log for SMM driver Load and Start Image.
lgao4 [Wed, 16 May 2012 00:55:04 +0000 (00:55 +0000)]
Add Perf log for SMM driver Load and Start Image.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Siddharth Shah <Siddharth.Shah@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13314 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to...
lgao4 [Wed, 16 May 2012 00:42:41 +0000 (00:42 +0000)]
Update MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to follow UEFI spec.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D. Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13313 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to...
lgao4 [Wed, 16 May 2012 00:42:21 +0000 (00:42 +0000)]
Update MdePkg and EdkCompatibilityPkg INT8 definition to be typedef signed char to follow UEFI spec.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D. Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13312 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoMdeModulePkg/UsbMassStorage: Add 16 byte SCSI cmds support if the last LBA can not...
erictian [Mon, 14 May 2012 07:50:07 +0000 (07:50 +0000)]
MdeModulePkg/UsbMassStorage: Add 16 byte SCSI cmds support if the last LBA can not be presented by 4bytes width

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Li Elvin <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13311 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpdate auth-variable and secure boot UI driver to support only time-based PK, KEK...
sfu5 [Mon, 14 May 2012 07:36:20 +0000 (07:36 +0000)]
Update auth-variable and secure boot UI driver to support only time-based PK, KEK and Signature Database variable variable according to UEFI Spec requirement.

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

10 years agoEnhance TcgSmm driver to handle potential SetVariable failure case.
gdong1 [Fri, 11 May 2012 05:10:57 +0000 (05:10 +0000)]
Enhance TcgSmm driver to handle potential SetVariable failure case.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13309 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoAdd logic to validate new input value with minimum.
ydong10 [Fri, 11 May 2012 03:09:07 +0000 (03:09 +0000)]
Add logic to validate new input value with minimum.

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

10 years agoThe code line where judges if offset exceed the FTW work space boundary, in some...
lzeng14 [Fri, 11 May 2012 01:48:45 +0000 (01:48 +0000)]
The code line where judges if offset exceed the FTW work space boundary, in some special situations where there are so many records, the offset may happen to be just equal to FtwWorkSpaceSize. And then FtwHead will be updated to be outside of work space wrongly, and cause the system to hang in this driver.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13307 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEnhance the code logic for RelocateBlockDescriptors.
lzeng14 [Fri, 11 May 2012 01:44:14 +0000 (01:44 +0000)]
Enhance the code logic for RelocateBlockDescriptors.

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

10 years agoCurrently, CapsulePei assumes ScatterGatherList are all related. But, UEFI spec has...
lzeng14 [Fri, 11 May 2012 01:41:28 +0000 (01:41 +0000)]
Currently, CapsulePei assumes ScatterGatherList are all related. But, UEFI spec has no such requirement, ScatterGatherList may be standalone. So update CapsulePei to only ignore the invalid ScatterGatherList, and still keep the valid ScatterGatherList.

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

10 years agoMake sure CapsuleImage size is equal or less than DataBlock Size. And when copy the...
lzeng14 [Fri, 11 May 2012 01:37:23 +0000 (01:37 +0000)]
Make sure CapsuleImage size is equal or less than DataBlock Size. And when copy the Capsule data from DataBlock to the continuous memory, CapsuleImage size should be used instead of DataBlock.

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

10 years agoDestPtr may point to the lower aligned address in the free memory region (FreeMemBase...
lzeng14 [Fri, 11 May 2012 01:33:01 +0000 (01:33 +0000)]
DestPtr may point to the lower aligned address in the free memory region (FreeMemBase, FreeMemBase + FreeMemSize), the free memory region may be updated to override the private signature. So update FreeMemSize to avoid the potential overlap.

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

10 years agoUpdate CapsuleCoalesce() to return the correct size of the coalesced capsule include...
lzeng14 [Fri, 11 May 2012 01:27:59 +0000 (01:27 +0000)]
Update CapsuleCoalesce() to return the correct size of the coalesced capsule include PrivateData, CapsuleImageData, CapsuleNumber and CapsuleOffset array.

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

10 years agoEnhance the logic when extract data from storage.
ydong10 [Thu, 10 May 2012 08:00:22 +0000 (08:00 +0000)]
Enhance the logic when extract data from storage.

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

10 years agoUse current time value as default random seed in BaseCryptLib.
tye1 [Thu, 10 May 2012 07:58:02 +0000 (07:58 +0000)]
Use current time value as default random seed in BaseCryptLib.

Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13300 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFixes buffer read overflow bugs in authenticated variable driver.
sfu5 [Wed, 9 May 2012 10:45:09 +0000 (10:45 +0000)]
Fixes buffer read overflow bugs in authenticated variable driver.

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

10 years agoFix always reboot issue for an invalid physical presence operation request.
gdong1 [Wed, 9 May 2012 08:24:29 +0000 (08:24 +0000)]
Fix always reboot issue for an invalid physical presence operation request.

Signed-off by: Dong Guo <guo.dong@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@13297 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUse PartitionHeader->SizeOfPartitionEntry instead of sizeof (EFI_PARTITION_ENTRY).
niruiyu [Wed, 9 May 2012 05:21:43 +0000 (05:21 +0000)]
Use PartitionHeader->SizeOfPartitionEntry instead of sizeof (EFI_PARTITION_ENTRY).

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13296 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFix the potential issue that NULL pointer may be referred in LoadImage().
lgao4 [Tue, 8 May 2012 03:10:37 +0000 (03:10 +0000)]
Fix the potential issue that NULL pointer may be referred in LoadImage().

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

10 years agoEnhance ACPI FPDT DXE and SMM driver to accept the extension boot records.
lgao4 [Tue, 8 May 2012 03:09:54 +0000 (03:09 +0000)]
Enhance ACPI FPDT DXE and SMM driver to accept the extension boot records.

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

10 years agoRemoves redundant code and adds data size check for certificate data in DxeImageVerif...
tye1 [Tue, 8 May 2012 02:53:49 +0000 (02:53 +0000)]
Removes redundant code and adds data size check for certificate data in DxeImageVerificationLib.

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

10 years agoEnhance SmbiosDxe driver:
lzeng14 [Tue, 8 May 2012 01:33:23 +0000 (01:33 +0000)]
Enhance SmbiosDxe driver:
1. If string length exceeds 65535 bytes, return error. So infinite loop will not happen because of UINTN overflow.
2. When a SMBIOS entry is added or updated, check if the total length of SMBIOS table exceeds 65535 bytes, if it happens, return error.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13290 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoUpgrade openssl version to 0.98w.
tye1 [Mon, 7 May 2012 10:29:58 +0000 (10:29 +0000)]
Upgrade openssl version to 0.98w.

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

10 years agoFix memory leak issues.
ydong10 [Mon, 7 May 2012 08:51:42 +0000 (08:51 +0000)]
Fix memory leak issues.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg/AcpiTables: Change the ACPI PM Base Adress to 0xb000
jljusten [Fri, 4 May 2012 15:02:33 +0000 (15:02 +0000)]
OvmfPkg/AcpiTables: Change the ACPI PM Base Adress to 0xb000

0xb000 is the address normally used with QEMU.

0x400 also appears to conflict with some debug I/O ports
used by QEMU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13279 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL
jljusten [Fri, 4 May 2012 15:01:56 +0000 (15:01 +0000)]
OvmfPkg PlatformBdsLib: Set SCI_EN bit of PMCNTRL

If the bit is not set, then the only method ACPI defines
for setting it is to use the SMI SCI enable code path.

Since OVMF does not support SMM, we must enable the
bit during boot.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13278 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg/AcpiTables: Set SMI ACPI Enable/Disable fields to 0
jljusten [Fri, 4 May 2012 15:01:39 +0000 (15:01 +0000)]
OvmfPkg/AcpiTables: Set SMI ACPI Enable/Disable fields to 0

OVMF does not support SMM. Previously the port value
was set to 0. This should be enough to disable the
SMM ACPI Enable/Disable code paths, but to be
consistent we'll set these fields to 0 as well.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13277 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoOvmfPkg/AcpiTables: Update GPE0 block address range for QEMU
jljusten [Fri, 4 May 2012 15:01:24 +0000 (15:01 +0000)]
OvmfPkg/AcpiTables: Update GPE0 block address range for QEMU

QEMU hard codes the GPE0 registers at 0xafe0.

Previously the code assumed that the GPE0 block
would move when the PM Base Address of the PIIX4
PCI device was programmed. It appears QEMU does not
emulate this behaviour of the PIIX4 PCI device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Bei Guan <gbtju85@gmail.com>
Reviewed-by: Bei Guan <gbtju85@gmail.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13276 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoCurrently restoring PCI attributes are put in child uninstall logic, if one child...
li-elvin [Fri, 4 May 2012 12:21:41 +0000 (12:21 +0000)]
Currently restoring PCI attributes are put in child uninstall logic, if one child is uninstalled, PCI attributes are restored, it will bring problem for stopping the next child. we do not restore the PCI attributes until all child handles are uninstalled.

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

10 years agoCorrect an error in Aprint function.
ydong10 [Fri, 4 May 2012 05:59:26 +0000 (05:59 +0000)]
Correct an error in Aprint function.

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

10 years agoUpdate the logic related to get section header offset for TE image.
ydong10 [Fri, 4 May 2012 05:11:07 +0000 (05:11 +0000)]
Update the logic related to get section header offset for TE image.

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

10 years agoEmbeddedPkg/Ebl: Returned an error message when a command is not supported
oliviermartin [Wed, 2 May 2012 20:19:52 +0000 (20:19 +0000)]
EmbeddedPkg/Ebl: Returned an error message when a command is not supported

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

10 years agoArmPlatformPkg: Replaced 'ArmGicSecLib' by 'ArmGicLib'
oliviermartin [Wed, 2 May 2012 20:19:00 +0000 (20:19 +0000)]
ArmPlatformPkg: Replaced 'ArmGicSecLib' by 'ArmGicLib'

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

10 years agoArmPlatformPkg/Bds: Fixed Memory Corruption when updating the path of a Linux initrd
oliviermartin [Wed, 2 May 2012 20:17:36 +0000 (20:17 +0000)]
ArmPlatformPkg/Bds: Fixed Memory Corruption when updating the path of a Linux initrd

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

10 years agoBeagleBoardPkg/b.bat: Updated RVCT toolchain name
oliviermartin [Wed, 2 May 2012 20:16:38 +0000 (20:16 +0000)]
BeagleBoardPkg/b.bat: Updated RVCT toolchain name

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

10 years agoArmPlatformPkg/DebugSecExtraActionLib: Added Warning comment to signal the DRAM must...
oliviermartin [Wed, 2 May 2012 20:15:49 +0000 (20:15 +0000)]
ArmPlatformPkg/DebugSecExtraActionLib: Added Warning comment to signal the DRAM must be inititalized at this stage

Since the System Memory initialization has been moved inside ArmPlatformSecLib
on some platforms, the use of this library could crash if the firmware engineer
forgot to initialize the DRAM.
This library 'patches' the DRAM to add an infinite loop.

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

10 years agoArmPkg/ArmCpuLib: Fixed SMP Cortex-A9 and Cortex-A15
oliviermartin [Wed, 2 May 2012 20:14:55 +0000 (20:14 +0000)]
ArmPkg/ArmCpuLib: Fixed SMP Cortex-A9 and Cortex-A15

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

10 years agoArmPlatformPkg: Introduced 'ArmPlatformSecLib'
oliviermartin [Wed, 2 May 2012 20:13:32 +0000 (20:13 +0000)]
ArmPlatformPkg: Introduced 'ArmPlatformSecLib'

The function only used in Secure Firmware used to be mixed with
the Non-Secure/Normal functions in ArmPlatformLib.
When the Secure Firmware was not required for some platforms (eg:
BeagleBoard), these functions were empty functions.
This new interface has been created to clean the ArmPlatformLib
interface between the SEC and PEI phases.

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

10 years agoArmPkg/ArmGicLib: Replaced 'ArmGicAcknowledgeSgiFrom' by 'ArmGicAcknowledgeInterrupt'
oliviermartin [Wed, 2 May 2012 20:09:16 +0000 (20:09 +0000)]
ArmPkg/ArmGicLib: Replaced 'ArmGicAcknowledgeSgiFrom' by 'ArmGicAcknowledgeInterrupt'

The function 'ArmGicAcknowledgeSgiFrom' was actually acknowledging Interrupts (and not only SGIs).

ArmPkg/ArmGicLib: Introduced the PCD PcdGicPrimaryCoreId

This PCD defines the Id of the primary core in the GIC.

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

10 years agoArmPkg/ArmGicLib: Changed ArmGicSendSgiTo() to allow to send a specific SGI
oliviermartin [Wed, 2 May 2012 20:08:03 +0000 (20:08 +0000)]
ArmPkg/ArmGicLib: Changed ArmGicSendSgiTo() to allow to send a specific SGI

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

10 years agoArmPkg/ArmLib: Added ARM Cpu IDs
oliviermartin [Wed, 2 May 2012 20:06:36 +0000 (20:06 +0000)]
ArmPkg/ArmLib: Added ARM Cpu IDs

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

10 years agoArmPkg/ArmLib: Fixed MpCore macros
oliviermartin [Wed, 2 May 2012 20:05:36 +0000 (20:05 +0000)]
ArmPkg/ArmLib: Fixed MpCore macros

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

10 years agoEmbeddedPkg/SerialDxe: Do not block UART when no data is available on the port
oliviermartin [Wed, 2 May 2012 20:04:42 +0000 (20:04 +0000)]
EmbeddedPkg/SerialDxe: Do not block UART when no data is available on the port

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

10 years agoArmPlatformPkg/PL35xSmc: Added function PL35xSmcSetRefresh
oliviermartin [Wed, 2 May 2012 20:04:00 +0000 (20:04 +0000)]
ArmPlatformPkg/PL35xSmc: Added function PL35xSmcSetRefresh

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

10 years agoArmPkg/ArmLib: Added new functions to access ARM coprocessors
oliviermartin [Wed, 2 May 2012 20:02:39 +0000 (20:02 +0000)]
ArmPkg/ArmLib: Added new functions to access ARM coprocessors

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

10 years agoARM Packages: Fixed th 'NS' (Non Secure) bit in the MMU page Table Descriptor
oliviermartin [Wed, 2 May 2012 20:00:54 +0000 (20:00 +0000)]
ARM Packages: Fixed th 'NS' (Non Secure) bit in the MMU page Table Descriptor

The 'NS' bit must only be set in Secure world to define the Non-Secure region
of the Non-Secure World.
This bit must not be set in Non-Secure World.

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

10 years agoArmPkg/PeCoffExtraActionLib: Enabled DS-5 command line when using ARM Toolchain v5
oliviermartin [Wed, 2 May 2012 19:58:46 +0000 (19:58 +0000)]
ArmPkg/PeCoffExtraActionLib: Enabled DS-5 command line when using ARM Toolchain v5

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

10 years agoArmPkg/ArmCpuLib: Removed unused files
oliviermartin [Wed, 2 May 2012 19:57:43 +0000 (19:57 +0000)]
ArmPkg/ArmCpuLib: Removed unused files

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

10 years agoArmPkg/ArmCpuLib: Replaced complex functions ArmCpuSynchronizeWait & ArmCpuSynchroniz...
oliviermartin [Wed, 2 May 2012 19:55:32 +0000 (19:55 +0000)]
ArmPkg/ArmCpuLib: Replaced complex functions ArmCpuSynchronizeWait & ArmCpuSynchronizeSignal by sev & wfe

Previsouly the synchronization of MpCore was using the SGI (Software
Generated Interrupt) to synchronize MpCore during the early boot.
This commit replaced this mechanism by the more appropriate SEV/WFE
instructions (Send/Wait Event instructions).
That also eases the port to a new cpu/platform.

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

10 years agoArmPlatformPkg/ArmPlatformGlobalVariableLib: Fixed calculation of GlobalVariableBase
oliviermartin [Wed, 2 May 2012 19:54:21 +0000 (19:54 +0000)]
ArmPlatformPkg/ArmPlatformGlobalVariableLib: Fixed calculation of GlobalVariableBase

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

10 years agoArmPlatformPkg: Removed the 'Identify' functions
oliviermartin [Wed, 2 May 2012 19:52:49 +0000 (19:52 +0000)]
ArmPlatformPkg: Removed the 'Identify' functions

This function was introduced in some drivers to check if the ARM controller
was present in the memory map.
It was using a 8 bit access to get the value from the Identification registers.
These accesses could generate access error on some buses. Instead of replacing
the 8bit access by a 32bit access, these fcuntions have been removed because
they are only useful when the boot firmware is ported on a new platform.

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

10 years agoArmPlatformPkg/ArmPlatformGlobalVariableLib: Added new function ArmPlatformGetGlobalV...
oliviermartin [Wed, 2 May 2012 19:51:08 +0000 (19:51 +0000)]
ArmPlatformPkg/ArmPlatformGlobalVariableLib: Added new function ArmPlatformGetGlobalVariableAddress()

This function returns the address of a Global Variable in the Global Variable Region.

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

10 years agoArmPlatformPkg: Renamed and Invoked earlier ArmPlatformNormalInitialize()
oliviermartin [Wed, 2 May 2012 19:49:35 +0000 (19:49 +0000)]
ArmPlatformPkg: Renamed and Invoked earlier ArmPlatformNormalInitialize()

- ArmPlatformNormalInitialize() has been renamed into ArmPlatformInitialize()
- Make the function be called at the early stage of the PEI phase as some
  platforms require their interconnects or clocks to be initialize before any
  access to Timers or UARTs.

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

10 years agoArmPkg: Replaced gArmTokenSpaceGuid.PcdGicNumInterrupts by ArmGicGetMaxNumInterrupts()
oliviermartin [Wed, 2 May 2012 19:48:00 +0000 (19:48 +0000)]
ArmPkg: Replaced gArmTokenSpaceGuid.PcdGicNumInterrupts by ArmGicGetMaxNumInterrupts()

The maximum number of interrupts can be retrieve through the GIC distributor.

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

10 years agoARM Packages: Minor changes (fixed mispelling, line endings, incorrect comments)
oliviermartin [Wed, 2 May 2012 19:46:40 +0000 (19:46 +0000)]
ARM Packages: Minor changes (fixed mispelling, line endings, incorrect comments)

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

10 years agoMdeModulePkg: Fix EHCI module build warning reported by VS2005 tool chain.
erictian [Wed, 2 May 2012 06:21:43 +0000 (06:21 +0000)]
MdeModulePkg: Fix EHCI module build warning reported by VS2005 tool chain.

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

10 years agoUefiCpuPkg S3Resume2: Move the call to RestoreS3PageTables() earlier before SMM S3...
rsun3 [Wed, 2 May 2012 02:23:18 +0000 (02:23 +0000)]
UefiCpuPkg S3Resume2: Move the call to RestoreS3PageTables() earlier before SMM S3 resume.

SMM S3 resume may change memory cache type for flash memory range and thus RestoreS3PageTables() in which loops are executed to create page table would have negative performance impact on S3 resume. Move the call to RestoreS3PageTables() earlier before SMM S3 resume can avoid this issue.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13231 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEmulatorPkg/build.sh: Fix link issue for openSUSE
jljusten [Mon, 30 Apr 2012 23:50:08 +0000 (23:50 +0000)]
EmulatorPkg/build.sh: Fix link issue for openSUSE

Search for libdl to fix a link error on openSUSE 12.1

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13230 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoFixes issues with "Discard Changes and Exit" option in IPv6 driver's Advance Configur...
tye1 [Sat, 28 Apr 2012 09:43:31 +0000 (09:43 +0000)]
Fixes issues with "Discard Changes and Exit" option in IPv6 driver's Advance Configuration menu.

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

10 years ago Enhances PE image hash algorithm in DxeImageVerificationLib and DxeTpmMeasureBootLib.
tye1 [Sat, 28 Apr 2012 07:48:15 +0000 (07:48 +0000)]
 Enhances PE image hash algorithm in DxeImageVerificationLib and DxeTpmMeasureBootLib.

Signed-off-by: Ye Ting<ting.ye@intel.com>
Reviewed by: Dong, Eric <yong.dong@intel.com>
Reviewed by: Dong, Guo <guo.dong@intel.com>

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

10 years agoMdeModulePkg: Enlarge timeout value to wait set_address request success for large...
erictian [Sat, 28 Apr 2012 05:09:21 +0000 (05:09 +0000)]
MdeModulePkg: Enlarge timeout value to wait set_address request success for large capacity usb hard disk

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Li Elvin <elvin.li@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13227 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoMdeModulePkg: Skip to manage usb debug port in EDKII EHCI driver if it's used by...
erictian [Sat, 28 Apr 2012 05:02:54 +0000 (05:02 +0000)]
MdeModulePkg: Skip to manage usb debug port in EDKII EHCI driver if it's used by usb debug port driver

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13226 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEnhance the error handling for AllocatePool and AllocatePages function.
ydong10 [Fri, 27 Apr 2012 02:48:46 +0000 (02:48 +0000)]
Enhance the error handling for AllocatePool and AllocatePages function.

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

10 years agoEnable print error info when execute the application.
ydong10 [Fri, 27 Apr 2012 01:47:35 +0000 (01:47 +0000)]
Enable print error info when execute the application.

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

10 years agoUpdate comments in DmpStore.c to be more suitable.
lzeng14 [Fri, 27 Apr 2012 01:18:41 +0000 (01:18 +0000)]
Update comments in DmpStore.c to be more suitable.

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

10 years agoReturn EFI_INVALID_PARAMETER when Type has either EVT_NOTIFY_SIGNAL or EVT_NOTIFY_WAI...
lzeng14 [Thu, 26 Apr 2012 03:32:53 +0000 (03:32 +0000)]
Return EFI_INVALID_PARAMETER when Type has either EVT_NOTIFY_SIGNAL or EVT_NOTIFY_WAIT set and NotifyTpl is not a supported TPL level.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13222 6f19259b-4bc3-4df7-8a09-765794883524

10 years agoEnhance code to more safely and follow coding style.
ydong10 [Thu, 26 Apr 2012 02:00:30 +0000 (02:00 +0000)]
Enhance code to more safely and follow coding style.

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