]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
11 years agoRevert change 14281, should not check in here.
ydong10 [Wed, 17 Apr 2013 01:35:45 +0000 (01:35 +0000)]
Revert change 14281, should not check in here.

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

11 years agoSplit browser with browser core and display engine.
ydong10 [Wed, 17 Apr 2013 01:32:33 +0000 (01:32 +0000)]
Split browser with browser core and display engine.
First Version, goal:
  1.Display Engine has the framework.
  2.Browser core ready.(PasswordCheck, ValidateQuestionV not ready)

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

11 years agoUpdate the browser logic, make the storage as browser level instead of form set level.
ydong10 [Tue, 16 Apr 2013 10:53:22 +0000 (10:53 +0000)]
Update the browser logic, make the storage as browser level instead of form set level.

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

11 years agoMdeMdeModulePkg/BootScriptExecutorDxe: Replaces absolute addressing that requires...
erictian [Tue, 16 Apr 2013 02:45:36 +0000 (02:45 +0000)]
MdeMdeModulePkg/BootScriptExecutorDxe: Replaces absolute addressing that requires a relocation entry with PC relative addressing that does not require a relocation entry. This patch is required to make this file assemble and link with Xcode

Signed-off-by: Andrew Fish <afish@apple.com>
Reviewed-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@14279 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix SMM Variable driver stack GetVariable return INVALID_PARAMETER when DataSize...
czhang46 [Mon, 15 Apr 2013 01:56:31 +0000 (01:56 +0000)]
Fix SMM Variable driver stack GetVariable return INVALID_PARAMETER when DataSize is bigger than SMM communication buffer.

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

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

11 years agoArmPkg/BdsLib: Added support for FDT alignment through PcdArmLinuxFdtAlignment
oliviermartin [Sun, 14 Apr 2013 09:36:41 +0000 (09:36 +0000)]
ArmPkg/BdsLib: Added support for FDT alignment through PcdArmLinuxFdtAlignment

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

11 years agoArmPkg: Delete PCD value PcdArmLinuxKernelFixedOffset.
oliviermartin [Sun, 14 Apr 2013 09:35:44 +0000 (09:35 +0000)]
ArmPkg: Delete PCD value PcdArmLinuxKernelFixedOffset.

PcdArmLinuxKernelFixedOffset is supposed to indicate the offset from
the beginning of the system memory at which the kernel will be loaded.

However, this PCD value is not used at all. Instead the kernel is loaded
just below a certain limit indicated by PCD value PcdArmLinuxKernelMaxOffset.

This patch deletes PCD value PcdArmLinuxKernelFixedOffset to avoid any
confusion.

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

11 years agoArmPkg/BdsLib: Fix uInitrd detection
oliviermartin [Sun, 14 Apr 2013 09:34:48 +0000 (09:34 +0000)]
ArmPkg/BdsLib: Fix uInitrd detection

This patch corrects a problem detecting uInitrd signature when booting
with FDT.

BdsBootLinuxFdt was attempting to read the signature from InitrdImage which
is zero at this point in the code.  The code now reads the signature from
InitrdImageBase.

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

11 years agoArmPkg/BdsLib: Do not create additional 'cpu' nodes if the 'cpus' node already exist
oliviermartin [Sun, 14 Apr 2013 09:33:35 +0000 (09:33 +0000)]
ArmPkg/BdsLib: Do not create additional 'cpu' nodes if the 'cpus' node already exist

UEFI must not add additional 'cpu' nodes if the 'cpus' node was already present.

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

11 years agoArmPlatformPkg: Remove an unused function.
oliviermartin [Sun, 14 Apr 2013 09:32:45 +0000 (09:32 +0000)]
ArmPlatformPkg: Remove an unused function.

ArmPlatformGetAdditionalSystemMemory() function wasn't used anywhere in UEFI.
This patch deletes it.

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

11 years agoRemove unused L2 controller PCD from platform files.
oliviermartin [Sun, 14 Apr 2013 09:31:47 +0000 (09:31 +0000)]
Remove unused L2 controller PCD from platform files.

Only the Cortex A9 based platforms have an external L2 controller.

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

11 years agoArmPkg/BdsLib: Replace ARM magic value by a proper defined value.
oliviermartin [Sun, 14 Apr 2013 09:30:46 +0000 (09:30 +0000)]
ArmPkg/BdsLib: Replace ARM magic value by a proper defined value.

"ARMH" is the Four-Letter unique identifier used by ARM in the context
of the fast SMC identification interface.

This patch properly defines this value in a header file instead
of using the numeric value directly in the code.

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

11 years agoEmbeddedPkg: Remove an unused binary.
oliviermartin [Sun, 14 Apr 2013 09:29:11 +0000 (09:29 +0000)]
EmbeddedPkg: Remove an unused binary.

Remove an unused binary, which was probably introduced by error in
UEFI source tree.

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

11 years agoArmPlatformPkg/Bds: Missing CRC32 update
oliviermartin [Sun, 14 Apr 2013 09:28:11 +0000 (09:28 +0000)]
ArmPlatformPkg/Bds: Missing CRC32 update

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

