提交 044264bb 编写于 作者: D David Howells

MN10300: Generalise kernel debugger kernel halt, reboot or power off hook

Generalise the kernel debugger hook for notification of halt, reboot or power
off.  This is used by gdbstub to tell the debugger it is exiting.  This will be
useful for KGDB too.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
上级 d57f078b
...@@ -135,7 +135,7 @@ void release_segments(struct mm_struct *mm) ...@@ -135,7 +135,7 @@ void release_segments(struct mm_struct *mm)
void machine_restart(char *cmd) void machine_restart(char *cmd)
{ {
#ifdef CONFIG_GDBSTUB #ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0); gdbstub_exit(0);
#endif #endif
...@@ -148,14 +148,14 @@ void machine_restart(char *cmd) ...@@ -148,14 +148,14 @@ void machine_restart(char *cmd)
void machine_halt(void) void machine_halt(void)
{ {
#ifdef CONFIG_GDBSTUB #ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0); gdbstub_exit(0);
#endif #endif
} }
void machine_power_off(void) void machine_power_off(void)
{ {
#ifdef CONFIG_GDBSTUB #ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0); gdbstub_exit(0);
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册