mirror_edk2.git
9 years agoEmbeddedPkg/MmcDxe: Fixed XCLANG build
oliviermartin [Mon, 26 Mar 2012 12:28:05 +0000 (12:28 +0000)]
EmbeddedPkg/MmcDxe: Fixed XCLANG build

Move the constant array from its declaration inside the function to a global declaration.

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

9 years agoArmPlatformPkg/PrePi: Added Firmware Version String to the 'welcome' statement
oliviermartin [Mon, 26 Mar 2012 11:08:32 +0000 (11:08 +0000)]
ArmPlatformPkg/PrePi: Added Firmware Version String to the 'welcome' statement

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

9 years agoArmPlatformPkg/Sec: Change initial 'welcome' string from 'UEFI Firmware' to 'Secure...
oliviermartin [Mon, 26 Mar 2012 11:06:29 +0000 (11:06 +0000)]
ArmPlatformPkg/Sec: Change initial 'welcome' string from 'UEFI Firmware' to 'Secure/Boot Firmware'

The 'SEC' component is not part of the UEFI software stack.

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

9 years agoArmPlatformPkg/SP805WatchdogDxe: Removed late initialization capability from the...
oliviermartin [Mon, 26 Mar 2012 11:05:25 +0000 (11:05 +0000)]
ArmPlatformPkg/SP805WatchdogDxe: Removed late initialization capability from the watchdog

The watchdog driver is a UEFI architectural driver. The watchdog controller
is always going to be intialized.

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

9 years agoArmPlatformPkg: Fixed gcc build (minor change)
oliviermartin [Mon, 26 Mar 2012 11:04:25 +0000 (11:04 +0000)]
ArmPlatformPkg: Fixed gcc build (minor change)

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

9 years agoArmPlatformPkg/Sec: Allowed the Secondary Cores to set the Secure/Non Secure bits...
oliviermartin [Mon, 26 Mar 2012 11:03:36 +0000 (11:03 +0000)]
ArmPlatformPkg/Sec: Allowed the Secondary Cores to set the Secure/Non Secure bits to their PPIs

The GICD_IGROUPR0 is banked for each connected processor. It means the
Non-Secure bits for the PPIs (Private Peripheral Interrupts) must be
configured for every processor.

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

9 years agoArmLib/ArmV7: Add ISB to ArmEnableVFP
oliviermartin [Mon, 26 Mar 2012 11:01:21 +0000 (11:01 +0000)]
ArmLib/ArmV7: Add ISB to ArmEnableVFP

ArmEnableVFP could crash on an out-of-order CPU. Adding an instruction barrier after writing to CPACR cures the problem.

Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13134 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/ArmSmcLib: Added helper library to make SMC call to the Secure World
oliviermartin [Mon, 26 Mar 2012 10:59:50 +0000 (10:59 +0000)]
ArmPlatformPkg/ArmSmcLib: Added helper library to make SMC call to the Secure World

This library adds C-wrapper around the SMC instruction and allows to pass
parameters to the Secure World.

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

9 years agoArmPlatformPkg/SP805Watchdog.h: Removed the DXE function declarations from the header
oliviermartin [Mon, 26 Mar 2012 10:58:06 +0000 (10:58 +0000)]
ArmPlatformPkg/SP805Watchdog.h: Removed the DXE function declarations from the header

The DXE functions are local to the DXE driver.

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

9 years agoArmPkg: Declared ARM Hypervisor Firmware PCDs
oliviermartin [Mon, 26 Mar 2012 10:57:11 +0000 (10:57 +0000)]
ArmPkg: Declared ARM Hypervisor Firmware PCDs

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

9 years agoArmPkg/ArmLib: Added ARM_PROCESSOR_MODE_HYP to ARM_PROCESSOR_MODE
oliviermartin [Mon, 26 Mar 2012 10:56:07 +0000 (10:56 +0000)]
ArmPkg/ArmLib: Added ARM_PROCESSOR_MODE_HYP to ARM_PROCESSOR_MODE

ARM_PROCESSOR_MODE_HYP stands for the Hypervisor mode.

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

9 years agoArmPkg/Drivers/PL390Gic: Removed acknowledge of special interrupts (spurious interrupt)
oliviermartin [Mon, 26 Mar 2012 10:54:49 +0000 (10:54 +0000)]
ArmPkg/Drivers/PL390Gic: Removed acknowledge of special interrupts (spurious interrupt)

Cleaning a special interrupt has an unpredictable behaviour.

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

9 years agoArmPkg/LinuxLoader: Remove unused DebugLib (Minor change)
oliviermartin [Mon, 26 Mar 2012 10:52:31 +0000 (10:52 +0000)]
ArmPkg/LinuxLoader: Remove unused DebugLib (Minor change)

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

