diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-01-06 17:00:49 -0600 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-01-06 17:00:49 -0600 |
commit | ff20740fd07edf5c5c28b44b7176b74fc8b3a6f0 (patch) | |
tree | 9bc996ac21d891bf1447299bce1ce5b3b9aa7122 /init | |
parent | 325cf231bcd715fda65517d91d36ff9d7d31dba5 (diff) |
kdb: core for kgdb back end (2 of 2)
This patch contains the hooks and instrumentation into kernel which
live outside the kernel/debug directory, which the kdb core
will call to run commands like lsmod, dmesg, bt etc...
CC: mort@sgi.com
CC: linux-arch@vger.kernel.org
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index dac44a9356a5..52a24e566e07 100644 --- a/init/main.c +++ b/init/main.c @@ -63,6 +63,7 @@ #include <linux/sched.h> #include <linux/signal.h> #include <linux/idr.h> +#include <linux/kdb.h> #include <linux/ftrace.h> #include <linux/async.h> #include <linux/kmemcheck.h> @@ -647,6 +648,11 @@ asmlinkage void __init start_kernel(void) calibrate_delay(); pidmap_init(); anon_vma_init(); + +#ifdef CONFIG_KGDB_KDB + kdb_init(); +#endif /* CONFIG_KGDB_KDB */ + #ifdef CONFIG_X86 if (efi_enabled) efi_enter_virtual_mode(); |