diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-08 13:35:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-08 13:35:07 +0000 |
commit | 8634637d1dbb4f736d7bf050c32814165c9a6d3f (patch) | |
tree | 7ff0a95d7d847501174213edf9603be09bf879b3 /c/src/lib/libbsp/shared/src/irq-legacy.c | |
parent | Fix GDB_VERS. (diff) | |
download | rtems-8634637d1dbb4f736d7bf050c32814165c9a6d3f.tar.bz2 |
2009-09-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/irq-config.h, include/irq-generic.h, include/irq-info.h,
src/irq-generic.c, src/irq-info.c, src/irq-legacy.c, src/irq-shell.c:
Format, cleanup and documentation.
* src/irq-server.c: New file.
* include/bootcard.h, include/stackalloc.h, src/stackalloc.c,
bsplibc.c: Update for heap API changes. Documentation.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/shared/src/irq-legacy.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/shared/src/irq-legacy.c b/c/src/lib/libbsp/shared/src/irq-legacy.c index 9f916235d0..b864541b8b 100644 --- a/c/src/lib/libbsp/shared/src/irq-legacy.c +++ b/c/src/lib/libbsp/shared/src/irq-legacy.c @@ -3,26 +3,27 @@ * * @ingroup bsp_interrupt * - * @brief Source file for generic BSP interrupt support legacy code. + * @brief Generic BSP interrupt support legacy implementation. */ /* - * Copyright (c) 2008 - * Embedded Brains GmbH + * Copyright (c) 2008, 2009 + * embedded brains GmbH * Obere Lagerstr. 30 * D-82178 Puchheim * Germany - * rtems@embedded-brains.de - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. + * <rtems@embedded-brains.de> * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. */ #include <stdbool.h> #include <stdlib.h> +#define BSP_SHARED_HANDLER_SUPPORT + #include <rtems/irq.h> #include <bsp/irq-generic.h> @@ -84,7 +85,7 @@ int BSP_get_current_rtems_irq_handler(rtems_irq_connect_data *cd) int BSP_install_rtems_irq_handler(const rtems_irq_connect_data *cd) { rtems_status_code sc = RTEMS_SUCCESSFUL; - bsp_interrupt_legacy_entry *e = malloc(sizeof( bsp_interrupt_legacy_entry)); + bsp_interrupt_legacy_entry *e = malloc(sizeof(bsp_interrupt_legacy_entry)); if (e == NULL) { return 0; @@ -95,8 +96,7 @@ int BSP_install_rtems_irq_handler(const rtems_irq_connect_data *cd) sc = rtems_interrupt_handler_install( cd->name, - "Unique interrupt handler " - "(installed with obsolete BSP_install_rtems_irq_handler())", + "LEGACY INSTALLED", RTEMS_INTERRUPT_UNIQUE, bsp_interrupt_legacy_dispatch, e @@ -119,7 +119,7 @@ int BSP_install_rtems_irq_handler(const rtems_irq_connect_data *cd) int BSP_install_rtems_shared_irq_handler(const rtems_irq_connect_data *cd) { rtems_status_code sc = RTEMS_SUCCESSFUL; - bsp_interrupt_legacy_entry *e = malloc(sizeof( bsp_interrupt_legacy_entry)); + bsp_interrupt_legacy_entry *e = malloc(sizeof(bsp_interrupt_legacy_entry)); if (e == NULL) { return 0; @@ -130,8 +130,7 @@ int BSP_install_rtems_shared_irq_handler(const rtems_irq_connect_data *cd) sc = rtems_interrupt_handler_install( cd->name, - "Shared interrupt handler " - "(installed with obsolete BSP_install_rtems_shared_irq_handler())", + "LEGACY INSTALLED", RTEMS_INTERRUPT_SHARED, bsp_interrupt_legacy_dispatch, e |