]> git.proxmox.com Git - mirror_edk2.git/log
mirror_edk2.git
13 years agoClean up GCD DEBUG() macros so DEBUG_CODE() is only used to enable/disable the DBG...
mdkinney [Tue, 11 Jan 2011 23:11:23 +0000 (23:11 +0000)]
Clean up GCD DEBUG() macros so DEBUG_CODE() is only used to enable/disable the DBG MMIO and GCD I/O map dumps

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

13 years agoEnhance BDS to support Boot/Driver option whose option number >= 0xFF.
niruiyu [Mon, 10 Jan 2011 05:56:55 +0000 (05:56 +0000)]
Enhance BDS to support Boot/Driver option whose option number >= 0xFF.

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

13 years agoOvmfPkg EMU FVB: Add 2 functions to PlatformFvbLib
jljusten [Sun, 9 Jan 2011 03:51:16 +0000 (03:51 +0000)]
OvmfPkg EMU FVB: Add 2 functions to PlatformFvbLib

Add PlatformFvbDataRead and PlatformFvbBlocksErased functions.

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

13 years agoOvmfPkg EMU FVB: Convert to FVB2 protocol
jljusten [Sun, 9 Jan 2011 03:50:58 +0000 (03:50 +0000)]
OvmfPkg EMU FVB: Convert to FVB2 protocol

Convert from using EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL
to EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL.

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

13 years agoOvmfPkg PlatformFvbLib: Change PlatformFvbDataWritten
jljusten [Sun, 9 Jan 2011 03:50:39 +0000 (03:50 +0000)]
OvmfPkg PlatformFvbLib: Change PlatformFvbDataWritten

The new parameters closely match the
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL Write function
parameters.

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

13 years agoOvmfPkg/build.sh: Add features and replace build32/64.sh
jljusten [Sun, 9 Jan 2011 03:50:21 +0000 (03:50 +0000)]
OvmfPkg/build.sh: Add features and replace build32/64.sh

Add a single build.sh to replace build32.sh & build64.sh.

The script watches for various parameters:
-a: allows selecting IA32 or X64 (default)
-b: allows selecting RELEASE or DEBUG (default)
-t: allows selecting the toolchain

When running qemu, the script doesn't always add -hda now.
If the user provides a disk parameter (for example, -fda, -hda
or -cdrom), then -hda will not be added to the qemu command line.

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

13 years agoFix InternalMemScanMem* functions so that they return the pointer to the matched...
darylm503 [Fri, 7 Jan 2011 23:00:16 +0000 (23:00 +0000)]
Fix InternalMemScanMem* functions so that they return the pointer to the matched object, as specified, instead of the following object.
Replaces the fix instituted in rev. 10821 with a more understandable, sustainable, and efficient fix that behaves the same regardless of compiler.

Reviewed by two peers.
Fixes HSD tracker 204556.

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

13 years agoFix ICC9 compiler failure
niruiyu [Fri, 7 Jan 2011 10:11:46 +0000 (10:11 +0000)]
Fix ICC9 compiler failure

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

13 years agoFix 32-bit build break
mdkinney [Fri, 7 Jan 2011 00:41:08 +0000 (00:41 +0000)]
Fix 32-bit build break

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

13 years agoFix typo in __switchiu8() to use r0 in place of r3.
andrewfish [Thu, 6 Jan 2011 21:46:54 +0000 (21:46 +0000)]
Fix typo in __switchiu8() to use r0 in place of r3.

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

13 years agoFix the bug that duplicate HDD is shown in the BMM.
niruiyu [Thu, 6 Jan 2011 09:45:03 +0000 (09:45 +0000)]
Fix the bug that duplicate HDD is shown in the BMM.

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

13 years ago1. fix AtaPassThru.PassThru() sct failure
erictian [Thu, 6 Jan 2011 05:44:50 +0000 (05:44 +0000)]
1. fix AtaPassThru.PassThru() sct failure
2. avoid reenumerate existing device to reduce boot time at AtaBus.

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

