@@ -86,13 +86,13 @@ static inline void sel4bench_private_deinit(void* data)
86
86
#define SEL4BENCH_ARMV8A_PMCR_RESET_CCNT BIT(2)
87
87
#define SEL4BENCH_ARMV8A_PMCR_DIV64 BIT(3) /* Should CCNT be divided by 64? */
88
88
89
- static FASTFN void sel4bench_private_write_pmcr (uint32_t val )
89
+ static FASTFN void sel4bench_private_write_pmcr (seL4_Word val )
90
90
{
91
91
PMU_WRITE (PMCR , val );
92
92
}
93
- static FASTFN uint32_t sel4bench_private_read_pmcr (void )
93
+ static FASTFN seL4_Word sel4bench_private_read_pmcr (void )
94
94
{
95
- uint32_t val ;
95
+ seL4_Word val ;
96
96
PMU_READ (PMCR , val );
97
97
return val ;
98
98
}
@@ -104,14 +104,14 @@ static FASTFN uint32_t sel4bench_private_read_pmcr(void)
104
104
* PMEVCNTR<x>. Reading this register shows which counters are enabled.
105
105
*
106
106
*/
107
- static FASTFN void sel4bench_private_write_cntens (uint32_t mask )
107
+ static FASTFN void sel4bench_private_write_cntens (seL4_Word mask )
108
108
{
109
109
PMU_WRITE (PMCNTENSET , mask );
110
110
}
111
111
112
- static FASTFN uint32_t sel4bench_private_read_cntens (void )
112
+ static FASTFN seL4_Word sel4bench_private_read_cntens (void )
113
113
{
114
- uint32_t mask ;
114
+ seL4_Word mask ;
115
115
PMU_READ (PMCNTENSET , mask );
116
116
return mask ;
117
117
}
@@ -120,7 +120,7 @@ static FASTFN uint32_t sel4bench_private_read_cntens(void)
120
120
* Disables the Cycle Count Register, PMCCNTR_EL0, and any implemented event counters
121
121
* PMEVCNTR<x>. Reading this register shows which counters are enabled.
122
122
*/
123
- static FASTFN void sel4bench_private_write_cntenc (uint32_t mask )
123
+ static FASTFN void sel4bench_private_write_cntenc (seL4_Word mask )
124
124
{
125
125
PMU_WRITE (PMCNTENCLR , mask );
126
126
}
@@ -129,22 +129,22 @@ static FASTFN void sel4bench_private_write_cntenc(uint32_t mask)
129
129
* Reads or writes the value of the selected event counter, PMEVCNTR<n>_EL0.
130
130
* PMSELR_EL0.SEL determines which event counter is selected.
131
131
*/
132
- static FASTFN uint32_t sel4bench_private_read_pmcnt (void )
132
+ static FASTFN seL4_Word sel4bench_private_read_pmcnt (void )
133
133
{
134
- uint32_t val ;
134
+ seL4_Word val ;
135
135
PMU_READ (PMXEVCNTR , val );
136
136
return val ;
137
137
}
138
138
139
- static FASTFN void sel4bench_private_write_pmcnt (uint32_t val )
139
+ static FASTFN void sel4bench_private_write_pmcnt (seL4_Word val )
140
140
{
141
141
PMU_WRITE (PMXEVCNTR , val );
142
142
}
143
143
144
144
/*
145
145
* Selects the current event counter PMEVCNTR<x> or the cycle counter, CCNT
146
146
*/
147
- static FASTFN void sel4bench_private_write_pmnxsel (uint32_t val )
147
+ static FASTFN void sel4bench_private_write_pmnxsel (seL4_Word val )
148
148
{
149
149
PMU_WRITE (PMSELR , val );
150
150
}
@@ -153,15 +153,15 @@ static FASTFN void sel4bench_private_write_pmnxsel(uint32_t val)
153
153
* When PMSELR_EL0.SEL selects an event counter, this accesses a PMEVTYPER<n>_EL0
154
154
* register. When PMSELR_EL0.SEL selects the cycle counter, this accesses PMCCFILTR_EL0.
155
155
*/
156
- static FASTFN uint32_t sel4bench_private_read_evtsel (void )
156
+ static FASTFN seL4_Word sel4bench_private_read_evtsel (void )
157
157
{
158
158
159
- uint32_t val ;
159
+ seL4_Word val ;
160
160
PMU_READ (PMXEVTYPER , val );
161
161
return val ;
162
162
}
163
163
164
- static FASTFN void sel4bench_private_write_evtsel (uint32_t val )
164
+ static FASTFN void sel4bench_private_write_evtsel (seL4_Word val )
165
165
{
166
166
PMU_WRITE (PMXEVTYPER , val );
167
167
}
0 commit comments