<div dir="ltr">Hi,<div><br></div><div>With reference to the code (<a href="https://github.com/richidubey/rtems/blob/4d93042539911d855699b7fb62c49f8807b5f2bd/cpukit/score/src/schedulerstrongapa.c#L186">github link</a>), it aims to check if the Affinty of a node is set to 0 by calling the function _Processor_mask_Is_zero.</div><div><br></div><div>While debugging with gdb, I can see using 'p' command that the variable is indeed 0 but after the variable gets passed to the function, the value of the variable isn't 0 anymore. Why is this happening?</div><div><br></div><div>Gdb trace:</div><div><div>----------------------------------------------------------------------</div><div>(gdb) <br>0x00118af4        187              _Processor_mask_Is_set(&node->Affinity, _Per_CPU_Get_index(curr_CPU) ||<br>(gdb) <br>0x00118af6 187              _Processor_mask_Is_set(&node->Affinity, _Per_CPU_Get_index(curr_CPU) ||<br>(gdb) p &node->Affinity<br>$8 = (Processor_mask *) 0x200efc <_Thread_Objects+2172><br>(gdb) p node->Affinity<br>$9 = {<br>  __bits = {0}<br>}<br>(gdb) si<br>0x00118af8 187              _Processor_mask_Is_set(&node->Affinity, _Per_CPU_Get_index(curr_CPU) ||<br>(gdb) <br>190                 _Processor_mask_Is_zero( &node->Affinity ) )<br>(gdb) <br>0x00118afc    190              _Processor_mask_Is_zero( &node->Affinity ) )<br>(gdb) <br>0x00118afe    190              _Processor_mask_Is_zero( &node->Affinity ) )<br>(gdb) <br>0x00118b00    190              _Processor_mask_Is_zero( &node->Affinity ) )<br>(gdb) <br>_Processor_mask_Is_zero (mask=0x203580 <_Per_CPU_Information>) at /home/richi/quick-start/src/rtems/cpukit/include/rtems/score/processormask.h:75<br>75   {<br>(gdb) <br>0x0011726a   75      {<br>(gdb) <br>0x0011726c   75      {<br>(gdb) p mask<br>$10 = (const Processor_mask *) 0x203580 <_Per_CPU_Information><br>(gdb) p *mask<br>$11 = {<br>  __bits = {2126656}<br>}<br></div></div><div>------------------------------------------------------------</div><div><br></div><div>Please provide your views on this.</div><div>Thanks,</div><div>Richi,</div></div>