13 years agoAdd DEBUG() macros for DEBUG_CACHE to MTRR Library show all changes memory caches...
mdkinney [Thu, 6 Jan 2011 02:57:26 +0000 (02:57 +0000)]
Add DEBUG() macros for DEBUG_CACHE to MTRR Library show all changes memory caches setting changes.
If DEBUG_PROPERTY_DEBUG_CODE_ENABLED is also set in PcdDebugPropertyMask, then the entire set of MTRRs will be displayed on every memory cache setting change.

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

13 years agoAdd DEBUG() macros to all GCD services to monitor all changes to the GCD Memory and...
mdkinney [Thu, 6 Jan 2011 02:51:08 +0000 (02:51 +0000)]
Add DEBUG() macros to all GCD services to monitor all changes to the GCD Memory and GCD I/O maps when DEBUG_GCD is set in PcdDebugPrintErrorLevel.
If DEBUG_PROPERTY_DEBUG_CODE_ENABLED is also set in PcdDebugPropertyMask, then the GCD Memory and I/O Maps will be dumped every time there is a GCD change.

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

13 years agoFix Copyright year to 2011
mdkinney [Thu, 6 Jan 2011 02:47:38 +0000 (02:47 +0000)]
Fix Copyright year to 2011

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

13 years agoDefine bits for PcdDebugPrintErrorLevel to monitor Global Coherency Domain(GCD) and...
mdkinney [Thu, 6 Jan 2011 02:46:35 +0000 (02:46 +0000)]
Define bits for PcdDebugPrintErrorLevel to monitor Global Coherency Domain(GCD) and memory cache setting changes.

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

13 years agoCorrect return value check.
jyao1 [Wed, 5 Jan 2011 13:43:00 +0000 (13:43 +0000)]
Correct return value check.

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

13 years agoNetworkPkg: Update Ipsecconfig Application to print the keys of SAD in concise way.
qianouyang [Wed, 5 Jan 2011 09:41:57 +0000 (09:41 +0000)]
NetworkPkg: Update Ipsecconfig Application to print the keys of SAD in concise way.

If the SAD is set manually, print its keys in Ascci string format.
If the SAD is created by IKE, print its keys in Hex format.

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

13 years agoin Recovery path, doesn't warm reset even if MemoryTypeInfo data is changed.
erictian [Wed, 5 Jan 2011 02:33:47 +0000 (02:33 +0000)]
in Recovery path, doesn't warm reset even if MemoryTypeInfo data is changed.

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

13 years agoUse REPORT_STATUS_CODExxx() macros directly.
mdkinney [Mon, 3 Jan 2011 19:25:00 +0000 (19:25 +0000)]
Use REPORT_STATUS_CODExxx() macros directly.

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

13 years agoUse REPORT_STATUS_CODExxx() macros directly.
mdkinney [Mon, 3 Jan 2011 19:24:17 +0000 (19:24 +0000)]
Use REPORT_STATUS_CODExxx() macros directly.

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

13 years agoEdkCompatibilityPkg RuntimeDxe Lib: Fix GCC warning
jljusten [Mon, 3 Jan 2011 18:53:51 +0000 (18:53 +0000)]
EdkCompatibilityPkg RuntimeDxe Lib: Fix GCC warning

Fix warning seen with GCC 4.4.

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

13 years agoNetworkPkg/IpSecDxe: Add missing EFIAPI for callback functions
jljusten [Mon, 3 Jan 2011 03:17:20 +0000 (03:17 +0000)]
NetworkPkg/IpSecDxe: Add missing EFIAPI for callback functions

Callback functions must always use EFIAPI.

GCC 4.4 X64 flagged these mismatches in EFIAPI usage.

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

13 years agoFix build issue.
qianouyang [Sat, 1 Jan 2011 08:45:57 +0000 (08:45 +0000)]
Fix build issue.

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

13 years agoAdd IPsec/Ikev2 support.
qianouyang [Fri, 31 Dec 2010 10:43:54 +0000 (10:43 +0000)]
Add IPsec/Ikev2 support.

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

