Re: doubt about 'bool is_executing'

2021-07-29 Thread Chris Johns
On 29/7/21 11:07 pm, Sebastian Huber wrote: > On 29/07/2021 15:01, Gedare Bloom wrote: > It would be quite bad for interoperability if the bool type is not defined by > the ABI.  For example: > > https://developer.arm.com/documentation/ihi0055/b/ https://yarchive.net/comp/linux/bool.html Bool

Re: doubt about 'bool is_executing'

2021-07-29 Thread Sebastian Huber
On 29/07/2021 15:01, Gedare Bloom wrote: On Thu, Jul 29, 2021 at 12:56 AM Sebastian Huber wrote: On 28/07/2021 21:54, Gedare Bloom wrote: Hello all, In most (all?) the SMP ports, we have in the CPU Context Control: bool is_executing; Yes, all SMP ports need this. It is used to

Re: doubt about 'bool is_executing'

2021-07-29 Thread Gedare Bloom
On Thu, Jul 29, 2021 at 12:56 AM Sebastian Huber wrote: > > On 28/07/2021 21:54, Gedare Bloom wrote: > > Hello all, > > > > In most (all?) the SMP ports, we have in the CPU Context Control: > >bool is_executing; > > Yes, all SMP ports need this. It is used to implement a TTAS lock in the >

Re: doubt about 'bool is_executing'

2021-07-29 Thread Sebastian Huber
On 28/07/2021 21:54, Gedare Bloom wrote: Hello all, In most (all?) the SMP ports, we have in the CPU Context Control: bool is_executing; Yes, all SMP ports need this. It is used to implement a TTAS lock in the context switch:

doubt about 'bool is_executing'

2021-07-28 Thread Gedare Bloom
Hello all, In most (all?) the SMP ports, we have in the CPU Context Control: bool is_executing; This variable often is accessed through assembly language (i.e., during the context switch), using something like ARCH_CONTEXT_CONTROL_IS_EXECUTING_OFFSET. Unfortunately, the 'bool' type is not