11 years agoArmPkg/PL390Gic: Do not try to clear spurious interrupts.
oliviermartin [Sun, 14 Apr 2013 09:27:33 +0000 (09:27 +0000)]
ArmPkg/PL390Gic: Do not try to clear spurious interrupts.

If we have a pending spurious interrupt we should not try to clear it,
just ignore.

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

11 years agoEmbeddedPkg/MmcDxe: Make the driver more compliant with the UEFI specification
oliviermartin [Sun, 14 Apr 2013 09:26:28 +0000 (09:26 +0000)]
EmbeddedPkg/MmcDxe: Make the driver more compliant with the UEFI specification

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

11 years agoArmPlatformPkg/NorFlashDxe: Make the driver more compliant with the UEFI specification
oliviermartin [Sun, 14 Apr 2013 09:25:34 +0000 (09:25 +0000)]
ArmPlatformPkg/NorFlashDxe: Make the driver more compliant with the UEFI specification

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

11 years agoArmPkg/SemihostFs: Make the driver more compliant with the UEFI specification
oliviermartin [Sun, 14 Apr 2013 09:24:44 +0000 (09:24 +0000)]
ArmPkg/SemihostFs: Make the driver more compliant with the UEFI specification

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

11 years agoArmPlatformPkg/PL011Uart: Added support for default BaudRate
oliviermartin [Sun, 14 Apr 2013 09:23:30 +0000 (09:23 +0000)]
ArmPlatformPkg/PL011Uart: Added support for default BaudRate

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

11 years agoAdd OpROM code type check to ensure OpROM is PCAT legacy OpROM when an OpROM is passe...
li-elvin [Fri, 12 Apr 2013 07:34:27 +0000 (07:34 +0000)]
Add OpROM code type check to ensure OpROM is PCAT legacy OpROM when an OpROM is passed to InstallPciRom.

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

11 years agoFix build failure by adding UINT16 type cast.
niruiyu [Fri, 12 Apr 2013 07:16:42 +0000 (07:16 +0000)]
Fix build failure by adding UINT16 type cast.

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

11 years agoUpdate SMM variable DXE driver GetNextVariable interface to comply with UEFI spec
czhang46 [Fri, 12 Apr 2013 05:59:11 +0000 (05:59 +0000)]
Update SMM variable DXE driver GetNextVariable interface to comply with UEFI spec
VariableNameSize is the returned buffer size. GetNextVariable should behavior correct if it is bigger than SMM communication buffer or less than string size of VariableName.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by  : Dong Guo   <guo.dong@intel.com>
Reviewed-by  : Fu Siyuan  <siyuan.fu@intel.com>
Reviewed-by  : Zeng Star  <star.zeng@intel.com>

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

11 years agoUpdate secure boot UI driver to handle “reset to default” hot key.
sfu5 [Fri, 12 Apr 2013 01:44:54 +0000 (01:44 +0000)]
Update secure boot UI driver to handle “reset to default” hot key.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-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@14257 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix several bugs in the implementation of converting SAS/SASEX device path node from...
niruiyu [Thu, 11 Apr 2013 01:39:39 +0000 (01:39 +0000)]
Fix several bugs in the implementation of converting SAS/SASEX device path node from/to text.

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

11 years agoIf DataSize or VariableNameSize is near MAX_ADDRESS, this can cause the computed...
lzeng14 [Mon, 8 Apr 2013 06:56:08 +0000 (06:56 +0000)]
If DataSize or VariableNameSize is near MAX_ADDRESS, this can cause the computed PayLoadSize to overflow to a small value and pass the check in InitCommunicateBuffer(). To protect against this vulnerability, check DataSize and VariableNameSize to make sure PayloadSize doesn't overflow.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14252 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeMdeModulePkg/UsbBusDxe: Fixed a possible memory leak bug introduced at r14226
erictian [Sun, 7 Apr 2013 08:43:28 +0000 (08:43 +0000)]
MdeMdeModulePkg/UsbBusDxe: Fixed a possible memory leak bug introduced at r14226
The r14226 check-in indeed has memory leak in allocated "Child" pointer. UsbBusDriverBindingStop() may dereference this pointer and may bring exception on invalid memory access

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14251 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: remove OvmfVideo.rom references
jljusten [Wed, 3 Apr 2013 18:20:57 +0000 (18:20 +0000)]
OvmfPkg: remove OvmfVideo.rom references

The README is rather extended than trimmed, so that users grepping for the
file name have a pointer.

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

11 years agoNew EDK Shell binary(r62).
niruiyu [Wed, 3 Apr 2013 09:39:19 +0000 (09:39 +0000)]
New EDK Shell binary(r62).

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

11 years agoGet the language string before use it to avoid reuse freed buffer.
ydong10 [Wed, 3 Apr 2013 07:18:39 +0000 (07:18 +0000)]
Get the language string before use it to avoid reuse freed buffer.

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

11 years agoAdd the missing file to the inf.
ydong10 [Tue, 2 Apr 2013 08:34:45 +0000 (08:34 +0000)]
Add the missing file to the inf.

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

