diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-06-13 02:09:18 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-06-13 02:09:18 +0000 |
commit | b93e38937eaeb309d57c5e39191bdcb1c4484060 (patch) | |
tree | b59d0afb62e473b8633d53e96bbf3a59f7f15e93 /gcc/doc/extend.texi | |
parent | 9aaa9ee0262ab067d2a1c0ccb1726564df328cce (diff) | |
download | gcc-b93e38937eaeb309d57c5e39191bdcb1c4484060.tar.gz |
extend.texi (Function Attributes): Document SH's sp_switch and trap_exit.
* doc/extend.texi (Function Attributes): Document SH's sp_switch
and trap_exit.
From-SVN: r43293
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r-- | gcc/doc/extend.texi | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 88530600d24..3b08a50d1a2 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1935,13 +1935,6 @@ and 64 entries on the H8/300H) and shares space with the interrupt vector. You must use GAS and GLD from GNU binutils version 2.7 or later for this option to work correctly. -@item interrupt_handler -@cindex interrupt handler functions on the H8/300 processors -Use this option on the H8/300 and H8/300H to indicate that the specified -function is an interrupt handler. The compiler will generate function -entry and exit sequences suitable for use in an interrupt handler when this -attribute is present. - @item interrupt @cindex interrupt handler functions Use this option on the ARM, AVR and M32R/D ports to indicate that the @@ -1949,8 +1942,8 @@ specified function is an interrupt handler. The compiler will generate function entry and exit sequences suitable for use in an interrupt handler when this attribute is present. -Note, interrupt handlers for the H8/300 and H8/300H processors can be -specified via the @code{interrupt_handler} attribute. +Note, interrupt handlers for the H8/300, H8/300H and SH processors can +be specified via the @code{interrupt_handler} attribute. Note, on the AVR interrupts will be enabled inside the function. @@ -1963,6 +1956,29 @@ void f () __attribute__ ((interrupt ("IRQ"))); Permissible values for this parameter are: IRQ, FIQ, SWI, ABORT and UNDEF. +@item interrupt_handler +@cindex interrupt handler functions on the H8/300 and SH processors +Use this option on the H8/300, H8/300H and SH to indicate that the +specified function is an interrupt handler. The compiler will generate +function entry and exit sequences suitable for use in an interrupt +handler when this attribute is present. + +@item sp_switch +Use this option on the SH to indicate an @code{interrupt_handler} +function should switch to an alternate stack. It expects a string +argument that names a global variable holding the address of the +alternate stack. + +@smallexample +void *alt_stack; +void f () __attribute__ ((interrupt_handler, sp_switch ("alt_stack"))); +@end smallexample + +@item trap_exit +Use this option on the SH for an @code{interrupt_handle} to return using +@code{trapa} instead of @code{rte}. This attribute expects an integer +argument specifying the trap number to be used. + @item eightbit_data @cindex eight bit data on the H8/300 and H8/300H Use this option on the H8/300 and H8/300H to indicate that the specified |