mirror_edk2.git
8 years agoEmbeddedPkg/MmcDxe: Update Mmc code to conform to coding standard
Olivier Martin [Tue, 6 Aug 2013 12:09:33 +0000 (12:09 +0000)]
EmbeddedPkg/MmcDxe: Update Mmc code to conform to coding standard

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

8 years agoArmPkg/ArmV7Mmu.h: Fixed XN bit conversion from section to small/large page format
Olivier Martin [Tue, 6 Aug 2013 11:00:15 +0000 (11:00 +0000)]
ArmPkg/ArmV7Mmu.h: Fixed XN bit conversion from section to small/large page format

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

8 years agoARM: Remove NSACR from the common code
Olivier Martin [Tue, 6 Aug 2013 10:59:19 +0000 (10:59 +0000)]
ARM: Remove NSACR from the common code

NSACR (Non-Secure Access Control Register) is AArch32 specific.

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

8 years agoMdeMdeModulePkg/Scsi: Enlarge SCSI cmd timeout to a more reasonable experience value...
Feng Tian [Mon, 5 Aug 2013 01:50:11 +0000 (01:50 +0000)]
MdeMdeModulePkg/Scsi: Enlarge SCSI cmd timeout to a more reasonable experience value to cover more devices

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

8 years agoMdeModulePkg PartitionDxe: Ensure the NumberOfPartitionEntries * SizeOfPartitionEntry...
Star Zeng [Wed, 31 Jul 2013 01:09:38 +0000 (01:09 +0000)]
MdeModulePkg PartitionDxe: Ensure the NumberOfPartitionEntries * SizeOfPartitionEntry doesn't overflow.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14520 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix GCC build failure.
Ruiyu Ni [Tue, 30 Jul 2013 06:41:43 +0000 (06:41 +0000)]
Fix GCC build failure.

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

8 years agoUnixPkg: Remove UnixPkg files (It is replaced by EmulatorPkg)
Jordan Justen [Mon, 29 Jul 2013 21:09:55 +0000 (21:09 +0000)]
UnixPkg: Remove UnixPkg files (It is replaced by EmulatorPkg)

For now the UnixPkg/Deprecated.txt file is retained to indicate
that EmulatorPkg should be used instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14518 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/BaseSynchronizationLib: Added ARM Aarch64 architecture support
Harry Liebel [Mon, 29 Jul 2013 09:57:43 +0000 (09:57 +0000)]
MdePkg/BaseSynchronizationLib: Added ARM Aarch64 architecture support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14517 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/BaseCpuLib: Added ARM Aarch64 architecture support
Harry Liebel [Mon, 29 Jul 2013 09:56:36 +0000 (09:56 +0000)]
MdePkg/BaseCpuLib: Added ARM Aarch64 architecture support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14516 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/BaseLib: Added ARM Aarch64 architecture support
Harry Liebel [Mon, 29 Jul 2013 09:55:38 +0000 (09:55 +0000)]
MdePkg/BaseLib: Added ARM Aarch64 architecture support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14515 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg/PxeBaseCode.h: Added PXE Client ID for Aarch64
Harry Liebel [Mon, 29 Jul 2013 09:53:22 +0000 (09:53 +0000)]
MdePkg/PxeBaseCode.h: Added PXE Client ID for Aarch64

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14514 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Added ARM Aarch64 architecture support
Harry Liebel [Mon, 29 Jul 2013 09:52:18 +0000 (09:52 +0000)]
MdePkg: Added ARM Aarch64 architecture support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14513 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg: Added ARM Aarch64 support to PE/COFF support
Harry Liebel [Mon, 29 Jul 2013 09:50:38 +0000 (09:50 +0000)]
MdePkg: Added ARM Aarch64 support to PE/COFF support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14512 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoClarify PrintLib behavior on %d, %x, %l.
Liming Gao [Mon, 29 Jul 2013 07:58:57 +0000 (07:58 +0000)]
Clarify PrintLib behavior on %d, %x, %l.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14511 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoClean the flag before use it to avoid use old error value.
Eric Dong [Mon, 29 Jul 2013 02:45:26 +0000 (02:45 +0000)]
Clean the flag before use it to avoid use old error value.

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

8 years agoArmPkg/ArmLib: Fixed TBLs invalidation in EL1
Olivier Martin [Fri, 26 Jul 2013 17:14:07 +0000 (17:14 +0000)]
ArmPkg/ArmLib: Fixed TBLs invalidation in EL1