11 years agoRefine code to follow coding style.
ydong10 [Tue, 2 Apr 2013 08:28:40 +0000 (08:28 +0000)]
Refine code to follow coding style.

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

11 years agoFill SMBIOS BCD revision field.
li-elvin [Tue, 2 Apr 2013 07:44:11 +0000 (07:44 +0000)]
Fill SMBIOS BCD revision field.

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

11 years agoDon't assume HiiDatabase has been present at the entrypoint and don't assume HiiDatab...
lzeng14 [Tue, 2 Apr 2013 03:23:54 +0000 (03:23 +0000)]
Don't assume HiiDatabase has been present at the entrypoint and don't assume HiiDatabase and HiiFont are on the same handle according to the UEFI spec.

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

11 years agoMdeMdeModulePkg/Usb: two tunings for better device identification behind hub
erictian [Fri, 29 Mar 2013 09:32:55 +0000 (09:32 +0000)]
MdeMdeModulePkg/Usb: two tunings for better device identification behind hub
1.enlarge the recovery time from 10ms to 20ms after port reset to make set address request success for better device compatibility.
2.another enhancement is to use RESET_C bit rather than RESET bit to judge if hub reset port operation is done.

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

11 years agoMdeMdeModulePkg/Usb: Fixed two usb issues
erictian [Fri, 29 Mar 2013 06:53:57 +0000 (06:53 +0000)]
MdeMdeModulePkg/Usb: Fixed two usb issues
1.Fix the bug in interface parser logic for usb camera device. Reserve device address if the device doesn’t get disconnected.
2.Some usb 1.1 devices require the context evaluation immediately with actual max packet size after detecting the device max packet size.

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

11 years agoWhen EDID comes from hardware INT10 and does not include 800x600, 640x480 and 1024x76...
li-elvin [Fri, 29 Mar 2013 03:14:30 +0000 (03:14 +0000)]
When EDID comes from hardware INT10 and does not include 800x600, 640x480 and 1024x768, but INT10 supports these modes, add them into GOP mode.

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

11 years agoFix SourceLevelDebugPkg build failure when the debug port is USB.
niruiyu [Thu, 28 Mar 2013 07:02:01 +0000 (07:02 +0000)]
Fix SourceLevelDebugPkg build failure when the debug port is USB.

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

11 years agoCorrect the location where the HOST software can be downloaded.
niruiyu [Wed, 27 Mar 2013 05:50:20 +0000 (05:50 +0000)]
Correct the location where the HOST software can be downloaded.

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

11 years agoUpdate the traversal path logic.
ydong10 [Wed, 27 Mar 2013 03:09:18 +0000 (03:09 +0000)]
Update the traversal path logic.

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

11 years agoUpdate the code to follow UEFI spec, do the discard action when return EFI_BROWSER_AC...
ydong10 [Wed, 27 Mar 2013 02:03:48 +0000 (02:03 +0000)]
Update the code to follow UEFI spec, do the discard action when return EFI_BROWSER_ACTION_REQUEST_EXIT.

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

11 years agoGuarantee that free memory in the 4K page starting at address 0 is always cleared...
mdkinney [Fri, 22 Mar 2013 21:20:07 +0000 (21:20 +0000)]
Guarantee that free memory in the 4K page starting at address 0 is always cleared to 0.  The algorithm is to clear page zero if it is registered with the DXE Core with type EfiConventionalMemory, and to also clear page zero if it is freed using the UEFI Boot Service FreePages().  This patch improves OS compatibility for OSes that may evaluate page 0 for legacy data structures.  Before this patch, free memory may contain random values which induces random boot failures for some OSes.  This patch may also help find NULL pointer bugs sooner because all of the fields in a data structure dereferenced through NULL will also be NULL now.

Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-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@14218 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug in the DXE Core that generates an ASSERT() when the page at address zero...
mdkinney [Fri, 22 Mar 2013 21:18:02 +0000 (21:18 +0000)]
Fix a bug in the DXE Core that generates an ASSERT() when the page at address zero is freed and DEBUG_CLEAR_MEMORY() macros are enabled.  If DEBUG_CLEAR_MEMORY() is enabled and the page at address 0 is freed, then DEBUG_CLEAR_MEMORY() is invoked skipping over the first 4K page.

Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-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@14217 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMaking the IP6_CONFIG_DATA_RECORD the same size for both IA32 and X64 builds.
sfu5 [Wed, 20 Mar 2013 08:35:24 +0000 (08:35 +0000)]
Making the IP6_CONFIG_DATA_RECORD the same size for both IA32 and X64 builds.
Signed-off-by: Kinney, Michael D <michael.d.kinney@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14216 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove HiiUpdateForm from ExtractConfig fucntion.
sfu5 [Wed, 20 Mar 2013 08:30:05 +0000 (08:30 +0000)]
Remove HiiUpdateForm from ExtractConfig fucntion.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Eric <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14215 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg: Fixed 'variable set but not used' build warning.
erictian [Wed, 20 Mar 2013 07:26:19 +0000 (07:26 +0000)]
MdeModulePkg: Fixed 'variable set but not used' build warning.

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

