Problem with rtems directive
Soumyadeb Mitra
csd97407 at cse.iitd.ernet.in
Thu May 17 07:43:15 UTC 2001
Hello
I am using RTEMS for an academic project invloving porting
a linux driver to rtems.
I am having a problem with the following piece of code.
__asm__("cli");
fpga[0]=0;
rtems_task_suspend(RTEMS_SELF);
This is the only thread running(apart from the idle thread).The assignment
statement fpga[0]=0 immediately triggers a hardware interrupt.But since
the current thread has interrupts disabled the ISR is not called.
However once the current thread is suspended ,the ISR should be
invoked.
For somme strange reason the above code generates an exception.The
thread id printed by the exception handler is that of the idle-thread.
Has anyone faced similar problems or has a solution?
Thanks
Soumyadeb
More information about the users
mailing list