]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
11 years agoAdd assertion to make sure the pointer is not NULL.
niruiyu [Tue, 23 Oct 2012 06:42:32 +0000 (06:42 +0000)]
Add assertion to make sure the pointer is not NULL.

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

11 years agoArmPlatformPkg/Scripts/Ds5: Added missing package declarations in Python scripts
oliviermartin [Mon, 22 Oct 2012 15:45:10 +0000 (15:45 +0000)]
ArmPlatformPkg/Scripts/Ds5: Added missing package declarations in Python scripts

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

11 years agoArmPlatformPkg/Scripts/Ds5: Updated DS-5 scripts to be used by DS-5 v5.12
oliviermartin [Mon, 22 Oct 2012 14:04:47 +0000 (14:04 +0000)]
ArmPlatformPkg/Scripts/Ds5: Updated DS-5 scripts to be used by DS-5 v5.12

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

11 years agoArmPlatformPkg/Scripts: Added ARM DS-5 scripts to debug UEFI
oliviermartin [Mon, 22 Oct 2012 14:01:38 +0000 (14:01 +0000)]
ArmPlatformPkg/Scripts: Added ARM DS-5 scripts to debug UEFI

These scripts allow to automatically load the symbols using either the
report file created by the BaseTools or using the memory regions
defined in the arguments.

This is the scripts for DS-5 prior to DS5 v5.12.

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

11 years ago Remove TPM selftest on S3 boot path to save time
czhang46 [Mon, 22 Oct 2012 04:35:59 +0000 (04:35 +0000)]
 Remove TPM selftest on S3 boot path to save time

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

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

11 years agoEmbeddedPkg/MmcDxe: Ensure MMC is in Identification Mode
oliviermartin [Fri, 19 Oct 2012 09:47:49 +0000 (09:47 +0000)]
EmbeddedPkg/MmcDxe: Ensure MMC is in Identification Mode

This change ensure the MMC card is in Identification Mode.
The card might be in Data Transfer Mode if a pre UEFI Boot Loader
had initialized the card.
A potential optimization would be to skip the Identification Mode
in this case.

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

11 years agoFix a bug that causes GCC build failure.
niruiyu [Fri, 19 Oct 2012 00:00:35 +0000 (00:00 +0000)]
Fix a bug that causes GCC build failure.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ruiyu Ni<ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13870 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a bug that incorrectly uses && instead of !! in IsKeyOptionVariable().
niruiyu [Thu, 18 Oct 2012 23:52:37 +0000 (23:52 +0000)]
Fix a bug that incorrectly uses && instead of !! in IsKeyOptionVariable().

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ruiyu Ni<ruiyu.ni@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13869 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: QemuBootOrder: recognize virtio-scsi devices
jljusten [Thu, 18 Oct 2012 17:08:01 +0000 (17:08 +0000)]
OvmfPkg: QemuBootOrder: recognize virtio-scsi devices

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

11 years agoOvmfPkg: introduce virtio-scsi driver
jljusten [Thu, 18 Oct 2012 17:07:48 +0000 (17:07 +0000)]
OvmfPkg: introduce virtio-scsi driver

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

11 years agoOvmfPkg: VirtioBlkDriverBindingStop: fix incorrect use of UEFI driver model
jljusten [Thu, 18 Oct 2012 17:07:24 +0000 (17:07 +0000)]
OvmfPkg: VirtioBlkDriverBindingStop: fix incorrect use of UEFI driver model

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

11 years agoArmPlatformPkg/BaseTools-Pending-Patches.patch: Added latest ARMGCC & ARMLINUXGCC...
oliviermartin [Thu, 18 Oct 2012 16:27:14 +0000 (16:27 +0000)]
ArmPlatformPkg/BaseTools-Pending-Patches.patch: Added latest ARMGCC & ARMLINUXGCC updated flags

All these changes are already in BaseTools subversion repository.

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

11 years agoFix coding style issue in CryptoPkg.
tye1 [Thu, 18 Oct 2012 09:09:36 +0000 (09:09 +0000)]
Fix coding style issue in CryptoPkg.

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

