Skip to contentSkip to conversation

What's the point of allocating the protected mode code on 0x100000 only (UEFI)

DISCUSSION George Buranov 2 participants 3 messages Feb 16, 2010 – Feb 17, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 16 lines · George Buranov

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;
    }
Quoted 3 lines

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.

Quoted 10 lines

Regards,
Georgy
------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
Quoted 1 line

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

Thanks you, it works!

Signature · 9 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




--
This message was sent on behalf of [email protected] at openSubscriber.com
http://www.opensubscriber.com/message/[email protected]/13437030.html