diff --git a/xen/arch/riscv/time.c b/xen/arch/riscv/time.c index 602c029641..782d9cd450 100644 --- a/xen/arch/riscv/time.c +++ b/xen/arch/riscv/time.c @@ -101,8 +101,8 @@ void __init preinit_xen_time(void) * A VS-timer interrupt becomes pending whenever the value of * (time + htimedelta) is greater than or equal to vstimecmp CSR. * Thereby to avoid spurious VS-timer irqs set vstimecmp CSR to - * ULONG_MAX. + * ~0. */ - csr_write64(CSR_VSTIMECMP, ULONG_MAX); + csr_write64(CSR_VSTIMECMP, ~0); } }