This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ISR parameter question
Andrew Lunn wrote:
>
> Yes, its an undocumentated feature. The assembly code which calls your
> isr functions passes an extra parameter. This is the register set for
> what ever the interrupt interrupted. So regs->pc is the program
> counter when the interrupt happened.
>
> Since this is undocumented, its not an official part of the API. It
> could change any time....but i've been using it since December 1999
> without a problem.
At the very least it's not portable - not every HAL does it.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine