summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-24 12:00:15 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:59 -0500
commit485222e633da85047daa1dafd1732b2b4750e933 (patch)
tree131008d01df044f6dba8f22703183a5e7e94b830
parent3144292b2743dc6c1685d97dd4a9100bb3a3c0b3 (diff)
downloadrtems-485222e633da85047daa1dafd1732b2b4750e933.tar.bz2
genmcf548x/irq/irq.c: Fix incompatible pointer warning
-rw-r--r--c/src/lib/libbsp/m68k/genmcf548x/irq/irq.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/m68k/genmcf548x/irq/irq.c b/c/src/lib/libbsp/m68k/genmcf548x/irq/irq.c
index 47a155a20c..58e904426a 100644
--- a/c/src/lib/libbsp/m68k/genmcf548x/irq/irq.c
+++ b/c/src/lib/libbsp/m68k/genmcf548x/irq/irq.c
@@ -99,18 +99,24 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
static void_func get_exception_handler(rtems_vector_number vector)
{
+ void **vbr;
void_func *exception_table;
- m68k_get_vbr(exception_table);
+ m68k_get_vbr(vbr);
+
+ exception_table = (void_func *)vbr;
return exception_table[vector_to_exception_vector(vector)];
}
static void set_exception_handler(rtems_vector_number vector, void_func handler)
{
+ void **vbr;
void_func *exception_table;
- m68k_get_vbr(exception_table);
+ m68k_get_vbr(vbr);
+
+ exception_table = (void_func *)vbr;
exception_table[vector_to_exception_vector(vector)] = handler;
}