]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf
ca70daa2847c6a3d3d08932ddfcf133a5ba1bd05
[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.S | GCC
32
33 [Sources.AARCH64]
34 AArch64/AArch64Exception.c
35 AArch64/ExceptionSupport.S
36
37 [Packages]
38 MdePkg/MdePkg.dec
39 MdeModulePkg/MdeModulePkg.dec
40 ArmPkg/ArmPkg.dec
41
42 [LibraryClasses]
43 ArmLib
44 DebugLib
45 DefaultExceptionHandlerLib
46 BaseMemoryLib
47 CacheMaintenanceLib
48
49 [Pcd]
50 gArmTokenSpaceGuid.PcdDebuggerExceptionSupport
51 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress
52
53 [BuildOptions]
54 # We must pass a define to specify that we are relocating vectors so the
55 # vector alignment is relaxed (space savings); note that this must be done
56 # as a define and not a PCD since it affects assembly directives.
57 *_*_*_PP_FLAGS = -DARM_RELOCATE_VECTORS
58 *_*_*_CC_FLAGS = -DARM_RELOCATE_VECTORS