bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] ddb: add "halt" command


From: Samuel Thibault
Subject: Re: [PATCH 1/3] ddb: add "halt" command
Date: Fri, 2 May 2014 23:39:58 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Fri 02 May 2014 21:33:00 +0200, a écrit :
> * ddb/db_command.c (db_command_table): Add "halt" command.
> * i386/i386/db_interface.h (db_halt_cpu): New declaration.
> * i386/i386at/model_dep.c (db_halt_cpu): New function.

Ack.

> ---
>  ddb/db_command.c         | 1 +
>  i386/i386/db_interface.h | 2 ++
>  i386/i386at/model_dep.c  | 5 +++++
>  3 files changed, 8 insertions(+)
> 
> diff --git a/ddb/db_command.c b/ddb/db_command.c
> index ebb13df..8171119 100644
> --- a/ddb/db_command.c
> +++ b/ddb/db_command.c
> @@ -363,6 +363,7 @@ struct db_command db_command_table[] = {
>       { "show",       0,                      0,      db_show_cmds },
>       { "reset",      db_reset_cpu,           0,              0 },
>       { "reboot",     db_reset_cpu,           0,              0 },
> +     { "halt",       db_halt_cpu,            0,              0 },
>       { (char *)0, }
>  };
>  
> diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h
> index 97ff5c7..8d7daea 100644
> --- a/i386/i386/db_interface.h
> +++ b/i386/i386/db_interface.h
> @@ -98,6 +98,8 @@ db_stack_trace_cmd(
>       const char      *modif);
>  
>  extern void
> +db_halt_cpu(void);
> +extern void
>  db_reset_cpu(void);
>  
>  void
> diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
> index 7d138be..95752fa 100644
> --- a/i386/i386at/model_dep.c
> +++ b/i386/i386at/model_dep.c
> @@ -243,6 +243,11 @@ void exit(int rc)
>       halt_all_cpus(0);
>  }
>  
> +void db_halt_cpu(void)
> +{
> +     halt_all_cpus(0);
> +}
> +
>  void db_reset_cpu(void)
>  {
>       halt_all_cpus(1);
> -- 
> 1.9.2
> 

-- 
Samuel
#ifndef I_WISH_WORLD_WERE_PERFECT
/* It is not :-( All the routers (except for Linux) return only
...
 -+- linux/net/ipv4/ipip.c -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]