From c64e4ed48285a0c944905bc02de89c20038f428b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 15 Jan 1996 21:50:28 +0000 Subject: updates from Tony Bennett for PA and UNIX ports --- c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c | 7 +++---- c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp/hppa1.1/simhppa/shmsupp') 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 f2cd34d219..f29eecf093 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c +++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c @@ -35,7 +35,6 @@ */ #include -#include #include @@ -43,16 +42,16 @@ #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_pxfl( rtems_unsigned32 node ); +extern void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node ); void Shm_Get_configuration( rtems_unsigned32 localnode, 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 fcd14428e1..161ae3f522 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c +++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c @@ -22,6 +22,8 @@ #include #include +#include + #include void Shm_Cause_interrupt_pxfl( @@ -38,13 +40,12 @@ void Shm_Cause_interrupt_pxfl( switch ( intr->length ) { case NO_INTERRUPT: break; + case LONG: u32 = (rtems_unsigned32 *)intr->address; HPPA_ASM_STWAS( value, 0, u32 ); break; default: fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" ); - rtems_shutdown_executive( 0 ); - break; } } -- cgit v1.2.3