9 years agoArmPlatformPkg/Sec: Move ArmGicSetupNonSecure() prior to initialize platform-specific...
oliviermartin [Mon, 26 Mar 2012 10:51:43 +0000 (10:51 +0000)]
ArmPlatformPkg/Sec: Move ArmGicSetupNonSecure() prior to initialize platform-specific security bit

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

9 years agoArmPlatformPkg/Sec: Fixed monitor stack setup
oliviermartin [Mon, 26 Mar 2012 10:49:58 +0000 (10:49 +0000)]
ArmPlatformPkg/Sec: Fixed monitor stack setup

The Secure Monitor stack was not when a stack base was not provided by the Secure SVC world.

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

9 years agoArmPlatformPkg/PrePi: Fix comment (minor change)
oliviermartin [Mon, 26 Mar 2012 10:48:45 +0000 (10:48 +0000)]
ArmPlatformPkg/PrePi: Fix comment (minor change)

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

9 years agoArmPkg/ArmLib.h: Fixed the ClusterId and CoreId masks
oliviermartin [Mon, 26 Mar 2012 10:47:15 +0000 (10:47 +0000)]
ArmPkg/ArmLib.h: Fixed the ClusterId and CoreId masks

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

9 years agoArmPkg/PL390Gic: Introduced PcdGicSgiIntId to define which SGI is used for core synch...
oliviermartin [Mon, 26 Mar 2012 10:46:25 +0000 (10:46 +0000)]
ArmPkg/PL390Gic: Introduced PcdGicSgiIntId to define which SGI is used for core synchronisation

By default this PCD is set to use SGI #0.

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

9 years agoArmPkg/ArmGicLib: Added function ArmGicSetSecureInterrupts() to define the secure...
oliviermartin [Mon, 26 Mar 2012 10:45:27 +0000 (10:45 +0000)]
ArmPkg/ArmGicLib: Added function ArmGicSetSecureInterrupts() to define the secure interrupts

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

9 years agoArmPlatformPkg/ArmPlatformGlobalVariableLib: Fixed incorrect type casting
oliviermartin [Mon, 26 Mar 2012 10:41:50 +0000 (10:41 +0000)]
ArmPlatformPkg/ArmPlatformGlobalVariableLib: Fixed incorrect type casting

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

9 years ago1. Update AuthVarialbe driver to avoid integer overflow when using EFI_VARIABLE_AUTHE...
sfu5 [Mon, 26 Mar 2012 01:43:45 +0000 (01:43 +0000)]
1. Update AuthVarialbe driver to avoid integer overflow when using EFI_VARIABLE_AUTHENTICATION_2 descriptor.

Signed-off-by: sfu5
Reviewed-by: tye
Reviewed-by: gdong1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13120 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release.
darylm503 [Sat, 24 Mar 2012 01:19:06 +0000 (01:19 +0000)]
EADK (StdLib, AppPkg, StdLibPrivateInternalFiles):  Python Beta Release.
Clean up and clearly differentiate required and optional items in configuration files.
Enable the system command and synchronize configuration options between all CPU architectures.
Replace the UEFI_ENV macro with UEFI_C_SOURCE to align with Linux and Posix conventions.
Update copyrights and versions and make minor cosmetic enhancements to files.
Fix compiler-specific build errors.
Add Python-specific ReadMe file.

Signed-off-by: darylm503
Reviewed-by: geekboy15a
Reviewed-by: jljusten
Reviewed-by: leegrosenbaum
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13119 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd BootlogoOnly feature in BDS for BGRT
czhang46 [Fri, 23 Mar 2012 04:27:19 +0000 (04:27 +0000)]
Add BootlogoOnly feature in BDS for BGRT

Signed-off-by: czhang46
Reviewed-by: li-elvin, hhtian
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13116 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate the license dates
lpleahy [Tue, 20 Mar 2012 22:16:42 +0000 (22:16 +0000)]
Update the license dates
Use the BSD license
Fix errors detected by GCC compiler in WebServer/ConfigurationTable.c
Add libraries: CpuLib, DxeServicesTableLib and MtrrLib

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

9 years agoFix VS X64 Compiler Failure
lgao4 [Tue, 20 Mar 2012 07:36:39 +0000 (07:36 +0000)]
Fix VS X64 Compiler Failure
Signed-off-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13113 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix doxgen format issue.
vanjeff [Mon, 19 Mar 2012 08:58:57 +0000 (08:58 +0000)]
Fix doxgen format issue.

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

