]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
11 years agoOvmfPkg: generate full MADT dynamically, synchronize contents with qemu
jljusten [Mon, 13 Aug 2012 15:42:07 +0000 (15:42 +0000)]
OvmfPkg: generate full MADT dynamically, synchronize contents with qemu

Represent the set of possible PCI link target IRQs with
Pcd8259LegacyModeEdgeLevel. This ensures that the 8259 Interrupt
Controller code in PcAtChipsetPkg will treat them as level-triggered 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@13628 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: have PlatformBdsLib::PciInitialization conform to the _PRS
jljusten [Mon, 13 Aug 2012 15:41:43 +0000 (15:41 +0000)]
OvmfPkg: have PlatformBdsLib::PciInitialization conform to the _PRS

Also set some INTLN values, informatively.

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

11 years agoOvmfPkg: PlatformBdsLib: the balloon device (RAM Memory) is in slot 5
jljusten [Mon, 13 Aug 2012 15:41:31 +0000 (15:41 +0000)]
OvmfPkg: PlatformBdsLib: the balloon device (RAM Memory) is in slot 5

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

11 years agoOvmfPkg: fix interrupt routing in the DSDT, bump revision number
jljusten [Mon, 13 Aug 2012 15:41:18 +0000 (15:41 +0000)]
OvmfPkg: fix interrupt routing in the DSDT, bump revision number

Rotate links over devices and pins so that they match qemu.

PIIX4 function 3 (Power Management Module) unconditionally uses the INTA
interrupt pin. SCI from this module requires IRQ9.

Keep other assignments off IRQ9. Only IRQ5, IRQ10, IRQ11 remain for PCI
devices.

Bump OEMRevision in the DSDT.

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

11 years agoOvmfPkg: add parallel port to the DSDT
jljusten [Mon, 13 Aug 2012 15:41:07 +0000 (15:41 +0000)]
OvmfPkg: add parallel port to the DSDT

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

11 years agoOvmfPkg: fix the _UID of \_SB.PCI0.LPC.LNKD in the DSDT
jljusten [Mon, 13 Aug 2012 15:40:54 +0000 (15:40 +0000)]
OvmfPkg: fix the _UID of \_SB.PCI0.LPC.LNKD in the DSDT

LNKD is the fourth PNP0C0F.

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

11 years agoOvmfPkg: add comments to the DSDT, remove trailing empty line
jljusten [Mon, 13 Aug 2012 15:40:43 +0000 (15:40 +0000)]
OvmfPkg: add comments to the DSDT, remove trailing empty line

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

11 years agoOvmfPkg: _DIS and _SRS methods should have permanent effect
jljusten [Mon, 13 Aug 2012 15:40:31 +0000 (15:40 +0000)]
OvmfPkg: _DIS and _SRS methods should have permanent effect

Kill PDIS and PSRS as they are writing to copies of PIR[A-D], not PIR[A-D]
themselves. Use specialized _DIS and _SRS methods that access PIR[A-D]
directly.

(This should be solvable by passing RefOf (PIRA) etc to PDIS/PSRS, however
the RHEL-6.3 kernel AML parser seems to choke on it. The rules described
in ACPIspec5.0 Table 19-316 "Object Storing and Copying Rules" don't seem
to work:

    ACPI Error: Needed [Integer/String/Buffer], found [Reference]
    ffff88003ee02420 (20090903/exresop-422)

    ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for
    [OpcodeName unavailable] (20090903/dswexec-445)

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.PDIS] (Node ffff88003f638b50), AE_AML_OPERAND_TYPE

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.LNKA._DIS] (Node ffff88003f638a10),
    AE_AML_OPERAND_TYPE

When changing the method too, so that it writes to DerefOf (Arg0) instead
of Arg0, ie. explicitly dereferencing rather than expecting the auto-deref
to work:

    ACPI Error: Needed type [Reference], found [RegionField]
    ffff88003f639858 (20090903/exresop-104)

    ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for
    [OpcodeName unavailable] (20090903/dswexec-445)

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.PDIS] (Node ffff88003f638b50), AE_AML_OPERAND_TYPE

    ACPI Error (psparse-0537): Method parse/execution failed
    [\_SB_.PCI0.LPC_.LNKA._DIS] (Node ffff88003f638a10),
    AE_AML_OPERAND_TYPE

