mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-21 01:28:13 +02:00
FEAT_VHE, introduced in ARMv8.1, adds a virtual EL2 timer. However, this library verifies that exactly 3 or 4 12-byte timer interrupts are provided in input DT, ASSERTing when the new timer is added. Change the assert to >= 36. Extend the current logic, also initializing PcdArmArchTimerHypVirtIntrNum if 5 interrupts are provided. Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com> Reported-by: Peter Maydell <peter.maydell@linaro.org> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Peter Maydell <peter.maydell@linaro.org>
47 lines
1.2 KiB
INI
47 lines
1.2 KiB
INI
#/** @file
|
|
# FDT client library for ARM's TimerDxe
|
|
#
|
|
# Copyright (c) 2016, Linaro Ltd. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#
|
|
#**/
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = ArmVirtTimerFdtClientLib
|
|
FILE_GUID = 77EA80CA-2EFB-4AB4-8567-230D968F6B37
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = ArmVirtTimerFdtClientLib|DXE_DRIVER
|
|
CONSTRUCTOR = ArmVirtTimerFdtClientLibConstructor
|
|
|
|
[Sources]
|
|
ArmVirtTimerFdtClientLib.c
|
|
|
|
[Packages]
|
|
ArmPkg/ArmPkg.dec
|
|
ArmVirtPkg/ArmVirtPkg.dec
|
|
EmbeddedPkg/EmbeddedPkg.dec
|
|
MdePkg/MdePkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
PcdLib
|
|
UefiBootServicesTableLib
|
|
|
|
[Protocols]
|
|
gFdtClientProtocolGuid ## CONSUMES
|
|
|
|
[Pcd]
|
|
gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum
|
|
gArmTokenSpaceGuid.PcdArmArchTimerIntrNum
|
|
gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum
|
|
gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum
|
|
gArmTokenSpaceGuid.PcdArmArchTimerHypVirtIntrNum
|
|
|
|
[Depex]
|
|
gFdtClientProtocolGuid
|