summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-11 14:16:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-11 14:16:20 +0000
commite34941195e529bda79b8f4d0d0484df0e1c34618 (patch)
tree041569e43e12fc00e650b45f5b7d02510eef001a /c/src/lib/libbsp/hppa1.1/simhppa/shmsupp
parentadded constant for number of notepads (diff)
downloadrtems-e34941195e529bda79b8f4d0d0484df0e1c34618.tar.bz2
clean up of RunWay interrupt support
Diffstat (limited to 'c/src/lib/libbsp/hppa1.1/simhppa/shmsupp')
-rw-r--r--c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c10
-rw-r--r--c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c4
2 files changed, 11 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c
index e21e62f55d..43052e223d 100644
--- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c
@@ -37,11 +37,19 @@
#include <bsp.h>
#include <runway.h>
-#include "shm.h"
+#include <shm.h>
#define INTERRUPT 0 /* can be interrupt or polling */
#define POLLING 1
+#define HPPA_RUNWAY_PROC_HPA_BASE ((void *) 0xFFFA0000)
+
+/* given a processor number, where is its HPA? */
+#define HPPA_RUNWAY_HPA(cpu) \
+ ((rtems_unsigned32) (HPPA_RUNWAY_PROC_HPA_BASE + ((cpu) * 0x2000)))
+
+#define HPPA_RUNWAY_REG_IO_EIR_OFFSET 0x000
+
shm_config_table BSP_shm_cfgtbl;
void Shm_Cause_interrupt_simhppa(
diff --git a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c
index 6af0c6ace6..50166b2b8e 100644
--- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c
+++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c
@@ -19,10 +19,10 @@
* $Id$
*/
-#include "stdio.h"
+#include <stdio.h>
#include <rtems.h>
-#include "shm.h"
+#include <shm.h>
void Shm_Cause_interrupt_simhppa(
rtems_unsigned32 node