'tlb alle1' was used to invalidate the TLBs in EL1. Expect this instruction can only
be invoked from EL2.
The correct instruction to invalidate TLBs in EL1 is 'tlbi vmalle1' - it invalidates
the TLBs of the current VMID.

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

8 years agoArmPkg/Library: AArch64 MMU EL1 support
Olivier Martin [Fri, 26 Jul 2013 17:13:08 +0000 (17:13 +0000)]
ArmPkg/Library: AArch64 MMU EL1 support

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

8 years agoArmPkg,ArmPlatformPkg: Free memory allocated by Get.*SpaceMap()
Olivier Martin [Fri, 26 Jul 2013 17:12:12 +0000 (17:12 +0000)]
ArmPkg,ArmPlatformPkg: Free memory allocated by Get.*SpaceMap()

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

8 years agoArmPkg/ArmLib/AArch64: Use the appropriate macros and update comments
Olivier Martin [Fri, 26 Jul 2013 17:10:51 +0000 (17:10 +0000)]
ArmPkg/ArmLib/AArch64: Use the appropriate macros and update comments

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

8 years agoUpdate all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToTe...
Ruiyu Ni [Fri, 26 Jul 2013 03:14:08 +0000 (03:14 +0000)]
Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14505 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, Conver...
Ruiyu Ni [Fri, 26 Jul 2013 03:00:21 +0000 (03:00 +0000)]
Add 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, ConvertTextToDeviceNode and ConvertTextToDevicePath.
Add a new instance of DevicePathLib which tries to locate the protocol and if it's not found, it uses the internal functions.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14504 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRoll back the changes in revision 14296 since it will cause iSCSI security authentica...
Fu Siyuan [Thu, 25 Jul 2013 05:55:09 +0000 (05:55 +0000)]
Roll back the changes in revision 14296 since it will cause iSCSI security authentication issue.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14503 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg: Update the AArch64 Image File Machine Type to match the PE/COFF spec
Olivier Martin [Wed, 24 Jul 2013 15:31:19 +0000 (15:31 +0000)]
ArmPkg: Update the AArch64 Image File Machine Type to match the PE/COFF spec

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

8 years agoArmPkg/BdsLib: AArch64 MPCore Linux 'spin-table' boot cache fix
Harry Liebel [Wed, 24 Jul 2013 11:54:02 +0000 (11:54 +0000)]
ArmPkg/BdsLib: AArch64 MPCore Linux 'spin-table' boot cache fix

Clean data cache after initialising mailboxes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14501 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/ArmLib/AArch64: Fixed the calculation of the last entry in the Translation...
Olivier Martin [Wed, 24 Jul 2013 11:50:31 +0000 (11:50 +0000)]
ArmPkg/ArmLib/AArch64: Fixed the calculation of the last entry in the Translation Table

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

8 years agoStdLib: Add Aarch64 support.
Harry Liebel [Tue, 23 Jul 2013 18:51:51 +0000 (18:51 +0000)]
StdLib: Add Aarch64 support.

Modifies StdLib/StdLib.inc to include the ARM CompilerIntrinsicsLib when building for Aarch64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com>

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

8 years agoFix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to...
Ruiyu Ni [Mon, 22 Jul 2013 07:35:51 +0000 (07:35 +0000)]
Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to fix OVMF boot no display issue.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14498 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCorrectly character in comments of BaseLib BitField.
Liming Gao [Mon, 22 Jul 2013 06:41:52 +0000 (06:41 +0000)]
Correctly character in comments of BaseLib BitField.

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

8 years agoFixed the issue that BitFieldWrite32, BitFieldAnd32, BitFieldOr32, BitFieldAndThenOr3...
Liming Gao [Mon, 22 Jul 2013 06:35:48 +0000 (06:35 +0000)]
Fixed the issue that BitFieldWrite32, BitFieldAnd32, BitFieldOr32, BitFieldAndThenOr32 with StartBit==0 and EndBit== 31 will hang in debug tip.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <Ruiyu.Ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14496 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Added Aarch64 Foundation Model
Harry Liebel [Fri, 19 Jul 2013 00:07:16 +0000 (00:07 +0000)]
ArmPlatformPkg: Added Aarch64 Foundation Model

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

