[superh-gnu-discuss] SH interrupt_handler function attribute register saving
Andrew Stubbs
ams at codesourcery.com
Tue Oct 13 09:30:52 UTC 2009
On 13/10/09 07:45, Benjamin Heyne wrote:
> -Os -ffixed-r13 -fno-builtin -ffreestanding -nostdinc -m3e -mb
> -fomit-frame-pointer -fno-stack-protector
Sorry Benjamin,
The current Lite release is purely for SH-4A targets. It has not been
configured or tested for other SH targets.
If you require support for other SH targets please contact
sales at codecourcery.com.
In the meantime, I suggest you write an assembler insert that saves the
caller save registers, and then have that call a regular C function,
without any attributes. Refer to the compiler's assembler output for how
to define a function in assembler.
E.g.
asm ("
myinterruptentrypoint:
.....<save>
.....<call myinterrupthandler>
.....<load>");
void myinterrupthandler () {
....
}
There are probably other solutions also.
Andrew
More information about the superh-gnu-discuss
mailing list