11 years agoMedPkg: Fix EFI_ERROR_SECTION_DESCRIPTOR definition in CPER to match UEFI 2.3.1 speci...
vanjeff [Wed, 20 Mar 2013 06:43:17 +0000 (06:43 +0000)]
MedPkg: Fix EFI_ERROR_SECTION_DESCRIPTOR definition in CPER to match UEFI 2.3.1 specification.

Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14213 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoShellPkg: Remove PerformancePkg requirement and add the header itself.
jcarsey [Tue, 19 Mar 2013 20:17:47 +0000 (20:17 +0000)]
ShellPkg: Remove PerformancePkg requirement and add the header itself.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14212 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove BdsLibConnectConsoleVariableWithoutDispatch() and enhance BdsLibConnectDeviceP...
niruiyu [Tue, 19 Mar 2013 07:10:51 +0000 (07:10 +0000)]
Remove BdsLibConnectConsoleVariableWithoutDispatch() and enhance BdsLibConnectDevicePath() to only call gDS->Dispatch() when the current TPL is TPL_APPLICATION

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Chao B Zhang <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14211 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd debug message to output video resolution used by GraphicsConsole.
li-elvin [Fri, 15 Mar 2013 07:43:16 +0000 (07:43 +0000)]
Add debug message to output video resolution used by GraphicsConsole.

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

11 years agoAdd the backslash to C12 mapping in keyboard layout mapping table to fix the issue...
niruiyu [Fri, 15 Mar 2013 06:48:43 +0000 (06:48 +0000)]
Add the backslash to C12 mapping in keyboard layout mapping table to fix the issue that backslash doesn't work when using HP KU-0316 USB key board.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Ting Ye <ting.ye@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14209 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRefine the logic about gFunctionKeySetting, avoid some HII drivers can't show the...
ydong10 [Fri, 15 Mar 2013 02:53:56 +0000 (02:53 +0000)]
Refine the logic about gFunctionKeySetting, avoid some HII drivers can't show the hotkey info.
Also add missing code in UI.c

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

11 years agoRevert error check in code by patch 14206.
ydong10 [Fri, 15 Mar 2013 02:39:22 +0000 (02:39 +0000)]
Revert error check in code by patch 14206.

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

11 years agoUpdate the logic:
ydong10 [Fri, 15 Mar 2013 01:53:03 +0000 (01:53 +0000)]
Update the logic:
  Not remove the form set data, add check before browser use form set data to avoid use the useless form set data.

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

11 years agoCall LegacyBiosInstallVgaRom to shadow Legacy VBIOS instead of LegacyBiosInstallPciRo...
li-elvin [Fri, 15 Mar 2013 01:34:21 +0000 (01:34 +0000)]
Call LegacyBiosInstallVgaRom to shadow Legacy VBIOS instead of LegacyBiosInstallPciRom during legacy boot.

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

11 years agoFix minor typos in BaseLib LinkedList comments
lgao4 [Wed, 13 Mar 2013 06:44:10 +0000 (06:44 +0000)]
Fix minor typos in BaseLib LinkedList comments

Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14204 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoShellPkg: Fixes CP function to prevent copying of files if destination does not have...
jcarsey [Tue, 12 Mar 2013 20:56:36 +0000 (20:56 +0000)]
ShellPkg: Fixes CP function to prevent copying of files if destination does not have adequate storage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Matt Stanbro <Matthew.A.Stanbro@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14203 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoShellPkg: Rewrite’s Help.c to call the ShellPrintHelp function.
jcarsey [Tue, 12 Mar 2013 20:54:07 +0000 (20:54 +0000)]
ShellPkg: Rewrite’s Help.c to call the ShellPrintHelp function.

also, adds a footer to the bottom of the “help” command to explain help switches.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Matt Stanbro <Matthew.A.Stanbro@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14202 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoArmPkg/BdsLib: Fixed TFTP and PXE Boot
oliviermartin [Tue, 12 Mar 2013 01:04:10 +0000 (01:04 +0000)]
ArmPkg/BdsLib: Fixed TFTP and PXE Boot

- An Ascii filename must be passed to the TFTP service (was a Unicode filename)
- If the PXE service had already configured the connection we need to restart
when we want to download a new file or do a do a PXE Boot.

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

11 years agoArmPlatformPkg/Bds: Fixed adding support for new boot entry when the generated Device...
oliviermartin [Tue, 12 Mar 2013 01:03:23 +0000 (01:03 +0000)]
ArmPlatformPkg/Bds: Fixed adding support for new boot entry when the generated DevicePath is bigger than one node

The initial support was only considering the added Device Path will be a single node.
TFTP for instance requires two new nodes on the top of the ethernet Device Path; a first
one for the IP address of the server and a second one for the file to download.

This change replace the return argument from a DevicePath node by a DevicePath.
It means the End Device Path node is now required.

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

11 years agoArmPkg/BdsLib: Free the memory when Linux fails to start
oliviermartin [Tue, 12 Mar 2013 01:02:44 +0000 (01:02 +0000)]
ArmPkg/BdsLib: Free the memory when Linux fails to start

