x86, kgdb, init: Add early and late debug states
authorJason Wessel <jason.wessel@windriver.com>
Fri, 21 May 2010 02:04:29 +0000 (21:04 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 21 May 2010 02:04:29 +0000 (21:04 -0500)
commit0b4b3827db386ec6034a5aba1261025b039440c2
treea3469de6930fe3e850c8e4c49c26a2a3b53612dd
parent29c843912a0baa7fa63033fe28e1ca7e796686a5
x86, kgdb, init: Add early and late debug states

The kernel debugger can operate well before mm_init(), but the x86
hardware breakpoint code which uses the perf api requires that the
kernel allocators are initialized.

This means the kernel debug core needs to provide an optional arch
specific call back to allow the initialization functions to run after
the kernel has been further initialized.

The kdb shell already had a similar restriction with an early
initialization and late initialization.  The kdb_init() was moved into
the debug core's version of the late init which is called
dbg_late_init();

CC: kgdb-bugreport@lists.sourceforge.net
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/x86/kernel/kgdb.c
include/linux/kgdb.h
init/main.c
kernel/debug/debug_core.c