diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 13:44:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 14:32:47 +0200 |
commit | 96faf12a24bf32f8068025d875aa21f4654b570a (patch) | |
tree | ba2fd6ebc0b12dd42d91a53889dd4c5e173d27ca /bsps | |
parent | bsps: Move MPCI support to bsps (diff) | |
download | rtems-96faf12a24bf32f8068025d875aa21f4654b570a.tar.bz2 |
bsps/sparc: Move gnatsupp to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/sparc/erc32/gnatsupp/gnatsupp.c | 24 | ||||
-rw-r--r-- | bsps/sparc/leon2/gnatsupp/gnatsupp.c | 30 | ||||
-rw-r--r-- | bsps/sparc/leon3/gnatsupp/gnatsupp.c | 30 |
3 files changed, 84 insertions, 0 deletions
diff --git a/bsps/sparc/erc32/gnatsupp/gnatsupp.c b/bsps/sparc/erc32/gnatsupp/gnatsupp.c new file mode 100644 index 0000000000..46bbabe2b0 --- /dev/null +++ b/bsps/sparc/erc32/gnatsupp/gnatsupp.c @@ -0,0 +1,24 @@ +/** + * @file + * + * @ingroup sparc_erc32 + * + * @brief Support for gnat/rtems interrupts and exception handling + */ + +/* + * COPYRIGHT (c) 1999. + * European Space Agency. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#include <bsp/gnatcommon.h> + +void +__gnat_install_handler (void) +{ + __gnat_install_handler_common (0x1d, 0x15); +} diff --git a/bsps/sparc/leon2/gnatsupp/gnatsupp.c b/bsps/sparc/leon2/gnatsupp/gnatsupp.c new file mode 100644 index 0000000000..1df950039a --- /dev/null +++ b/bsps/sparc/leon2/gnatsupp/gnatsupp.c @@ -0,0 +1,30 @@ +/** + * @file + * + * @ingroup sparc_leon2 + * + * @brief Support for gnat/rtems iterrupts and exception handling + */ + +/* + * COPYRIGHT (c) 1999. + * European Space Agency. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + * + */ + +#include <bsp/gnatcommon.h> + +/* + * Avoid trap 0x18 which is used by the clock tick, and + * 0x12 (UART B interrupt) which is used by the stub. + */ + +void +__gnat_install_handler (void) +{ + __gnat_install_handler_common (0x18, 0x12); +} diff --git a/bsps/sparc/leon3/gnatsupp/gnatsupp.c b/bsps/sparc/leon3/gnatsupp/gnatsupp.c new file mode 100644 index 0000000000..cc5b1027a7 --- /dev/null +++ b/bsps/sparc/leon3/gnatsupp/gnatsupp.c @@ -0,0 +1,30 @@ +/** + * @file + * + * @ingroup sparc_leon3 + * + * @brief Support for gnat/rtems interrupts and exception handling + */ + +/* + * COPYRIGHT (c) 1999. + * European Space Agency. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + * + */ + +#include <bsp/gnatcommon.h> + +/* + * Avoid trap 0x18 which is used by the clock tick, and + * 0x12 (UART B interrupt) which is used by the stub. + */ + +void +__gnat_install_handler (void) +{ + __gnat_install_handler_common (0x18, 0x12); +} |