]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
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

11 years agoArmPlatformPkg/EblCmdLib: Fixed 'performance' command
oliviermartin [Wed, 26 Sep 2012 20:24:10 +0000 (20:24 +0000)]
ArmPlatformPkg/EblCmdLib: Fixed 'performance' command

Added support for performance counter that counts up or down

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

11 years agoArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions
oliviermartin [Wed, 26 Sep 2012 20:22:37 +0000 (20:22 +0000)]
ArmPlatformPkg/VExpressMotherBoard.h: Added more motherboard definitions

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

11 years agoArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero
oliviermartin [Wed, 26 Sep 2012 20:21:20 +0000 (20:21 +0000)]
ArmPlatformPkg/PL011Uart: The PL011 UART fractional part does not need to be zero

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

11 years agoArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT
oliviermartin [Wed, 26 Sep 2012 20:19:53 +0000 (20:19 +0000)]
ArmPkg/include: Added macro ARM_VECTOR_TABLE_ALIGNMENT

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

11 years agoArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE
oliviermartin [Wed, 26 Sep 2012 20:12:55 +0000 (20:12 +0000)]
ArmPlatformPkg: Added 'Makefile' to build EDK2 from Makefile based IDE

This makefile can be used to build EDK2 from Eclipse CDT plug-in.

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

11 years agoRemove local function IsValidDevicePath and use new interface provided by UefiDeviceP...
niruiyu [Wed, 26 Sep 2012 09:01:23 +0000 (09:01 +0000)]
Remove local function IsValidDevicePath and use new interface provided by UefiDevicePathlib.

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

11 years agoStdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.
darylm503 [Tue, 25 Sep 2012 22:01:58 +0000 (22:01 +0000)]
StdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.

StdLib/Include/
  stdlib.h
    Update MB_CUR_MAX to 3, the max. size of a MBCS character.
    Improve comments for wcstombs()
    Declare implementation-specific MBCS utility functions:
      OneWcToMcLen()    Determine the number of bytes needed to represent
                        a Wide character as a MBCS character.
      EstimateWtoM()    Determine the number of bytes needed to represent
                        a Wide character string as a MBCS string.
      CountMbcsChars()  Determine the number of characters in a MBCS string.

  wchar.h
    Improve comments.

StdLib/Include/sys/
  fcntl.h
    Define new Open flags.
    Remove obsolete and commented-out lines.

  termios.h
    Add Intel Copyright notice and Open-Source License.
    Change c_cc index macros into enumerated values.
    Clean up flag definitions for visual alignment as well as UEFI relevance.
    Move c_ispeed and c_ospeed termios members to end for better alignment.
    Comment out declarations for functions not yet implemented.
    Add an enum defining values for the UEFI extended function keys.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
Reviewed-by: jaben.carsey@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13741 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI...
vanjeff [Tue, 25 Sep 2012 02:44:53 +0000 (02:44 +0000)]
1. Update PiSmmCore to always invoke SmiManage (NULL, NULL, NULL, NULL) when SMI triggered.
2. Fix issue that PlatformHookAfterSmiDispatch() and PERF_END() are not called in the case mInLegacyBoot is TRUE.

signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>

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

11 years agoStdLib/LibC/StdLib/Malloc.c: Make the free() function conform to the ISO/IEC 9899...
darylm503 [Mon, 24 Sep 2012 22:44:03 +0000 (22:44 +0000)]
StdLib/LibC/StdLib/Malloc.c:  Make the free() function conform to the ISO/IEC 9899 (C95) specification.

The C95 specification states: "The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation.  If ptr is a null pointer, no action occurs".  The UEFI FreePool() function, which the StdLib implementation of free() uses, does not make this check.  This fix adds a check for null to the free() function such that if the pointer argument is NULL, nothing is done.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13739 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClean the build warning.
ydong10 [Mon, 24 Sep 2012 06:58:21 +0000 (06:58 +0000)]
Clean the build warning.

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

11 years agoAdd new API IsDevicePathValid() to UefiDevicePathLib.
niruiyu [Mon, 24 Sep 2012 03:20:35 +0000 (03:20 +0000)]
Add new API IsDevicePathValid() to UefiDevicePathLib.

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

11 years agoHandle the case when OpROM wants to completely remove itself.
niruiyu [Mon, 24 Sep 2012 02:57:47 +0000 (02:57 +0000)]
Handle the case when OpROM wants to completely remove itself.

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

11 years agoStdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define...
darylm503 [Thu, 20 Sep 2012 21:01:21 +0000 (21:01 +0000)]
StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <jcarsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd TperReset Logic By using MOR bit - Remove the unnecessary parameter.
qianouyang [Wed, 19 Sep 2012 02:14:51 +0000 (02:14 +0000)]
Add TperReset Logic By using MOR bit - Remove the unnecessary parameter.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13734 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd a dialog box with help message when user changes the state of "Attempt Secure...
sfu5 [Fri, 14 Sep 2012 07:28:37 +0000 (07:28 +0000)]
Add a dialog box with help message when user changes the state of "Attempt Secure Boot" check box.

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

11 years agoFix the issue that FTW driver fail to reclaim WorkSpace.
lzeng14 [Fri, 14 Sep 2012 06:54:35 +0000 (06:54 +0000)]
Fix the issue that FTW driver fail to reclaim WorkSpace.

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

11 years ago1. Fix a bug when comparing two timestamp in auth-variable driver.
sfu5 [Fri, 14 Sep 2012 02:59:35 +0000 (02:59 +0000)]
1. Fix a bug when comparing two timestamp in auth-variable driver.
2. Remove the TimeCompare function in Bds since it's not used anymore.

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

11 years agoFix coding style issue
czhang46 [Thu, 13 Sep 2012 11:28:27 +0000 (11:28 +0000)]
Fix coding style issue

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

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

11 years agoAdd ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
czhang46 [Thu, 13 Sep 2012 08:34:32 +0000 (08:34 +0000)]
Add ImageAuthenticationStatusLib to SAP to check Authentication Status returned from
Section Extraction Protocol

Signed-off-by: Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by  : Gao Liming<liming.gao@intel.com>

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

11 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:20:34 +0000 (10:20 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

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

11 years agoAdd Tper Reset Logic by using MOR bit.
qianouyang [Wed, 12 Sep 2012 10:19:50 +0000 (10:19 +0000)]
Add Tper Reset Logic by using MOR bit.

Signed-off-by: Ouyang, Qian <Qian.Ouyang@intel.com>
Reviewed-by: Tian, Feng <feng.tian@intel.com>
             Dong, Guo <Guo.dong@intel.com>

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

11 years agoSecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
erictian [Wed, 12 Sep 2012 08:25:25 +0000 (08:25 +0000)]
SecurityPkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.

Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13726 6f19259b-4bc3-4df7-8a09-765794883524