8 years agoOvmfPkg/Sec: Build identity mapped pages in RAM for X64
Jordan Justen [Thu, 18 Jul 2013 22:51:27 +0000 (22:51 +0000)]
OvmfPkg/Sec: Build identity mapped pages in RAM for X64

This is based on MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c.

Previously we would run using page tables built into the
firmware device.

If a flash memory is available, it is unsafe for the page
tables to be stored in memory since the processor may try
to write to the page table data structures.

Additionally, when KVM ROM support is enabled for the
firmware device, then PEI fails to boot when the page
tables are in the firmware device.

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

8 years agoOvmfPkg: Add IndustryStandard/X64Paging.h
Jordan Justen [Thu, 18 Jul 2013 22:51:16 +0000 (22:51 +0000)]
OvmfPkg: Add IndustryStandard/X64Paging.h

Taken from MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h.

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

8 years agoOvmfPkg ResetSystemLib: Fix shutdown via UEFI runtime services
Jordan Justen [Thu, 18 Jul 2013 22:51:10 +0000 (22:51 +0000)]
OvmfPkg ResetSystemLib: Fix shutdown via UEFI runtime services

When the PM base address was moved from 0x400 to 0xb000, this
code was missed. This prevented shutdown's via the UEFI system
call from working. (For example, at the EFI shell prompt: reset -s)

We now use gUefiOvmfPkgTokenSpaceGuid.PcdAcpiPmBaseAddress
which is currently set at 0xb000.

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

8 years agoArmPlatformPkg/Ds5: Added Aarch64 support
Harry Liebel [Thu, 18 Jul 2013 21:32:43 +0000 (21:32 +0000)]
ArmPlatformPkg/Ds5: Added Aarch64 support

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

8 years agoArmPlatformPkg: Added support for Aarch64 AEM RTSM model
Harry Liebel [Thu, 18 Jul 2013 19:53:43 +0000 (19:53 +0000)]
ArmPlatformPkg: Added support for Aarch64 AEM RTSM model

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

8 years agoArmPlatformPkg: Added Aarch64 support
Harry Liebel [Thu, 18 Jul 2013 19:06:52 +0000 (19:06 +0000)]
ArmPlatformPkg: Added Aarch64 support

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

8 years agoArmPkg: Added AArch64 support (missing files)
Harry Liebel [Thu, 18 Jul 2013 18:14:28 +0000 (18:14 +0000)]
ArmPkg: Added AArch64 support (missing files)

Some missing files from the initial AArch64 commit.

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

8 years agoArmPkg/BdsLib: Added Aarch64 support for booting Linux
Harry Liebel [Thu, 18 Jul 2013 18:13:02 +0000 (18:13 +0000)]
ArmPkg/BdsLib: Added Aarch64 support for booting Linux

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

8 years agoArmPkg: Added Aarch64 support
Harry Liebel [Thu, 18 Jul 2013 18:07:46 +0000 (18:07 +0000)]
ArmPkg: Added Aarch64 support

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

8 years agoShellPkg: Added Aarch64 support
Harry Liebel [Thu, 18 Jul 2013 15:38:25 +0000 (15:38 +0000)]
ShellPkg: Added Aarch64 support

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

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

8 years agoShellPkg: remove high bit to change a EFI_STATUS to a SHELL_STATUS
Jaben Carsey [Thu, 18 Jul 2013 15:36:55 +0000 (15:36 +0000)]
ShellPkg: remove high bit to change a EFI_STATUS to a SHELL_STATUS

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14484 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoThe PCI host bridge can signal failures in its initialization to
Olivier Martin [Thu, 18 Jul 2013 07:21:35 +0000 (07:21 +0000)]
The PCI host bridge can signal failures in its initialization to
the PCI Bus driver through the function call NotifyPhase().

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

8 years agoArmPkg/CpuDxe: Moved memory mapping functions that are not architecture specific...
Olivier Martin [Thu, 18 Jul 2013 06:20:33 +0000 (06:20 +0000)]
ArmPkg/CpuDxe: Moved memory mapping functions that are not architecture specific to 'CpuMmuCommon.c'

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

8 years agoPer gmtime manpage, tm_mon is the number of months since January
Gary Ching-Pang Lin [Wed, 17 Jul 2013 07:53:04 +0000 (07:53 +0000)]
Per gmtime manpage, tm_mon is the number of months since January
while MonthNo is the month of the year, so tm_mon should be MonthNo-1.

