All of lore.kernel.org
 help / color / mirror / Atom feed
* What's the point of allocating the protected mode code on 0x100000  only (UEFI)
@ 2010-02-16 11:40 George Buranov
  2010-02-16 11:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: George Buranov @ 2010-02-16 11:40 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 708 bytes --]

Hello,

I just found another computer with working UEFI (I was testing on UEFI
simulation) and just found that the kernel load does not work. I found out
that the problem is in code

  /* Next, find free pages for the protected mode code.  */
  /* XXX what happens if anything is using this address?  */
  prot_mode_mem = grub_efi_allocate_pages (0x100000, prot_mode_pages + 1);
  if (! prot_mode_mem)
    {
      grub_error (GRUB_ERR_OUT_OF_MEMORY,
          "cannot allocate protected mode pages");
      goto fail;
    }

This function return with false for me. I am continuing investigation, but
maybe you know the reason why the allocation is on this special address? Can
we change it?

Regards,
Georgy

[-- Attachment #2: Type: text/html, Size: 799 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What's the point of allocating the protected mode code on 0x100000 only (UEFI)
  2010-02-16 11:40 What's the point of allocating the protected mode code on 0x100000 only (UEFI) George Buranov
@ 2010-02-16 11:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2010-02-17  6:00   ` gburanov
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-02-16 11:51 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

George Buranov wrote:
> Hello,
>
> I just found another computer with working UEFI (I was testing on UEFI
> simulation) and just found that the kernel load does not work. I found
> out that the problem is in code
>
>   /* Next, find free pages for the protected mode code.  */
>   /* XXX what happens if anything is using this address?  */
>   prot_mode_mem = grub_efi_allocate_pages (0x100000, prot_mode_pages + 1);
>   if (! prot_mode_mem)
>     {
>       grub_error (GRUB_ERR_OUT_OF_MEMORY,
>           "cannot allocate protected mode pages");
>       goto fail;
>     }
>
> This function return with false for me. I am continuing investigation,
> but maybe you know the reason why the allocation is on this special
> address? Can we change it?
As I already said I have a working prototype for this in newreloc branch.
>
> Regards,
> Georgy
> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: What's the point of allocating the protected mode code on 0x100000 only (UEFI)
  2010-02-16 11:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2010-02-17  6:00   ` gburanov
  0 siblings, 0 replies; 3+ messages in thread
From: gburanov @ 2010-02-17  6:00 UTC (permalink / raw)
  To: grub-devel

> As I already said I have a working prototype for this in newreloc branch.

Thanks you, it works!
-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




--
This message was sent on behalf of gburanov@gmail.com at openSubscriber.com
http://www.opensubscriber.com/message/grub-devel@gnu.org/13437030.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-17  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 11:40 What's the point of allocating the protected mode code on 0x100000 only (UEFI) George Buranov
2010-02-16 11:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-02-17  6:00   ` gburanov

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.