From 35f8aad6128b05bae4cbdab3dca68724482daa3d Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Fri, 29 Nov 2013 22:53:46 +0100 Subject: kern: new header file exception.h * Makefrag.am: Include kern/exception.h. * i386/i386/trap.c: Include kern/exception.h. (exception, thread_exception_return): Remove forward declarations. * kern/exception.c: Include kern/exception.h. (exception, exception_try_task, exception_no_server, exception_raise, exception_parse_reply, exception_raise_continue, exception_raise_continue_slow, exception_raise_continue_fast): Remove forward declarations. * kern/exception.h: New file. Add copyright. [_KERN_EXCEPTION_H_]: Add ifndef. (exception, exception_try_task, exception_no_server, exception_raise, exception_parse_reply, exception_raise_continue, exception_raise_continue_slow, exception_raise_continue_fast): Add prototypes. --- i386/i386/trap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'i386') diff --git a/i386/i386/trap.c b/i386/i386/trap.c index 5571a1f..e104e12 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -55,6 +55,7 @@ #include #include #include +#include #if MACH_KDB #include @@ -63,9 +64,6 @@ #include "debug.h" -extern void exception() __attribute__ ((noreturn)); -extern void thread_exception_return() __attribute__ ((noreturn)); - #if MACH_KDB boolean_t debug_all_traps_with_kdb = FALSE; extern struct db_watchpoint *db_watchpoint_list; -- cgit v1.2.3