From 423e1a794d353aa4f777b50f99b72a7a2b806355 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Fri, 29 Nov 2013 22:53:35 +0100 Subject: ddb/db_command.c: remove forward declaration * ddb/db_command.c (db_reset_cpu): Remove forward declaration. * i386/i386/db_interface.h (db_reset_cpu): Add prototype. * i386/i386at/model_dep.c: Include i386/db_interface.h. --- ddb/db_command.c | 2 -- i386/i386/db_interface.h | 3 +++ i386/i386at/model_dep.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ddb/db_command.c b/ddb/db_command.c index c44e18c..833b720 100644 --- a/ddb/db_command.c +++ b/ddb/db_command.c @@ -332,8 +332,6 @@ struct db_command db_show_cmds[] = { { (char *)0, } }; -extern void db_reset_cpu(); - struct db_command db_command_table[] = { #ifdef DB_MACHINE_COMMANDS /* this must be the first entry, if it exists */ diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h index b0b11cf..e4ae140 100644 --- a/i386/i386/db_interface.h +++ b/i386/i386/db_interface.h @@ -96,6 +96,9 @@ db_stack_trace_cmd( db_expr_t count, char *modif); +extern void +db_reset_cpu(void); + #endif extern void db_get_debug_state( diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 1a3aee8..5606639 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -78,6 +78,7 @@ Both of these are 0 if none is available. */ #if MACH_KDB #include +#include static vm_offset_t kern_sym_start, kern_sym_end; #else /* MACH_KDB */ #define kern_sym_start 0 -- cgit v1.2.3