Similarly, tm_mday is the day of the month, and DayNo is the number
of days since the first day of the month. Assigning DayNo+1 to
tm_mday to fit the definition.

This commit also corrected miscalculated MonthNo and DayNo for the
first day of the month. (Thanks to Laszlo Ersek!)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14481 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg: Removed the non-used PCD PcdGicPrimaryCoreId
Olivier Martin [Wed, 17 Jul 2013 06:26:10 +0000 (06:26 +0000)]
ArmPkg: Removed the non-used PCD PcdGicPrimaryCoreId

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

8 years agoArmPkg/PL390Gic: Populate the GIC Distributor Target Register with the GIC CPU ID...
Olivier Martin [Wed, 17 Jul 2013 06:25:15 +0000 (06:25 +0000)]
ArmPkg/PL390Gic: Populate the GIC Distributor Target Register with the GIC CPU ID retrieved from the GIC

The GIC CPU Id (the GIC CPU interface the CPU is connected to) can be retrieved by reading the first
registers of the GIC CPU Target Registers.
The first GIC Distributor Target registers correspond to the SGIs.

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

8 years agoEmbeddedPkg/PrePiMemoryAllocationLib: Added dummy FreePages()
Olivier Martin [Wed, 17 Jul 2013 06:24:15 +0000 (06:24 +0000)]
EmbeddedPkg/PrePiMemoryAllocationLib: Added dummy FreePages()

This function is exposed by the MemoryAllocationLib header.
A dummy FreePages() function has been added to fix modules depending on
this library and this function.

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

8 years agoArmPlatformPkg: Removed the check on the CpuId to release the secondary cores from...
Olivier Martin [Wed, 17 Jul 2013 06:23:07 +0000 (06:23 +0000)]
ArmPlatformPkg: Removed the check on the CpuId to release the secondary cores from their mailbox spinning

The idea is to remove the PCD PcdGicPrimaryCoreId to make the port easier (and also to allow changing
the primary boot CPU without adding more platform specific code to UEFI).

There is a risk the mailboxes contain garbage at boot time. But it should be easy enough to clear the
mailboxes when starting UEFI to workaround this limitation.

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

8 years agoExpand the PcdSrIovSystemPageSize type to PcdsPatchableInModule.
Ruiyu Ni [Wed, 17 Jul 2013 02:21:58 +0000 (02:21 +0000)]
Expand the PcdSrIovSystemPageSize type to PcdsPatchableInModule.

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

