diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-01-08 12:37:05 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-01-08 12:37:19 -0600 |
commit | 4967f6b81894b364f345997e894be380d9a3bd4e (patch) | |
tree | 522a9ce5c49ad4a8c8c9f9bea76db7835fa2da05 /c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c | |
parent | leon3: Open Ethernet Fixed Warning (diff) | |
download | rtems-4967f6b81894b364f345997e894be380d9a3bd4e.tar.bz2 |
leon3/shmsupp: Fix warnings & comment clean up
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c b/c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c index 6a05dd6197..6499634d0b 100644 --- a/c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c +++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/mpisr.c @@ -1,6 +1,11 @@ -/* Shm_isr_nobsp() +/** + * @file * - * COPYRIGHT (c) 1989-1999. + * LEON3 Shared Memory Driver Interrupt Support + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -12,7 +17,7 @@ #include <bsp.h> #include <shm_driver.h> -rtems_isr Shm_isr_nobsp( void ) +void Shm_isr(void) { /* * If this routine has to do anything other than the mpisr.c @@ -22,25 +27,22 @@ rtems_isr Shm_isr_nobsp( void ) * must be cleared. * * If the generic mpisr.c satisifies your requirements, then - * remove this routine from your target's shmsupp/mpisb.c file. + * remove this routine from your target's shmsupp/mpisr.c file. * Then simply install the generic Shm_isr in the Shm_setvec * routine below. */ } -/* Shm_setvec - * +/* * This driver routine sets the SHM interrupt vector to point to the * driver's SHM interrupt service routine. - * - * Input parameters: NONE - * - * Output parameters: NONE */ - - void Shm_setvec( void ) { + /* + * Interrupt driven mode is not currently supported. + * This is thought to be the interrupt to use. + */ LEON_Unmask_interrupt(LEON3_MP_IRQ); - set_vector(Shm_isr, LEON_TRAP_TYPE(LEON3_MP_IRQ), 1); + set_vector((rtems_isr_entry) Shm_isr, LEON_TRAP_TYPE(LEON3_MP_IRQ), 1); } |