I tried your 64bit grub.efi, same result - hangs at start (on current
imac8,1).
I wonder if you have tested on the current MacBook or MacBook Pro, perhaps
Apple have made another change. Also I dont have any info on previous Imac
models.

I was able to get a return via grub_main() only by excluding both of the
movq lines in the code before the call. Either one hangs it.

Looks to be a problem with grub_efi_image_handle and grub_efi_system_table?
-------------------
kern/x86_64/efi/startup.S

codestart:
    call    EXT_C(grub_main)
    ret
-    movq    %rcx, EXT_C(grub_efi_image_handle)
-    movq    %rdx, EXT_C(grub_efi_system_table)
-----------------
kern/main.c

void
grub_main (void)
{
return;
}
---------------------

Is there anything else I can try?

peter cros



On Mon, Jan 12, 2009 at 4:04 AM, Bean <bean12...@gmail.com> wrote:

> On Mon, Jan 12, 2009 at 12:00 AM, peter cros <pxwp...@gmail.com> wrote:
> > It is here - (return  checked in refit efi shell and gui)
> > Can't go any further until that is fixed.
> >
> > kern/x86_64/efi/startup.S
> > -----------------------
> >
> > This hangs -
> >
> > codestart:
> >     movq    %rcx, EXT_C(grub_efi_image_handle)
> >     movq    %rdx, EXT_C(grub_efi_system_table)
> >  +ret
> >     call    EXT_C(grub_main)
> >     ret
> > -------------------------
> >
> > This returns -
> >
> > codestart:
> >  +ret
> >     movq    %rcx, EXT_C(grub_efi_image_handle)
> >     movq    %rdx, EXT_C(grub_efi_system_table)
> >     call    EXT_C(grub_main)
> >     ret
> > --------------------------
> >
> > Would really like to see the solution for the imac8,1.
>
> Hi,
>
> This is quite strange, it might be caused by the compiler. You can try
> my version of grub.efi:
>
> http://grub4dos.sourceforge.net/grub.zip
>
> --
> Bean
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to