diff options
author | Joel Sherrill <joel@rtems.org> | 2019-03-18 08:46:32 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2019-03-25 16:27:43 -0500 |
commit | 6163ab2c0155927f272aa5553510b605354361da (patch) | |
tree | 58d0716121356d4235430597aec8ab9c17fb6247 /bsps | |
parent | pthreadcreate.c: Silence unused variable warning (CID 1399716) (diff) | |
download | rtems-6163ab2c0155927f272aa5553510b605354361da.tar.bz2 |
erc32/start/setvec.c: Fix warning
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/sparc/erc32/start/setvec.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bsps/sparc/erc32/start/setvec.c b/bsps/sparc/erc32/start/setvec.c index d3aa8ed72f..0200f422a1 100644 --- a/bsps/sparc/erc32/start/setvec.c +++ b/bsps/sparc/erc32/start/setvec.c @@ -40,10 +40,15 @@ rtems_isr_entry set_vector( /* returns old vector */ uint32_t real_trap; uint32_t source; - if ( type ) + if ( type ) { rtems_interrupt_catch( handler, vector, &previous_isr ); - else - _CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr ); + } else { + _CPU_ISR_install_raw_handler( + vector, + (void *)handler, + (void *)&previous_isr + ); + } real_trap = SPARC_REAL_TRAP_NUMBER( vector ); |