9 years agoAdd LzmaArchCustomDecompressLib library instance, which supports for X86 (IA32/X64...
lgao4 [Mon, 19 Mar 2012 07:13:29 +0000 (07:13 +0000)]
Add LzmaArchCustomDecompressLib library instance, which supports for X86 (IA32/X64) optimized decompression. It can provide the improved compression for IA32 and X64 architecture code.

Signed-off-by: lgao4
Reviewed-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13111 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Remove conducting ASSERT in BaseCryptLib.
sfu5 [Mon, 19 Mar 2012 05:52:16 +0000 (05:52 +0000)]
1. Remove conducting ASSERT in BaseCryptLib.

Signed-off-by: sfu5
Reviewed-by: qianouyang
Reviewed-by: gdong1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13110 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Add more error handling code to DxeImageVerificationLib and BaseCryptLib.
sfu5 [Mon, 19 Mar 2012 05:10:46 +0000 (05:10 +0000)]
1. Add more error handling code to DxeImageVerificationLib and BaseCryptLib.

Signed-off-by: sfu5
Reviewed-by: qianouyang
Reviewed-by: gdong1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13109 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoRemove the useless performance logging code in BootScriptExecutorDxe driver and recor...
lzeng14 [Mon, 19 Mar 2012 02:52:15 +0000 (02:52 +0000)]
Remove the useless performance logging code in BootScriptExecutorDxe driver and record S3 "ScriptExec" performance log before and after executing BootScriptExecutorEntrypoint in S3Reusme2Pei driver.

Signed-off-by: lzeng14
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13108 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix build break caused by CPU Exception Library.
andrewfish [Fri, 16 Mar 2012 16:52:46 +0000 (16:52 +0000)]
Fix build break caused by CPU Exception Library.

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

9 years agoUpdated platform DSC files to add CPU Exception Library instances.
vanjeff [Fri, 16 Mar 2012 08:36:39 +0000 (08:36 +0000)]
Updated platform DSC files to add CPU Exception Library instances.

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

9 years agoIntroduce tow non-blocking task lists to AtaBus. One maintains the sub-task which...
qianouyang [Fri, 16 Mar 2012 03:31:47 +0000 (03:31 +0000)]
Introduce tow non-blocking task lists to AtaBus. One maintains the sub-task which is related to running Ata Task and the other is for waiting Ata Task. And it will not pass any task to AtaAtapiPassThru until the previous Ata task has been finished or met error.

Signed-off-by: qianouyang
Reviewed-by: czhang46 erictian
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13105 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate the offset when read every debug entries info.
ydong10 [Fri, 16 Mar 2012 03:22:38 +0000 (03:22 +0000)]
Update the offset when read every debug entries info.
Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13104 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoARM Packages: Added the NULL implementation of CpuExceptionHandlerLib
oliviermartin [Thu, 15 Mar 2012 16:03:41 +0000 (16:03 +0000)]
ARM Packages: Added the NULL implementation of CpuExceptionHandlerLib

This NULL implementation should not affect the existing code flow and
avoid the builds to be broken by a missing dependency.
In a longer term, an implementation of CpuExceptionHandlerLib should
be provided for ARM architecture.

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

9 years agoMdeModulePkg/DebugPortDxe: Fixed the ordering of the EFI_DEBUGPORT_PROTOCOL entries
oliviermartin [Thu, 15 Mar 2012 15:27:18 +0000 (15:27 +0000)]
MdeModulePkg/DebugPortDxe: Fixed the ordering of the EFI_DEBUGPORT_PROTOCOL entries

The DebugPortRead and DebugPortWrite entries are reversed in the initialization
of the EFI_DEBUGPORT_PROTOCOL structure (compare to the EFI_DEBUGPORT_PROTOCOL
definition and the UEFI spec).

Signed-off-by: oliviermartin
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13102 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd SMBIOS 2.7.1 support to SmbiosView command.
lzeng14 [Thu, 15 Mar 2012 08:29:49 +0000 (08:29 +0000)]
Add SMBIOS 2.7.1 support to SmbiosView command.

Signed-off-by: lzeng14
Reviewed-by: jcarsey
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13101 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdated platform DSC files to add CPU Exception Library instances.
vanjeff [Thu, 15 Mar 2012 05:54:00 +0000 (05:54 +0000)]
Updated platform DSC files to add CPU Exception Library instances.

Signed-off-by: vanjeff
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13100 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Updated S3Resume2Pei to save IA32 IDT table setup in protected mode.
vanjeff [Thu, 15 Mar 2012 05:33:43 +0000 (05:33 +0000)]
1. Updated S3Resume2Pei to save IA32 IDT table setup in protected mode.
2. Updated BootScriptSaveOnS3SaveStateThunk restore IA32 IDT table before transferring to protected mode.
It could support exception handler in 32-bit Framework Boot Script code.

Signed-off-by: vanjeff
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13099 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoImport two CPU Exception Handler Library instances: SecPeiCpuExceptionHandler.inf...
vanjeff [Thu, 15 Mar 2012 05:24:07 +0000 (05:24 +0000)]
Import two CPU Exception Handler Library instances: SecPeiCpuExceptionHandler.inf and DxeSmmCpuExceptionHandler.inf.

Signed-off-by: vanjeff
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13098 6f19259b-4bc3-4df7-8a09-765794883524

9 years ago1. Introduced CPU Exception Handler Library to provide the CPU exception handlers...
vanjeff [Thu, 15 Mar 2012 05:20:41 +0000 (05:20 +0000)]
1. Introduced CPU Exception Handler Library to provide the CPU exception handlers and add one NULL library instance.
2. Updated DXE Core, BootScriptExecutorDxe and CapsuleX64Pei to consume CPU Exception Library to setup the default CPU Exception handlers.

Signed-off-by: vanjeff
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13097 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix build fail.
ydong10 [Wed, 14 Mar 2012 06:40:26 +0000 (06:40 +0000)]
Fix build fail.

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

9 years agoImprove robustness when scanning PCI Option ROM.
rsun3 [Wed, 14 Mar 2012 03:17:17 +0000 (03:17 +0000)]
Improve robustness when scanning PCI Option ROM.

Signed-off-by: rsun3
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13095 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoEnhance the error handling.
ydong10 [Tue, 13 Mar 2012 08:06:16 +0000 (08:06 +0000)]
Enhance the error handling.
Signed-off-by: ydong10
Reviewed-by: lzeng14
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13094 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Enable secure-boot support when SECURE_BOOT_ENABLE==TRUE
jljusten [Fri, 9 Mar 2012 17:38:53 +0000 (17:38 +0000)]
OvmfPkg: Enable secure-boot support when SECURE_BOOT_ENABLE==TRUE

Adjust PCD settings, library mappings and driver usage
to enable secure-boot when -D SECURE_BOOT_ENABLE=TRUE
is used on the build command line.

Signed-off-by: lgrosenb
Reviewed-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13093 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg/EmuVariableFvbRuntimeDxe: Add support for PcdSecureBootEnable
jljusten [Fri, 9 Mar 2012 17:38:35 +0000 (17:38 +0000)]
OvmfPkg/EmuVariableFvbRuntimeDxe: Add support for PcdSecureBootEnable

When PcdSecureBootEnable is true, the authenticated variable
FV is created.  Otherwise the standard FV is created.

Signed-off-by: lgrosenb
Reviewed-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13092 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Add PcdSecureBootEnable
jljusten [Fri, 9 Mar 2012 17:38:21 +0000 (17:38 +0000)]
OvmfPkg: Add PcdSecureBootEnable

Signed-off-by: lgrosenb
Reviewed-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13091 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOvmfPkg: Add PlatformSecureLib instance
jljusten [Fri, 9 Mar 2012 17:38:06 +0000 (17:38 +0000)]
OvmfPkg: Add PlatformSecureLib instance

Signed-off-by: lgrosenb
Reviewed-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13090 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix system reboot automatically if changing the value of [TPM operation]
gdong1 [Fri, 9 Mar 2012 01:37:38 +0000 (01:37 +0000)]
Fix system reboot automatically if changing the value of [TPM operation]

Signed-off-by: gdong1
Reviewed-by: tye1
Reviewed-by: qianouyang
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13089 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoOverride the base address to make LoadLibraryEx success in WIN7 SP1 OS.
ydong10 [Thu, 8 Mar 2012 02:54:06 +0000 (02:54 +0000)]
Override the base address to make LoadLibraryEx success in WIN7 SP1 OS.
Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13088 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg: add support for ORICO PEUS3-2P card
erictian [Wed, 7 Mar 2012 08:39:35 +0000 (08:39 +0000)]
MdeModulePkg: add support for ORICO PEUS3-2P card
1) Fix a bug on missing hub context evaluation operation.
2) If the usb keyboard device configuration has been set successfully, then don’t set configuration again.

