From 1ca7a3536cf41d959c4ae2d28600a09e31bde934 Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Sun, 17 Oct 2010 19:58:14 +0000 Subject: [PATCH] * let arch_debug_call_with_fault_handler() at least do the call, though without fault handler for now git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38989 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/arm/arch_debug.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/arm/arch_debug.cpp b/src/system/kernel/arch/arm/arch_debug.cpp index 600130686e..8be9482032 100644 --- a/src/system/kernel/arch/arm/arch_debug.cpp +++ b/src/system/kernel/arch/arm/arch_debug.cpp @@ -319,8 +319,11 @@ void arch_debug_call_with_fault_handler(cpu_ent* cpu, jmp_buf jumpBuffer, void (*function)(void*), void* parameter) { - // TODO: Implement! Most likely in assembly. - longjmp(jumpBuffer, 1); + // TODO: Implement fault handling! Most likely in assembly. + // (see src/system/kernel/arch/x86/arch_x86.S) + + // For now, just call the function and hope we don't crash :P + function(parameter); }