2010-02-24 01:21:16 +01:00
|
|
|
## @file
|
2007-06-22 05:01:46 +02:00
|
|
|
# EFI/PI MdePkg Package
|
|
|
|
#
|
2018-01-18 08:48:29 +01:00
|
|
|
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
2010-04-23 18:40:22 +02:00
|
|
|
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
2007-06-22 05:01:46 +02:00
|
|
|
#
|
2019-04-04 01:06:00 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 05:01:46 +02:00
|
|
|
#
|
2010-02-24 01:21:16 +01:00
|
|
|
##
|
2007-06-22 05:01:46 +02:00
|
|
|
|
|
|
|
[Defines]
|
2007-07-10 01:39:54 +02:00
|
|
|
PLATFORM_NAME = Mde
|
2007-06-22 05:01:46 +02:00
|
|
|
PLATFORM_GUID = 082F8BFC-0455-4859-AE3C-ECD64FB81642
|
2018-01-18 08:48:29 +01:00
|
|
|
PLATFORM_VERSION = 1.08
|
2007-06-22 05:01:46 +02:00
|
|
|
DSC_SPECIFICATION = 0x00010005
|
2007-07-27 21:07:27 +02:00
|
|
|
OUTPUT_DIRECTORY = Build/Mde
|
2018-07-02 03:21:05 +02:00
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64
|
2016-01-19 05:06:07 +01:00
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
2007-06-22 05:01:46 +02:00
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[PcdsFeatureFlag]
|
2009-02-23 08:04:55 +01:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE
|
2007-06-22 05:01:46 +02:00
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[PcdsFixedAtBuild]
|
2007-08-30 11:11:54 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
|
2007-06-22 05:01:46 +02:00
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[Components]
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
2011-03-11 18:47:00 +01:00
|
|
|
MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseLib/BaseLib.inf
|
|
|
|
MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
MdePkg: introduce BaseOrderedCollectionRedBlackTreeLib library instance
edk2 should have a fast and easy-to-use associative array (a dictionary)
type.
Red-black trees have O(log(n)) worst case time complexity for lookup,
insertion, and deletion (where n is the number of nodes in the tree). They
support minimum and maximum lookup with the same time complexity, hence
red-black trees double as priority queues as well.
Given an iterator to a red-black tree node, getting the next or previous
node (which corresponds to the ordered successor or the predecessor,
respectively, according to the user-defined ordering) is O(log(n)) as
well.
The code reflects the Binary Search Trees and Red-Black Trees chapters of
Introduction to Algorithms, by Cormen, Leiserson, Rivest. One point where
the implementation diverges is the first phase of the Delete() operation.
During that phase, the book's algorithm copies the key and other business
*contents* of the successor node (in case the successor node is affected),
and releases the successor node (instead of the node that the user
requested to delete).
While semantically correct, this would break the above iterator validity
guarantee. This implementation replaces the copying of business contents
between nodes with suitable relinking of nodes, so that all iterators
(except the one whose deletion is being requested) remain valid.
I had written this code originally in approx. 2002. I personally own the
copyright of that version and am hereby relicensing it to Red Hat, under
the BSDL. I had used the original code in a few personal projects since,
for example in the lbzip2-0.x parallel (de)compressor, and now I've ported
the library to edk2. Both during the original implementation and now
during the porting I verified all the cases and their proofs as rigorously
as I could, on paper. (NB, I couldn't find any errors in the 2002 code
now.)
During the porting to edk2, I documented all those cases in code comments
as well (at least half of the source is documentation). These comments are
not blind copies of diagrams from the Algorithms book, nor are they copies
from my original code -- I've done them all fresh now, and I've only
matched the results against the book. Reviewers are invited to sit down
with a pen, some paper, the book, and the code.
The Validate() function verifies the internal red-black properties of the
tree. This function helps with unit testing, and is only invoked when
requested with the PcdValidateOrderedCollection feature flag.
A note about diagrams: edges represented by backslash (\) characters are
often written as "\_", ie. with a following underscore. This is because
line-trailing backslashes are processed very early in compilation (in
translation phase 2), "splicing physical source lines to form logical
source lines". Since the edk2 coding style requires "//" comments for such
documentation, a trailing backslash would splice the next physical line
into the "scope" of the comment. To prevent this, trailing backslashes are
defanged by appending underscores, which should be visually bearable.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15791 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-12 09:29:04 +02:00
|
|
|
MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
|
|
|
MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
|
|
|
|
MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
|
|
|
|
MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
|
2016-01-18 05:50:04 +01:00
|
|
|
MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
2017-08-04 07:10:59 +02:00
|
|
|
MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.inf
|
2017-08-04 07:18:37 +02:00
|
|
|
MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
|
|
|
|
MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.inf
|
2017-08-04 07:23:24 +02:00
|
|
|
MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
|
|
|
MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
2009-03-05 16:29:02 +01:00
|
|
|
MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
|
|
|
MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf
|
|
|
|
MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
|
|
|
|
MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
2009-03-03 15:09:52 +01:00
|
|
|
MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
|
2009-01-30 01:45:13 +01:00
|
|
|
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
|
|
|
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
|
2019-05-09 04:27:03 +02:00
|
|
|
MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf
|
2013-11-08 03:59:05 +01:00
|
|
|
MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
MdePkg/BaseSafeIntLib: Add SafeIntLib class and instance
https://bugzilla.tianocore.org/show_bug.cgi?id=798
SafeIntLib provides helper functions to prevent integer overflow
during type conversion, addition, subtraction, and multiplication.
Conversion Functions
====================
* Converting from a signed type to an unsigned type of the same
size, or vice-versa.
* Converting to a smaller type that could possibly overflow.
* Converting from a signed type to a larger unsigned type.
Unsigned Addition, Subtraction, Multiplication
===============================================
* Unsigned integer math functions protect from overflow and
underflow (in case of subtraction).
Signed Addition, Subtraction, Multiplication
============================================
* Strongly consider using unsigned numbers.
* Signed numbers are often used where unsigned numbers should
be used. For example file sizes and array indices should always
be unsigned. Subtracting a larger positive signed number from a
smaller positive signed number with SafeInt32Sub() will succeed,
producing a negative number, that then must not be used as an
array index (but can occasionally be used as a pointer index.)
Similarly for adding a larger magnitude negative number to a
smaller magnitude positive number.
* SafeIntLib does not protect you from such errors. It tells you
if your integer operations overflowed, not if you are doing the
right thing with your non-overflowed integers.
* Likewise you can overflow a buffer with a non-overflowed
unsigned index.
Based on content from the following branch/commits:
https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport
https://github.com/Microsoft/MS_UEFI/commit/21ef3a321c907b40fa93797619c9f6c686dd92e0
https://github.com/Microsoft/MS_UEFI/commit/ca516b1a61315c2d823f453e12d2135098f53d61
https://github.com/Microsoft/MS_UEFI/commit/33bab4031a417d7d5a7d356c15a14c2e60302b2d
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-04-25 01:37:20 +02:00
|
|
|
MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
|
|
|
|
MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
2008-11-13 10:09:03 +01:00
|
|
|
MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
|
|
|
MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
|
2010-04-21 04:06:55 +02:00
|
|
|
MdePkg/Library/DxeIoLibCpuIo2/DxeIoLibCpuIo2.inf
|
2015-01-19 07:08:23 +01:00
|
|
|
MdePkg/Library/DxeHstiLib/DxeHstiLib.inf
|
2008-11-24 09:29:41 +01:00
|
|
|
MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf
|
2018-09-14 10:54:35 +02:00
|
|
|
MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
|
2008-11-24 09:29:41 +01:00
|
|
|
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
|
|
|
|
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
|
|
|
|
MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
|
|
MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
|
|
MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf
|
|
|
|
MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
|
|
|
MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
|
|
|
MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
|
|
|
|
MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
|
|
|
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
2007-08-06 05:52:01 +02:00
|
|
|
MdePkg/Library/PeiSmbusLibSmbus2Ppi/PeiSmbusLibSmbus2Ppi.inf
|
2008-11-11 09:33:02 +01:00
|
|
|
MdePkg/Library/PeiPciLibPciCfg2/PeiPciLibPciCfg2.inf
|
|
|
|
MdePkg/Library/PeiPciSegmentLibPciCfg2/PeiPciSegmentLibPciCfg2.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
|
|
|
MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
|
|
|
MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
2015-09-08 10:28:23 +02:00
|
|
|
MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
|
|
|
|
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
2013-07-26 05:00:21 +02:00
|
|
|
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
|
|
|
|
MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
|
|
|
MdePkg/Library/UefiLib/UefiLib.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
|
|
|
MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
|
|
|
MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
|
2008-11-24 07:49:15 +01:00
|
|
|
MdePkg/Library/UefiPciLibPciRootBridgeIo/UefiPciLibPciRootBridgeIo.inf
|
|
|
|
MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/UefiPciSegmentLibPciRootBridgeIo.inf
|
2010-01-27 23:59:52 +01:00
|
|
|
MdePkg/Library/SmmLibNull/SmmLibNull.inf
|
2010-05-05 04:06:23 +02:00
|
|
|
MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
|
2007-06-29 07:37:38 +02:00
|
|
|
|
2019-01-14 12:56:33 +01:00
|
|
|
MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
|
2019-01-14 13:06:01 +01:00
|
|
|
MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
|
2019-01-14 12:56:33 +01:00
|
|
|
|
2008-10-28 08:45:15 +01:00
|
|
|
[Components.IA32, Components.X64]
|
2008-10-28 08:17:17 +01:00
|
|
|
MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
2017-04-12 16:55:23 +02:00
|
|
|
MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf
|
2007-11-08 04:40:50 +01:00
|
|
|
MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf
|
2007-07-27 21:07:27 +02:00
|
|
|
MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
2008-10-28 08:45:15 +01:00
|
|
|
MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
|
|
|
|
MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
2010-01-14 05:20:04 +01:00
|
|
|
MdePkg/Library/SmmIoLibSmmCpuIo2/SmmIoLibSmmCpuIo2.inf
|
2009-12-23 07:44:33 +01:00
|
|
|
MdePkg/Library/SmmPciLibPciRootBridgeIo/SmmPciLibPciRootBridgeIo.inf
|
|
|
|
MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
2010-02-14 07:00:11 +01:00
|
|
|
MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
2011-08-30 00:16:28 +02:00
|
|
|
MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.inf
|
|
|
|
MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
|
|
|
|
MdePkg/Library/BaseS3IoLib/BaseS3IoLib.inf
|
|
|
|
MdePkg/Library/BaseS3PciLib/BaseS3PciLib.inf
|
|
|
|
MdePkg/Library/BaseS3SmbusLib/BaseS3SmbusLib.inf
|
|
|
|
MdePkg/Library/BaseS3StallLib/BaseS3StallLib.inf
|
2015-02-02 15:40:44 +01:00
|
|
|
MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
2017-03-15 10:23:46 +01:00
|
|
|
MdePkg/Library/SmmIoLib/SmmIoLib.inf
|
2015-09-21 07:54:03 +02:00
|
|
|
MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
2016-09-20 16:02:28 +02:00
|
|
|
MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf
|
2017-01-30 15:42:29 +01:00
|
|
|
MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.inf
|
2019-01-03 19:28:21 +01:00
|
|
|
MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
2007-06-22 05:01:46 +02:00
|
|
|
|
2008-10-28 08:17:17 +01:00
|
|
|
[Components.EBC]
|
2015-12-14 07:11:17 +01:00
|
|
|
MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
2008-10-28 08:17:17 +01:00
|
|
|
MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
2014-08-21 11:23:58 +02:00
|
|
|
|
|
|
|
[Components.ARM, Components.AARCH64]
|
MdePkg/BaseIoLibIntrinsic: make BaseIoLibIntrinsic safe for ArmVirt/KVM
KVM on ARM refuses to decode load/store instructions used to perform
I/O to emulated devices, and instead relies on the exception syndrome
information to describe the operand register, access size, etc.
This is only possible for instructions that have a single input/output
register (as opposed to ones that increment the offset register, or
load/store pair instructions, etc). Otherwise, QEMU crashes with the
following error
error: kvm run failed Function not implemented
R00=01010101 R01=00000008 R02=00000048 R03=08000820
R04=00000120 R05=7faaa0e0 R06=7faaa0dc R07=7faaa0e8
R08=7faaa0ec R09=7faaa088 R10=000000ff R11=00000080
R12=ff000000 R13=7fccfe08 R14=7faa835f R15=7faa887c
PSR=800001f3 N--- T svc32
QEMU: Terminated
and KVM produces a warning such as the following in the kernel log
kvm [17646]: load/store instruction decoding not implemented
The IoLib implementation provided by MdePkg/Library/BaseIoLibIntrinsic
is based on C code, and when LTO is in effect, the MMIO accesses could
be merged with, e.g., manipulations of the loop counter, producing
opcodes that KVM does not support for emulated MMIO.
So let's add a special ArmVirt flavor of this library that implements
that actual load/store operations in assembler, ensuring that the
instructions involved can be emulated by KVM.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-06-07 12:44:12 +02:00
|
|
|
MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
|
2014-08-21 11:23:58 +02:00
|
|
|
MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
2016-08-01 08:09:43 +02:00
|
|
|
|
|
|
|
[BuildOptions]
|
|
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|