|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/riscv: Fix SSTC init to write VSTIMECMP instead of STIMECMP
commit a472f640dd49c03c479c49a6ec24344472b0e223
Author: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
AuthorDate: Tue May 19 18:14:44 2026 +0200
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Tue May 19 22:29:31 2026 +0100
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: 25e032730690 ("xen/riscv: allow Xen to use SSTC while hiding it from
guests")
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
---
xen/arch/riscv/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/riscv/time.c b/xen/arch/riscv/time.c
index 8769709e52..10b7e35f13 100644
--- a/xen/arch/riscv/time.c
+++ b/xen/arch/riscv/time.c
@@ -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);
}
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |