Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-19 Thread Gedare Bloom
On Fri, Jun 19, 2015 at 2:13 AM, Sebastian Huber wrote: > > > On 12/06/15 22:26, Pavel Pisa wrote: >> >> Hello Sebastian and others, >> >> On Friday 12 of June 2015 17:47:42 Sebastian Huber wrote: >>> >>> - Gedare Bloom schrieb: I see. It provides the mutual exclusion for (SMP) appl

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-18 Thread Sebastian Huber
On 12/06/15 22:26, Pavel Pisa wrote: Hello Sebastian and others, On Friday 12 of June 2015 17:47:42 Sebastian Huber wrote: - Gedare Bloom schrieb: I see. It provides the mutual exclusion for (SMP) applications that rely on interrupt_disable/enable locks? I guess we can never get rid of

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Pavel Pisa
Hello Sebastian and others, On Friday 12 of June 2015 17:47:42 Sebastian Huber wrote: > - Gedare Bloom schrieb: > > I see. It provides the mutual exclusion for (SMP) applications that > > rely on interrupt_disable/enable locks? > > > > I guess we can never get rid of it as long as we allow fo

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Sebastian Huber
- Gedare Bloom schrieb: > I see. It provides the mutual exclusion for (SMP) applications that > rely on interrupt_disable/enable locks? > > I guess we can never get rid of it as long as we allow for users to > call isr_disable/enable? Yes, an alternative is to remove the rtems_interrupt_dis

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Gedare Bloom
I see. It provides the mutual exclusion for (SMP) applications that rely on interrupt_disable/enable locks? I guess we can never get rid of it as long as we allow for users to call isr_disable/enable? On Fri, Jun 12, 2015 at 9:59 AM, Sebastian Huber wrote: > On 12/06/15 15:56, Gedare Bloom wrote

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Sebastian Huber
On 12/06/15 15:56, Gedare Bloom wrote: I'm not a huge fan of the name, although cute, I want to think some more on an alternative, maybe Global Lock. What is the relationship of The Big Hammer to the Giant Lock? They target different scopes. They have in common that they are locks that nobody

Re: [PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Gedare Bloom
I'm not a huge fan of the name, although cute, I want to think some more on an alternative, maybe Global Lock. What is the relationship of The Big Hammer to the Giant Lock? On Fri, Jun 12, 2015 at 4:31 AM, Sebastian Huber wrote: > Use a global ticket lock on SMP configurations to ensure mutual >

[PATCH] rtems: rtems_interrupt_enable/flash/disable()

2015-06-12 Thread Sebastian Huber
Use a global ticket lock on SMP configurations to ensure mutual exclusion across the system. --- c/src/lib/libbsp/shared/bootcard.c | 7 ++-- cpukit/rtems/Makefile.am| 1 + cpukit/rtems/include/rtems/rtems/intr.h | 48 +-- cpukit/rtems/src/intrbody.c