From 10e57f6e58387e5ce414cc7e98bd86385c4e10af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 20 Apr 2015 17:19:33 +0200 Subject: [PATCH] PPC: fix handler type cast --- src/system/kernel/arch/ppc/arch_int.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/ppc/arch_int.cpp b/src/system/kernel/arch/ppc/arch_int.cpp index 03361ba9e9..b4c977819a 100644 --- a/src/system/kernel/arch/ppc/arch_int.cpp +++ b/src/system/kernel/arch/ppc/arch_int.cpp @@ -135,7 +135,8 @@ ppc_exception_entry(int vector, struct iframe *iframe) } Thread *thread = thread_get_current_thread(); if (thread && thread->fault_handler != 0) { - iframe->srr0 = thread->fault_handler; + iframe->srr0 = + reinterpret_cast(thread->fault_handler); break; }