From 11290355c9454c575d56c7928a725fd95e88d6f8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 29 Sep 1995 17:19:16 +0000 Subject: all targets compile .. tony's patches in place --- c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c | 6 ++---- c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c | 26 ++++++----------------- 2 files changed, 8 insertions(+), 24 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 43052e223d..f2cd34d219 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c +++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c @@ -52,9 +52,7 @@ shm_config_table BSP_shm_cfgtbl; -void Shm_Cause_interrupt_simhppa( - rtems_unsigned32 node -); +void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node ); void Shm_Get_configuration( rtems_unsigned32 localnode, @@ -65,7 +63,7 @@ void Shm_Get_configuration( BSP_shm_cfgtbl.length = 16 * KILOBYTE; BSP_shm_cfgtbl.format = SHM_BIG; - BSP_shm_cfgtbl.cause_intr = Shm_Cause_interrupt_simhppa; + BSP_shm_cfgtbl.cause_intr = Shm_Cause_interrupt_pxfl; #ifdef NEUTRAL_BIG BSP_shm_cfgtbl.convert = NULL_CONVERT; 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 50166b2b8e..fcd14428e1 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c +++ b/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c @@ -1,4 +1,4 @@ -/* void Shm_Cause_interrupt_simhppa( node ) +/* void Shm_Cause_interrupt_pxfl( node ) * * This routine is the shared memory driver routine which * generates interrupts to other CPUs. @@ -24,13 +24,11 @@ #include #include -void Shm_Cause_interrupt_simhppa( +void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node ) { Shm_Interrupt_information *intr; - rtems_unsigned8 *u8; - rtems_unsigned16 *u16; rtems_unsigned32 *u32; rtems_unsigned32 value; @@ -40,25 +38,13 @@ void Shm_Cause_interrupt_simhppa( switch ( intr->length ) { case NO_INTERRUPT: break; - case BYTE: - u8 = (rtems_unsigned8 *)intr->address; - fprintf( - stderr, - "Shm_Cause_interrupt_simhppa: Writes of unsigned8 not supported!!!\n" - ); - rtems_shutdown_executive( 0 ); - break; - case WORD: - u16 = (rtems_unsigned16 *)intr->address; - fprintf( - stderr, - "Shm_Cause_interrupt_simhppa: Writes of unsigned8 not supported!!!\n" - ); - rtems_shutdown_executive( 0 ); - 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