summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
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);
}