From 96faf12a24bf32f8068025d875aa21f4654b570a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Apr 2018 13:44:00 +0200 Subject: bsps/sparc: Move gnatsupp to bsps This patch is a part of the BSP source reorganization. Update #3285. --- bsps/sparc/erc32/gnatsupp/gnatsupp.c | 24 ++++++++++++++++++++++++ bsps/sparc/leon2/gnatsupp/gnatsupp.c | 30 ++++++++++++++++++++++++++++++ bsps/sparc/leon3/gnatsupp/gnatsupp.c | 30 ++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 bsps/sparc/erc32/gnatsupp/gnatsupp.c create mode 100644 bsps/sparc/leon2/gnatsupp/gnatsupp.c create mode 100644 bsps/sparc/leon3/gnatsupp/gnatsupp.c (limited to 'bsps/sparc') 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 + +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 + +/* + * 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 + +/* + * 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); +} -- cgit v1.2.3