This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7a0ef1d0cac4f2524d1660fa9739008823be483a Author: ligd <[email protected]> AuthorDate: Fri May 19 15:37:55 2023 +0800 secure: fix compile failed when no CONFIG_ARCH_HAVE_TRUSTZONE Signed-off-by: ligd <[email protected]> --- include/nuttx/arch.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 6293d98de7..4a647afedb 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -1552,17 +1552,19 @@ void up_trigger_irq(int irq, cpu_set_t cpuset); int up_prioritize_irq(int irq, int priority); #endif -#ifdef CONFIG_ARCH_HAVE_TRUSTZONE - /**************************************************************************** - * Name: up_set_secure_irq + * Name: up_secure_irq * * Description: * Secure an IRQ * ****************************************************************************/ +#ifdef CONFIG_ARCH_HAVE_TRUSTZONE void up_secure_irq(int irq, bool secure); +#else +# define up_secure_irq(i, s) +#endif /**************************************************************************** * Name: up_secure_irq_all @@ -1572,8 +1574,10 @@ void up_secure_irq(int irq, bool secure); * ****************************************************************************/ +#ifdef CONFIG_ARCH_HAVE_TRUSTZONE void up_secure_irq_all(bool secure); - +#else +# define up_secure_irq_all(s) #endif /****************************************************************************
