Re: Function pointer within isr

2014-07-02 Thread Joel Sherrill
On 7/1/2014 3:37 PM, Peter Dufault wrote: > On Jun 30, 2014, at 14:41 , Joel Sherrill wrote: > >> Is your "struct handler_arguments" declared on the stack (e.g. an >> automatic variable)? If so, then the memory is likely clobbered by >> the time the ISR runs. > Not necessarily. A common method wo

Re: Function pointer within isr

2014-07-01 Thread Peter Dufault
On Jun 30, 2014, at 14:41 , Joel Sherrill wrote: > Is your "struct handler_arguments" declared on the stack (e.g. an > automatic variable)? If so, then the memory is likely clobbered by > the time the ISR runs. Not necessarily. A common method would be: thread_to_process_something() {

RE: Function pointer within isr

2014-06-30 Thread Jennifer Averett
lva > Cc: devel@rtems.org > Subject: Re: Function pointer within isr > > On 06/30/14 18:07, Gedare Bloom wrote: > > On Mon, Jun 30, 2014 at 12:52 PM, Wendell Silva > wrote: > >> André, > >> > >> Technically, you should be able to call functions (d

Re: Function pointer within isr

2014-06-30 Thread Joel Sherrill
On 6/30/2014 1:08 PM, Andre Marques wrote: On 06/30/14 18:07, Gedare Bloom wrote: On Mon, Jun 30, 2014 at 12:52 PM, Wendell Silva wrote: André, Technically, you should be able to call functions (directly or indirectly) in any point of your program. AFAIK, there are only a subset of RTEMS dire

Re: Function pointer within isr

2014-06-30 Thread Andre Marques
On 06/30/14 18:07, Gedare Bloom wrote: On Mon, Jun 30, 2014 at 12:52 PM, Wendell Silva wrote: André, Technically, you should be able to call functions (directly or indirectly) in any point of your program. AFAIK, there are only a subset of RTEMS directives you shouldn't call from an ISR. If t

Re: Function pointer within isr

2014-06-30 Thread Gedare Bloom
On Mon, Jun 30, 2014 at 12:52 PM, Wendell Silva wrote: > André, > > Technically, you should be able to call functions (directly or indirectly) > in any point of your program. AFAIK, there are only a subset of RTEMS > directives you shouldn't call from an ISR. If the function does not 'sleep' it sh

Re: Function pointer within isr

2014-06-30 Thread Wendell Silva
André, Technically, you should be able to call functions (directly or indirectly) in any point of your program. AFAIK, there are only a subset of RTEMS directives you shouldn't call from an ISR. What kind of error have you got? BSP? --Wendell. 2014-06-30 13:47 GMT-03:00 Andre Marques : > Hell

Function pointer within isr

2014-06-30 Thread Andre Marques
Hello, I am trying to call a function through a function pointer from an interrupt handler, but I am not sure if this is even possible as the system hangs at that point. If not, is there any way in RTEMS to have that function executed outside the isr? Thanks, André Marques. ___