11 years agoUse %lx to print UINT64 value instead of %x.
niruiyu [Thu, 18 Oct 2012 08:41:56 +0000 (08:41 +0000)]
Use %lx to print UINT64 value instead of %x.

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

11 years agoFix a bug that BCFG creates Key#### variable bigger than it should be.
niruiyu [Thu, 18 Oct 2012 07:32:42 +0000 (07:32 +0000)]
Fix a bug that BCFG creates Key#### variable bigger than it should be.

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

11 years agoRemove the KeyOrder variable dependency from BDS
niruiyu [Thu, 18 Oct 2012 07:31:49 +0000 (07:31 +0000)]
Remove the KeyOrder variable dependency from BDS

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

11 years agoAdd manual configured gateway address back after system reset.
tye1 [Wed, 17 Oct 2012 08:41:49 +0000 (08:41 +0000)]
Add manual configured gateway address back after system reset.

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

11 years ago1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option...
sfu5 [Wed, 17 Oct 2012 08:23:41 +0000 (08:23 +0000)]
1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option on the different IP stack is selected.
2. Retrieve the IP information after iSCSI TCPv6 connection established and fill it into iBFT table.
3. Generate a random IAID for each NIC port to require different IPv6 address in PXE driver.
4. Update function EfiMtftp6Configure() and Mtftp6RrqHandleOack() to allocate at most one UdpIo.
5. Fix a typo from “destory” to “destroy” in network code.

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

11 years agoFix a bug in OpensslLib that PKCS7_verify will use over 8k stack space.
sfu5 [Wed, 17 Oct 2012 08:17:33 +0000 (08:17 +0000)]
Fix a bug in OpensslLib that PKCS7_verify will use over 8k stack space.

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

11 years agoFix buffer overflow issue in Consplitter.
li-elvin [Wed, 17 Oct 2012 06:07:27 +0000 (06:07 +0000)]
Fix buffer overflow issue in Consplitter.

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

11 years agoFix code potential errors in IPsec.
qianouyang [Wed, 17 Oct 2012 05:46:53 +0000 (05:46 +0000)]
Fix code potential errors in IPsec.

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

11 years agoFix ECC issue.
li-elvin [Wed, 17 Oct 2012 05:45:57 +0000 (05:45 +0000)]
Fix ECC issue.

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

11 years agoRemove useless MD5 OID ASN.1 value from DxeImageVerificationLib.
tye1 [Wed, 17 Oct 2012 02:26:11 +0000 (02:26 +0000)]
Remove useless MD5 OID ASN.1 value from DxeImageVerificationLib.

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

11 years agoAdd SPC_INDIRECT_DATA_OBJID check to make sure contentType equals to the
tye1 [Wed, 17 Oct 2012 02:13:54 +0000 (02:13 +0000)]
Add SPC_INDIRECT_DATA_OBJID check to make sure contentType equals to the
specific value defined in Authenticode PE specification.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Reviewed-by:Dong Guo <guo.dong@intel.com>

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

11 years agoFix code potential errors.
ydong10 [Tue, 16 Oct 2012 09:27:49 +0000 (09:27 +0000)]
Fix code potential errors.

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

11 years agoFix a typo in comments.
ydong10 [Tue, 16 Oct 2012 09:26:32 +0000 (09:26 +0000)]
Fix a typo in comments.

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

11 years agoUpdate SmiManager() to invoke all root SMI handlers to following PI Spec.
vanjeff [Tue, 16 Oct 2012 08:57:52 +0000 (08:57 +0000)]
Update SmiManager() to invoke all root SMI handlers to following PI Spec.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

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

11 years agoChange TPM ACCESS_X.activeLocality test timeout to TIMEOUT_A
czhang46 [Tue, 16 Oct 2012 02:58:08 +0000 (02:58 +0000)]
Change TPM ACCESS_X.activeLocality test timeout to TIMEOUT_A

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

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

11 years agoFix time-based and count-based authenticated variable can be updated by each other...
gdong1 [Mon, 15 Oct 2012 06:08:22 +0000 (06:08 +0000)]
Fix time-based and count-based authenticated variable can be updated by each other without verification.

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

