Skip to content

Commit

Permalink
MN10300: Generalise kernel debugger kernel halt, reboot or power off …
Browse files Browse the repository at this point in the history
…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: David Howells <[email protected]>
  • Loading branch information
dhowells committed Mar 18, 2011
1 parent d57f078 commit 044264b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mn10300/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void release_segments(struct mm_struct *mm)

void machine_restart(char *cmd)
{
#ifdef CONFIG_GDBSTUB
#ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0);
#endif

Expand All @@ -148,14 +148,14 @@ void machine_restart(char *cmd)

void machine_halt(void)
{
#ifdef CONFIG_GDBSTUB
#ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0);
#endif
}

void machine_power_off(void)
{
#ifdef CONFIG_GDBSTUB
#ifdef CONFIG_KERNEL_DEBUGGER
gdbstub_exit(0);
#endif
}
Expand Down

0 comments on commit 044264b

Please sign in to comment.