[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 22/68] kern/exception.c: remove forward declarations
From: |
Marin Ramesa |
Subject: |
[PATCH 22/68] kern/exception.c: remove forward declarations |
Date: |
Fri, 29 Nov 2013 22:53:47 +0100 |
* i386/i386/trap.h (thread_kdb_return): Add prototype.
* kern/exception.c (thread_kdb_return, db_printf): Remove forward declarations.
Include machine/trap.h.
Include ddb/db_output.h.
---
i386/i386/trap.h | 3 +++
kern/exception.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/i386/i386/trap.h b/i386/i386/trap.h
index 6f5d2af..46612db 100644
--- a/i386/i386/trap.h
+++ b/i386/i386/trap.h
@@ -42,6 +42,9 @@ i386_exception(
int code,
int subcode) __attribute__ ((noreturn));
+extern void
+thread_kdb_return(void);
+
#endif /* !__ASSEMBLER__ */
#endif /* _I386_TRAP_H_ */
diff --git a/kern/exception.c b/kern/exception.c
index d73b196..0232773 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -51,8 +51,8 @@
#include <mach/machine/vm_types.h>
#if MACH_KDB
-extern void thread_kdb_return();
-extern void db_printf();
+#include <machine/trap.h>
+#include <ddb/db_output.h>
boolean_t debug_user_with_kdb = FALSE;
#endif /* MACH_KDB */
--
1.8.1.4
- [PATCH 16/68] i386/i386/fpu.c, trap.c: remove forward declarations, (continued)
[PATCH 21/68] kern: new header file exception.h, Marin Ramesa, 2013/11/29
[PATCH 20/68] i386/i386/pcb.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 22/68] kern/exception.c: remove forward declarations,
Marin Ramesa <=
[PATCH 23/68] i386/i386at/autoconf.c, com.c, lpr.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 25/68] i386/i386at/kd.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 24/68] i386/i386at/conf.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 26/68] i386/i386at/kd_event.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 27/68] i386/i386at/kd_mouse.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 28/68] i386/i386at: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 29/68] i386/i386at/pic_isa.c: remove forward declaration, Marin Ramesa, 2013/11/29
[PATCH 30/68] i386/intel/pmap.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 32/68] ipc/ipc_table.c: remove forward declaration, Marin Ramesa, 2013/11/29
[PATCH 31/68] ipc/ipc_kmsg.c: remove forward declarations, Marin Ramesa, 2013/11/29