From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub2 efi patches
Date: Wed, 23 Jan 2008 12:43:31 +0100 [thread overview]
Message-ID: <20080123114331.GA27060@thorin> (raw)
In-Reply-To: <20071118181403.GA11941@boeglin.org>
On Sun, Nov 18, 2007 at 07:14:03PM +0100, Alexandre Boeglin wrote:
> Index: commands/i386/efi/halt.c
> ===================================================================
> RCS file: commands/i386/efi/halt.c
> diff -N commands/i386/efi/halt.c
> [...]
> +static grub_err_t
> +grub_cmd_halt (struct grub_arg_list *state __attribute__ ((unused)),
> + int argc __attribute__ ((unused)),
> + char **args __attribute__ ((unused)))
> +
> +{
> + grub_halt ();
> + return 0;
> +}
> +
> +
> +\f
> +GRUB_MOD_INIT(halt)
> +{
> + (void)mod; /* To stop warning. */
> + grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,
> + "halt", "Halt the computer", 0);
> +}
> +
> +GRUB_MOD_FINI(halt)
> +{
> + grub_unregister_command ("halt");
> +}
commands/ieee1275/halt.c looks like the same thing to me. Perhaps it'd make
more sense to move that to commands/halt.c and use it as the "generic" version
of halt command?
> Index: commands/i386/efi/reboot.c
> ===================================================================
> RCS file: commands/i386/efi/reboot.c
> diff -N commands/i386/efi/reboot.c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ commands/i386/efi/reboot.c 18 Nov 2007 17:49:37 -0000
Possibly the same applies here.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
next prev parent reply other threads:[~2008-01-23 11:45 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-03 23:06 grub2 efi patches Alexandre Boeglin
2007-11-04 0:04 ` Alexandre Boeglin
2007-11-04 0:21 ` Alexandre Boeglin
2007-11-05 23:10 ` Alexandre Boeglin
2007-11-10 15:52 ` Marco Gerards
2007-11-10 15:48 ` Marco Gerards
2007-11-10 15:45 ` Marco Gerards
2007-11-18 18:14 ` Alexandre Boeglin
2007-12-18 20:16 ` Alexandre Boeglin
2008-01-23 11:39 ` Marco Gerards
2008-01-23 11:44 ` Robert Millan
2008-01-23 12:21 ` Marco Gerards
2008-01-24 8:35 ` Yoshinori K. Okuji
2008-01-24 9:12 ` Marco Gerards
2008-02-05 21:34 ` Alexandre Boeglin
2008-02-05 22:11 ` Robert Millan
2008-02-05 23:11 ` Alexandre Boeglin
2008-02-06 0:11 ` Robert Millan
2008-02-08 11:38 ` Alexandre Boeglin
2008-02-08 12:04 ` Robert Millan
2008-01-23 11:43 ` Robert Millan [this message]
2008-02-05 21:39 ` Alexandre Boeglin
2008-02-05 22:10 ` Robert Millan
2008-02-10 16:37 ` Generic halt and reboot commands (was: Re: grub2 efi patches) Alexandre Boeglin
2008-02-10 16:56 ` Robert Millan
2008-02-10 19:54 ` Alexandre Boeglin
2008-02-10 21:05 ` Robert Millan
2008-02-10 21:58 ` Alexandre Boeglin
2008-02-11 14:11 ` Robert Millan
2008-02-11 22:15 ` Alexandre Boeglin
2008-02-12 10:47 ` Robert Millan
2008-02-12 11:37 ` Alexandre Boeglin
2008-02-12 11:49 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080123114331.GA27060@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.