summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:46 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:04:53 +0900
commit35f8aad6128b05bae4cbdab3dca68724482daa3d (patch)
tree48067cee67f6feaa3899f6c0b6bf434f380860e5 /i386
parent07b0148ff9148b07d3d100e4a57c3a5fc873029d (diff)
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.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/trap.c4
1 files changed, 1 insertions, 3 deletions
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 <kern/task.h>
#include <kern/sched.h>
#include <kern/sched_prim.h>
+#include <kern/exception.h>
#if MACH_KDB
#include <ddb/db_run.h>
@@ -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;