13 years agoOvmfPkg: Work around issue seen with kvm + grub2 (efi)
jljusten [Fri, 31 Dec 2010 07:55:51 +0000 (07:55 +0000)]
OvmfPkg: Work around issue seen with kvm + grub2 (efi)

When OVMF is run with kvm and grub2 (efi), an exception
occurs when mmx/sse registers are accessed.

As a work around, this change eliminates firmware usage
of these register types.

First, only the BaseMemoryLib implementation
MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
is used.

Second, the GCC compiler is passes the additional
'-mno-mmx -mno-sse' parameters.

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

13 years agoOvmfPkg: Add USB support
jljusten [Fri, 31 Dec 2010 07:55:38 +0000 (07:55 +0000)]
OvmfPkg: Add USB support

Add USB drivers to OVMF build

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

13 years agoOvmfPkg README: Group network information together
jljusten [Fri, 31 Dec 2010 07:55:23 +0000 (07:55 +0000)]
OvmfPkg README: Group network information together

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

13 years agoOvmfPkg: Add build32.sh and build64.sh scripts
jljusten [Fri, 31 Dec 2010 07:55:11 +0000 (07:55 +0000)]
OvmfPkg: Add build32.sh and build64.sh scripts

These scripts are similar to those found under DuetPkg & UnixPkg.

The scripts simplify building and running OVMF under systems that
have the bash shell available.

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

13 years ago1. Add new API supports for PEM & X509 key retrieving & verification;
qlong [Fri, 31 Dec 2010 07:22:48 +0000 (07:22 +0000)]
1. Add new API supports for PEM & X509 key retrieving & verification;
2. Add new MD4 hash supports;
3. Add corresponding test case in Cryptest utility;
4. Fix MACRO definition issue in OpensslLib.inf and parameter checking issues in some wrapper implementations.

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

13 years agoUse SmmStatusCode protocol in EfiInitializeSmmDriverLib() funciton.
lgao4 [Fri, 31 Dec 2010 04:36:50 +0000 (04:36 +0000)]
Use SmmStatusCode protocol in EfiInitializeSmmDriverLib() funciton.

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

13 years ago1. Invoke InstallConfigurationTable () in OnReadyToBoot() to avoid the new registered...
gdong1 [Fri, 31 Dec 2010 04:31:42 +0000 (04:31 +0000)]
1. Invoke InstallConfigurationTable () in OnReadyToBoot() to avoid the new registered table may be NULL.
2. For SMM variable driver, it doesn’t need to mark the variable storage region of the FLASH as RUNTIME, so only keep it for non-SMM variable driver.

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

13 years agoUpdate the Timeout used for Write() operations to consider the case where the Tx...
mdkinney [Thu, 30 Dec 2010 22:30:57 +0000 (22:30 +0000)]
Update the Timeout used for Write() operations to consider the case where the Tx FIFO is full on entry to Write().

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

13 years agoPrevent a NULL device path from being passed into REPORT_STATUS_CODE_WITH_DEVICE_PATH...
mdkinney [Thu, 30 Dec 2010 22:29:54 +0000 (22:29 +0000)]
Prevent a NULL device path from being passed into REPORT_STATUS_CODE_WITH_DEVICE_PATH by building child device path before using any of the Serial I/O Protocol services.
This guarantees that child device path is valid even if an error is returned from one of Serial I/O Protocol services in Start().

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

13 years agoShow PEIM GUID in PERF log.
lgao4 [Thu, 30 Dec 2010 09:38:38 +0000 (09:38 +0000)]
Show PEIM GUID in PERF log.

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

13 years agoEnable number input for numeric, date and time opcode
ydong10 [Thu, 30 Dec 2010 07:26:56 +0000 (07:26 +0000)]
Enable number input for numeric, date and time opcode

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

13 years agoFix issue when BaseDebugLibSerialPort is combined with BaseSerialPortLibNull. It...
mdkinney [Thu, 30 Dec 2010 01:07:39 +0000 (01:07 +0000)]
Fix issue when BaseDebugLibSerialPort is combined with BaseSerialPortLibNull.  It will ASSERT() due to the recent addition of a CONSTRUCTOR to BaseDebugLibSerialPort that calls SerialPortInitialize().
The fix is to change SerialPortInitialize() to always return RETURN_SUCCESS instead of RETURN_UNSUPPORTED.

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

13 years agoAdd mapping for PlatformHookLib to [LibraryClasses] section
mdkinney [Wed, 29 Dec 2010 18:28:38 +0000 (18:28 +0000)]
Add mapping for PlatformHookLib to [LibraryClasses] section

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

13 years agoUpdate Ipsecconfig application.
qianouyang [Wed, 29 Dec 2010 10:44:12 +0000 (10:44 +0000)]
Update Ipsecconfig application.
1. add the support of "--tunnel-dest" and "tunnel-source" parameters.
2. transfer to EFI_IPSEC_SA_DATA2.

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

13 years agoClean ISA_IO/ISA_IO_16 and VGA_IO/VGA_IO_16 attribute usage in PCI bus driver/PCI...
rsun3 [Tue, 28 Dec 2010 10:10:10 +0000 (10:10 +0000)]
Clean ISA_IO/ISA_IO_16 and VGA_IO/VGA_IO_16 attribute usage in PCI bus driver/PCI host bridge drivers/LPC/VGA device drivers.
1. Fix the incorrect definition of EFI_PCI_IO_ATTRIBUTE_VGA_IO_16 (does not conform to the UEFI spec) in PciIo.h.
2. Add missing definitions of ISA and VGA IO attributes in PCI Root Bridge IO protocol.
3. Improve the algorithm in the PCI bus driver to get PCI platform policy from PCI Platform Protocol and PCI Override Protocol.
4. Update the PCI bus driver to use the PCI platform policy to determine the supported attributes that are returned by the EFI_PCI_IO_PROTOCOL.Attributes() function. This is required by the PI spec.
5. Add a backward compatibility workaround for PCI VGA drivers in Option ROM, which typically sets VGA_IO without checking supported attributes.
6. Update the PCI host bridge driver in PcAtChipsetPkg to report VGA_IO_16 and ISA_IO_16 instead of VGA_IO/ISA_IO attributes. Modern chipsets don’t have hardware capability to control 10-bit or 16-bit decoding for ISA/VGA aliases.
7. Update LPC/VGA device drivers to check supported attributes of VGA_IO/VGA_IO_16 or ISA_IO/ISA_IO_16.

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

13 years agoAdd missing @param to function header comment.
mdkinney [Mon, 27 Dec 2010 17:16:55 +0000 (17:16 +0000)]
Add missing @param to function header comment.

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

13 years agoFix CYG GCC build fail on retf.
jyao1 [Sun, 26 Dec 2010 07:25:12 +0000 (07:25 +0000)]
Fix CYG GCC build fail on retf.

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

13 years agoReplace @@ symbol since GCC does not recognize it.
jyao1 [Sat, 25 Dec 2010 12:52:52 +0000 (12:52 +0000)]
Replace @@ symbol since GCC does not recognize it.

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

13 years agoFix GCC build failure.
jyao1 [Fri, 24 Dec 2010 11:06:17 +0000 (11:06 +0000)]
Fix GCC build failure.

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

13 years agoRemove ASSERT here for the zero attributes means deleting preexisting variable.
gdong1 [Fri, 24 Dec 2010 07:03:25 +0000 (07:03 +0000)]
Remove ASSERT here for the zero attributes means deleting preexisting variable.

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

13 years agoAdd support for BootOption with USB Class or USB WWID device path node.
xdu2 [Fri, 24 Dec 2010 05:33:08 +0000 (05:33 +0000)]
Add support for BootOption with USB Class or USB WWID device path node.

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

