vioapic.c: Using suffix rather than casting

Using suffix "UL" rather than type casting 0xffffffff.

Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang, Yu-chu 2018-06-27 18:16:50 -07:00 committed by lijinxia
parent cb064b1133
commit 809eb9f6ca

View File

@ -330,7 +330,7 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)
last = vioapic->rtbl[pin].reg;
data64 = (uint64_t)data << lshift;
mask64 = (uint64_t)0xffffffff << lshift;
mask64 = 0xffffffffUL << lshift;
new = last & (~mask64 | RTBL_RO_BITS);
new |= data64 & ~RTBL_RO_BITS;