In short, when passing a RefOf, it is recognized as a reference inside the
method but mistakenly refused. When trying to deref it explicitly with
DerefOf, then it's suddenly not recognized as a reference.)

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

11 years agoOvmfPkg: unlike PIIX4, qemu needs ActiveHigh for interrupt sharing
jljusten [Mon, 13 Aug 2012 15:40:19 +0000 (15:40 +0000)]
OvmfPkg: unlike PIIX4, qemu needs ActiveHigh for interrupt sharing

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

11 years agoOvmfPkg: simplify _CRS, _PRS, _SRS methods in the DSDT
jljusten [Mon, 13 Aug 2012 15:40:07 +0000 (15:40 +0000)]
OvmfPkg: simplify _CRS, _PRS, _SRS methods in the DSDT

Use Extended Interrupt Descriptors in the _CRS, _PRS, _SRS methods of
\_SB.PCI0.LPC.LNK[A-D], eliminating bit shifting.

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

11 years agoOvmfPkg: add qemu debug console port to XTRA device
jljusten [Mon, 13 Aug 2012 15:39:55 +0000 (15:39 +0000)]
OvmfPkg: add qemu debug console port to XTRA device

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

11 years agoOvmfPkg: fix LAPIC RangeLength in DSDT
jljusten [Mon, 13 Aug 2012 15:39:43 +0000 (15:39 +0000)]
OvmfPkg: fix LAPIC RangeLength in DSDT

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

