1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Copyright (C) 2024, Charleye <wangkart@aliyun.com> 4 * All rights reserved. 5 */ 6 7 #include <bl31/ehf.h> 8 9 #include <platform_def.h> 10 11 ehf_pri_desc_t lua_exceptions[] = { 12 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_LUA_UART1_PRIO), 13 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_LUA_FAB_PERIPH_PRIO), 14 #if ENABLE_FEAT_RAS && FFH_SUPPORT 15 /* RAS Priority */ 16 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_RAS_PRI), 17 #endif 18 #if SDEI_SUPPORT 19 /* Critical priority SDEI */ 20 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_CRITICAL_PRI), 21 22 /* Normal priority SDEI */ 23 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI), 24 #endif 25 }; 26 27 /* Plug in ARM exceptions to Exception Handling Framework. */ 28 EHF_REGISTER_PRIORITIES(lua_exceptions, ARRAY_SIZE(lua_exceptions), PLAT_PRI_BITS); 29