[okl4-developer] OKL4 v2.1: Behaviour of the CONTINUATION macros/scheme
Frank Kaiser
frank.kaiser at opensynergy.com
Thu Jun 26 02:56:12 EST 2008
Hello
I have a difficulty with the interrupt handling of the ARM platform. The
central interrupt hamdler Platform::handle_interrupt() uses the
CONTINUATION scheme in a way that it expects all called subhandlers to
return to the place in 'traps.spp' from where it has been called. The
problem is that the interrupt controller of my ATMEL AT91SAM9263
platform requires a specific end-of-interrupt operation before the
interrupt context is left. Since this is platform-specific, I don't want
to do this in 'traps.spp', because this file is platform-independent (i.
e. it is generic for ARMv5). So I prefer to place the EOI operation in
the platform specific 'interrupt.cc' and make the subhandlers call it
before control returns to 'traps.spp'. I have already seen that one can
declare his own CONTINUATION_FUNCTION(), and there is a function
call_with_asm_continuation(), which seems to make the function given as
4th parameter to return to the function given as 3rd parameter, but it
does not look as if this fully satisfies what is required for the
interrupt handler call chain.
Any hint to solve my problem would be appreciated.
Regards
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080625/0910d9c5/attachment.htm
More information about the Developer
mailing list