13 years ago1. update MatchUsbWwid() to check Vendor Id, Product Id and Interface Number.
xdu2 [Fri, 24 Dec 2010 05:32:34 +0000 (05:32 +0000)]
1. update MatchUsbWwid() to check Vendor Id, Product Id and Interface Number.
2. update SerialNumber comparing logic to handle possible NULL-terminator in WWID device path
3. fix bug in UsbIo->UsbIoGetSupportedLanguages(): TableSize is size in bytes of LangIDTable instead of number of LangID.

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

13 years ago1. Support inconsistent if opcode used in string/password opcode.
ydong10 [Thu, 23 Dec 2010 06:47:50 +0000 (06:47 +0000)]
1. Support inconsistent if opcode used in string/password opcode.
2. Add sample code of using inconsistent if opcode in string opcode.

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

13 years ago1. support numeric item +/- action generate callback
ydong10 [Thu, 23 Dec 2010 05:58:30 +0000 (05:58 +0000)]
1. support numeric item +/- action generate callback
2. when user change numeric opcode, call to refresh form.

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

13 years agoFix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch...
jyao1 [Thu, 23 Dec 2010 02:20:13 +0000 (02:20 +0000)]
Fix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch function, not in DXE mode.

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

13 years agoRemove PcdSmmVariableEnable from MdeModulePkg since it is not used in core package...
gdong1 [Thu, 23 Dec 2010 02:03:51 +0000 (02:03 +0000)]
Remove PcdSmmVariableEnable from MdeModulePkg since it is not used in core package currently.

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

13 years agoRevert patch 11146 about file guid.
ydong10 [Thu, 23 Dec 2010 01:03:34 +0000 (01:03 +0000)]
Revert patch 11146 about file guid.

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

13 years agoUpdate inappropriate comments.
ydong10 [Wed, 22 Dec 2010 08:32:56 +0000 (08:32 +0000)]
Update inappropriate comments.
fine code to make code run more safely.

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

13 years agoFix a potential bug that SetVariable is invoked for NV variable prior to the installa...
gdong1 [Wed, 22 Dec 2010 07:33:13 +0000 (07:33 +0000)]
Fix a potential bug that SetVariable is invoked for NV variable prior to the installation of EFI_VARIABLE_WRITE_ARCH_PROTOCOL.

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

13 years agoFix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch...
jyao1 [Wed, 22 Dec 2010 04:26:08 +0000 (04:26 +0000)]
Fix boot script thunk issue that we need dispatch in PEI mode for Framework dispatch function, not in DXE mode.

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

13 years agoDocument the inconsistency of EFI_SMM_CPU_SAVE_STATE between the EDK2 code base and...
rsun3 [Wed, 22 Dec 2010 03:15:24 +0000 (03:15 +0000)]
Document the inconsistency of EFI_SMM_CPU_SAVE_STATE between the EDK2 code base and the Framework SMM CIS 0.91 spec.

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

13 years agoUpdate definition of EFI_SMM_CPU_SAVE_STATE to exclude Itanium save state. Note this...
rsun3 [Wed, 22 Dec 2010 02:34:45 +0000 (02:34 +0000)]
Update definition of EFI_SMM_CPU_SAVE_STATE to exclude Itanium save state. Note this is an inconsistency with the Framework SMM CIS spec.

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

13 years agoChange the modifiers of the RegisterContext parameter of EFI SMM SW Dispatch2 Protoco...
rsun3 [Tue, 21 Dec 2010 06:34:32 +0000 (06:34 +0000)]
Change the modifiers of the RegisterContext parameter of EFI SMM SW Dispatch2 Protocol.Register() from IN, CONST to IN, OUT. This is for support for the case where SwSmiInputValue is set to -1, a unique value will be returned in the RegisterContext structure.

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

13 years agoFix ICC build issues
mdkinney [Mon, 20 Dec 2010 01:32:07 +0000 (01:32 +0000)]
Fix ICC build issues

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

