summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-11 14:24:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-11 14:24:44 +0000
commit0e4c603b8e515de4fd7a331a5311915a8eb87358 (patch)
treeb5ba29259f6a83d88b1bb55f0a21392531073c12
parentminor clean up -- switched to memset for zero'ing SHM (diff)
downloadrtems-0e4c603b8e515de4fd7a331a5311915a8eb87358.tar.bz2
clean up -- interrupt support is in place
-rw-r--r--c/src/lib/libbsp/unix/posix/include/bsp.h30
1 files 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 <rtems.h>
+#include <clockdrv.h>
#include <iosupp.h>
+#include <libcsupport.h>
+#include <signal.h>
/*
* 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 );