Signed-off-by: erictian
Reviewed-by: li-elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13087 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoClarify alignment of GetSpinLockProperties() is byte alignment.
lgao4 [Wed, 7 Mar 2012 01:40:44 +0000 (01:40 +0000)]
Clarify alignment of GetSpinLockProperties() is byte alignment.
Signed-off-by: lgao4
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13086 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdeModulePkg: When media_change happens at Partition.Start(), the lower driver (ScsiD...
erictian [Tue, 6 Mar 2012 09:34:14 +0000 (09:34 +0000)]
MdeModulePkg: When media_change happens at Partition.Start(), the lower driver (ScsiDisk) should immediately return EFI_MEDIA_CHANGE but not EFI_SUCCESS. This way is used to avoid the interrupted Partition.Start() closes those opened protocols(DiskIo and DevicePath protocol) who are using by the re-entered partition driver at the same handle.

Signed-off-by: erictian
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13082 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate string offset and default offset from UINT16 to STRING_HEAD to match the gener...
lgao4 [Tue, 6 Mar 2012 08:47:29 +0000 (08:47 +0000)]
Update string offset and default offset from UINT16 to STRING_HEAD to match the generated PCD database.

Signed-off-by: lgao4
Reviewed-by: jliu66
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13081 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix read issue detected by the following Python program. The issue was that the...
lpleahy [Mon, 5 Mar 2012 19:05:47 +0000 (19:05 +0000)]
Fix read issue detected by the following Python program.  The issue was that the caller's buffer pointer was not being advanced between segments of the read data.

Signed-off-by: lpleahy
-----  UnbufferedRead.py  -----

import httplib
conn = httplib.HTTPConnection("10.241.97.30")
conn.request('GET', '/')
resp = conn.getresponse(buffering=True)
if resp.status != 200:
   print "status:", resp.status
   print "aborting"
   sys.exit(1)
while True:
   chunk = resp.read()
   if not chunk:
       break
   print chunk

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

9 years agoShellPkg: Fix ICC11 build failure.
jcarsey [Mon, 5 Mar 2012 17:51:52 +0000 (17:51 +0000)]
ShellPkg: Fix ICC11 build failure.

Eliminate SHELL_STATUS and EFI_STATUS mismatch.

Signed-off-by: jcarsey
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13075 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoWhen CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es...
li-elvin [Thu, 1 Mar 2012 11:16:42 +0000 (11:16 +0000)]
When CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, offset + 0xabcd could exceed 0xFFFF which is invalid in real mode. So added NORMALIZE_EFI_SEGMENT and  NORMALIZE_EFI_OFFSET to keep offset as small as possible to avoid this issue during CSM16 function call.

Signed-off-by: li-elvin
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13074 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/ArmLib: Replaced 'UINTN' type by architecture agnostic types (EFI_PHYSICAL_ADD...
oliviermartin [Wed, 29 Feb 2012 17:22:11 +0000 (17:22 +0000)]
ArmPkg/ArmLib: Replaced 'UINTN' type by architecture agnostic types (EFI_PHYSICAL_ADDRESS & EFI_VIRTUAL_ADDRESS) to describe memory addresses

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

9 years agoArmPlatformPkg/ArmPlatformSysConfigLib: Removed dependency on Uefi.h since it is...
oliviermartin [Wed, 29 Feb 2012 17:21:17 +0000 (17:21 +0000)]
ArmPlatformPkg/ArmPlatformSysConfigLib: Removed dependency on Uefi.h since it is a Base Library

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

9 years agoArmPlatformPkg/PL011Uart: Allowed to change UART settings in its initialization function
oliviermartin [Wed, 29 Feb 2012 17:19:52 +0000 (17:19 +0000)]
ArmPlatformPkg/PL011Uart: Allowed to change UART settings in its initialization function

Because this driver can be used for different purposes (Terminal, Debug port, communication),
its initialization function has been extended to accept additional settings.

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

9 years agoUpdate FrameworkUefiLib library instance to implement the missing CatSPrint() and...
lgao4 [Wed, 29 Feb 2012 04:57:44 +0000 (04:57 +0000)]
Update FrameworkUefiLib library instance to implement the missing CatSPrint() and CatVSPrint() API.
Signed-off-by: lgao4
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13070 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the issue in PeiCore to support PDB file path without '\' or '.' character.
lgao4 [Wed, 29 Feb 2012 04:56:53 +0000 (04:56 +0000)]
Fix the issue in PeiCore to support PDB file path without '\' or '.' character.
Signed-off-by: lgao4
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13069 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd sample code to show how to register Browser HotKey by BrowserEx protocol.
lgao4 [Wed, 29 Feb 2012 04:56:26 +0000 (04:56 +0000)]
Add sample code to show how to register Browser HotKey by BrowserEx protocol.
Signed-off-by: lgao4
Reviewed-by: ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13068 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg/Include/Base.h: Defined __va_copy macro when not defined by the ARM toolchain
oliviermartin [Tue, 28 Feb 2012 22:49:14 +0000 (22:49 +0000)]
MdePkg/Include/Base.h: Defined __va_copy macro when not defined by the ARM toolchain

The newer versions of ARM RVCT do not define __va_copy.

Signed-off-by: oliviermartin
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13067 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPlatformPkg/ArmPlatformSysConfigLib: Add function 'ArmPlatformSysConfigGetValues'
oliviermartin [Tue, 28 Feb 2012 17:35:03 +0000 (17:35 +0000)]
ArmPlatformPkg/ArmPlatformSysConfigLib: Add function 'ArmPlatformSysConfigGetValues'

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

9 years agoArmPkg/Library/SemihostLib: Removed depenencies on Uefi.h (Base library)
oliviermartin [Tue, 28 Feb 2012 17:34:12 +0000 (17:34 +0000)]
ArmPkg/Library/SemihostLib: Removed depenencies on Uefi.h (Base library)

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

9 years agoArmPlatformPkg/NorFlashDxe: Fixed CFI NOR Flash driver
oliviermartin [Tue, 28 Feb 2012 17:32:47 +0000 (17:32 +0000)]
ArmPlatformPkg/NorFlashDxe: Fixed CFI NOR Flash driver

CFI Flash differentiates DeviceBaseAddress with BlockAddress in
its protocol. The DeviceBaseAddress was not considered in the
previous version of this driver.
This version also fixes some bugs in the implementation of the
CFI protocol.

This new version also uses the Boot Mode Hob to reinitialized the
FVB when Boot Mode is equal to BOOT_WITH_DEFAULT_SETTINGS.

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

9 years agoArmPlatformPkg/Bds: Fixed the size of the unicode string use to represent hexadecimal...
oliviermartin [Tue, 28 Feb 2012 17:31:17 +0000 (17:31 +0000)]
ArmPlatformPkg/Bds: Fixed the size of the unicode string use to represent hexadecimal memory address

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

9 years agoArmPlatformPkg/Sec: Add ASSERT() for checking the Secure Monitor Stack PCD values
oliviermartin [Tue, 28 Feb 2012 17:30:20 +0000 (17:30 +0000)]
ArmPlatformPkg/Sec: Add ASSERT() for checking the Secure Monitor Stack PCD values

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

9 years agoArmPlatformPkg/Sec: Move 'ArmPlatformSecExtraAction' before we set NSACR & SCR
oliviermartin [Tue, 28 Feb 2012 17:29:41 +0000 (17:29 +0000)]
ArmPlatformPkg/Sec: Move 'ArmPlatformSecExtraAction' before we set NSACR & SCR

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

9 years agoArmPlatformPkg/Sec: Fix transition to Trusted Monitor World with ARMGCC
oliviermartin [Tue, 28 Feb 2012 17:28:44 +0000 (17:28 +0000)]
ArmPlatformPkg/Sec: Fix transition to Trusted Monitor World with ARMGCC

The enter_monitor_world() function was trashing r0/r1/r2 registers and then
was returning back to 'C'. The compiler might have used these registers in the C code.
These new design prevents register corruptions.

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

9 years agoArmPlatformPkg: Move the Secure Monitor initialization into a separate 'ArmTrustedMon...
oliviermartin [Tue, 28 Feb 2012 17:27:15 +0000 (17:27 +0000)]
ArmPlatformPkg: Move the Secure Monitor initialization into a separate 'ArmTrustedMonitorLib' library

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

9 years agoArmPlatformPkg: Updated the stack setup to have the same geometry between the Secure...
oliviermartin [Tue, 28 Feb 2012 17:23:53 +0000 (17:23 +0000)]
ArmPlatformPkg: Updated the stack setup to have the same geometry between the Secure and Normal World

Having a similar setup reduces the error during the MPCore stack setup.
The stack setup is described on this wikipage:
https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/Stack

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

9 years agoArmPlatformPkg/PrePi: Fixed stack setup when System Memory is mapped upto 0xFFFFFFFF
oliviermartin [Tue, 28 Feb 2012 17:22:13 +0000 (17:22 +0000)]
ArmPlatformPkg/PrePi: Fixed stack setup when System Memory is mapped upto 0xFFFFFFFF

The stacks must be 32-bit aligned (which is not the case of 0xFFFFFFFF).
This change ensures the stacks are setup properperly in case the system
memory is available at 0xFFFFFFFF.

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

9 years agoArmPkg/ArmLib: Fixed 'ArmConfigureMmu()' to avoid overflow when an entry is mapped...
oliviermartin [Tue, 28 Feb 2012 17:20:34 +0000 (17:20 +0000)]
ArmPkg/ArmLib: Fixed 'ArmConfigureMmu()' to avoid overflow when an entry is mapped at 0xFFFFFFFF

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

9 years agoArmPkg/ArmLib.h: Update 'ARM_MEMORY_REGION_DESCRIPTOR' to support 64bit addresses
oliviermartin [Tue, 28 Feb 2012 17:18:35 +0000 (17:18 +0000)]
ArmPkg/ArmLib.h: Update 'ARM_MEMORY_REGION_DESCRIPTOR' to support 64bit addresses

Replaced 'UINT32' by 'UINTN'.

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

9 years agoArmPlatformPkg: Moved 'ArmTrustZoneLib' from ArmPkg/Library to ArmPlatformPkg/Drivers
oliviermartin [Tue, 28 Feb 2012 17:16:58 +0000 (17:16 +0000)]
ArmPlatformPkg: Moved 'ArmTrustZoneLib' from ArmPkg/Library to ArmPlatformPkg/Drivers

This library is really the driver for the ARM Trustzone controllers (TZPC and TZASC).

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

9 years agoArmPlatformPkg/LcdGraphicsOutputDxe: Added support for ARM HDLCD controller (2)
oliviermartin [Tue, 28 Feb 2012 17:13:30 +0000 (17:13 +0000)]
ArmPlatformPkg/LcdGraphicsOutputDxe: Added support for ARM HDLCD controller (2)

... Forgot the new files

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

9 years agoArmPlatformPkg: Minor code changes (comments, misspellings, coding stylei, line endings)
oliviermartin [Tue, 28 Feb 2012 17:11:42 +0000 (17:11 +0000)]
ArmPlatformPkg: Minor code changes (comments, misspellings, coding stylei, line endings)

- Fixed misspellings
- Updated Copyright
- Remove unused sections in INF file
- Fixed incorrect commentsi
- Fixed coding style
- Fixed line endings (CRLR)

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

9 years agoArmPlatformPkg/LcdGraphicsOutputDxe: Added support for ARM HDLCD controller
oliviermartin [Tue, 28 Feb 2012 17:09:16 +0000 (17:09 +0000)]
ArmPlatformPkg/LcdGraphicsOutputDxe: Added support for ARM HDLCD controller

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

9 years agoStdLib, AppPkg: Update ReadMe files.
darylm503 [Tue, 28 Feb 2012 02:30:19 +0000 (02:30 +0000)]
StdLib, AppPkg: Update ReadMe files.

Signed-off-by: darylm503
Reviewed-by: jcarsey
Reviewed-by: michaelkrau
Reviewed-by: laurie0131
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13046 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoStdLib/Include/paths.h: Update paths to reflect new base of \Efi\StdLib.
darylm503 [Mon, 27 Feb 2012 21:15:26 +0000 (21:15 +0000)]
StdLib/Include/paths.h:  Update paths to reflect new base of \Efi\StdLib.
    (file missed from previous commit)

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

9 years agoArmPlatformPkg/PrePeiCore: Ensured the size is 8-byte aligned
oliviermartin [Mon, 27 Feb 2012 10:27:10 +0000 (10:27 +0000)]
ArmPlatformPkg/PrePeiCore: Ensured the size is 8-byte aligned

Once divided by 2, the size should be 4-byte aligned to ensure the
stack pointer is 4-byte aligned.

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

9 years agoArmPlatformPkg/ArmPlatformGlobalVariableLib: Added an assert to ensure the 'VariableO...
oliviermartin [Mon, 27 Feb 2012 10:26:16 +0000 (10:26 +0000)]
ArmPlatformPkg/ArmPlatformGlobalVariableLib: Added an assert to ensure the 'VariableOffset' belongs to the GlobalVariable region

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

9 years agoArmPlatformPkg/SP804TimerDxe: Move 'gVector' initialization earlier in the code
oliviermartin [Mon, 27 Feb 2012 10:25:20 +0000 (10:25 +0000)]
ArmPlatformPkg/SP804TimerDxe: Move 'gVector' initialization earlier in the code

The global variable 'gVector' is also used by the function TimerDriverSetTimerPeriod().

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

9 years agoArmPkg/ArmArchTimerLib: Renamed the constructor to 'TimerConstructor()'
oliviermartin [Mon, 27 Feb 2012 10:23:08 +0000 (10:23 +0000)]
ArmPkg/ArmArchTimerLib: Renamed the constructor to 'TimerConstructor()'

Some ARM Platform components (ie: PrePei) use this constructor name to
initialize the timers (at this time there is no PE loader to call the
library constructors) when PI/UEFI is started to initialize the
PerformanceLib.

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

9 years agoArmPkg/PL390Gic: Removed duplicated line of codes disabling the interrupts
oliviermartin [Mon, 27 Feb 2012 10:20:46 +0000 (10:20 +0000)]
ArmPkg/PL390Gic: Removed duplicated line of codes disabling the interrupts

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

9 years agoArmPkg/LinuxLoader: Fixed memory leak
oliviermartin [Mon, 27 Feb 2012 10:18:35 +0000 (10:18 +0000)]
ArmPkg/LinuxLoader: Fixed memory leak

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

9 years agoUpdate the modifier of ThunkContext parameter for AsmPrepareThunk16() in BaseLib...
lgao4 [Mon, 27 Feb 2012 07:46:04 +0000 (07:46 +0000)]
Update the modifier of ThunkContext parameter for AsmPrepareThunk16() in BaseLib from OUT to IN OUT.
Signed-off-by: lgao4
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13038 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoUpdate ECP Package Glue BaseLib to save/restore xmm6-xmm15 in functions setJump/longJump.
lgao4 [Mon, 27 Feb 2012 07:44:42 +0000 (07:44 +0000)]
Update ECP Package Glue BaseLib to save/restore xmm6-xmm15 in functions setJump/longJump.
Signed-off-by: lgao4
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13037 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoAdd code check to avoid access violation.
ydong10 [Mon, 27 Feb 2012 02:44:20 +0000 (02:44 +0000)]
Add code check to avoid access violation.
Signed-off-by:ydong10
Reviewed-by:lgao4

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

9 years agoRemove ASSERT to let DXE core return gracefully when loading an invalid image.
gdong1 [Mon, 27 Feb 2012 02:33:20 +0000 (02:33 +0000)]
Remove ASSERT to let DXE core return gracefully when loading an invalid image.

Signed-off-by: gdong1
Reviewed-by: jyao1
Reviewed-by: CZhang46
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13035 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix issues detected by python web-server.
lpleahy [Fri, 24 Feb 2012 18:45:09 +0000 (18:45 +0000)]
Fix issues detected by python web-server.

* Removed display of TPL
* Added NOP implementation for SO_REUSEADDR
* Add better detection of socket address
* Return first address

Signed-off-by: lpleahy
Python Web server below:

---------------

import sys
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler

HandlerClass = SimpleHTTPRequestHandler
ServerClass  = BaseHTTPServer.HTTPServer
Protocol     = "HTTP/1.0"

port = 80
server_address = ('', port)

HandlerClass.protocol_version = Protocol
httpd = ServerClass(server_address, HandlerClass)

sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
httpd.serve_forever()

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

9 years agoShellPkg: Fix ICC11 build failure.
jcarsey [Fri, 24 Feb 2012 17:12:39 +0000 (17:12 +0000)]
ShellPkg: Fix ICC11 build failure.

Signed-off-by: jcarsey
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13032 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/BdsLib: Added support for using uInitrd
oliviermartin [Fri, 24 Feb 2012 16:11:51 +0000 (16:11 +0000)]
ArmPkg/BdsLib: Added support for using uInitrd

Detect if there is a u-boot header on the initrd (by checking the
signature) and skip it.

Signed-off-by: ryan.harkin@linaro.org
Reviewed-by: oliviermartin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13031 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoArmPkg/BdsLib: Fixed LinuxImageSize if uImagei format
oliviermartin [Fri, 24 Feb 2012 16:05:00 +0000 (16:05 +0000)]
ArmPkg/BdsLib: Fixed LinuxImageSize if uImagei format

The uImage is 64Bytes smaller (size of the u-boot header) than
the size of the file read from the file system.

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

9 years agoEmbeddedPkg/FdtLib: Added patches to support libfdt in EDK2
oliviermartin [Fri, 24 Feb 2012 15:47:29 +0000 (15:47 +0000)]
EmbeddedPkg/FdtLib: Added patches to support libfdt in EDK2

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

9 years agoGraphicsConsole supports both UGA and GOP protocol, "UGA Console Driver" is changed...
li-elvin [Fri, 24 Feb 2012 02:10:28 +0000 (02:10 +0000)]
GraphicsConsole supports both UGA and GOP protocol, "UGA Console Driver" is changed to "Graphics Console Driver" in Component Name Protocol.

Signed-off-by: li-elvin
Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13027 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoMdePkg: Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiL...
rsun3 [Wed, 22 Feb 2012 02:39:57 +0000 (02:39 +0000)]
MdePkg: Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiLib instance that there is a non portable assumption that Marker is copied when passed to a function.

Signed-off-by: rsun3
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13025 6f19259b-4bc3-4df7-8a09-765794883524

9 years agoFix the errors detected by the GCC compiler:
lpleahy [Fri, 17 Feb 2012 23:45:45 +0000 (23:45 +0000)]
Fix the errors detected by the GCC compiler:
* Add EFIAPI to the timer callbacks
* Fix 32-bit pointer casts

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