Jan Kiszka | e1407fc | 2020-07-14 22:36:59 +0200 | [diff] [blame] | 1 | /* |
Michal Simek | 2a47faa | 2023-04-14 08:43:51 +0200 | [diff] [blame] | 2 | * Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved. |
Jan Kiszka | e1407fc | 2020-07-14 22:36:59 +0200 | [diff] [blame] | 3 | * Copyright (c) Siemens AG, 2020-2021 |
| 4 | * |
| 5 | * SPDX-License-Identifier: BSD-3-Clause |
| 6 | */ |
| 7 | |
Jan Kiszka | e1407fc | 2020-07-14 22:36:59 +0200 | [diff] [blame] | 8 | #include <bl31/ehf.h> |
| 9 | |
Prasad Kummari | 536e110 | 2023-06-22 10:50:02 +0530 | [diff] [blame] | 10 | #include <platform_def.h> |
| 11 | |
Jan Kiszka | e1407fc | 2020-07-14 22:36:59 +0200 | [diff] [blame] | 12 | /* |
| 13 | * Enumeration of priority levels on ARM platforms. |
| 14 | */ |
| 15 | ehf_pri_desc_t zynqmp_exceptions[] = { |
| 16 | /* Critical priority SDEI */ |
| 17 | EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_CRITICAL_PRI), |
| 18 | |
| 19 | /* Normal priority SDEI */ |
| 20 | EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI), |
| 21 | }; |
| 22 | |
| 23 | /* Plug in ARM exceptions to Exception Handling Framework. */ |
| 24 | EHF_REGISTER_PRIORITIES(zynqmp_exceptions, ARRAY_SIZE(zynqmp_exceptions), PLAT_PRI_BITS); |