11 years agoOvmfPkg: sync FADT with QEMU: PM Timer is 24-bit
jljusten [Mon, 13 Aug 2012 15:39:32 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: PM Timer is 24-bit

Clear TMR_VAL_EXT.

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

11 years agoOvmfPkg: sync FADT with QEMU: boot architecture flags
jljusten [Mon, 13 Aug 2012 15:39:20 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: boot architecture flags

Clear boot architecture flags: LEGACY_DEVICES, 8042 keyboard controller.

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

11 years agoOvmfPkg: sync FADT with QEMU: clear DAY_ALRM
jljusten [Mon, 13 Aug 2012 15:39:08 +0000 (15:39 +0000)]
OvmfPkg: sync FADT with QEMU: clear DAY_ALRM

"RTC day of the month alarm feature is not supported".

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

11 years agoOvmfPkg: sync FADT with QEMU: cleanup FLUSH_SIZE / FLUSH_STRIDE
jljusten [Mon, 13 Aug 2012 15:38:55 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: cleanup FLUSH_SIZE / FLUSH_STRIDE

Since WBINVD is supported, clear ignored FLUSH_SIZE and FLUSH_STRIDE.

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

11 years agoOvmfPkg: sync FADT with QEMU: disable PM2 control block
jljusten [Mon, 13 Aug 2012 15:38:39 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: disable PM2 control block

Remove support for optional PM2 control block.

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

11 years agoOvmfPkg: sync FADT with QEMU: correct SMI_CMD
jljusten [Mon, 13 Aug 2012 15:38:16 +0000 (15:38 +0000)]
OvmfPkg: sync FADT with QEMU: correct SMI_CMD

- Qemu's PIIX emulation actually supports SMM and ACPI_ENABLE /
  ACPI_DISABLE.

- After enabling SMI_CMD (SMI_CMD_IO_PORT), further values to be written
  there must be synchronized with qemu: PSTATE_CNT, CST_CNT.

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

11 years agoOvmfPkg: cleanup whitespace in Facp.aslc / Platform.h
jljusten [Mon, 13 Aug 2012 15:37:50 +0000 (15:37 +0000)]
OvmfPkg: cleanup whitespace in Facp.aslc / Platform.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@13610 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCheck if active video mode is changed after OpROM starts, if active video mode is...
li-elvin [Mon, 13 Aug 2012 09:33:49 +0000 (09:33 +0000)]
Check if active video mode is changed after OpROM starts, if active video mode is not changed, skip INT10 calls to improve 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@13609 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix 2 errors for new feature
czhang46 [Fri, 10 Aug 2012 06:47:11 +0000 (06:47 +0000)]
Fix 2 errors for new feature

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

11 years agoFix 2 errors for new feature
czhang46 [Fri, 10 Aug 2012 06:46:21 +0000 (06:46 +0000)]
Fix 2 errors for new feature

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

11 years agoFix issue that TCP server will not response to SYN packet from TCP client in TCP6...
tye1 [Fri, 10 Aug 2012 06:32:15 +0000 (06:32 +0000)]
Fix issue that TCP server will not response to SYN packet from TCP client in TCP6 module.

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

11 years agoUpdate openssl patch to replaces the “__FILE__” and “__LINE__” with NULL and 0.
sfu5 [Fri, 10 Aug 2012 01:27:30 +0000 (01:27 +0000)]
Update openssl patch to replaces the “__FILE__” and “__LINE__” with NULL and 0.

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

11 years agoReturn the proper status after one of the ports is configured for UDP or IP communica...
lpleahy [Fri, 10 Aug 2012 01:13:05 +0000 (01:13 +0000)]
Return the proper status after one of the ports is configured for UDP or IP communications.

Reviewed by: Ankit Singh of Dell
Submitted by: lpleahy

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

11 years agoRefine get default language logic for command "drivers".
ydong10 [Fri, 10 Aug 2012 01:10:05 +0000 (01:10 +0000)]
Refine get default language logic for command "drivers".

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

11 years agoOvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues
jljusten [Thu, 9 Aug 2012 23:27:05 +0000 (23:27 +0000)]
OvmfPkg/AcpiPlatformDxe: Fix Visual Studio build issues

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

11 years agoFix memory leak
ydong10 [Thu, 9 Aug 2012 01:39:56 +0000 (01:39 +0000)]
Fix memory leak

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

11 years agoArmPlatformPkg/Bds: Fixed device path of the default error output device
oliviermartin [Wed, 8 Aug 2012 16:47:51 +0000 (16:47 +0000)]
ArmPlatformPkg/Bds: Fixed device path of the default error output device

Replaced 'ConErr' by 'ErrOut'.

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

11 years agoRemoved SetMode in GraphicsConsole Start() in release BIOS to improve performance...
li-elvin [Tue, 7 Aug 2012 09:32:46 +0000 (09:32 +0000)]
Removed SetMode in GraphicsConsole Start() in release BIOS to improve performance. Initialize current text mode number to 0xFF as invalid text mode per UEFI spec. Add current mode check in text out protocol interface to avoid invalid text mode.

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

11 years agoUpdated GraphicsOutput.h to follow UEFI 2.3.1 c spec.
li-elvin [Tue, 7 Aug 2012 09:20:44 +0000 (09:20 +0000)]
Updated GraphicsOutput.h to follow UEFI 2.3.1 c spec.

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

11 years agoThe format strings are using notations that require UINTNs (like "0x%02x") but a...
ydong10 [Tue, 7 Aug 2012 00:54:29 +0000 (00:54 +0000)]
The format strings are using notations that require UINTNs (like "0x%02x") but a UINT64 type was being passed instead.  This patch adds a typecast to UINTN so the print processing works correctly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13597 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a width count error in ClearScreen function.
ydong10 [Tue, 7 Aug 2012 00:47:06 +0000 (00:47 +0000)]
Fix a width count error in ClearScreen function.

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

11 years agoRefine code to follow coding style.
ydong10 [Tue, 7 Aug 2012 00:44:28 +0000 (00:44 +0000)]
Refine code to follow coding style.

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

11 years agoEnable wide string support for CreatePopUp function in UefiLib.
ydong10 [Mon, 6 Aug 2012 09:14:18 +0000 (09:14 +0000)]
Enable wide string support for CreatePopUp function in UefiLib.

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

11 years agoLastVariableOffset is wrongly set to 0 when FtwVariableSpace() fails. Recalculate...
lzeng14 [Mon, 6 Aug 2012 03:20:10 +0000 (03:20 +0000)]
LastVariableOffset is wrongly set to 0 when FtwVariableSpace() fails. Recalculate the HwErrVariableTotalSize, HwErrVariableTotalSize and LastVariableOffset when FtwVariableSpace() fails.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13593 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove Variable PPI dependency from S3Resume module, check return status of locating...
lzeng14 [Mon, 6 Aug 2012 03:08:49 +0000 (03:08 +0000)]
Remove Variable PPI dependency from S3Resume module, check return status of locating SmmAccess PPI in S3Resume S3ResumeExecuteBootScript(), and locate SmmAccess PPI and Open SMRAM region only when gEfiAcpiVariableGuid HOB is found in S3Resume S3RestoreConfig2().

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

11 years agoArmPlatformPkg/Drivers/PL011Uart: Fixed PL011UartWrite()
oliviermartin [Fri, 3 Aug 2012 17:38:17 +0000 (17:38 +0000)]
ArmPlatformPkg/Drivers/PL011Uart: Fixed PL011UartWrite()

Forget to increment pointer.

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

11 years agoFix physical presence request failure for PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE...
gdong1 [Fri, 3 Aug 2012 03:27:02 +0000 (03:27 +0000)]
Fix physical presence request failure for PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE, PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE and PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_TRUE.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13590 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoArmPlatformPkg: Fixed ArmRealViewEb & BeagleBoard builds
oliviermartin [Thu, 2 Aug 2012 18:21:16 +0000 (18:21 +0000)]
ArmPlatformPkg: Fixed ArmRealViewEb & BeagleBoard builds

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

11 years agoArmPlatformPkg/PL180MciDxe: Clean code
oliviermartin [Thu, 2 Aug 2012 14:25:17 +0000 (14:25 +0000)]
ArmPlatformPkg/PL180MciDxe: Clean code

- Removed duplicated code
- Removed unreachable code

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

11 years agoArmPlatformPkg/PL011Uart: PL011UartWrite() stop to transmit if the buffer is full
oliviermartin [Thu, 2 Aug 2012 14:22:51 +0000 (14:22 +0000)]
ArmPlatformPkg/PL011Uart: PL011UartWrite() stop to transmit if the buffer is full

Before we were waiting the buffer to be empty before to continue to send data.

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

11 years agoArmPlatformPkg/PL180MciDxe: Fixed coding style
oliviermartin [Thu, 2 Aug 2012 11:20:37 +0000 (11:20 +0000)]
ArmPlatformPkg/PL180MciDxe: Fixed coding style

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

11 years agoEmbeddedPkg/MmcDxe: Fixed typo
oliviermartin [Thu, 2 Aug 2012 10:23:41 +0000 (10:23 +0000)]
EmbeddedPkg/MmcDxe: Fixed typo

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

11 years agoEmbeddedPkg/MmcDxe: Avoid nanosecond delay when command succeeds
oliviermartin [Thu, 2 Aug 2012 10:14:52 +0000 (10:14 +0000)]
EmbeddedPkg/MmcDxe: Avoid nanosecond delay when command succeeds

Check response just after receiving it to avoid the delay.

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

11 years agoEmbeddedPkg/MmcDxe: Fixed MmcIdentificationMode()
oliviermartin [Thu, 2 Aug 2012 10:11:29 +0000 (10:11 +0000)]
EmbeddedPkg/MmcDxe: Fixed MmcIdentificationMode()

The condition to check if the card is ready was not correct.

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

11 years agoArmPkg/CompilerIntrinsicsLib: Fixed __aeabi_uwrite8
oliviermartin [Thu, 2 Aug 2012 09:52:12 +0000 (09:52 +0000)]
ArmPkg/CompilerIntrinsicsLib: Fixed __aeabi_uwrite8

Added missing 'return' instruction.

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

11 years agoMeasure ExitBootServices failure case
czhang46 [Thu, 2 Aug 2012 06:34:20 +0000 (06:34 +0000)]
Measure ExitBootServices failure case

Signed-off-by: Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by: Dong Guo<guo.dong@intel.com>
Reviewed-by: Gao Liming<liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13581 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMeasure ExitBootServices failure case
czhang46 [Thu, 2 Aug 2012 06:33:10 +0000 (06:33 +0000)]
Measure ExitBootServices failure case

Signed-off-by: Chao Zhang<chao.b.zhang@intel.com>
Reviewed-by: Dong Guo<guo.dong@intel.com>
Reviewed-by: Gao Liming<liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13580 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix several issues in BaseCryptLib:
tye1 [Thu, 2 Aug 2012 02:49:24 +0000 (02:49 +0000)]
Fix several issues in BaseCryptLib:
1. Add input length check for several APIs in BaseCryptLib.
2. Add return status check when calling OpensslLib functions
3. Adjust BaseCryptLib API to match description of wrapped OpensslLib API.
4. Update INF file to add missed RuntimeServicesTableLib.
5. Fix return status issue of APIs in CryptX509.c that incorrect when error occurs.

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

11 years agoArmPlatformPkg/ArmVExpressPkg: Fixed build issue
oliviermartin [Wed, 1 Aug 2012 10:07:33 +0000 (10:07 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Fixed build issue

ConSpillter now requires DxeServicesLib.

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

11 years agoMove PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey...
czhang46 [Wed, 1 Aug 2012 08:09:15 +0000 (08:09 +0000)]
Move PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey service can act accordingly

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

11 years agoOvmfPkg/AcpiTables/Dsdt.asl: report the PCI IO ranges set in FWDT
jljusten [Tue, 31 Jul 2012 18:18:20 +0000 (18:18 +0000)]
OvmfPkg/AcpiTables/Dsdt.asl: report the PCI IO ranges set in FWDT

Based on SeaBIOS commit 2062f2ba by Gerd Hoffmann <kraxel@redhat.com>.

v3: comments on FWDT fields

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

11 years agoOvmfPkg/AcpiTables/Dsdt.asl: strip trailing whitespace
jljusten [Tue, 31 Jul 2012 18:18:11 +0000 (18:18 +0000)]
OvmfPkg/AcpiTables/Dsdt.asl: strip trailing whitespace

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

11 years agoOvmfPkg: scan memory space map and populate FWDT (32-bit fields only)
jljusten [Tue, 31 Jul 2012 18:18:01 +0000 (18:18 +0000)]
OvmfPkg: scan memory space map and populate FWDT (32-bit fields only)

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: minor cleanup]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13574 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: install an SSDT with a dynamic OperationRegion called FWDT
jljusten [Tue, 31 Jul 2012 18:17:51 +0000 (18:17 +0000)]
OvmfPkg: install an SSDT with a dynamic OperationRegion called FWDT

"FWDT" ("firmware data") is allocated as EfiReservedMemoryType, with
AllocateReservedPool(). <MdePkg/Include/Library/MemoryAllocationLib.h>
doesn't seem to provide direct access to EfiACPIReclaimMemory, but at this
point the former seems sufficient.

Based on SeaBIOS commit 2062f2ba by Gerd Hoffmann <kraxel@redhat.com>.

v3:
- coding style fixes:
  - BDAT     -> FWDT
  - __packed -> #pragma pack(1)
  - BFLD     -> FIRMWARE_DATA, PCI_WINDOW
  - Bfld     -> FwData
- Ssdt.asl: changed license to 2-clause BSDL, paraphrasing Dsdt.asl

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

11 years agoOvmfPkg: clean up memory map
jljusten [Tue, 31 Jul 2012 18:17:37 +0000 (18:17 +0000)]
OvmfPkg: clean up memory map

Fix IO-APIC range size.
Add HPET.
Take LAPIC base from PCD and fix range size.

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

11 years agoOvmfPkg/*.dsc: Move PCD locations to be similar to OvmfPkgIa32X64.dsc
jljusten [Tue, 31 Jul 2012 17:54:39 +0000 (17:54 +0000)]
OvmfPkg/*.dsc: Move PCD locations to be similar to OvmfPkgIa32X64.dsc

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

11 years agoOvmfPkg: Move DxeServicesTableLib to common LibraryClasses
jljusten [Tue, 31 Jul 2012 17:54:30 +0000 (17:54 +0000)]
OvmfPkg: Move DxeServicesTableLib to common LibraryClasses

ConSplitterDxe (UEFI_DRIVER) now uses this library class.
Move the library mapping to the common LibraryClasses section.

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

11 years agoOvmfPkg: Disable debugging for UNIXGCC to save space
jljusten [Tue, 31 Jul 2012 17:54:18 +0000 (17:54 +0000)]
OvmfPkg: Disable debugging for UNIXGCC to save space

UNIXGCC builds larger images than GCC44, and can have issues
fitting into the FD image. Therefore, when using UNIXGCC,
debug will be disabled by default.

The README file is updated with instructions for selectively
enabling debug for UNIXGCC.

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

11 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 06:06:32 +0000 (06:06 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

11 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 06:04:13 +0000 (06:04 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

11 years agoAdd 2 new Bds features
czhang46 [Mon, 30 Jul 2012 05:56:33 +0000 (05:56 +0000)]
Add 2 new Bds features
  1. Lazy ConIn
  2. OsIndicationsSupported & OsIndications

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

11 years agoChange the type of NotifyHandle from EFI_HANDLE to VOID * for SimpleTextInEx protocol.
niruiyu [Mon, 30 Jul 2012 03:50:42 +0000 (03:50 +0000)]
Change the type of NotifyHandle from EFI_HANDLE to VOID * for SimpleTextInEx protocol.
Clean up the code to remove unnecessary NotifyHandle in the private data structure.

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

11 years agoFix some typo and coding style issues in BaseCryptLib instances.
tye1 [Fri, 27 Jul 2012 07:49:42 +0000 (07:49 +0000)]
Fix some typo and coding style issues in BaseCryptLib instances.

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

11 years agoClose the corresponding GUIDed section extraction protocol notify event in CloseSecti...
lzeng14 [Fri, 27 Jul 2012 02:35:24 +0000 (02:35 +0000)]
Close the corresponding GUIDed section extraction protocol notify event in CloseSectionStream.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13563 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: add support for debug console on port 0x402
jljusten [Thu, 26 Jul 2012 16:36:39 +0000 (16:36 +0000)]
OvmfPkg: add support for debug console on port 0x402

This patch adds support for a debug console on the same port that is used
by SeaBIOS.  This makes it easier to debug OVMF, because it does not mix
debug and serial output on the same device.  It also makes it easier to
leave some of the debug messages on even in release builds.

To enable it, pass "-debugcon stdio -global isa-debugcon.iobase=0x402" to
QEMU.

The new mechanism is enabled by default, but a regular serial console can
be chosen by adding -D DEBUG_ON_SERIAL_PORT to the build options.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: MAX_DEBUG_MESSAGE_LENGTH=>0x100, p=>Ptr]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13562 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUnixPkg/Sec: Fixed build
oliviermartin [Thu, 26 Jul 2012 09:16:01 +0000 (09:16 +0000)]
UnixPkg/Sec: Fixed build

IntelFrameworkModulePkg.dec is required to define gEfiIntelFrameworkModulePkgTokenSpaceGuid.Pcd*
in DSC file.

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

11 years agoMdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change...
oliviermartin [Thu, 26 Jul 2012 09:12:46 +0000 (09:12 +0000)]
MdeModulePkg/CoreDxe: Fixed compiler warning 'integer conversion resulted in a change of sign'

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

11 years agoFix build fail for GCC
ydong10 [Thu, 26 Jul 2012 07:44:26 +0000 (07:44 +0000)]
Fix build fail for GCC

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

11 years agoFixed issues:
ydong10 [Thu, 26 Jul 2012 07:15:31 +0000 (07:15 +0000)]
Fixed issues:
1.Refine the logic about show different attribute.
2.Refine the logic about allocate memory for variable name and data.

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

11 years agoRoll back the change which caused build fail
ydong10 [Thu, 26 Jul 2012 05:42:43 +0000 (05:42 +0000)]
Roll back the change which caused build fail

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

11 years agoFix a failure in TCG HashAll interface.
gdong1 [Thu, 26 Jul 2012 05:17:35 +0000 (05:17 +0000)]
Fix a failure in TCG HashAll interface.

signed-off by Tao Hengyan <hengyan.tao@intel.com>
reviewed by Dong Guo <guo.dong@intel.com>
reviewed by Long Qin <qin.long@intel.com>

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

11 years agoEnhance TCG driver to provide TPM physical presence lifetime lock capability.
gdong1 [Thu, 26 Jul 2012 05:11:47 +0000 (05:11 +0000)]
Enhance TCG driver to provide TPM physical presence lifetime lock capability.

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13555 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix the typo in InstallMultipleProtocolInterfaces comments
niruiyu [Wed, 25 Jul 2012 06:45:49 +0000 (06:45 +0000)]
Fix the typo in InstallMultipleProtocolInterfaces comments

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

11 years agoUse RsaGetPublicKeyFromX509() to validate the given X.509 certificate for PK/KEK...
sfu5 [Wed, 25 Jul 2012 02:01:58 +0000 (02:01 +0000)]
Use RsaGetPublicKeyFromX509() to validate the given X.509 certificate for PK/KEK/db/dbx database.

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

11 years agoCorrect a typo in EFI_EDID_ACTIVE_PROTOCOL and EFI_EDID_DISCOVERED_PROTOCOL comments.
niruiyu [Tue, 24 Jul 2012 07:17:24 +0000 (07:17 +0000)]
Correct a typo in EFI_EDID_ACTIVE_PROTOCOL and EFI_EDID_DISCOVERED_PROTOCOL comments.

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

11 years agoOvmfPkg: introduce QemuFwCfgFindFile ()
jljusten [Mon, 23 Jul 2012 17:10:29 +0000 (17:10 +0000)]
OvmfPkg: introduce QemuFwCfgFindFile ()

Tested with the "bootorder" fw_cfg file. Example contents (leading space
added and line terminators transcribed for readability):

  /pci@i0cf8/ide@1,1/drive@0/disk@0<LF>
  /pci@i0cf8/ide@1,1/drive@1/disk@0<LF>
  /pci@i0cf8/ethernet@3/ethernet-phy@0<NUL>

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

11 years agoShellPkg: Update string to number conversion to correctly stop at spaces if so requested.
jcarsey [Mon, 23 Jul 2012 16:32:09 +0000 (16:32 +0000)]
ShellPkg: Update string to number conversion to correctly stop at spaces if so requested.

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

11 years agoAdd logic to check the execution break flag before executing the next command in...
ydong10 [Mon, 23 Jul 2012 03:17:09 +0000 (03:17 +0000)]
Add logic to check the execution break flag before executing the next command in a script file.

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

11 years agoUpdate the secure boot configuration UI to accept *.crt certificate file.
sfu5 [Mon, 23 Jul 2012 01:03:53 +0000 (01:03 +0000)]
Update the secure boot configuration UI to accept *.crt certificate file.

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

11 years agoAdd more security check for CommBuffer+CommBufferSize.
jyao1 [Mon, 23 Jul 2012 00:59:26 +0000 (00:59 +0000)]
Add more security check for CommBuffer+CommBufferSize.

signed off by: jiewen.yao@intel.com
reviewed by: rui.sun@intel.com
reviewed by: michael.d.kinney@intel.com

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

11 years agoAdjust library instances used in SecurityPkg by proper module type.
tye1 [Fri, 20 Jul 2012 03:36:21 +0000 (03:36 +0000)]
Adjust library instances used in SecurityPkg by proper module type.
Signed-off-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@13544 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg/AcpiPlatformDxe: rely on built-in checksumming
jljusten [Wed, 18 Jul 2012 22:34:01 +0000 (22:34 +0000)]
OvmfPkg/AcpiPlatformDxe: rely on built-in checksumming

Implementation in
"MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c":

  InstallAcpiTable()
    SetAcpiTable(... Checksum=TRUE ...)
      AddTableToList(... Checksum=TRUE ...)
        AcpiPlatformChecksum()

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

11 years agoOvmfPkg/AcpiPlatformDxe/Xen.c: reuse CalculateSum8
jljusten [Wed, 18 Jul 2012 22:33:48 +0000 (22:33 +0000)]
OvmfPkg/AcpiPlatformDxe/Xen.c: reuse CalculateSum8

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

11 years agoOvmfPkg/AcpiPlatformDxe: Add Xen ACPI tables support
jljusten [Wed, 18 Jul 2012 22:33:33 +0000 (22:33 +0000)]
OvmfPkg/AcpiPlatformDxe: Add Xen ACPI tables support

This patch adds Xen ACPI tables support to OVMF.
Use EFI_ACPI_TABLE_PROTOCOL to publish all Xen ACPI tables in OVMF,
while keeping the Qemu and KVM support.

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

11 years agoStdLib/LibC/Uefi/Devices/Console/daConsole.c: Fix bug where unconvertable wide chara...
darylm503 [Wed, 18 Jul 2012 18:23:25 +0000 (18:23 +0000)]
StdLib/LibC/Uefi/Devices/Console/daConsole.c:  Fix bug where unconvertable wide characters would cause the code to hang or generate an exception.

When the WideTtyCvt() function encountered an unconvertable character, it properly replaced it but did not update the byte count, numB, to 1 and instead left it at -1.

This fix sets numB to 1 when an unconvertable character is replaced.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: tim.lewis@insidesw.com
Reviewed-by: daryl.mcdaniel@intel.com
Reviewed-by: erik.c.bjorge@intel.com
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13540 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd interfaces to several library instances of BaseCryptLib.
tye1 [Wed, 18 Jul 2012 09:32:05 +0000 (09:32 +0000)]
Add interfaces to several library instances of BaseCryptLib.

Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13539 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoTo follow UEFI spec, update the code to make correct check to support multiple _ADR...
li-elvin [Wed, 18 Jul 2012 06:21:08 +0000 (06:21 +0000)]
To follow UEFI spec, update the code to make correct check to support multiple _ADR fields.

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

11 years agoAdded secure boot in CSM module entrypoint, if UEFI secure boot is enabled, CSM modul...
li-elvin [Tue, 17 Jul 2012 09:25:26 +0000 (09:25 +0000)]
Added secure boot in CSM module entrypoint, if UEFI secure boot is enabled, CSM module cannot be started.

Signed-off-by: Li Elvin <elvin.li@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13537 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1. Remove extra attribute for SetupMode, SignatureSupport and SecureBoot variable.
sfu5 [Tue, 17 Jul 2012 08:38:58 +0000 (08:38 +0000)]
1. Remove extra attribute for SetupMode, SignatureSupport and SecureBoot variable.
2. Allow the PK owner to update db/dbx variable directly.

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

11 years agoReturn EFI_UNSUPPORTED if READY_TO_BOOT function is invoked at SMM runtime.
sfu5 [Tue, 17 Jul 2012 08:21:42 +0000 (08:21 +0000)]
Return EFI_UNSUPPORTED if READY_TO_BOOT function is invoked at SMM runtime.

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

11 years agoFix a buffer overflow bug in VariableSmm driver.
sfu5 [Tue, 17 Jul 2012 08:07:29 +0000 (08:07 +0000)]
Fix a buffer overflow bug in VariableSmm driver.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13534 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate HobLib and Hob Service to avoid data over flow.
lgao4 [Tue, 17 Jul 2012 01:51:26 +0000 (01:51 +0000)]
Update HobLib and Hob Service to avoid data over flow.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13533 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate HobLib and Hob Service to avoid data over flow.
lgao4 [Tue, 17 Jul 2012 01:50:52 +0000 (01:50 +0000)]
Update HobLib and Hob Service to avoid data over flow.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Rui Sun <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13532 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoVerify the provided PKpub is signed with its private key when enrolling a new PK...
sfu5 [Fri, 13 Jul 2012 06:12:58 +0000 (06:12 +0000)]
Verify the provided PKpub is signed with its private key when enrolling a new PK variable in setup mode.

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

11 years agoAdd SMRAM range check to variable SMM SMI handler.
czhang46 [Fri, 13 Jul 2012 05:15:06 +0000 (05:15 +0000)]
Add SMRAM range check to variable SMM SMI handler.

Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Fu, Siyuan<siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13530 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove unused CapsuleReset() in MdeModulePkg\Universal\ResetSystemRuntimeDxe\ResetSys...
lzeng14 [Fri, 13 Jul 2012 03:20:28 +0000 (03:20 +0000)]
Remove unused CapsuleReset() in MdeModulePkg\Universal\ResetSystemRuntimeDxe\ResetSystem.c.

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

11 years agoArmPkg/CompilerIntrinsicsLib: Added missing __aeabi_uread8 and __aeabi_uwrite8
oliviermartin [Thu, 12 Jul 2012 18:00:36 +0000 (18:00 +0000)]
ArmPkg/CompilerIntrinsicsLib: Added missing __aeabi_uread8 and __aeabi_uwrite8

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

11 years agoClean up include of ACPI header file so that only IndustryStandard/Acpi.h is needed...
lzeng14 [Thu, 12 Jul 2012 06:18:22 +0000 (06:18 +0000)]
Clean up include of ACPI header file so that only IndustryStandard/Acpi.h is needed for supported ACPI version(e.g. Acpi40.h, Acpi50.h).

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