11 years agoOvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build
jljusten [Sun, 14 Oct 2012 21:17:33 +0000 (21:17 +0000)]
OvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build

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

11 years agoOvmfPkg: VirtioBlkDxe: fix div & mod of 64-bit dividends on IA32/gcc-4.4
jljusten [Sun, 14 Oct 2012 21:17:20 +0000 (21:17 +0000)]
OvmfPkg: VirtioBlkDxe: fix div & mod of 64-bit dividends on IA32/gcc-4.4

OvmfPkg/VirtioBlkDxe/VirtioBlk.c:667: undefined reference to `__umoddi3'
OvmfPkg/VirtioBlkDxe/VirtioBlk.c:750: undefined reference to `__udivdi3'

These operations would come from libgcc in the IA32 build, but OVMF does not
link against libgcc.

Regression-tested the X64 build with Fedora 18 Alpha XFCE and Windows 8
Consumer Preview guests.

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

11 years agoOvmfPkg: MSVC build fixes for VirtioLib and VirtioBlkDxe
jljusten [Fri, 12 Oct 2012 18:54:52 +0000 (18:54 +0000)]
OvmfPkg: MSVC build fixes for VirtioLib and VirtioBlkDxe

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mike Lee <leemiketw@gmail.com>
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@13845 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: librarize reusable bits from VirtioBlkDxe's SynchronousRequest()
jljusten [Fri, 12 Oct 2012 18:54:35 +0000 (18:54 +0000)]
OvmfPkg: librarize reusable bits from VirtioBlkDxe's SynchronousRequest()

new VirtioLib functions:
- VirtioPrepare(): prepare for appending descriptors
- VirtioFlush(): submit descriptor chain and await host answer

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

11 years agoOvmfPkg: rename AppendDesc to VirtioAppendDesc
jljusten [Fri, 12 Oct 2012 18:54:17 +0000 (18:54 +0000)]
OvmfPkg: rename AppendDesc to VirtioAppendDesc

AppendDesc() should have a prefix implying its containing library,
VirtioLib. Update its sole client VirtioBlkDxe.

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

11 years agoOvmfPkg: extract VirtioLib from VirtioBlkDxe
jljusten [Fri, 12 Oct 2012 18:53:58 +0000 (18:53 +0000)]
OvmfPkg: extract VirtioLib from VirtioBlkDxe

Introduce a new library called VirtioLib, for now only collecting the
following reusable functions with as little changes as possible:

- VirtioWrite()
- VirtioRead()
- VirtioRingInit()
- VirtioRingUninit()
- AppendDesc()

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

11 years agoOvmfPkg: Include/IndustryStandard: extract VirtioBlk.h from Virtio.h
jljusten [Fri, 12 Oct 2012 18:53:36 +0000 (18:53 +0000)]
OvmfPkg: Include/IndustryStandard: extract VirtioBlk.h from Virtio.h

Separate virtio-blk related macro and type definitions from generic virtio
related ones. Adapt the virtio-blk driver since it needs the latter too.

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

11 years agoOvmfPkg: rename OFFSET_OF_VHDR() / SIZE_OF_VHDR() to *_OF_VBLK()
jljusten [Fri, 12 Oct 2012 18:53:20 +0000 (18:53 +0000)]
OvmfPkg: rename OFFSET_OF_VHDR() / SIZE_OF_VHDR() to *_OF_VBLK()

since they are in fact virtio-blk specific.

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

11 years agoOvmfPkg: regroup virtio config fields into generic & specific structs
jljusten [Fri, 12 Oct 2012 18:53:06 +0000 (18:53 +0000)]
OvmfPkg: regroup virtio config fields into generic & specific structs

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

11 years agoOvmfPkg: IndustryStandard/Virtio.h: use OFFSET_OF in OFFSET_OF_VHDR
jljusten [Fri, 12 Oct 2012 18:52:50 +0000 (18:52 +0000)]
OvmfPkg: IndustryStandard/Virtio.h: use OFFSET_OF in OFFSET_OF_VHDR

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