Not freeing the memory prevents Linux to be started again.

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

11 years agoArmPkg/BdsLinuxFdt.c: Check that FDT blob is correctly loaded.
oliviermartin [Tue, 12 Mar 2013 01:01:55 +0000 (01:01 +0000)]
ArmPkg/BdsLinuxFdt.c: Check that FDT blob is correctly loaded.

Add some checks in the code loading an FDT blob from a memory-mapped device
so that UEFI will detect and print an error message if the address
range doesn't cover the whole file.

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

11 years agoArmPkg/BdsLib: Update 'cpu-release-addr' with the UEFI locations if the method is...
oliviermartin [Tue, 12 Mar 2013 01:01:11 +0000 (01:01 +0000)]
ArmPkg/BdsLib: Update 'cpu-release-addr' with the UEFI locations if the method is 'spin-table'

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

11 years agoArmPlatformPkg/LcdGraphicsOutputDxe: The structure signature is a 32 bit value
oliviermartin [Tue, 12 Mar 2013 01:00:30 +0000 (01:00 +0000)]
ArmPlatformPkg/LcdGraphicsOutputDxe: The structure signature is a 32 bit value

The signature was declared as UINTN.

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

11 years agoArmPkg/ArmLib: Functions to access ARM HYP Vector base address register.
oliviermartin [Tue, 12 Mar 2013 00:59:46 +0000 (00:59 +0000)]
ArmPkg/ArmLib: Functions to access ARM HYP Vector base address register.

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

11 years agoArmPkg/SemihostLib: Removed leading separator in FileName in SemihostFileOpen()
oliviermartin [Tue, 12 Mar 2013 00:58:37 +0000 (00:58 +0000)]
ArmPkg/SemihostLib: Removed leading separator in FileName in SemihostFileOpen()

EFI Shell adds '\\' in front of the filename.

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

11 years agoArmPkg/SemihostFs: Added comment in FileRead()
oliviermartin [Tue, 12 Mar 2013 00:58:06 +0000 (00:58 +0000)]
ArmPkg/SemihostFs: Added comment in FileRead()

The comment says we cannot list files in the Semihosting FileSystem.

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

11 years agoArmPkg/SemihostFs: Use Unicode to Ascii function for the conversion
oliviermartin [Tue, 12 Mar 2013 00:57:05 +0000 (00:57 +0000)]
ArmPkg/SemihostFs: Use Unicode to Ascii function for the conversion

The Unicode to Ascii string conversion was done manually.

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

