[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] marking critical regions
On Tue, Aug 03, 1999 at 08:50:28AM +0530, BPL Telecom wrote:
> Hi,
> We wanted to mark critical regions in our real time
> application. we used rtl_no_interrupts(long) and
> rtl_restore_interrupts(long), but if we call only
> rtl_no_interrupts(long) and not call
> rtl_restore_interrupts(long) (for testing) the system continues to work
> normally.
That's because you are calling rtl_no_interrupts in regions where interrupts
are already disabled. Interrupt handlers are called this way and you
need to turn on interrupts explicilty is that is what you want.
> We donot know whether interrupts are really getting disabled.
> We want to know whether the functions used by us are
> correct. We also want to know how the variable passed to
> the rtl_no_interrupts and rtl_restore_interrupts are used.
The variable saves the current interrupt state in rtl_no_interrupts
and restores it in the restore_interrupts.
>
> We also want ot know whether there is any debugger
> for debugging loadable modules.
>
See http://www.zentropix.com for a debugger (I have no connection with
Zentropix and have not used their debugger).
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/