11 years agoOvmfPkg: add inclusion guards in Include/IndustryStandard/Virtio.h
jljusten [Fri, 12 Oct 2012 18:52:37 +0000 (18:52 +0000)]
OvmfPkg: add inclusion guards in Include/IndustryStandard/Virtio.h

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

11 years agoOvmfPkg: move VirtioBlkDxe/Virtio.h to Include/IndustryStandard/Virtio.h
jljusten [Fri, 12 Oct 2012 18:52:24 +0000 (18:52 +0000)]
OvmfPkg: move VirtioBlkDxe/Virtio.h to Include/IndustryStandard/Virtio.h

This commit consists of:
- a verbatim move ("similarity index 100%" in git parlance),
- an updated #include directive in VirtioBlkDxe/VirtioBlk.h,
- and an OvmfPkg.dec package entry in VirtioBlkDxe/VirtioBlk.inf, so that
  the new include directory is searched.

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

11 years agoOvmfPkg: add inclusion guards to VirtioBlkDxe/VirtioBlk.h
jljusten [Fri, 12 Oct 2012 18:52:05 +0000 (18:52 +0000)]
OvmfPkg: add inclusion guards to VirtioBlkDxe/VirtioBlk.h

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

11 years agoStdLib: Reverse a previous change resulting in string pointers that were not being...
darylm503 [Fri, 12 Oct 2012 17:58:30 +0000 (17:58 +0000)]
StdLib: Reverse a previous change resulting in string pointers that were not being incremented sufficiently to accommodate the terminating NUL.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: Fernandes, Cristiano <cristiano.fernandes@hp.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13834 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoPAL_LOGICAL_PROCESSPR_OVERVIEW structure was incorrectly defined. And PAL_MC_ERROR_TY...
li-elvin [Fri, 12 Oct 2012 06:13:33 +0000 (06:13 +0000)]
PAL_LOGICAL_PROCESSPR_OVERVIEW structure was incorrectly defined. And PAL_MC_ERROR_TYPE_INFO has new fields defined per the latest Itanium developer manual.

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

11 years agoRoll back r13823.
vanjeff [Thu, 11 Oct 2012 09:19:59 +0000 (09:19 +0000)]
Roll back r13823.

signed-off-by: Jeff Fan <jeff.fan@intel.com>

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

11 years agogit-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13823 6f19259b...
vanjeff [Thu, 11 Oct 2012 09:10:37 +0000 (09:10 +0000)]
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13823 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd PcdFastPS2Detection to improve PS2 keyboard driver start performance.
li-elvin [Thu, 11 Oct 2012 07:01:22 +0000 (07:01 +0000)]
Add PcdFastPS2Detection to improve PS2 keyboard driver start performance.

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

11 years agoUpdate header format
hhtian [Thu, 11 Oct 2012 04:59:05 +0000 (04:59 +0000)]
Update header format

Signed-off-by: Hot Tian <hot.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13819 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate license statement
hhtian [Thu, 11 Oct 2012 04:57:04 +0000 (04:57 +0000)]
Update license statement

Signed-off-by: Hot Tian <hot.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13818 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing braces around initializer.
lzeng14 [Thu, 11 Oct 2012 02:15:23 +0000 (02:15 +0000)]
Add missing braces around initializer.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Qian Ouyang <qian.ouyang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13817 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing parameter in functions header.
vanjeff [Wed, 10 Oct 2012 07:39:01 +0000 (07:39 +0000)]
Add missing parameter in functions header.

signed-off-by: Jeff Fan <jeff.fan@intel.com>

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

11 years agoFix some corner case for LazyConIn feature
czhang46 [Wed, 10 Oct 2012 07:29:45 +0000 (07:29 +0000)]
Fix some corner case for LazyConIn feature

Signed-off-by: chao zhang <chao.b.zhang@intel.com>
Reviewed-by  : Ni Ruiyu   <ruiyu.ni@intel.com>

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

