lzeng14 [Thu, 20 Jan 2011 11:18:14 +0000 (11:18 +0000)]
ProcessCumulative() function always calculates the average performance by dividing the count of performance record.
When the count is zero, it will report exception, so it needs to be enhanced to check the dividend.
ydong10 [Thu, 20 Jan 2011 02:51:09 +0000 (02:51 +0000)]
Fixed HiiSetString failed. Tracker NUM:204479
Reason:
When call function HiiSetString to update the string which has no old string exist for one language, it will failed.
Solution:
When no old string exist, update with new string.
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.
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.
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.
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.
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.
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.
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().
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.