Re: [superh-gnu-discuss] SH interrupt_handler function attribute register saving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [superh-gnu-discuss] SH interrupt_handler function attribute register saving



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@xxxxxxxxxxxxxxxxx

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