xen/riscv: Fix SSTC init to write VSTIMECMP instead of STIMECMP

According to the preceeding comment, CSR_VSTIMECMP should be written rather
than CSR_STIMECMP.

Fixes: 25e0327306 ("xen/riscv: allow Xen to use SSTC while hiding it from guests")
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
This commit is contained in:
Baptiste Le Duc authored and Andrew Cooper committed 2026-05-19 22:29:31 +01:00
1 parent 2b51691c8c
commit a472f640dd
1 file changed
+1 -1
+1 -1
View File
@@ -101,6 +101,6 @@ void __init preinit_xen_time(void)
* Thereby to avoid spurious VS-timer irqs set vstimecmp CSR to
* ULONG_MAX.
*/
csr_write64(CSR_STIMECMP, ULONG_MAX);
csr_write64(CSR_VSTIMECMP, ULONG_MAX);
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.