13 years agoAdd generic SerialPortLib instance for 16550 UARTs configured through PCDs. Depends...
mdkinney [Sat, 18 Dec 2010 01:02:59 +0000 (01:02 +0000)]
Add generic SerialPortLib instance for 16550 UARTs configured through PCDs.  Depends on new library class called PlatformHookLib to perform platform specific initialization of the UART.
Add PlatformHookLib.h that defines the PlatformHookLib class
Add PlatformHookLibNull instance that is a Null implementation of the PlatformHookLib class

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

13 years agoAdd CONSTRUCTOR to BaseDebugLibSerialPort to call SerialPortInitialize() in the Seria...
mdkinney [Sat, 18 Dec 2010 00:24:34 +0000 (00:24 +0000)]
Add CONSTRUCTOR to BaseDebugLibSerialPort to call SerialPortInitialize() in the SerialPortLib to make sure the serial port hardware is in the proper state for use.

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

13 years agoRemove CONSTRUCTOR from DxePcdLib aligning the DxePcdLib design with the PeiPcdLib...
mdkinney [Sat, 18 Dec 2010 00:22:08 +0000 (00:22 +0000)]
Remove CONSTRUCTOR from DxePcdLib aligning the DxePcdLib design with the PeiPcdLib and reduces the number of CONSTRUCTORs that have to be run for most DXE modules.

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

13 years agoAdd an empty CONSTRUCTOR to the UefiLib to resolve library dependency issues.
mdkinney [Sat, 18 Dec 2010 00:10:30 +0000 (00:10 +0000)]
Add an empty CONSTRUCTOR to the UefiLib to resolve library dependency issues.

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

13 years agoFix DxeHobLib to also support a module type of SMM_CORE.
mdkinney [Fri, 17 Dec 2010 23:04:57 +0000 (23:04 +0000)]
Fix DxeHobLib to also support a module type of SMM_CORE.

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

13 years agoRemove UefiDriverEntryPoint from [LibraryClasses] section. Library implementations...
mdkinney [Fri, 17 Dec 2010 22:47:06 +0000 (22:47 +0000)]
Remove UefiDriverEntryPoint from [LibraryClasses] section.  Library implementations should never link against an entry point lib.  Only modules implementation should link against an entry point lib.

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

13 years agoRemoves the assumption in Supported() and Start() routine that the EFI_SIO_PROTOCOL...
niruiyu [Fri, 17 Dec 2010 05:55:47 +0000 (05:55 +0000)]
Removes the assumption in Supported() and Start() routine that the EFI_SIO_PROTOCOL is installed in the immediate child handle of the PCI controller. Multiple SIO platform could have an additional layer between the PCI controller and the EFI_SIO_PROTOCOL instance.

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

13 years agoFix a bug that the size of a gate descriptor in the IDT is 8 bytes. The size is 8...
rsun3 [Fri, 17 Dec 2010 02:38:26 +0000 (02:38 +0000)]
Fix a bug that the size of a gate descriptor in the IDT is 8 bytes. The size is 8 bytes in 32-bit mode, while it is 16 bytes in 64-bit mode. Replace the hard-coded size with a sizeof.

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

13 years agoAdd support for ARM MOVW/MOVT instructions that were added in the latest PE/COFF...
andrewfish [Thu, 16 Dec 2010 21:44:49 +0000 (21:44 +0000)]
Add support for ARM MOVW/MOVT instructions that were added in the latest PE/COFF specification. Currently they are not hooked in as we need to wait for the tools to get updated. Tools are needed to convert ELF to PE/COFF and to refixup FVs.

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

13 years agoMinor code update to make TcpIo unchanged when return EFI_DEVICE_ERROR.
tye1 [Thu, 16 Dec 2010 09:26:28 +0000 (09:26 +0000)]
Minor code update to make TcpIo unchanged when return EFI_DEVICE_ERROR.

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

13 years agoRemove wrongly added SuperIoInit protocol.
niruiyu [Thu, 16 Dec 2010 08:28:51 +0000 (08:28 +0000)]
Remove wrongly added SuperIoInit protocol.

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

13 years agoFix ARM link issue.
andrewfish [Wed, 15 Dec 2010 21:06:24 +0000 (21:06 +0000)]
Fix ARM link issue.

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