11 years agoMdeModulePkg/UsbBusDxe: Timing tunning for better boot performance.
erictian [Wed, 10 Oct 2012 02:46:06 +0000 (02:46 +0000)]
MdeModulePkg/UsbBusDxe: Timing tunning for better boot performance.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13809 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd missing SocketIdentifier for Memory Topology table in ACPI5.0.
jyao1 [Tue, 9 Oct 2012 02:03:17 +0000 (02:03 +0000)]
Add missing SocketIdentifier for Memory Topology table in ACPI5.0.

signed-off-by: jiewen.yao@intel.com
reviewed-by: jeff.fan@intel.com

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

11 years agoPoll the network adapter during connect
lpleahy [Mon, 8 Oct 2012 22:02:23 +0000 (22:02 +0000)]
Poll the network adapter during connect

Signed-off-by: lpleahy
Reviewed-by: Dell, Sreenivasula Reddy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13803 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFixed close for socket to properly release the socket context structure and the handle.
lpleahy [Mon, 8 Oct 2012 21:39:35 +0000 (21:39 +0000)]
Fixed close for socket to properly release the socket context structure and the handle.

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

11 years agoOvmfPkg: QemuBootOrder: recognize virtio-blk OFW device paths
jljusten [Mon, 8 Oct 2012 07:33:37 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: recognize virtio-blk OFW device paths

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

11 years agoOvmfPkg: QemuBootOrder: lower the required number of OFW nodes to 2
jljusten [Mon, 8 Oct 2012 07:33:25 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: lower the required number of OFW nodes to 2

2 nodes in an OpenFirmware device path are sufficient for the generic
check at the beginning of TranslateOfwNodes(). The driver specific
branches check for the necessary nodes individually.

The number of nodes saved for examination is unchanged.

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

11 years agoOvmfPkg: QemuBootOrder: whitespace fix
jljusten [Mon, 8 Oct 2012 07:33:12 +0000 (07:33 +0000)]
OvmfPkg: QemuBootOrder: whitespace fix

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

11 years agoOvmfPkg: introduce virtio-blk driver
jljusten [Mon, 8 Oct 2012 07:32:59 +0000 (07:32 +0000)]
OvmfPkg: introduce virtio-blk driver

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

11 years agoMdePkg: Fix incorrect SPCR definitions for 115200 and 57600 baud rate
jyao1 [Mon, 8 Oct 2012 03:30:56 +0000 (03:30 +0000)]
MdePkg: Fix incorrect SPCR definitions for 115200 and 57600 baud rate

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com
Reviewed-by: Jiewen.yao@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13790 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMove GOP and UGA draw from Consplitter entrypoint to start(). When there is one real...
li-elvin [Mon, 8 Oct 2012 02:34:33 +0000 (02:34 +0000)]
Move GOP and UGA draw from Consplitter entrypoint to start(). When there is one real physical graphics device in system, Consplitter will expose GOP/UGA protocol on the virtual handle. In addition, fix a obvious logic issue in 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@13787 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoContributed-under: TianoCore Contribution Agreement 1.0
mdkinney [Fri, 5 Oct 2012 22:26:25 +0000 (22:26 +0000)]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
1) ShellPkg/Library/UefiHandleParsingLib
    a. UefiHandleParsingLib.c – ConvertHandleToHandleIndex() and ConvertHandleIndexToHandle()
        i. Update to work correctly when handles are destroyed due to driver disconnect operations.  Same handle index is never reused.
    b. UefiHandleParsingLib.c – ParseHandleDatabaseByRelationshipWithType() and ParseHandleDatabaseForChildControllers()
        i. Expand to handle Service Binding Protocol usage such as Network stack.
2) ShellPkg/Library/UefiShellDriver1CommandsLib
    a. DevTree.c – Fix bug where the same handle is shown more than once.
    b. Dh.c – Fix use of GetDriverName() and GetDriverImageName().  The status returned must always be evaluated.
    c. Disconnect.c – Remove requirement that a handle being disconnected must support Device Path Protocol.  This prevents driver model handles without device paths from being disconnected (i.e. Network Stack)
    d. OpenInfo.c – Fix bug when showing open info about a ControllerHandle that has been destroyed due to a disconnect or an unload operation.
    e. UefiShellDriver1CommandsLib.uni – Fix “drivers” command formatting when handle indexes have more than 2 characters.

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

