From 4ed69fde271d1759a1f03e427e612870fb1926cc Mon Sep 17 00:00:00 2001 From: xieyangrun Date: Mon, 31 Oct 2022 18:27:28 +0800 Subject: [PATCH] fixed arm/cortex-a/lwp_arch.c asid not enable build failure. --- components/lwp/arch/arm/cortex-a/lwp_arch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lwp/arch/arm/cortex-a/lwp_arch.c b/components/lwp/arch/arm/cortex-a/lwp_arch.c index 9bf18f61d6..814c1513ed 100644 --- a/components/lwp/arch/arm/cortex-a/lwp_arch.c +++ b/components/lwp/arch/arm/cortex-a/lwp_arch.c @@ -87,7 +87,7 @@ int arch_expand_user_stack(void *addr) return ret; } - +#ifdef LWP_ENABLE_ASID #define MAX_ASID_BITS 8 #define MAX_ASID (1 << MAX_ASID_BITS) static uint64_t global_generation = 1; @@ -133,5 +133,6 @@ unsigned int arch_get_asid(struct rt_lwp *lwp) return lwp->asid; } +#endif #endif -- Gitee