From 836026dbba64793afc0d2591ffdb6fb39b696977 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 21 May 2022 15:04:01 +0300 Subject: implement timers better --- arch/riscv64/include/csr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/riscv64/include') diff --git a/arch/riscv64/include/csr.h b/arch/riscv64/include/csr.h index 39e8dc9..ae0763b 100644 --- a/arch/riscv64/include/csr.h +++ b/arch/riscv64/include/csr.h @@ -5,6 +5,10 @@ #define SATP_MODE_Sv39 0x8000000000000000 #define SATP_MODE_Sv48 0x9000000000000000 +/* unprivileged CSR registers */ +#define CSR_TIME 0xc01 +#define CSR_TIMEH 0xc81 + /* supervisor CSR registers */ #define CSR_SSTATUS 0x100 #define CSR_SIE 0x104 -- cgit v1.3