Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NhLnh-0000K0-Jf for mharc-grub-devel@gnu.org; Tue, 16 Feb 2010 06:41:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhLne-0000JJ-4c for grub-devel@gnu.org; Tue, 16 Feb 2010 06:41:06 -0500 Received: from [140.186.70.92] (port=60749 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhLnd-0000Is-GP for grub-devel@gnu.org; Tue, 16 Feb 2010 06:41:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhLnd-0004nM-0k for grub-devel@gnu.org; Tue, 16 Feb 2010 06:41:05 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:50532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhLnc-0004n6-Ma for grub-devel@gnu.org; Tue, 16 Feb 2010 06:41:04 -0500 Received: by bwz19 with SMTP id 19so3824541bwz.8 for ; Tue, 16 Feb 2010 03:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=xbciDBB6IIHv5uG38hRXkIaGJp7E5i94xIVkA4mlvuU=; b=pxU+7EFndU6SAGgMsnbKExvBhTj2iWg/joD1u1kLUGQ6fVBljtNPfC6Hev6eiVzqA0 D3OdT16IsavO+JH5LJKq5V8Q1Z5sGCYOIqiRNzU4tLIlPW//PoCQU7MJUHzrhzyVb/DN DqR76/ZwCWcila/fhuukHBQDsKlnlHAa3Bji4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=veHy7rxchoiA10HmMIEgjwI+LHDQ5c81+Kuw2Ibz9u6LO4pypITWxSJxG1ei9lTXFb bLs2EWe0iN+AEzxdmV1+Gfa63cTYEAoiQeF1fcazlaGzOtr8J0Ptw4KK9KlDPA4l3kbX XvvJbGG8QZ3POlrD0bMgMQkIJisCZApoVFH9Q= MIME-Version: 1.0 Received: by 10.204.32.198 with SMTP id e6mr761824bkd.169.1266320462204; Tue, 16 Feb 2010 03:41:02 -0800 (PST) From: George Buranov Date: Tue, 16 Feb 2010 14:40:42 +0300 Message-ID: To: The development of GNU GRUB Content-Type: multipart/alternative; boundary=00032555e492524fcd047fb63520 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: What's the point of allocating the protected mode code on 0x100000 only (UEFI) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2010 11:41:06 -0000 --00032555e492524fcd047fb63520 Content-Type: text/plain; charset=ISO-8859-1 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 --00032555e492524fcd047fb63520 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

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

=A0 /* Next, find free pages = for the protected mode code.=A0 */
=A0 /* XXX what happens if anything is using this address?=A0 */
=A0 pro= t_mode_mem =3D grub_efi_allocate_pages (0x100000, prot_mode_pages + 1);
= =A0 if (! prot_mode_mem)
=A0=A0=A0 {
=A0=A0=A0=A0=A0 grub_error (GRUB= _ERR_OUT_OF_MEMORY,
=A0=A0=A0 =A0=A0=A0 =A0 "cannot allocate protected mode pages");<= br>=A0=A0=A0=A0=A0 goto fail;
=A0=A0=A0 }

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

Regards,
Georgy
--00032555e492524fcd047fb63520--