From 0e4c603b8e515de4fd7a331a5311915a8eb87358 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 Aug 1995 14:24:44 +0000 Subject: clean up -- interrupt support is in place --- c/src/lib/libbsp/unix/posix/include/bsp.h | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/unix/posix/include/bsp.h b/c/src/lib/libbsp/unix/posix/include/bsp.h index 84cdb1f260..da10d4de8c 100644 --- a/c/src/lib/libbsp/unix/posix/include/bsp.h +++ b/c/src/lib/libbsp/unix/posix/include/bsp.h @@ -1,6 +1,6 @@ /* bsp.h * - * This include file contains all Solaris 2.3 UNIX definitions. + * This include file contains all POSIX BSP definitions. * * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. * On-Line Applications Research Corporation (OAR). @@ -13,15 +13,18 @@ * $Id$ */ -#ifndef __SOLARIS23_h -#define __SOLARIS23_h +#ifndef __POSIX_BSP_h +#define __POSIX_BSP_h #ifdef __cplusplus extern "C" { #endif #include +#include #include +#include +#include /* * Define the time limits for RTEMS Test Suite test durations. @@ -58,10 +61,27 @@ extern "C" { extern rtems_configuration_table BSP_Configuration; -#define INTERRUPT_EXTERNAL_MPCI 0 - +/* + * Define this to use signals for MPCI shared memory driver. + * If undefined, the shared memory driver will poll from the + * clock interrupt. + * Ref: ../shmsupp/getcfg.c + * + * BEWARE:: many UN*X kernels and debuggers become severely confused when + * debugging programs which use signals. The problem is *much* + * worse when using multiple signals, since ptrace(2) tends to + * drop all signals except 1 in the case of multiples. + * On hpux9, this problem was so bad, we couldn't use interrupts + * with the shared memory driver if we ever hoped to debug + * RTEMS programs. + * Maybe systems that use /proc don't have this problem... + */ + +/* #define INTERRUPT_EXTERNAL_MPCI SIGUSR1 */ + /* functions */ +rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); void bsp_start( void ); void bsp_cleanup( void ); -- cgit v1.2.3