File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 248
248
#define TRBLIMITR_EL1_E BIT(0)
249
249
#define TRBPTR_EL1_PTR_MASK GENMASK_ULL(63, 0)
250
250
#define TRBPTR_EL1_PTR_SHIFT 0
251
- #define TRBBASER_BASE_MASK GENMASK_ULL(51, 0 )
252
- #define TRBBASER_BASE_SHIFT 12
251
+ #define TRBBASER_EL1_BASE_MASK GENMASK_ULL(63, 12 )
252
+ #define TRBBASER_EL1_BASE_SHIFT 12
253
253
#define TRBSR_EC_MASK GENMASK(5, 0)
254
254
#define TRBSR_EC_SHIFT 26
255
255
#define TRBSR_IRQ BIT(22)
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ static inline unsigned long get_trbe_limit_pointer(void)
131
131
static inline unsigned long get_trbe_base_pointer (void )
132
132
{
133
133
u64 trbbaser = read_sysreg_s (SYS_TRBBASER_EL1 );
134
- unsigned long addr = trbbaser & ( TRBBASER_BASE_MASK << TRBBASER_BASE_SHIFT ) ;
134
+ unsigned long addr = trbbaser & TRBBASER_EL1_BASE_MASK ;
135
135
136
136
WARN_ON (!IS_ALIGNED (addr , PAGE_SIZE ));
137
137
return addr ;
@@ -140,7 +140,7 @@ static inline unsigned long get_trbe_base_pointer(void)
140
140
static inline void set_trbe_base_pointer (unsigned long addr )
141
141
{
142
142
WARN_ON (is_trbe_enabled ());
143
- WARN_ON (!IS_ALIGNED (addr , (1UL << TRBBASER_BASE_SHIFT )));
143
+ WARN_ON (!IS_ALIGNED (addr , (1UL << TRBBASER_EL1_BASE_SHIFT )));
144
144
WARN_ON (!IS_ALIGNED (addr , PAGE_SIZE ));
145
145
write_sysreg_s (addr , SYS_TRBBASER_EL1 );
146
146
}
You can’t perform that action at this time.
0 commit comments