[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rtems_task_resume within ISR
- Date: Thu, 16 Oct 2008 14:14:16 -0700
- From: strauman at slac.stanford.edu (Till Straumann)
- Subject: rtems_task_resume within ISR
What architecture / BSP?
Tobias Schoofs wrote:
> Hi,
>
> I want an ISR to activate an error handler process on certain faults. I
> assumed that the following simple code would activate the error handler
> (which is the process with the highest priority, but normally suspended)
> AFTER the completion of the ISR:
>
> rtems_isr fault(rtems_vector_number vector) {
> rtems_task_resume(eh_id); // eh_id is the error handler
> /* do some other stuff */
> return;
> }
>
> But it seems that the error handler (eh_id) becomes immediately ready
> and starts execution BEFORE the ISR termates. Is there anything wrong
> with my code?
>
> Thanks,
>
> Tobias
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>