diff options
Diffstat (limited to 'core/minute-ia/interrupts.c')
-rw-r--r-- | core/minute-ia/interrupts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/minute-ia/interrupts.c b/core/minute-ia/interrupts.c index 96e5626d47..98c6c3509d 100644 --- a/core/minute-ia/interrupts.c +++ b/core/minute-ia/interrupts.c @@ -215,7 +215,7 @@ static inline unsigned int lapic_get_vector(uint32_t reg_base, uint32_t vector) uint32_t reg_pos = (vector >> 5) << 4; uint32_t vec_pos = vector & (32 - 1); - return REG32(reg_base + reg_pos) & (1 << vec_pos); + return REG32(reg_base + reg_pos) & BIT(vec_pos); } /* |