summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:33:14 +0900
commitbf2393db5d814edf92dc9c6bd01dbb0511dc2519 (patch)
treeb9fee8760e6a815e232c83fd06f2ed6c5bb490d6
parent43d00cc7405ebda7eaf18b888bbe1db288ca379a (diff)
ipc/mach_msg.c: remove forward declarations
* ipc/mach_msg.c: Include kern/exception.h. (exception_raise_continue, exception_raise_continue_fast): Remove forward declarations. * kern/exception.h: Include ipc/ipc_types.h. Include ipc/ipc_kmsg.h.
-rw-r--r--ipc/mach_msg.c4
-rw-r--r--kern/exception.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c
index b83738b..78247a4 100644
--- a/ipc/mach_msg.c
+++ b/ipc/mach_msg.c
@@ -46,6 +46,7 @@
#include <kern/printf.h>
#include <kern/sched_prim.h>
#include <kern/ipc_sched.h>
+#include <kern/exception.h>
#include <vm/vm_map.h>
#include <ipc/ipc_kmsg.h>
#include <ipc/ipc_marequest.h>
@@ -61,9 +62,6 @@
#include <machine/locore.h>
#include <machine/pcb.h>
-extern void exception_raise_continue();
-extern void exception_raise_continue_fast();
-
/*
* Routine: mach_msg_send
* Purpose:
diff --git a/kern/exception.h b/kern/exception.h
index 8d4d79b..55902dd 100644
--- a/kern/exception.h
+++ b/kern/exception.h
@@ -19,6 +19,9 @@
#ifndef _KERN_EXCEPTION_H_
#define _KERN_EXCEPTION_H_
+#include <ipc/ipc_types.h>
+#include <ipc/ipc_kmsg.h>
+
extern void
exception(
integer_t _exception,