summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 15:31:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 15:31:01 +0000
commitbb7cd38e7b3de61e99e3872531933fe811eab599 (patch)
tree75ce5a4908fef34bed0209a3aafcfecc8bd86928
parentb16bdbf71e99445465c182a0f1e2aef46c00e876 (diff)
downloadrtems-bb7cd38e7b3de61e99e3872531933fe811eab599.tar.bz2
2004-03-05 Joel Sherrill <joel@OARcorp.com>
PR 505/bsps * setvec.c: Rework to remove punned pointer warning generated by gcc 3.3 and newer.
-rw-r--r--c/src/lib/libbsp/m68k/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/m68k/shared/setvec.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/m68k/shared/ChangeLog b/c/src/lib/libbsp/m68k/shared/ChangeLog
index 548f92bae2..1d05d0fd66 100644
--- a/c/src/lib/libbsp/m68k/shared/ChangeLog
+++ b/c/src/lib/libbsp/m68k/shared/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-05 Joel Sherrill <joel@OARcorp.com>
+
+ PR 505/bsps
+ * setvec.c: Rework to remove punned pointer warning generated by gcc
+ 3.3 and newer.
+
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Remove gdbstub/rtems-stub-glue.c (Non-existent)
diff --git a/c/src/lib/libbsp/m68k/shared/setvec.c b/c/src/lib/libbsp/m68k/shared/setvec.c
index 93b5cee166..3f09eba112 100644
--- a/c/src/lib/libbsp/m68k/shared/setvec.c
+++ b/c/src/lib/libbsp/m68k/shared/setvec.c
@@ -26,13 +26,13 @@ m68k_isr_entry set_vector( /* returns old vector */
int type /* RTEMS or RAW intr */
)
{
- m68k_isr_entry previous_isr;
+ rtems_isr_entry previous_isr;
if ( type )
- rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
+ rtems_interrupt_catch( handler, vector, &previous_isr );
else {
_CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr );
}
- return previous_isr;
+ return (m68k_isr_entry) previous_isr;
}