MPFS: Fix issue with external interrupt detection

The bitmask overflow'd. Failing test is at mpfs_irq_dispatch / line 69
This commit is contained in:
Ville Juven 2022-03-28 13:29:20 +03:00 committed by Xiang Xiao
parent 30c25a95f3
commit 43d5f60a74

View File

@ -82,9 +82,9 @@
/* IRQ bit and IRQ mask */
#ifdef CONFIG_ARCH_RV32
# define RISCV_IRQ_BIT (1 << 31)
# define RISCV_IRQ_BIT (UINT32_C(1) << 31)
#else
# define RISCV_IRQ_BIT (1 << 63)
# define RISCV_IRQ_BIT (UINT64_C(1) << 63)
#endif
#define RISCV_IRQ_MASK (~RISCV_IRQ_BIT)