grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] a.out support for multiboot and freebsd


From: Bean
Subject: Re: [PATCH] a.out support for multiboot and freebsd
Date: Thu, 14 Feb 2008 00:51:44 +0800

On Feb 13, 2008 11:40 PM, Robert Millan <address@hidden> wrote:
>
> On Wed, Feb 13, 2008 at 06:40:14PM +0800, Bean wrote:
> > On Feb 13, 2008 3:36 AM, Robert Millan <address@hidden> wrote:
> > > On Wed, Feb 13, 2008 at 02:47:30AM +0800, Bean wrote:
> > > > +        /* ... and put our return address in its place (the kernel 
> > > > will ignore
> > > > +          it, but it expects %esp to point to it.  */
> > > > +        call *%eax
> > >
> > > Unmatched parenthesis here (sorry I guess that's my fault ;-)).
> >
> > Ok. I also fix the alloc magic broken problem, it's caused by
> > grub_elf_file, which will close the file when the elf magic is not
> > found. However, the upper level still use that file, that cause the
> > memory problem.
> >
> > The patch should be applied after the previous bsd.diff.
>
> You forgot the ChangeLog entry..
>
> > --- a/loader/multiboot2.c
> > +++ b/loader/multiboot2.c
> > @@ -371,6 +371,7 @@ grub_multiboot2 (int argc, char *argv[])
> >      }
> >    else
> >      {
> > +      grub_errno = 0;
> >        grub_dprintf ("loader", "Loading non-ELF multiboot 2 file.\n");
> >
> >        if (header)
>
> Why this?

After grub_elf_file have failed, the grub_errno would be set, we need
to reset it in order to test for another case.

-- 
Bean




reply via email to

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