All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)
Date: Wed, 6 Feb 2008 16:32:16 +0100	[thread overview]
Message-ID: <20080206153215.GA30816@thorin> (raw)
In-Reply-To: <ca0f59980801260701t33fa019ct1a0175c9a63a8462@mail.gmail.com>

On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote:
> 
> 	* loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
> 	address of entry.
> 	(grub_multiboot_load_elf64): Likewise.
> 	(grub_multiboot): Initialize mbi structure.
> 
> 
> diff --git a/loader/i386/pc/multiboot.c b/loader/i386/pc/multiboot.c
> index fa6346e..2fd2b24 100644
> --- a/loader/i386/pc/multiboot.c
> +++ b/loader/i386/pc/multiboot.c
> @@ -96,6 +96,7 @@ grub_multiboot_load_elf32 (grub_file_t file, void *buffer)
>  {
>    Elf32_Ehdr *ehdr = (Elf32_Ehdr *) buffer;
>    Elf32_Phdr *phdr;
> +  grub_addr_t real_entry = 0;

I would suggest a more explicit name, like physical_entry_addr or so.  That'd
make it easier to understand without the context of your mail and changelog
entry.

> +  grub_memset (mbi, 0, sizeof (struct grub_multiboot_info));

I wonder if it'd make sense to do this in grub_malloc().  This would save us
from similar bugs in the future (and have the advantage that memory handling
bugs would be exposed earlier).  What do you think, is this idea too crazy? :-)

(I would still add grub_memset here for now, though; makes no sense to delay
it)

-- 
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 /.)



  parent reply	other threads:[~2008-02-06 15:34 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 17:01 UFS (FFS) support seems broken in grub2 jakllsch
2008-01-19 18:27 ` walt
2008-01-22 18:58   ` Bean
2008-01-22 20:04     ` Robert Millan
2008-01-23  9:02       ` Marco Gerards
2008-01-23 16:15     ` walt
2008-01-23 16:31       ` Bean
2008-01-23 19:21         ` Marco Gerards
2008-01-23 20:26           ` Bean
2008-01-23 22:49         ` walt
2008-01-23 23:53           ` Robert Millan
2008-01-24  1:21             ` walt
2008-01-24 12:30               ` booting *BSD kernels (Re: UFS (FFS) support seems broken in grub2) Robert Millan
2008-01-24  8:33           ` UFS (FFS) support seems broken in grub2 Marco Gerards
2008-01-24 14:20             ` walt
2008-01-24 14:33               ` booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2) Robert Millan
2008-01-24 14:53                 ` Robert Millan
2008-01-24 16:47                   ` walt
2008-01-24 17:12                     ` Robert Millan
2008-01-26 15:01                       ` Bean
2008-01-26 17:24                         ` Robert Millan
2008-01-26 18:19                           ` walt
2008-01-26 18:24                             ` Bean
2008-01-26 18:31                               ` Bean
2008-01-26 19:57                               ` Robert Millan
2008-01-26 19:57                             ` Robert Millan
2008-01-26 21:24                         ` walt
2008-01-27  1:35                           ` Bean
2008-01-27 20:13                             ` walt
2008-01-27 20:25                               ` Bean
2008-01-28  1:54                                 ` walt
2008-01-28  8:52                                   ` Robert Millan
2008-01-28 10:02                                   ` Bean
2008-01-28 13:00                                     ` Marco Gerards
2008-01-28 13:02                                       ` Bean
2008-02-02 14:16                                         ` Bean
2008-01-27  8:53                           ` Robert Millan
2008-01-27 20:09                             ` walt
2008-01-27 22:11                               ` Robert Millan
2008-01-28  8:57                             ` Marco Gerards
2008-01-28 10:06                               ` Bean
2008-01-28 10:41                                 ` Robert Millan
2008-02-06 15:32                         ` Robert Millan [this message]
2008-02-06 16:03                           ` Bean
2008-01-24 18:16               ` UFS (FFS) support seems broken in grub2 Marco Gerards
2008-01-24 18:19                 ` 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=20080206153215.GA30816@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.