Problems with starting new BSP

Ralf Corsepius corsepiu at
Tue Jul 10 19:17:01 UTC 2001

"Fernando RUIZ CASAS (E-mail)" wrote:
> Hi.

> > For a very long time #pragma interrupt was broken for the sh (cf.
> > isp7032.h), and AFAIK still is (If having more than 1 #pragma
> > interrupt inside a source-file only the first ISR was treated as an
> > ISR, all subsequent ones were treated as functions=.
> Now.
> I can implement several interrupts with
> #pragma interrupt
> in the same source file (My sci.c) compiling with the sh-rtems-gcc 
> /*------------------------------------------*/
> ...
> ------------- END OF EXAMPLE ---------------

<Sigh> this bug finally seems to be fixed </sigh>

This will open opportunities for me to clean up some parts of the
sh-port's code. 

> >
> > However, IIRC, since gcc-2.95.2 __attribute__(( interrupt ))
> > (syntax?) is reported to work.

BTW: Using #pragma .. also is generally discouraged in favor of
__attribute__ (( .. )) (I.e. though they are supported, #pragmas are
considered to be bad coding style) because #pragma's can't be masked
by preprocessor defines and therefore are an obstackle to


More information about the users mailing list