11 years agoStdLib: Fix several problems where characters were not being correctly converted...
darylm503 [Fri, 5 Oct 2012 22:00:43 +0000 (22:00 +0000)]
StdLib: Fix several problems where characters were not being correctly converted between wide and MBCS.
        Add utility functions for determining character length of strings.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: erik.c.bjorge@intel.com
Reviewed-by: lee.g.rosenbaum@intel.com
StdLib/LibC/
  Locale/multibyte_Utf8.c
    Improve comments.
    Define implementation-specific MBCS utility functions, as declared in <stdlib.h>.
    Enhance functionality of EncodeUtf8() and improve error handling.
    Set correct conversion state in wcrtomb().
    Bug fixes in wcsrtombs().
    Make wctob() properly MBCS compliant.

  Main/Main.c
    Remove code obsoleted by new wcsrtombs() implementation.

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

11 years agoUnixPkg: Mark as deprecated (replaced by EmulatorPkg)
jljusten [Fri, 5 Oct 2012 07:05:54 +0000 (07:05 +0000)]
UnixPkg: Mark as deprecated (replaced by EmulatorPkg)

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

11 years agoWhen SOURCE_DEBUG_ENABLE is set, a TimerLib is linked into the SEC Phase to support...
mdkinney [Thu, 4 Oct 2012 20:58:21 +0000 (20:58 +0000)]
When SOURCE_DEBUG_ENABLE is set, a TimerLib is linked into the SEC Phase to support the Debug Agent and the TimerLib is mapped into read-only ROM/FLASH.

The TimerLib in the OvmfPkg uses a global variable called mPmba and depends on that global being updated.  This works for modules loaded into memory, but not  XIP modules in ROM/FLASH.

This patch removes the mPmba global variable and instead reads the PIIX4 Power Management Base Address from PCI configuration space when it is needed.  This patch also simplifies the initialization logic in the constructor and introduces #defines to eliminate hard coded values in the function implementations.  According to the PIIX4 documentation, the IO Space enable bit in the PCI Command Register does not have to be set for the Power Management Base Address to be decoded, so that one op has been removed from the constructor.

I have tested this patch with QEMU and verified that the UDK Debugger us functional when SOURCE_DEBUG_ENABLE is set.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
I also tested it with RHEL-6.3 guest boot/shutdown, Fedora 18 Alpha XFCE
guest boot/shutdown, and Windows 8 Consumer Preview guest
boot/reboot/shutdown. (RHEL-6.3 host.) I didn't notice any adverse effects.

Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13783 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoHere is a patch that by default keeps the current 1MB FD sizes. If FD_SIZE_2MB is...
mdkinney [Thu, 4 Oct 2012 15:41:15 +0000 (15:41 +0000)]
Here is a patch that by default keeps the current 1MB FD sizes.  If FD_SIZE_2MB is defined, then 2MB FD sizes will be used.

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

11 years agoThe Driver Binding Protocol Stop() function for the UndiRuntimeDxe is performing...
mdkinney [Wed, 3 Oct 2012 23:49:50 +0000 (23:49 +0000)]
The Driver Binding Protocol Stop() function for the UndiRuntimeDxe is performing actions in the incorrect order.  The call to UninstallMultipleProtocolInterfaces() removes all the protocols from the child handle, which means ChildHandleBuffer[Index] is no longer valid.  After the call to UninstallMultipleProtocolInterfaces(), ChildHandleBuffer[Index] is used again in a call to CloseProtocol().  The handle is not valid, so CloseProtocol() returns an error and generates an ASSERT().

This patch changes the order to call CloseProtocol() before calling UninstallMultipleProtocolInterfaces().

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

11 years agoThe exception table information in X64 PE/COFF images is being stripped by default...
mdkinney [Wed, 3 Oct 2012 21:00:26 +0000 (21:00 +0000)]
The exception table information in X64 PE/COFF images is being stripped by default in the OvmfPkg.