8 years agoShellPkg: Update error to be SHELL_STATUS and not EFI_STATUS.
Gary Ching-Pang Lin [Tue, 16 Jul 2013 14:40:57 +0000 (14:40 +0000)]
ShellPkg: Update error to be SHELL_STATUS and not EFI_STATUS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14475 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFixes the GCC build 'Unused variable' warning (raised an error when warnings are...
Olivier Martin [Tue, 16 Jul 2013 05:13:52 +0000 (05:13 +0000)]
Fixes the GCC build 'Unused variable' warning (raised an error when warnings are treated as errors).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14474 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRollback patch 14470, because it error check in some extra ending code.
Eric Dong [Tue, 16 Jul 2013 05:09:47 +0000 (05:09 +0000)]
Rollback patch 14470, because it error check in some extra ending code.

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

8 years agoFix IA32 build failure.
Ruiyu Ni [Tue, 16 Jul 2013 03:06:24 +0000 (03:06 +0000)]
Fix IA32 build failure.

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

8 years agoChange the PcdSrIovSystemPageSize from type of [PcdFixedAtBuild] to [PcdFixedAtBuild...
Ruiyu Ni [Tue, 16 Jul 2013 03:02:00 +0000 (03:02 +0000)]
Change the PcdSrIovSystemPageSize from type of [PcdFixedAtBuild] to [PcdFixedAtBuild, PcdDynamic, PcdDynamicEx] so that it’s runtime configurable.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14471 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFixes the GCC build 'Unused variable' warning (raised an error when warnings are...
Olivier Martin [Tue, 16 Jul 2013 02:11:24 +0000 (02:11 +0000)]
Fixes the GCC build 'Unused variable' warning (raised an error when warnings are treated as errors).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14470 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/UncachedMemoryAllocationLib: Removed unused header (Protocol/Cpu.h)
Olivier Martin [Tue, 16 Jul 2013 00:07:24 +0000 (00:07 +0000)]
ArmPkg/UncachedMemoryAllocationLib: Removed unused header (Protocol/Cpu.h)

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

8 years agoArmPkg: Fix UncachedFreeAlignedPages in UncachedMemoryAllocationLib
Eugene Cohen [Mon, 15 Jul 2013 23:59:58 +0000 (23:59 +0000)]
ArmPkg: Fix UncachedFreeAlignedPages in UncachedMemoryAllocationLib

Route both the setting and restoring of cacheability through DXE Services/GCD
and stop using the CPU AP directly.
The patch also removes all references to the CPU AP which eliminates the need
for a library constructor.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Senthil Ramakrishnan <senthil.ramakrishnan@hp.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14468 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRefine the validation for the input attribute before return.
Eric Dong [Mon, 15 Jul 2013 07:47:02 +0000 (07:47 +0000)]
Refine the validation for the input attribute before return.

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

8 years agoUpdate PeiMemoryAllocationLib instance to support AllocateReservedPages() API.
Liming Gao [Fri, 12 Jul 2013 02:49:22 +0000 (02:49 +0000)]
Update PeiMemoryAllocationLib instance to support AllocateReservedPages() API.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: michael.d.kinney@intel.com
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14466 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago1. Add defines for MAX values for UEFI data types.
Liming Gao [Fri, 12 Jul 2013 02:48:08 +0000 (02:48 +0000)]
1. Add defines for MAX values for UEFI data types.
2. Remove the #defines and add the extern declarations for gEfiDebugPortVariableGuid and gEfiDebugPortDevicePathGuid.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: michael.d.kinney@intel.com
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14465 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg Variable: Add the check for PcdFlashNvStorageVariableSize <= PcdFlashNvSt...
Star Zeng [Thu, 11 Jul 2013 08:18:56 +0000 (08:18 +0000)]
SecurityPkg Variable: Add the check for PcdFlashNvStorageVariableSize <= PcdFlashNvStorageFtwSpareSize.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14464 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg: Add the alignment check for FTW spare area address and length, and...
Star Zeng [Thu, 11 Jul 2013 08:15:47 +0000 (08:15 +0000)]
MdeModulePkg: Add the alignment check for FTW spare area address and length, and add the check for PcdFlashNvStorageVariableSize <= PcdFlashNvStorageFtwSpareSize.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14463 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg FaultTolerantWritePei: Refine the code to avoid error report.
Star Zeng [Thu, 11 Jul 2013 01:40:10 +0000 (01:40 +0000)]
MdeModulePkg FaultTolerantWritePei: Refine the code to avoid error report.

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

8 years agoRoll back the changes in revision 14294 since it will cause iSCSI security authentica...
Fu Siyuan [Wed, 10 Jul 2013 05:52:58 +0000 (05:52 +0000)]
Roll back the changes in revision 14294 since it will cause iSCSI security authentication issue.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14461 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFill the ImageHandle and DriverBindingHandle field of Driver Binding Protocol before...
Ruiyu Ni [Wed, 10 Jul 2013 02:06:49 +0000 (02:06 +0000)]
Fill the ImageHandle and DriverBindingHandle field of Driver Binding Protocol before installing the Driver Binding Protocol instance.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14460 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/Usb: Update some debug messages’ print level to EFI_D_VERBOSE
Feng Tian [Fri, 5 Jul 2013 08:08:40 +0000 (08:08 +0000)]
MdeModulePkg/Usb: Update some debug messages’ print level to EFI_D_VERBOSE

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

8 years agoOvmfPkg EmuVariableFvbRuntimeDxe: Let FaultTolerantWriteDxe to init working block...
Star Zeng [Wed, 3 Jul 2013 09:26:49 +0000 (09:26 +0000)]
OvmfPkg EmuVariableFvbRuntimeDxe: Let FaultTolerantWriteDxe to init working block header.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14458 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmulatorPkg: Use FaultTolerantWritePei driver.
Star Zeng [Wed, 3 Jul 2013 09:24:07 +0000 (09:24 +0000)]
EmulatorPkg: Use FaultTolerantWritePei driver.

1. The signature of working block header needs to be updated to gEdkiiWorkingBlockSignatureGuid because FTW write header and record has be updated and exposed to support crossing archs.
2. PEI variable has been updated to depend on FaultTolerantWritePei to robustly handle crashes during Reclaim(), so add FaultTolerantWritePei.inf in *.dsc and *.fdf.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14457 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNt32Pkg: Use FaultTolerantWritePei driver.
Star Zeng [Wed, 3 Jul 2013 09:19:47 +0000 (09:19 +0000)]
Nt32Pkg: Use FaultTolerantWritePei driver.

1. The signature of working block header needs to be updated to gEdkiiWorkingBlockSignatureGuid because FTW write header and record has be updated and exposed to support crossing archs.
2. PEI variable has been updated to depend on FaultTolerantWritePei to robustly handle crashes during Reclaim(), so add FaultTolerantWritePei.inf in *.dsc and *.fdf.

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

8 years agoSecurityPkg: Variable drivers robustly handle crashes during Reclaim().
Star Zeng [Wed, 3 Jul 2013 09:09:42 +0000 (09:09 +0000)]
SecurityPkg: Variable drivers robustly handle crashes during Reclaim().

PEI variable implementation checks only the variable header signature for validity. This does not seem robust if system crash occurred during previous Reclaim() operation. If the crash occurred while FTW was rewriting the variable FV, the signature could be valid even though the rest of the FV isn't valid.
Solution: PEI variable and early phase(before FTW protocol ready) of DXE variable can check the FTW last write status provided by FaultTolerantWritePei and determine if all or partial variable data has been backed up in spare block, and then use the backed up data.

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

8 years agoMdeModulePkg: Variable drivers robustly handle crashes during Reclaim().
Star Zeng [Wed, 3 Jul 2013 09:08:40 +0000 (09:08 +0000)]
MdeModulePkg: Variable drivers robustly handle crashes during Reclaim().

PEI variable implementation checks only the variable header signature for validity. This does not seem robust if system crash occurred during previous Reclaim() operation. If the crash occurred while FTW was rewriting the variable FV, the signature could be valid even though the rest of the FV isn't valid.
Solution: Add a FaultTolerantWritePei driver to check and provide the FTW last write status, then PEI variable and early phase(before FTW protocol ready) of DXE variable can check the status and determine if all or partial variable data has been backed up in spare block, and then use the backed up data.

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

8 years agoFix DDK build fail.
Eric Dong [Wed, 3 Jul 2013 01:29:12 +0000 (01:29 +0000)]
Fix DDK build fail.

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

8 years agoFix GCC build fail.
Eric Dong [Wed, 3 Jul 2013 01:21:39 +0000 (01:21 +0000)]
Fix GCC build fail.

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

8 years agoUpdate HiiDataBase and UefiHiiLib to support Name/Value varstore.
Eric Dong [Tue, 2 Jul 2013 07:53:35 +0000 (07:53 +0000)]
Update HiiDataBase and  UefiHiiLib to support Name/Value varstore.

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

8 years agoFix a bug in Mtftp6 retransmission mechanism of the ACK.
Ari Zigler [Tue, 2 Jul 2013 06:44:27 +0000 (06:44 +0000)]
Fix a bug in Mtftp6 retransmission mechanism of the ACK.
Signed-off-by: Ari Zigler <ariz@mellanox.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14450 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmVExpressLibCTA15-A7: Mapped the extra 1GB of DRAM in the MMU
Olivier Martin [Mon, 1 Jul 2013 14:14:37 +0000 (14:14 +0000)]
ArmPlatformPkg/ArmVExpressLibCTA15-A7: Mapped the extra 1GB of DRAM in the MMU

ARM Versatile Express TC2 Core Tile has two profiles: the 1GB DRAM core tile or
the 2GB DRAM core tile profiles.
By default UEFI assumes, it is the 1GB core tile. In case of 2GB DRAM it declares
this additional 1GB resource system memory to UEFI. But the previous code did
not map this memory in the MMU Page Table.
So, the memory was allocatable by UEFI modules, but was not accessible by the CPU
(because not mapped).

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

8 years agoShellPkg: Verify memory and handle allocation failure.
jaben carsey [Fri, 28 Jun 2013 22:44:21 +0000 (22:44 +0000)]
ShellPkg: Verify memory and handle allocation failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: jaben carsey <jaben.carsey@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14448 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/BdsLib: Fixed manipulation of the Memory Map returned by GetMemoryMap()
Olivier Martin [Thu, 27 Jun 2013 18:18:24 +0000 (18:18 +0000)]
ArmPkg/BdsLib: Fixed manipulation of the Memory Map returned by GetMemoryMap()

The UEFI specification mandates that software uses the DescriptorSize returned
by the GetMemoryMap() function to find the start of each EFI_MEMORY_DESCRIPTOR
in the MemoryMap array. This allows for future expansion of the EFI_MEMORY_DESCRIPTOR.

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

8 years agoArmPkg/ArmLib: Marked functions as 'STATIC' if not exposed outside of the scope of...
Olivier Martin [Thu, 27 Jun 2013 18:17:19 +0000 (18:17 +0000)]
ArmPkg/ArmLib: Marked functions as 'STATIC' if not exposed outside of the scope of the source file

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

8 years agoArmPkg: Made ArmConfigureMmu() returns a status code
Olivier Martin [Thu, 27 Jun 2013 18:16:06 +0000 (18:16 +0000)]
ArmPkg: Made ArmConfigureMmu() returns a status code

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

8 years agoShellPkg: make automatically created shells quit automatically
jaben carsey [Thu, 27 Jun 2013 16:11:39 +0000 (16:11 +0000)]
ShellPkg: make automatically created shells quit automatically

This creates a new parameter to this shell implementation “_exit” that causes the shell to automatically exit after running the initial specified command line.  This also automatically uses that command in the Execute() API.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: jaben carsey <jaben.carsey@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14444 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAx88772: Add logic to separate packet, fix MTU issue. Ax88772b: Fix driver model...
Yu Pei [Thu, 27 Jun 2013 05:07:29 +0000 (05:07 +0000)]
Ax88772: Add logic to separate packet, fix MTU issue. Ax88772b: Fix driver model unload function, fix SCT test failures.

Signed-off-by: Yu Pei <pei.yu@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Leahy, Leroy P <Leroy.P.Leahy@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14443 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/Usb: Boost the r/w performance by reducing stall time on polling cmd...
Feng Tian [Mon, 24 Jun 2013 03:03:55 +0000 (03:03 +0000)]
MdeModulePkg/Usb: Boost the r/w performance by reducing stall time on polling cmd execution status

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14442 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Update rm command to properly prepend file system identifiers to filenames.
Jaben Carsey [Fri, 21 Jun 2013 21:20:03 +0000 (21:20 +0000)]
ShellPkg: Update rm command to properly prepend file system identifiers to filenames.

This is required when recursively removing directories with files on file systems other than the current one.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Eugene Cohen <eugene@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14441 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Fixed deprecated ifdef syntax in DSC files
Olivier Martin [Fri, 21 Jun 2013 11:08:17 +0000 (11:08 +0000)]
ArmPlatformPkg: Fixed deprecated ifdef syntax in DSC files

The syntax '!ifdef $(MACRO)' is deprecated and should be replaced by '!ifdef MACRO'.

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

8 years agoArmPlatformPkg/ArmVExpressPkg: CTA9x4: Default to EDK2_ARMVE_STANDALONE=1
Ryan Harkin [Fri, 21 Jun 2013 10:59:53 +0000 (10:59 +0000)]
ArmPlatformPkg/ArmVExpressPkg: CTA9x4: Default to EDK2_ARMVE_STANDALONE=1

This patch changes the Versatile Express A9 BSP to build with
EDK2_ARMVE_STANDALONE=1 as the default option.

The user may then specify zero if they wish to build the non-standalone
version.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14439 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmVExpressPkg: Add Shutdown support
Ryan Harkin [Fri, 21 Jun 2013 10:09:50 +0000 (10:09 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Add Shutdown support

LibResetSystem was performing a cold reboot for both reboot and
shutdown.

This patch updates LibResetSystem to pass SYS_CFG_SHUTDOWN to the
microcontroller when called wit EfiResetShutdown.

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://svn.code.sf.net/p/edk2/code/trunk/edk2@14438 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/Bds: Make ".EFI" files recognizable as EFI applications
Leif Lindholm [Fri, 21 Jun 2013 10:01:27 +0000 (10:01 +0000)]
ArmPlatformPkg/Bds: Make ".EFI" files recognizable as EFI applications

Currently, only ".efi" files are recognized as valid ARM UEFI
applications by BDS. This patch also makes ".EFI" files recognised.

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://svn.code.sf.net/p/edk2/code/trunk/edk2@14437 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/ArmLib: Removed ArmInvalidateTlb when disabling cache as ArmDisableMmu() alrea...
Olivier Martin [Wed, 19 Jun 2013 18:27:55 +0000 (18:27 +0000)]
ArmPkg/ArmLib: Removed ArmInvalidateTlb when disabling cache as ArmDisableMmu() already does it

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

8 years agoArmPkg: Moved PcdArmLinuxAtagMaxOffset to be ARM specific
Olivier Martin [Wed, 19 Jun 2013 18:27:05 +0000 (18:27 +0000)]
ArmPkg: Moved PcdArmLinuxAtagMaxOffset to be ARM specific

ATAG is specific to 32bit ARM architecture.

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

8 years agoArmPkg/BdsLib: Update FDT CPU node format
Olivier Martin [Wed, 19 Jun 2013 18:09:19 +0000 (18:09 +0000)]
ArmPkg/BdsLib: Update FDT CPU node format

- Based on Doc here:
  Repo: http://www.linux-arm.org/git?p=linux-2.6-lp.git
  Branch: dt-cpus-bindings
  File:   Documentation/devicetree/bindings/arm/cpus.txt

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

8 years agoArmPkg/Drivers/TimerDxe: Improve Timer initialisation.
Olivier Martin [Wed, 19 Jun 2013 18:08:02 +0000 (18:08 +0000)]
ArmPkg/Drivers/TimerDxe: Improve Timer initialisation.

- Registering a interrupt handler implicitly enables said interrupt. This
  is in the UEFI Spec. No need to enable the interrupts a second time.
- Make sure the Timer is completely disabled before configuring it. Only
  enable after configuration is complete.

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

8 years agoArmPlatformPkg/PL011Uart: Ignore BAUD rate if Integral non-zero
Olivier Martin [Wed, 19 Jun 2013 18:06:12 +0000 (18:06 +0000)]
ArmPlatformPkg/PL011Uart: Ignore BAUD rate if Integral non-zero

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

8 years agoArmPlatformPkg/PL011Uart: Fixed condition
Olivier Martin [Wed, 19 Jun 2013 18:03:12 +0000 (18:03 +0000)]
ArmPlatformPkg/PL011Uart: Fixed condition

The aim of the condition is to check if we should use the default BaudRate
value (case when *BaudRate == 0).

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

8 years agoArmPlatformPkg/Bds: Moved the PrintLib() after forcing the last character to be null
Olivier Martin [Wed, 19 Jun 2013 18:00:46 +0000 (18:00 +0000)]
ArmPlatformPkg/Bds: Moved the PrintLib() after forcing the last character to be null

That should prevent the risk of buffer overflow.

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

8 years agoArmPlatformPkg/ArmVExpressLibCTA15-A7: Fixed ARM Toolchain build
Olivier Martin [Wed, 19 Jun 2013 17:58:26 +0000 (17:58 +0000)]
ArmPlatformPkg/ArmVExpressLibCTA15-A7: Fixed ARM Toolchain build

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

8 years agoMdeModulePkg/AtaBus: wait up to 30s for ATA cmd response in Standby/Idle mode to...
Feng Tian [Tue, 18 Jun 2013 03:36:11 +0000 (03:36 +0000)]
MdeModulePkg/AtaBus: wait up to 30s for ATA cmd response in Standby/Idle mode to follow ATA spec

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

8 years agoShellBinPkg/UefiShell: Updated Shell Binary for ARM architecture
Olivier Martin [Mon, 17 Jun 2013 09:58:18 +0000 (09:58 +0000)]
ShellBinPkg/UefiShell: Updated Shell Binary for ARM architecture

This binary is built against svn r14400 (such as the x86 ones).

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

8 years agoArmPlatformPkg: Fixed size of RTSM FDs
Olivier Martin [Mon, 17 Jun 2013 09:52:51 +0000 (09:52 +0000)]
ArmPlatformPkg: Fixed size of RTSM FDs

The size of the FDs did not match the FD layout.

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

8 years agoThe list of locked variables is traversed at runtime, hence we must
Laszlo Ersek [Mon, 17 Jun 2013 02:30:42 +0000 (02:30 +0000)]
The list of locked variables is traversed at runtime, hence we must
convert the list when transferring from physical to virtual mode.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14425 6f19259b-4bc3-4df7-8a09-765794883524