summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2010-05-20 21:04:21 -0500
committerJason Wessel <jason.wessel@windriver.com>2010-05-20 21:04:21 -0500
commit67fc4e0cb931d6b4ccf21248e4199b154478ecea (patch)
tree4cf49d00bc9ac03c3c77d91fadd13fcabc75e0c9 /init
parent5d5314d6795f3c1c0f415348ff8c51f7de042b77 (diff)
downloadlinux-stable-67fc4e0cb931d6b4ccf21248e4199b154478ecea.tar.gz
linux-stable-67fc4e0cb931d6b4ccf21248e4199b154478ecea.tar.bz2
linux-stable-67fc4e0cb931d6b4ccf21248e4199b154478ecea.zip
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: linux-arch@vger.kernel.org Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Martin Hicks <mort@sgi.com>
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 5c8540271529..372771333d98 100644
--- a/init/main.c
+++ b/init/main.c
@@ -62,6 +62,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>
@@ -675,6 +676,7 @@ asmlinkage void __init start_kernel(void)
buffer_init();
key_init();
security_init();
+ kdb_init(KDB_INIT_FULL);
vfs_caches_init(totalram_pages);
signals_init();
/* rootfs populating might need page-writeback */