13 years agoUpdate inappropriate comments.
ydong10 [Wed, 15 Dec 2010 07:39:28 +0000 (07:39 +0000)]
Update inappropriate comments.

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

13 years agoFix semihosting on gcc. We need to save lr as svc instruction will change it.
andrewfish [Wed, 15 Dec 2010 02:39:00 +0000 (02:39 +0000)]
Fix semihosting on gcc. We need to save lr as svc instruction will change it.

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

13 years agoUpdate inappropriate comments.
gdong1 [Wed, 15 Dec 2010 01:51:46 +0000 (01:51 +0000)]
Update inappropriate comments.

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

13 years agoUpdate remaining ARM .S files with INTERWORK_FUNC macro. This is the 2nd half of...
andrewfish [Wed, 15 Dec 2010 01:06:20 +0000 (01:06 +0000)]
Update remaining ARM .S files with INTERWORK_FUNC macro. This is the 2nd half of check-in 11167.

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

13 years agoAdd support for semihosting with GCC. Still needs more testing.
andrewfish [Wed, 15 Dec 2010 01:00:54 +0000 (01:00 +0000)]
Add support for semihosting with GCC. Still needs more testing.

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

13 years agoFix issue with CodeSourcery gcc requiring assembly functions to have a .type define...
andrewfish [Wed, 15 Dec 2010 00:58:34 +0000 (00:58 +0000)]
Fix issue with CodeSourcery gcc requiring assembly functions to have a .type define inorder to support interworking (calling from thumb(C code) to ARM code (hadn written assembly). We had to add a macro as the .type directive is not supported, or needed, by Xcode. All ARM .S files need to be updated.

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

13 years agoFix build break on Apple Xcode, caused by fixing normal gcc build break.
andrewfish [Tue, 14 Dec 2010 22:45:46 +0000 (22:45 +0000)]
Fix build break on Apple Xcode, caused by fixing normal gcc build break.

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

13 years agoAdd special treatment for EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE and EFI_PCI_IO_ATTRIBU...
rsun3 [Tue, 14 Dec 2010 09:52:38 +0000 (09:52 +0000)]
Add special treatment for EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE and EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM, because these attributes are only for PCI IO, while not supported by PCI Root Bridge IO.

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

13 years agoFix the IsaIo driver to not create ISA resource item when the ACPI resource returned...
niruiyu [Tue, 14 Dec 2010 07:17:55 +0000 (07:17 +0000)]
Fix the IsaIo driver to not create ISA resource item when the ACPI resource returned from EFI_SIO_PROTOCOL::GetResources() is 0.
This could avoid creating the ISA resource item with StartRange = 0 and EndRange = 0xffffffff when the ACPI resource Base and Len both are 0 because we set StartRange = Base and EndRange = Base + End - 1.

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

13 years agoAdd the SuperIoInit protocol to MdePkg.
niruiyu [Tue, 14 Dec 2010 06:57:22 +0000 (06:57 +0000)]
Add the SuperIoInit protocol to MdePkg.

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

13 years agoAdd a TcpIo library to facilitate usage of TCP service.
tye1 [Tue, 14 Dec 2010 03:19:21 +0000 (03:19 +0000)]
Add a TcpIo library to facilitate usage of TCP service.

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

13 years agoupdate USB_PORT_STAT_OWNER from 2^11 to 2^13 which is added as a possible value of...
erictian [Tue, 14 Dec 2010 02:50:56 +0000 (02:50 +0000)]
update USB_PORT_STAT_OWNER from 2^11 to 2^13 which is added as a possible value of EFI_USB_PORT_STATUS and is the equivalent of EfiUsbPortOwner of EFI_USB_PORT_FEATURE

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

13 years agoupdate USB_PORT_STAT_OWNER from 2^11 to 2^13 which is added as a possible value of...
erictian [Tue, 14 Dec 2010 02:50:25 +0000 (02:50 +0000)]
update USB_PORT_STAT_OWNER from 2^11 to 2^13 which is added as a possible value of EFI_USB_PORT_STATUS and is the equivalent of EfiUsbPortOwner of EFI_USB_PORT_FEATURE

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

13 years agoUpdate the PCI bus driver to correctly set the EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM...
rsun3 [Tue, 14 Dec 2010 02:33:15 +0000 (02:33 +0000)]
Update the PCI bus driver to correctly set the EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM attribute of PCI IO. Per UEFI spec, this attribute is used to determine if the ROM image is from the ROM BAR or from a platform specific location.

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

13 years agoUpdate FrameworkSpecConformance.txt after adding new datahub definitions for SMBIOS...
li-elvin [Mon, 13 Dec 2010 03:22:35 +0000 (03:22 +0000)]
Update FrameworkSpecConformance.txt after adding new datahub definitions for SMBIOS Type 4.

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

13 years agoRemove the unnecessary package from VariableSmmRuntimeDxe.inf.
gdong1 [Sun, 12 Dec 2010 10:18:47 +0000 (10:18 +0000)]
Remove the unnecessary package from VariableSmmRuntimeDxe.inf.

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

13 years agoAdd typecast to remove warning with ICC.
gdong1 [Sat, 11 Dec 2010 11:17:47 +0000 (11:17 +0000)]
Add typecast to remove warning with ICC.
VariableSmm.inf: Remove SmmLib

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

13 years agoMdeModulePkg VariableRuntimeDxe: Fix build for GCC44 toolchain
jljusten [Fri, 10 Dec 2010 23:57:42 +0000 (23:57 +0000)]
MdeModulePkg VariableRuntimeDxe: Fix build for GCC44 toolchain

Add typecast to remove warning with GCC 4.4.

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

13 years agoupdate copyright format
hhtian [Fri, 10 Dec 2010 15:20:43 +0000 (15:20 +0000)]
update copyright format

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

13 years agoupdate copyright format
hhtian [Fri, 10 Dec 2010 15:19:03 +0000 (15:19 +0000)]
update copyright format

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

13 years agofix potential memory access violation
ydong10 [Fri, 10 Dec 2010 11:16:24 +0000 (11:16 +0000)]
fix potential memory access violation

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

13 years agoAdd SMM Variable implementation.
gdong1 [Fri, 10 Dec 2010 09:27:54 +0000 (09:27 +0000)]
Add SMM Variable implementation.

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

13 years agofix build error on ICC compile.
ydong10 [Fri, 10 Dec 2010 08:42:36 +0000 (08:42 +0000)]
fix build error on ICC compile.

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

13 years agoAdd missing data record for Type 4.
li-elvin [Fri, 10 Dec 2010 08:01:52 +0000 (08:01 +0000)]
Add missing data record for Type 4.

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

13 years agoAdd missing fields of Type 4 conversion.
li-elvin [Fri, 10 Dec 2010 08:00:57 +0000 (08:00 +0000)]
Add missing fields of Type 4 conversion.

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

13 years agoEnhance IdeBusDxe to check the class code for IDE mode only.
lzeng14 [Fri, 10 Dec 2010 02:45:29 +0000 (02:45 +0000)]
Enhance IdeBusDxe to check the class code for IDE mode only.

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

13 years agoChange the file guid value to avoid conflict as another file.
ydong10 [Fri, 10 Dec 2010 02:21:56 +0000 (02:21 +0000)]
Change the file guid value to avoid conflict as another file.

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

13 years agoEFI_INVALID_PARAMETER should return when the input Block is NULL for ConfigRouting...
lgao4 [Thu, 9 Dec 2010 12:20:36 +0000 (12:20 +0000)]
EFI_INVALID_PARAMETER should return when the input Block is NULL for ConfigRouting.ConfigToBlock().

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

13 years agoAdd missing Handle parameter for UninstallMultipleProtocolInterfaces().
xdu2 [Thu, 9 Dec 2010 08:57:16 +0000 (08:57 +0000)]
Add missing Handle parameter for UninstallMultipleProtocolInterfaces().

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