This patch preserves this information when SOURCE_DEBUG_ENABLE is set.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13780 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoVS2005 and DDK3790 tool chain tags require typecasts to BOOLEAN to compile.
mdkinney [Wed, 3 Oct 2012 20:22:17 +0000 (20:22 +0000)]
VS2005 and DDK3790 tool chain tags require typecasts to BOOLEAN to compile.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13779 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg:removes the unreachable ‘break’ instruction after a ‘return’ instruction...
erictian [Sat, 29 Sep 2012 02:44:33 +0000 (02:44 +0000)]
MdeModulePkg:removes the unreachable ‘break’ instruction after a ‘return’ instruction in the switch().

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

11 years agoArmPlatformPkg/LcdPlatformLib.h: Updated HD mode settings to produce a 60Hz frame...
oliviermartin [Fri, 28 Sep 2012 11:12:13 +0000 (11:12 +0000)]
ArmPlatformPkg/LcdPlatformLib.h: Updated HD mode settings to produce a 60Hz frame rate

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

11 years agoArmPlatformPkg/LcdPlatformLib.h: Added support for 'WSXGA+ Mode: 1680 x 1050'
oliviermartin [Fri, 28 Sep 2012 11:11:00 +0000 (11:11 +0000)]
ArmPlatformPkg/LcdPlatformLib.h: Added support for 'WSXGA+ Mode: 1680 x 1050'

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

11 years agoArmPlatformPkg/ArmVExpress-CTA15-A7: Added support for CoreTile Express A15x2_A7x3
oliviermartin [Fri, 28 Sep 2012 11:09:36 +0000 (11:09 +0000)]
ArmPlatformPkg/ArmVExpress-CTA15-A7: Added support for CoreTile Express A15x2_A7x3

This is the big.LITTLE test chip for ARM Versatile Express Motherboard.

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

11 years agoArmPlatformPkg/ArmPlatformStackLib: Introduced helper library to initialize stacks
oliviermartin [Fri, 28 Sep 2012 11:01:36 +0000 (11:01 +0000)]
ArmPlatformPkg/ArmPlatformStackLib: Introduced helper library to initialize stacks

The new functions are:
- ArmPlatformStackSet(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);
- ArmPlatformStackSetPrimary(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);
- ArmPlatformStackSetSecondary(IN UINTN StackBase, IN UINTN MpId, IN UINTN PrimaryStackSize, IN UINTN SecondaryStackSize);

The stack topology can be changed by implementing a new ArmPlatformStackLib

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

11 years agoEmbeddedPkg: Introduced 'SerialPortExtLib.h'
oliviermartin [Fri, 28 Sep 2012 10:56:12 +0000 (10:56 +0000)]
EmbeddedPkg: Introduced 'SerialPortExtLib.h'

EmbeddedPkg/SerialDxe was not allowing to set/get the control of the
Serial connection because the needed functions were not exposed in
SerialPortLib.h.
This commit introduces an additional library to extend the SerialPort
features.

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

11 years agoARM Packages: Moved ARM assembly files to 'Arm' subdirectory
oliviermartin [Fri, 28 Sep 2012 10:52:16 +0000 (10:52 +0000)]
ARM Packages: Moved ARM assembly files to 'Arm' subdirectory

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

11 years agoArmPlatformPkg/EblCmdLib: Added the command 'dumpfdt'
oliviermartin [Fri, 28 Sep 2012 10:48:35 +0000 (10:48 +0000)]
ArmPlatformPkg/EblCmdLib: Added the command 'dumpfdt'

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

11 years agoArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()
oliviermartin [Fri, 28 Sep 2012 10:46:28 +0000 (10:46 +0000)]
ArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()

The MP ID Register is not enough to know the position of the core in the SoC.
We could have SoC with multi cluster of CPUs that do not contain the
same number of CPUs.
This function should return the position of the CPU in the SoC.

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

11 years agoArmPlatformPkg: Introduction of gArmPlatformTokenSpaceGuid.PcdCoreCount
oliviermartin [Fri, 28 Sep 2012 10:43:28 +0000 (10:43 +0000)]
ArmPlatformPkg: Introduction of gArmPlatformTokenSpaceGuid.PcdCoreCount

