From 3b7c204dcaa58e415ad7451c2a690bb88773abbf Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Fri, 7 Jan 2022 10:54:08 -0800 Subject: lib: sbi: Disable interrupt during config matching PMU overflow interrupt should be disabled durinig initial configuration of counters. They should be enabled while starting counters. Fixes: 730f01bb41a6 ("lib: sbi: Support sscofpmf extension in OpenSBI") Signed-off-by: Atish Patra Reviewed-by: Anup Patel --- include/sbi/riscv_encoding.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index 8a29f8e0..ac8590d7 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -181,13 +181,14 @@ #define MHPMEVENT_VSINH (_UL(1) << 59) #define MHPMEVENT_VUINH (_UL(1) << 58) #else -#define MHPMEVENTH_OF (_UL(1) << 31) +#define MHPMEVENTH_OF (_ULL(1) << 31) #define MHPMEVENTH_MINH (_ULL(1) << 30) #define MHPMEVENTH_SINH (_ULL(1) << 29) #define MHPMEVENTH_UINH (_ULL(1) << 28) #define MHPMEVENTH_VSINH (_ULL(1) << 27) #define MHPMEVENTH_VUINH (_ULL(1) << 26) +#define MHPMEVENT_OF (MHPMEVENTH_OF << 32) #define MHPMEVENT_MINH (MHPMEVENTH_MINH << 32) #define MHPMEVENT_SINH (MHPMEVENTH_SINH << 32) #define MHPMEVENT_UINH (MHPMEVENTH_UINH << 32) -- cgit v1.3.1