]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf
ef1a43a27c45097f87454f9c3b2bc557c41138c5
[mirror_edk2.git] / ArmPkg / Library / ArmExceptionLib / ArmRelocateExceptionLib.inf
1 ## @file
2 # Instance of CpuExceptionHandlerLib Library for ARM/AArch64 architectures
3 #
4 # This library instance is used when exception vectors must be relocated to
5 # a specific address. The address is specified by PcdCpuVectorBaseAddress.
6 # Since the alignment requirement for in-place exception handlers causes
7 # image size to increase, this instance is useful for modules that need to
8 # minimize space used in their FV (like XIP modules). See ArmExceptionLib.inf
9 # for the in-place exception handler alternative.
10 #
11 # Copyright (c) 2011-2012, ARM Limited. All rights reserved.
12 # Copyright (c) 2016 HP Development Company, L.P.
13 #
14 # SPDX-License-Identifier: BSD-2-Clause-Patent
15 #
16 #
17
18 [Defines]
19 INF_VERSION = 0x00010005
20 BASE_NAME = ArmRelocateExceptionLib
21 FILE_GUID = 62AA447A-1FBA-429E-9E0D-CE0D2D8DCF58
22 MODULE_TYPE = BASE
23 VERSION_STRING = 1.0
24 LIBRARY_CLASS = CpuExceptionHandlerLib
25
26 [Sources.common]
27 ArmExceptionLib.c
28
29 [Sources.Arm]
30 Arm/ArmException.c
31 Arm/ExceptionSupport.asm | RVCT
32 Arm/ExceptionSupport.S | GCC
33
34 [Sources.AARCH64]
35 AArch64/AArch64Exception.c
36 AArch64/ExceptionSupport.S
37
38 [Packages]
39 MdePkg/MdePkg.dec
40 MdeModulePkg/MdeModulePkg.dec
41 ArmPkg/ArmPkg.dec
42
43 [LibraryClasses]
44 ArmLib
45 DebugLib
46 DefaultExceptionHandlerLib
47 BaseMemoryLib
48 CacheMaintenanceLib
49
50 [Pcd]
51 gArmTokenSpaceGuid.PcdDebuggerExceptionSupport
52 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress
53
54 [BuildOptions]
55 # We must pass a define to specify that we are relocating vectors so the
56 # vector alignment is relaxed (space savings); note that this must be done
57 # as a define and not a PCD since it affects assembly directives.
58 *_*_*_PP_FLAGS = -DARM_RELOCATE_VECTORS
59 *_*_*_CC_FLAGS = -DARM_RELOCATE_VECTORS