On ARM PLatforms, there is no standard way to know how many cores are
available on the platform.
This PCD is expected to contain this number.

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

11 years agoArmPkg/BdsLib: Added FDT support for BdsLib
oliviermartin [Fri, 28 Sep 2012 09:58:42 +0000 (09:58 +0000)]
ArmPkg/BdsLib: Added FDT support for BdsLib

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

11 years agoArmPkg/DefaultExceptionHandlerLib: Added support to the BASE-type library
oliviermartin [Fri, 28 Sep 2012 09:55:48 +0000 (09:55 +0000)]
ArmPkg/DefaultExceptionHandlerLib: Added support to the BASE-type library

This library could be used before the UEFI phases to expose the CPU state
when an unexpected exception interrupt the firmware.

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

11 years agoArmPlatformPkg/PrePi: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib
oliviermartin [Fri, 28 Sep 2012 09:54:13 +0000 (09:54 +0000)]
ArmPlatformPkg/PrePi: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib

In case a DebugAgent library is supported for a specific debugger, we would
expect the exception be caught by DebugAgentLib.
The DebugAgentBaseLib exposes the cause of the exception to the user in the
Serial Terminal.

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

11 years agoArmPlatformPkg/Sec: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib
oliviermartin [Fri, 28 Sep 2012 09:52:11 +0000 (09:52 +0000)]
ArmPlatformPkg/Sec: Moved Exception Vector Table to ArmPkg/DebugAgentBaseLib

In case a DebugAgent library is supported for a specific debugger, we would
expect the exception be caught by DebugAgentLib.
The DebugAgentBaseLib exposes the cause of the exception to the user in the
Serial Terminal.

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

11 years agoAdd more exact SMM check in SmmFaultTolerantWriteHandler.
lzeng14 [Fri, 28 Sep 2012 02:30:25 +0000 (02:30 +0000)]
Add more exact SMM check in SmmFaultTolerantWriteHandler.

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

11 years agoRename Trusted Hob to Measured FV hob and add Guided Hob layout structure
czhang46 [Fri, 28 Sep 2012 00:57:02 +0000 (00:57 +0000)]
Rename Trusted Hob to Measured FV hob and add Guided Hob layout structure

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

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

11 years agoArmPlatformPkg/ArmVExpress-CTA9x4.dsc: Fixed build
oliviermartin [Thu, 27 Sep 2012 22:25:56 +0000 (22:25 +0000)]
ArmPlatformPkg/ArmVExpress-CTA9x4.dsc: Fixed build

Removed unavailable driver.

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

11 years agoEmbeddedPkg: Added support to libfdt
oliviermartin [Thu, 27 Sep 2012 16:53:57 +0000 (16:53 +0000)]
EmbeddedPkg: Added support to libfdt

Use the library libdt from the Device Tree Compiler project.
The used version is from Wednesday 22nd August 2012 (commit: 8716901d2215a3)

The Device Tree Compiler project is under dual BSD/GPL license (it means the
license is either BSD or GPL). The BSD license is the license that fits to the
Tianocore contribution requirements.
The use of libfdt into Tianocore has been authorised by David Gibson the
author of libfdt and its current maintainer Jon Loeliger (email thread on 7th
September 2011).

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

11 years agoArmPlatformPkg/Bds: Replaced 'EBL' by 'UEFI Shell' as the default shell on ARM Platforms
oliviermartin [Thu, 27 Sep 2012 15:33:10 +0000 (15:33 +0000)]
ArmPlatformPkg/Bds: Replaced 'EBL' by 'UEFI Shell' as the default shell on ARM Platforms

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

11 years agoARM Packages: Replaced the build of Fat driver and EBL by the binaries of Fat driver...
oliviermartin [Thu, 27 Sep 2012 15:31:54 +0000 (15:31 +0000)]
ARM Packages: Replaced the build of Fat driver and EBL by the binaries of Fat driver and UEFI Shell

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

11 years agoShellBinPkg: Added ARM Binaries
oliviermartin [Thu, 27 Sep 2012 15:28:54 +0000 (15:28 +0000)]
ShellBinPkg: Added ARM Binaries

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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