All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: normal mode chainloader
Date: Tue, 22 Jun 2004 22:25:43 +0200	[thread overview]
Message-ID: <874qp3wda0.fsf@marco.marco-g.com> (raw)
In-Reply-To: <20040622114156.GB21527@artax.karlin.mff.cuni.cz> (Tomas Ebenlendr's message of "Tue, 22 Jun 2004 13:41:56 +0200")

ebik@artax.karlin.mff.cuni.cz (Tomas Ebenlendr) writes:

> Hm, I forgot to append the new version. (It fixes only the GCS-compliancy,
> as you commented the patch).

Ok, here are the comments I still have, to be complete.  These
comments are only related to the GCS.

In my other email I told you what I thought of the boot.mod
dependency.  If that is worked out all you need is Okuji's blessing,
after that I will commit the patch (that reminds me about some other
patches I will commit real soon... :-/).

No need to go through this patch again.  Please do what you can do
while fixing this patch to the outcome of the discussing about the
boot.mod dependency, I will do the rest before committing.

> 	* commands/boot.c (GRUB_MOD_INIT): Add symbol
> 	grub_boot_dependency, used forsemantic dependency of
> 	commands.
> 	* conf/i386-pc.rmk: Add i386/pc/chainloader_normal.c as
> 	chain.mod.

Please include (chain_mod_SOURCES) here, like you did with
(GRUB_MODE_INIT).  Same for adding chain.mod to pkgdata_MODULES.  You
should notice you renamed _chain.mod to chain.mod.

> 	* include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
> 	Delete prototype of rescue command chainloader.

Ok, although I prefer `Deleted prototype' (or short `Deleted').

> +  grub_boot_dependency = 1; /* To let be loader commands dependent on this command
> +			       (don't let gcc optimize off this symbol) */

Please fix the comment.  I would use:


/* To let be loader commands dependent on this command (don't let gcc
   optimize off this symbol).  */
grub_boot_dependency = 1;

(Notice the `.' and the two spaces)

> diff -rupN -x CVS grub2_x/include/grub/boot_cmd.h grub2_work/include/grub/boot_cmd.h
> --- grub2_x/include/grub/boot_cmd.h	1970-01-01 01:00:00.000000000 +0100
> +++ grub2_work/include/grub/boot_cmd.h	2004-06-21 01:33:53.000000000 +0200
> @@ -0,0 +1,26 @@
> +/* This file is intended as command dependency */
> +/*
> + *  GRUB  --  GRand Unified Bootloader
> + *  Copyright (C) 2002  Free Software Foundation, Inc.

copyright crap: You have to update the copyright years.  In this case
add 2004.  AFAIK you should not use short notations or ranges, just
list the years like:

 *  Copyright (C) 2002, 2004  Free Software Foundation, Inc.

> +typedef enum
> +  {
> +    GRUB_CHAINLOADER_FORCE = 0x1
> +  }
> +grub_chainloader_flags_t;

I think this should be:

 } grub_chainloader_flags_t;

> +void EXPORT_FUNC(grub_chainloader_cmd) (const char * file,grub_chainloader_flags_t flags);

A long line...

> +/* FIXME these commands should be divided to argument parsing and real work, and moved to
> + * respective headers*/

Please fix this comment.

> -  if (signature != grub_le_to_cpu16 (0xaa55) && ! force)
> +  if (signature != grub_le_to_cpu16 (0xaa55) && ! (flags & GRUB_CHAINLOADER_FORCE) )

A long lines.  And the last parenthesis should not be separated with a
space.  This would be better:

if (signature != grub_le_to_cpu16 (0xaa55) 
    && ! (flags & GRUB_CHAINLOADER_FORCE))

> +  grub_boot_dependency = 1; /* To be dependent on boot command
> +			       (don't let gcc optimize off this symbol) */

The formatting of the comments is not correct.

Thanks,
Marco




  reply	other threads:[~2004-06-23  0:45 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-21 18:00 normal mode chainloader Tomas Ebenlendr
2004-06-22  9:00 ` Marco Gerards
2004-06-22 11:33   ` Tomas Ebenlendr
2004-06-22 19:52     ` Marco Gerards
2004-06-23  7:10       ` Tomas Ebenlendr
2004-06-23 10:34         ` Yoshinori K. Okuji
2004-06-23 10:40           ` Tomas Ebenlendr
2004-06-22 11:41   ` Tomas Ebenlendr
2004-06-22 20:25     ` Marco Gerards [this message]
2004-06-23  7:29       ` Tomas Ebenlendr
2004-06-23 10:55         ` Marco Gerards
2004-06-23 17:20           ` Jeroen Dekkers
2004-06-23  8:11       ` Copyright crap Was: " Tomas Ebenlendr
2004-06-23  8:59         ` Jeroen Dekkers
2004-06-23 10:43           ` Tomas Ebenlendr
2004-06-23 11:58       ` Tomas Ebenlendr
2004-06-23 16:49         ` Marco Gerards
2004-06-24  8:44           ` Tomas Ebenlendr
2004-06-24 15:26             ` Marco Gerards
2004-06-24 16:51               ` Tomas Ebenlendr
2004-07-01 10:54                 ` Marco Gerards
2004-07-01 11:17                   ` Yoshinori K. Okuji
2004-07-01 11:53                     ` Tomas Ebenlendr
2004-07-01 13:30                       ` Marco Gerards
2004-07-01 16:03                         ` history, autoloading was: " Tomas Ebenlendr
2004-09-10 22:05                         ` Marco Gerards
2004-09-12 12:46         ` Marco Gerards
2004-09-17 18:48           ` Tomas Ebenlendr
2004-09-17 18:53             ` M. Gerards
2004-09-17 19:32               ` Tomas Ebenlendr
2004-09-17 19:38                 ` M. Gerards
2004-09-20  6:58                   ` Tomas Ebenlendr
2004-09-21  8:22                     ` Module loading - grub-emu, bug in kern/dl.c Tomas Ebenlendr
2004-11-17 15:43                       ` Marco Gerards
2004-11-17 20:30                         ` Tomas Ebenlendr
2004-11-17 20:45                           ` Marco Gerards
2004-11-22 15:18                         ` Timothy Baldwin

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=874qp3wda0.fsf@marco.marco-g.com \
    --to=metgerards@student.han.nl \
    --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.