summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorShell <[email protected]>2024-03-30 17:58:38 +0800
committerGitHub <[email protected]>2024-03-30 17:58:38 +0800
commit864055bf1806f1331843379ced674b454b59bfca (patch)
tree998720b2f18de67fb122d0930a4a80467ff9389c /components/drivers
parent6d1bc9b2f82e7b6c49e3a7fd38ed66aab1ac86d6 (diff)
[fixup] aarch64 UMP compiler error (#8677)
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/ofw/base.c2
-rwxr-xr-xcomponents/drivers/ofw/irq.c2
-rw-r--r--components/drivers/pic/pic_rthw.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/ofw/base.c b/components/drivers/ofw/base.c
index 4578758a23..ffb513fbb7 100644
--- a/components/drivers/ofw/base.c
+++ b/components/drivers/ofw/base.c
@@ -1474,7 +1474,7 @@ static const char *ofw_get_prop_fuzzy_name(const struct rt_ofw_node *np, const c
char *sf, split_field[64];
rt_size_t len = 0, max_ak = 0;
const char *str, *result = RT_NULL;
- RT_BITMAP_DECLARE(ak, sizeof(split_field));
+ RT_BITMAP_DECLARE(ak, sizeof(split_field)) = {0};
struct rt_ofw_prop *prop;
/*
diff --git a/components/drivers/ofw/irq.c b/components/drivers/ofw/irq.c
index be843d6cb7..cf47f01ed2 100755
--- a/components/drivers/ofw/irq.c
+++ b/components/drivers/ofw/irq.c
@@ -624,7 +624,7 @@ int rt_ofw_get_irq(struct rt_ofw_node *np, int index)
if ((rt_int64_t)cpuid >= 0)
{
- RT_DECLARE_BITMAP(affinity, RT_CPUS_NR) = { 0 };
+ RT_BITMAP_DECLARE(affinity, RT_CPUS_NR) = { 0 };
rt_bitmap_set_bit(affinity, cpuid);
diff --git a/components/drivers/pic/pic_rthw.c b/components/drivers/pic/pic_rthw.c
index b46c7bc26d..e83f12a1fa 100644
--- a/components/drivers/pic/pic_rthw.c
+++ b/components/drivers/pic/pic_rthw.c
@@ -66,7 +66,7 @@ void rt_hw_interrupt_uninstall(int vector, rt_isr_handler_t handler, void *param
#if defined(RT_USING_SMP) || defined(RT_USING_AMP)
void rt_hw_ipi_send(int ipi_vector, unsigned int cpu_mask)
{
- RT_DECLARE_BITMAP(cpu_masks, RT_CPUS_NR) = { cpu_mask };
+ RT_BITMAP_DECLARE(cpu_masks, RT_CPUS_NR) = { cpu_mask };
rt_pic_irq_send_ipi(ipi_vector, cpu_masks);
}