1414
1515#include "../helpers.h"
1616
17- static int counter_func (volatile seL4_Word * counter )
17+ static int counter_func (_Atomic seL4_Word * counter )
1818{
1919 while (1 ) {
2020 (* counter )++ ;
@@ -25,7 +25,7 @@ static int counter_func(volatile seL4_Word *counter)
2525int smp_test_tcb_resume (env_t env )
2626{
2727 helper_thread_t t1 ;
28- volatile seL4_Word counter ;
28+ _Atomic seL4_Word counter ;
2929 ZF_LOGD ("smp_test_tcb_resume\n" );
3030 create_helper_thread (env , & t1 );
3131
@@ -85,7 +85,7 @@ DEFINE_TEST(MULTICORE0001, "Test suspending and resuming a thread on different c
8585int smp_test_tcb_move (env_t env )
8686{
8787 helper_thread_t t1 ;
88- volatile seL4_Word counter ;
88+ _Atomic seL4_Word counter ;
8989 ZF_LOGD ("smp_test_tcb_move\n" );
9090 create_helper_thread (env , & t1 );
9191
@@ -125,7 +125,7 @@ DEFINE_TEST(MULTICORE0002, "Test thread is runnable on all available cores (0 +
125125int smp_test_tcb_delete (env_t env )
126126{
127127 helper_thread_t t1 ;
128- volatile seL4_Word counter ;
128+ _Atomic seL4_Word counter ;
129129 ZF_LOGD ("smp_test_tcb_delete\n" );
130130 create_helper_thread (env , & t1 );
131131
@@ -185,7 +185,7 @@ faulter_func(volatile seL4_Word shared_mem)
185185 return 0 ;
186186}
187187
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 )
189189{
190190 seL4_MessageInfo_t tag ;
191191 seL4_Word sender_badge = 0 ;
@@ -199,7 +199,7 @@ static int handler_func(seL4_CPtr fault_ep, volatile seL4_Word *pf)
199199static int smp_test_tlb_instance (env_t env , bool inter_as )
200200{
201201 int error ;
202- volatile seL4_Word tag ;
202+ _Atomic seL4_Word tag ;
203203 volatile seL4_Word shared_mem = 0 ;
204204 ZF_LOGD ("smp_test_tlb\n" );
205205
0 commit comments