14
14
15
15
#include "../helpers.h"
16
16
17
- static int counter_func (volatile seL4_Word * counter )
17
+ static int counter_func (_Atomic seL4_Word * counter )
18
18
{
19
19
while (1 ) {
20
20
(* counter )++ ;
@@ -25,7 +25,7 @@ static int counter_func(volatile seL4_Word *counter)
25
25
int smp_test_tcb_resume (env_t env )
26
26
{
27
27
helper_thread_t t1 ;
28
- volatile seL4_Word counter ;
28
+ _Atomic seL4_Word counter ;
29
29
ZF_LOGD ("smp_test_tcb_resume\n" );
30
30
create_helper_thread (env , & t1 );
31
31
@@ -85,7 +85,7 @@ DEFINE_TEST(MULTICORE0001, "Test suspending and resuming a thread on different c
85
85
int smp_test_tcb_move (env_t env )
86
86
{
87
87
helper_thread_t t1 ;
88
- volatile seL4_Word counter ;
88
+ _Atomic seL4_Word counter ;
89
89
ZF_LOGD ("smp_test_tcb_move\n" );
90
90
create_helper_thread (env , & t1 );
91
91
@@ -125,7 +125,7 @@ DEFINE_TEST(MULTICORE0002, "Test thread is runnable on all available cores (0 +
125
125
int smp_test_tcb_delete (env_t env )
126
126
{
127
127
helper_thread_t t1 ;
128
- volatile seL4_Word counter ;
128
+ _Atomic seL4_Word counter ;
129
129
ZF_LOGD ("smp_test_tcb_delete\n" );
130
130
create_helper_thread (env , & t1 );
131
131
@@ -185,7 +185,7 @@ faulter_func(volatile seL4_Word shared_mem)
185
185
return 0 ;
186
186
}
187
187
188
- static int handler_func (seL4_CPtr fault_ep , volatile seL4_Word * pf )
188
+ static int handler_func (seL4_CPtr fault_ep , _Atomic seL4_Word * pf )
189
189
{
190
190
seL4_MessageInfo_t tag ;
191
191
seL4_Word sender_badge = 0 ;
@@ -199,7 +199,7 @@ static int handler_func(seL4_CPtr fault_ep, volatile seL4_Word *pf)
199
199
static int smp_test_tlb_instance (env_t env , bool inter_as )
200
200
{
201
201
int error ;
202
- volatile seL4_Word tag ;
202
+ _Atomic seL4_Word tag ;
203
203
volatile seL4_Word shared_mem = 0 ;
204
204
ZF_LOGD ("smp_test_tlb\n" );
205
205
0 commit comments