mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: [email protected] Signed-off-by: Jason Wessel <[email protected]>
This commit is contained in:
parent
29c843912a
commit
0b4b3827db
4 changed files with 42 additions and 9 deletions
|
|
@ -62,7 +62,7 @@
|
|||
#include <linux/sched.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/idr.h>
|
||||
#include <linux/kdb.h>
|
||||
#include <linux/kgdb.h>
|
||||
#include <linux/ftrace.h>
|
||||
#include <linux/async.h>
|
||||
#include <linux/kmemcheck.h>
|
||||
|
|
@ -676,7 +676,7 @@ asmlinkage void __init start_kernel(void)
|
|||
buffer_init();
|
||||
key_init();
|
||||
security_init();
|
||||
kdb_init(KDB_INIT_FULL);
|
||||
dbg_late_init();
|
||||
vfs_caches_init(totalram_pages);
|
||||
signals_init();
|
||||
/* rootfs populating might need page-writeback */
|
||||
|
|
|
|||
Loading…
Reference in a new issue