11 years agoArmPkg/BdsLib: Added support to declare Power State Coordination Interface (PSCI...
oliviermartin [Tue, 12 Mar 2013 00:56:37 +0000 (00:56 +0000)]
ArmPkg/BdsLib: Added support to declare Power State Coordination Interface (PSCI) to the Flat Device Tree (FDT)

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

11 years agoArmPkg/IndustryStandard: Added definition for some SMC IDs
oliviermartin [Tue, 12 Mar 2013 00:55:52 +0000 (00:55 +0000)]
ArmPkg/IndustryStandard: Added definition for some SMC IDs

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

11 years agoArmPkg/BdsLib: Passed reserved memory regions to the Device Tree
oliviermartin [Tue, 12 Mar 2013 00:54:58 +0000 (00:54 +0000)]
ArmPkg/BdsLib: Passed reserved memory regions to the Device Tree

Go through the UEFI memory map and add OS 'runtime' regions as
reserved regions to the Device Tree.

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

11 years agoArmPlatformPkg: Moved ARMv7 specific files to a 'Arm' subdirectory
oliviermartin [Tue, 12 Mar 2013 00:54:02 +0000 (00:54 +0000)]
ArmPlatformPkg: Moved ARMv7 specific files to a 'Arm' subdirectory

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

11 years agoArmPkg: Fixed unsigned type to be architecture independent
oliviermartin [Tue, 12 Mar 2013 00:50:46 +0000 (00:50 +0000)]
ArmPkg: Fixed unsigned type to be architecture independent

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

11 years agoArmPkg: Moved ARMv7 specific files to a 'Arm' subdirectory
oliviermartin [Tue, 12 Mar 2013 00:49:42 +0000 (00:49 +0000)]
ArmPkg: Moved ARMv7 specific files to a 'Arm' subdirectory

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

11 years agoARM Packages: Fixed coding style and typos
oliviermartin [Tue, 12 Mar 2013 00:45:29 +0000 (00:45 +0000)]
ARM Packages: Fixed coding style and typos

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

11 years agoArmPlatformPkg/NorFlashDxe: Fixed BufferSize calculation in NorFlashWriteSingleBlock()
oliviermartin [Tue, 12 Mar 2013 00:44:30 +0000 (00:44 +0000)]
ArmPlatformPkg/NorFlashDxe: Fixed BufferSize calculation in NorFlashWriteSingleBlock()

Needed to convert Word into Byte.

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

11 years agoArmPlatformPkg/CTA15-A7: Add a convenient way to restore default values in NOR flash.
oliviermartin [Tue, 12 Mar 2013 00:43:58 +0000 (00:43 +0000)]
ArmPlatformPkg/CTA15-A7: Add a convenient way to restore default values in NOR flash.

Setting bit4 of SCC register 48 now triggers the erasing of the memory region
reserved for variable storage in NOR flash and the restoration of the default
headers in flash.

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

11 years agoArmPkg: Introduce GetGlobalEnvironmentVariable() function.
oliviermartin [Tue, 12 Mar 2013 00:42:59 +0000 (00:42 +0000)]
ArmPkg: Introduce GetGlobalEnvironmentVariable() function.

Rename GetEnvironmentVariable() function into GetGlobalEnvironmentVariable().
GetEnvironmentVariable() function sill exists but caller must now pass a Guid.

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

11 years agoArmPlatformPkg/BootMenu.c: Print loader type in a more friendly way.
oliviermartin [Tue, 12 Mar 2013 00:41:52 +0000 (00:41 +0000)]
ArmPlatformPkg/BootMenu.c: Print loader type in a more friendly way.

In debug mode, the loader type (EFI application or linux kernel with
FDT/ATAG support) is displayed in UEFI boot menu.

Before this patch it was printed as a decimal number which is
meaningful to the user only if he knows the values of the
ARM_BDS_LOADER_TYPE enumeration type in the source code...

This patch modifies the boot menu so that it also prints a
user-friendly string describing the loader type.

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

11 years agoArmPlatformPkg/ArmPlatformLibNull: Fixed build
oliviermartin [Tue, 12 Mar 2013 00:41:05 +0000 (00:41 +0000)]
ArmPlatformPkg/ArmPlatformLibNull: Fixed build

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

11 years agoEmbeddedPkg: Introduced a separate SerialPortExtLib library
oliviermartin [Tue, 12 Mar 2013 00:40:11 +0000 (00:40 +0000)]
EmbeddedPkg: Introduced a separate SerialPortExtLib library

Formerly only the header was defined and it was expecting the SerialPortExtLib
interface to be implemented by SerialPortLib if supported. This behaviour was
not conform to the EDK2 framework.

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

11 years agoEmbeddedPkg/Metronome.c: Fix delay computed by WaitForTick() function.
oliviermartin [Tue, 12 Mar 2013 00:38:15 +0000 (00:38 +0000)]
EmbeddedPkg/Metronome.c: Fix delay computed by WaitForTick() function.

Before the tick period used by the Metronome was hardcoded to 100.
This has been changed since but WaitForTick() function was still relying
on this hardcoded value to compute the number of milliseconds to stall
the CPU.

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

11 years agoStdLib: Fix printf issues with floating point and wide character strings. Also resol...
darylm503 [Mon, 11 Mar 2013 18:00:30 +0000 (18:00 +0000)]
StdLib: Fix printf issues with floating point and wide character strings.  Also resolves a compilation issue with VS2010.  See ISSUES.txt items 1, 11.

ISSUES.txt:  Added issue 11, updated status of issue 1.

gdtoa/gdtoaimp.h:  Fix definition of union U.

Locale/_wcstod.h:  Return 0.0 instead of 0 in the "no_convert" case.

Locale/multibyte_Utf8.c:  In wcsrtombs(), if both the destination pointer is NULL and the size, Limit, is 0; return the estimated length of the converted string up to ASCII_STRING_MAX bytes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: Aniruddha_Herekar@Dell.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14171 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug in IP4 driver which may cause “reconnect –r” hang.
sfu5 [Mon, 11 Mar 2013 08:04:39 +0000 (08:04 +0000)]
Fix a bug in IP4 driver which may cause “reconnect –r” hang.
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@14170 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate DHCP6 driver to handle EFI_DHCP6_CALLBACK return status correctly.
sfu5 [Mon, 11 Mar 2013 07:49:41 +0000 (07:49 +0000)]
Update DHCP6 driver to handle EFI_DHCP6_CALLBACK return status correctly.
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@14169 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInitialize DefaultInfo before using it.
sfu5 [Mon, 11 Mar 2013 07:47:42 +0000 (07:47 +0000)]
Initialize DefaultInfo before using it.
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@14168 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug in IP4 driver that the broadcast/multicast mac address is overrided by...
sfu5 [Mon, 11 Mar 2013 07:44:10 +0000 (07:44 +0000)]
Fix a bug in IP4 driver that the broadcast/multicast mac address is overrided by the gateway’s mac address.
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@14167 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate code to follow coding style.
ydong10 [Mon, 11 Mar 2013 01:22:51 +0000 (01:22 +0000)]
Update code to 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@14166 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug that IsSignatureFoundInDatabase() incorrectly computes CertCount.
sfu5 [Wed, 6 Mar 2013 01:42:04 +0000 (01:42 +0000)]
Fix a bug that IsSignatureFoundInDatabase() incorrectly computes CertCount.
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@14165 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoArmPkg: Move ArmSmcLib from ArmPlatformLib to ArmPkg
oliviermartin [Wed, 6 Mar 2013 00:01:49 +0000 (00:01 +0000)]
ArmPkg: Move ArmSmcLib from ArmPlatformLib to ArmPkg

A ArmSmcLib Null implementation has also been added for CPU without the ARM Security
Extension (Trustzone support).

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

11 years agoArmPkg/DebugPeCoffExtraActionLib: Checked the ImageContext->PdbPointer is not null
oliviermartin [Tue, 5 Mar 2013 23:01:53 +0000 (23:01 +0000)]
ArmPkg/DebugPeCoffExtraActionLib: Checked the ImageContext->PdbPointer is not null

This check prevents to get an assertion in case of null PdbPointer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14163 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFollow UEFI spec, set TimeOut and HwErrRecSupport variable by EFI variable service...
lzeng14 [Tue, 5 Mar 2013 12:20:53 +0000 (12:20 +0000)]
Follow UEFI spec, set TimeOut and HwErrRecSupport variable by EFI variable service instead of PcdSet().

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

11 years agoEnhance the ConPlatform driver to take care of the optional Controller device path...
niruiyu [Tue, 5 Mar 2013 01:58:39 +0000 (01:58 +0000)]
Enhance the ConPlatform driver to take care of the optional Controller device path node when comparing the GOP device path.

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

11 years agoShellPkg: Add "dp" command library to ShellPkg.
jcarsey [Mon, 4 Mar 2013 22:02:59 +0000 (22:02 +0000)]
ShellPkg: Add "dp" command library to ShellPkg.

This command is only included in the build with command line option "-D INCLUDE_DP".  The user must also update the DSC with appropriate library instances that match the platform for the build to succeed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14160 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoShellPkg: Add ShellPrintHelp function to ShellLib.
jcarsey [Mon, 4 Mar 2013 21:54:02 +0000 (21:54 +0000)]
ShellPkg: Add ShellPrintHelp function to ShellLib.

This function allows for easier access to printing standard command help.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Matt Stanbro <Matthew.A.Stanbro@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14159 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: make sure ResetCold() and ResetWarm() never return
jljusten [Mon, 4 Mar 2013 17:38:42 +0000 (17:38 +0000)]
OvmfPkg: make sure ResetCold() and ResetWarm() never return

Also, add a small delay after the 0xCF9 hard reset request -- on qemu/kvm the
port access is translated to the qemu-internal system reset request by the CPU
thread, and it might progress some more before the IO thread acts upon the
system reset request.

MicroSecondDelay() is implemented by OvmfPkg's own 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@14158 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: attempt to trigger cold reset through PIIX3 reset control register
jljusten [Mon, 4 Mar 2013 17:38:24 +0000 (17:38 +0000)]
OvmfPkg: attempt to trigger cold reset through PIIX3 reset control register

The reset requested via the keyboard controller (port 0x64) is actually a
soft reset, but qemu has supported it since forever (plus qemu has not
distinguished between hard reset and soft reset, although this is changing
now). Therefore leave the current IoWrite() in place for compatibility.

On qemu versions with commit 1ec4ba74 ("PIIX3: reset the VM when the Reset
Control Register's RCPU bit gets set"), use the PIIX3 RCR as first choice.
In the future qemu will act differently on soft vs. hard reset requests,
and we should honor that in ResetCold().

  Writing to ioport 0xCF9 on qemu builds prior to commit 1ec4ba74 should
  have no effect. Access to the PCI host config register went through
  several implementations in qemu. Commit 9f6f0423 ("pci_host: rewrite
  using rwhandler") seems safe, both before and after.

  Commit d0ed8076 ("pci_host: convert conf index and data ports to memory
  API") inadvertently dropped the alignment/size check, causing a boot
  regression on NetBSD. It was fixed about six months later in commit
  cdde6ffc, which is current. Translating that to qemu releases, the bug
  was visible from v1.0 to v1.1.0.

On physical hardware cycling between reset methods is sometimes necessary
<http://mjg59.dreamwidth.org/3561.html>. On qemu the port access should
trap immediately.

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

11 years agoOvmfPkg: report support for the PIIX3 reset register in the FADT
jljusten [Mon, 4 Mar 2013 17:38:05 +0000 (17:38 +0000)]
OvmfPkg: report support for the PIIX3 reset register in the FADT

The value to be written corresponds to hard reset, which is what the ACPI
spec prescribes.

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

11 years agoOvmfPkg: upgrade the FADT to ACPI 2.0 without functional changes
jljusten [Mon, 4 Mar 2013 17:37:47 +0000 (17:37 +0000)]
OvmfPkg: upgrade the FADT to ACPI 2.0 without functional changes

This conversion cannot be split very well into smaller patches. Comparing
version 1 and version 2 (modulo the header fields):

> --- EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE
> +++ EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE
> @@ -1,14 +1,14 @@
>    EFI_ACPI_DESCRIPTION_HEADER             Header;
>    UINT32                                  FirmwareCtrl;
>    UINT32                                  Dsdt;
> -  UINT8                                   IntModel;
> -  UINT8                                   Reserved1;
> +  UINT8                                   Reserved0;
> +  UINT8                                   PreferredPmProfile;

The INT_MODEL field was present in ACPI 1.0, but eliminated in 2.0.
According to the spec, "platforms should set this field to zero but field
values of one are also allowed to maintain compatibility with ACPI 1.0".
We're setting it to zero.

About Preferred_PM_Profile (taking the place of an 1.0 reserved field),
the specification says:

  This field is set by the OEM to convey the preferred power management
  profile to OSPM. OSPM can use this field to set default power management
  policy parameters during OS installation.

>From <MdePkg/Include/IndustryStandard/Acpi20.h>:

  #define EFI_ACPI_2_0_PM_PROFILE_UNSPECIFIED         0
  #define EFI_ACPI_2_0_PM_PROFILE_DESKTOP             1
  #define EFI_ACPI_2_0_PM_PROFILE_MOBILE              2
  #define EFI_ACPI_2_0_PM_PROFILE_WORKSTATION         3
  #define EFI_ACPI_2_0_PM_PROFILE_ENTERPRISE_SERVER   4
  #define EFI_ACPI_2_0_PM_PROFILE_SOHO_SERVER         5
  #define EFI_ACPI_2_0_PM_PROFILE_APPLIANCE_PC        6

For a virtual machine, "unspecified" is the best choice.

>    UINT16                                  SciInt;
>    UINT32                                  SmiCmd;
>    UINT8                                   AcpiEnable;
>    UINT8                                   AcpiDisable;
>    UINT8                                   S4BiosReq;
> -  UINT8                                   Reserved2;
> +  UINT8                                   PstateCnt;

We've been already treating this field as PSTATE_CNT. No change in value.

>    UINT32                                  Pm1aEvtBlk;
>    UINT32                                  Pm1bEvtBlk;
>    UINT32                                  Pm1aCntBlk;
> @@ -20,11 +20,11 @@
>    UINT8                                   Pm1EvtLen;
>    UINT8                                   Pm1CntLen;
>    UINT8                                   Pm2CntLen;
> -  UINT8                                   PmTmLen;
> +  UINT8                                   PmTmrLen;

(Field renaming artifact.)

>    UINT8                                   Gpe0BlkLen;
>    UINT8                                   Gpe1BlkLen;
>    UINT8                                   Gpe1Base;
> -  UINT8                                   Reserved3;
> +  UINT8                                   CstCnt;

We've been already treating this field as CST_CNT. No change in value.

>    UINT16                                  PLvl2Lat;
>    UINT16                                  PLvl3Lat;
>    UINT16                                  FlushSize;
> @@ -34,7 +34,19 @@
>    UINT8                                   DayAlrm;
>    UINT8                                   MonAlrm;
>    UINT8                                   Century;
> -  UINT8                                   Reserved4;
> -  UINT8                                   Reserved5;
> -  UINT8                                   Reserved6;
> +  UINT16                                  IaPcBootArch;
> +  UINT8                                   Reserved1;

The first two octets are now merged into a 16-bit short; otherwise we've
been treating those as boot architecture flags already (see SVN rev
13615). No change in value.

>    UINT32                                  Flags;

The fixed feature flags are not modified, only the macro names (expanding
to identical values) are updated to ACPI 2.0.

The following fields are all new in ACPI 2.0:

> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  ResetReg;
> +  UINT8                                   ResetValue;

We don't claim support for the reset register yet.

> +  UINT8                                   Reserved2[3];
> +  UINT64                                  XFirmwareCtrl;
> +  UINT64                                  XDsdt;

The 64-bit physical addresses for the FACS and the DSDT are automatically
filled at installation time, see AddTableToList() and DeleteTable() in
"MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c".

> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPm1aEvtBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPm1bEvtBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPm1aCntBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPm1bCntBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPm2CntBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XPmTmrBlk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XGpe0Blk;
> +  EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE  XGpe1Blk;

We specify the extended addresses for the required and supported PM1a
Event & Control, PM Timer, and GPE0 Register Blocks, and zero the rest, in
accordance with the ACPI 1.0 fields.

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

11 years agoOvmfPkg: fold macros of unsupported GPE1 register block into Facp.aslc
jljusten [Mon, 4 Mar 2013 17:37:29 +0000 (17:37 +0000)]
OvmfPkg: fold macros of unsupported GPE1 register block into Facp.aslc

In the next patch we're going to specify Extended Addresses of register
blocks in Generic Address Structure format. The GAS is easy to fill if we
want to posit either "unsupported" (all zero) or a given address in a
specific address space. However deriving "unsupported" just from a macro
expanding to zero is unwieldy, so let's avoid the need.

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

11 years agoOvmfPkg: fold macros of unsupported PM2 control reg. block into Facp.aslc
jljusten [Mon, 4 Mar 2013 17:37:15 +0000 (17:37 +0000)]
OvmfPkg: fold macros of unsupported PM2 control reg. block into Facp.aslc

Soon we're going to specify Extended Addresses of register blocks in
Generic Address Structure format. The GAS is easy to fill if we want to
posit either "unsupported" (all zero) or a given address in a specific
address space. However deriving "unsupported" just from a macro expanding
to zero is unwieldy, so let's avoid the need.

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