Skip to content

Commit b622cf1

Browse files
Axel Heideraxel-h
authored andcommitted
wip
1 parent d3e39e6 commit b622cf1

File tree

1 file changed

+14
-14
lines changed
  • libsel4bench/arch_include/arm/armv/armv8-a/sel4bench/armv

1 file changed

+14
-14
lines changed

libsel4bench/arch_include/arm/armv/armv8-a/sel4bench/armv/private.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ static inline void sel4bench_private_deinit(void* data)
8686
#define SEL4BENCH_ARMV8A_PMCR_RESET_CCNT BIT(2)
8787
#define SEL4BENCH_ARMV8A_PMCR_DIV64 BIT(3) /* Should CCNT be divided by 64? */
8888

89-
static FASTFN void sel4bench_private_write_pmcr(uint32_t val)
89+
static FASTFN void sel4bench_private_write_pmcr(seL4_Word val)
9090
{
9191
PMU_WRITE(PMCR, val);
9292
}
93-
static FASTFN uint32_t sel4bench_private_read_pmcr(void)
93+
static FASTFN seL4_Word sel4bench_private_read_pmcr(void)
9494
{
95-
uint32_t val;
95+
seL4_Word val;
9696
PMU_READ(PMCR, val);
9797
return val;
9898
}
@@ -104,14 +104,14 @@ static FASTFN uint32_t sel4bench_private_read_pmcr(void)
104104
* PMEVCNTR<x>. Reading this register shows which counters are enabled.
105105
*
106106
*/
107-
static FASTFN void sel4bench_private_write_cntens(uint32_t mask)
107+
static FASTFN void sel4bench_private_write_cntens(seL4_Word mask)
108108
{
109109
PMU_WRITE(PMCNTENSET, mask);
110110
}
111111

112-
static FASTFN uint32_t sel4bench_private_read_cntens(void)
112+
static FASTFN seL4_Word sel4bench_private_read_cntens(void)
113113
{
114-
uint32_t mask;
114+
seL4_Word mask;
115115
PMU_READ(PMCNTENSET, mask);
116116
return mask;
117117
}
@@ -120,7 +120,7 @@ static FASTFN uint32_t sel4bench_private_read_cntens(void)
120120
* Disables the Cycle Count Register, PMCCNTR_EL0, and any implemented event counters
121121
* PMEVCNTR<x>. Reading this register shows which counters are enabled.
122122
*/
123-
static FASTFN void sel4bench_private_write_cntenc(uint32_t mask)
123+
static FASTFN void sel4bench_private_write_cntenc(seL4_Word mask)
124124
{
125125
PMU_WRITE(PMCNTENCLR, mask);
126126
}
@@ -129,22 +129,22 @@ static FASTFN void sel4bench_private_write_cntenc(uint32_t mask)
129129
* Reads or writes the value of the selected event counter, PMEVCNTR<n>_EL0.
130130
* PMSELR_EL0.SEL determines which event counter is selected.
131131
*/
132-
static FASTFN uint32_t sel4bench_private_read_pmcnt(void)
132+
static FASTFN seL4_Word sel4bench_private_read_pmcnt(void)
133133
{
134-
uint32_t val;
134+
seL4_Word val;
135135
PMU_READ(PMXEVCNTR, val);
136136
return val;
137137
}
138138

139-
static FASTFN void sel4bench_private_write_pmcnt(uint32_t val)
139+
static FASTFN void sel4bench_private_write_pmcnt(seL4_Word val)
140140
{
141141
PMU_WRITE(PMXEVCNTR, val);
142142
}
143143

144144
/*
145145
* Selects the current event counter PMEVCNTR<x> or the cycle counter, CCNT
146146
*/
147-
static FASTFN void sel4bench_private_write_pmnxsel(uint32_t val)
147+
static FASTFN void sel4bench_private_write_pmnxsel(seL4_Word val)
148148
{
149149
PMU_WRITE(PMSELR, val);
150150
}
@@ -153,15 +153,15 @@ static FASTFN void sel4bench_private_write_pmnxsel(uint32_t val)
153153
* When PMSELR_EL0.SEL selects an event counter, this accesses a PMEVTYPER<n>_EL0
154154
* register. When PMSELR_EL0.SEL selects the cycle counter, this accesses PMCCFILTR_EL0.
155155
*/
156-
static FASTFN uint32_t sel4bench_private_read_evtsel(void)
156+
static FASTFN seL4_Word sel4bench_private_read_evtsel(void)
157157
{
158158

159-
uint32_t val;
159+
seL4_Word val;
160160
PMU_READ(PMXEVTYPER, val);
161161
return val;
162162
}
163163

164-
static FASTFN void sel4bench_private_write_evtsel(uint32_t val)
164+
static FASTFN void sel4bench_private_write_evtsel(seL4_Word val)
165165
{
166166
PMU_WRITE(PMXEVTYPER, val);
167167
}

0 commit comments

Comments
 (0)