Index: arch/mips32/src/exception.c
===================================================================
--- arch/mips32/src/exception.c	(revision 3d2d2fc2f1ea9da10c3b97db5c8db26818ba82cb)
+++ arch/mips32/src/exception.c	(revision 8a1da55db67387e40c7dd92111ead25c83ea8d9f)
@@ -79,16 +79,12 @@
 }
 
-static void unhandled_exception(int n, void *data)
-{
-	struct exception_regdump *pstate = (struct exception_regdump *)data;
-
+static void unhandled_exception(int n, struct exception_regdump *pstate)
+{
 	print_regdump(pstate);
 	panic("unhandled exception %s\n", exctable[n]);
 }
 
-static void breakpoint_exception(int n, void *data)
-{
-	struct exception_regdump *pstate = (struct exception_regdump *)data;
-
+static void breakpoint_exception(int n, struct exception_regdump *pstate)
+{
 #ifdef CONFIG_DEBUG
 	debugger_bpoint(pstate);
@@ -101,18 +97,16 @@
 }
 
-static void tlbmod_exception(int n, void *data)
-{
-	struct exception_regdump *pstate = (struct exception_regdump *)data;
+static void tlbmod_exception(int n, struct exception_regdump *pstate)
+{
 	tlb_modified(pstate);
 }
 
-static void tlbinv_exception(int n, void *data)
-{
-	struct exception_regdump *pstate = (struct exception_regdump *)data;
+static void tlbinv_exception(int n, struct exception_regdump *pstate)
+{
 	tlb_invalid(pstate);
 }
 
 #ifdef CONFIG_FPU_LAZY
-static void cpuns_exception(int n, void *data)
+static void cpuns_exception(int n, struct exception_regdump *pstate)
 {
 	if (cp0_cause_coperr(cp0_cause_read()) == fpu_cop_id)
@@ -123,5 +117,5 @@
 #endif
 
-static void interrupt_exception(int n, void *pstate)
+static void interrupt_exception(int n, struct exception_regdump *pstate)
 {
 	__u32 cause;
@@ -138,8 +132,6 @@
 #include <debug.h>
 /** Handle syscall userspace call */
-static void syscall_exception(int n, void *data)
-{
-	struct exception_regdump *pstate = (struct exception_regdump *)data;
-	
+static void syscall_exception(int n, struct exception_regdump *pstate)
+{
 	if (pstate->a3 < SYSCALL_END)
 		pstate->v0 = syscall_table[pstate->a3](pstate->a0,
@@ -198,13 +190,13 @@
 	/* Clear exception table */
 	for (i=0;i < IVT_ITEMS; i++)
-		exc_register(i, "undef", unhandled_exception);
-	exc_register(EXC_Bp, "bkpoint", breakpoint_exception);
-	exc_register(EXC_Mod, "tlb_mod", tlbmod_exception);
-	exc_register(EXC_TLBL, "tlbinvl", tlbinv_exception);
-	exc_register(EXC_TLBS, "tlbinvl", tlbinv_exception);
-	exc_register(EXC_Int, "interrupt", interrupt_exception);
+		exc_register(i, "undef", (iroutine) unhandled_exception);
+	exc_register(EXC_Bp, "bkpoint", (iroutine) breakpoint_exception);
+	exc_register(EXC_Mod, "tlb_mod", (iroutine) tlbmod_exception);
+	exc_register(EXC_TLBL, "tlbinvl", (iroutine) tlbinv_exception);
+	exc_register(EXC_TLBS, "tlbinvl", (iroutine) tlbinv_exception);
+	exc_register(EXC_Int, "interrupt", (iroutine) interrupt_exception);
 #ifdef CONFIG_FPU_LAZY
-	exc_register(EXC_CpU, "cpunus", cpuns_exception);
+	exc_register(EXC_CpU, "cpunus", (iroutine) cpuns_exception);
 #endif
-	exc_register(EXC_Sys, "syscall", syscall_exception);
-}
+	exc_register(EXC_Sys, "syscall", (iroutine) syscall_exception);
+}
