Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NQJwg-0001c6-Tt for mharc-grub-devel@gnu.org; Thu, 31 Dec 2009 07:16:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQJwf-0001ag-3s for grub-devel@gnu.org; Thu, 31 Dec 2009 07:16:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQJwZ-0001TM-Ol for grub-devel@gnu.org; Thu, 31 Dec 2009 07:16:00 -0500 Received: from [199.232.76.173] (port=34709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQJwZ-0001T9-KW for grub-devel@gnu.org; Thu, 31 Dec 2009 07:15:55 -0500 Received: from mail-iw0-f188.google.com ([209.85.223.188]:44248) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQJwZ-0002Y0-DP for grub-devel@gnu.org; Thu, 31 Dec 2009 07:15:55 -0500 Received: by iwn26 with SMTP id 26so8195798iwn.14 for ; Thu, 31 Dec 2009 04:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XsIqtcM9YwKFy6Ej2FdBG/bY0QRzUxzpCo2Ofz4jT3c=; b=x/paFPJB/jYcaunSF7GD2BNq6GKgelWK4unfQGYAQ0CBKO8jxzKoxbQf4dtRvWRqP3 IyQQFLMqZ+38Oa7ylZYd+CG2RAMveWiYg5MKNqoHP8d2vPZuhEczoTHkuufEc4S4oiH2 swV+QOeksdxAVFx2FGxo9sAdh+LR4Eyrp9Oyk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SXOk9Rir8etJswkGiZANxFkxca1+KFkHdHwn4On45a/mEVayyo/TACeZgK3WZgItZ3 Ef244hZYIwRSBcxNu7ZTLv3HvLxiY23pKEZFDKuQvXUIj9LldilT4VA4c0EEaQoMfGKK o8Ox2gyzHHT/RsuWnBNIPLJv4zFomABEN+R2A= MIME-Version: 1.0 Received: by 10.231.148.83 with SMTP id o19mr75141ibv.39.1262261754088; Thu, 31 Dec 2009 04:15:54 -0800 (PST) Date: Thu, 31 Dec 2009 17:45:54 +0530 Message-ID: <97c3ddb10912310415y5033b4bbu45f68ba9fd519a09@mail.gmail.com> From: kiran pawar To: grub-devel@gnu.org Content-Type: multipart/alternative; boundary=0016e644c628774da2047c053731 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Regarding virtual to physical memory mapping.. 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: Thu, 31 Dec 2009 12:16:01 -0000 --0016e644c628774da2047c053731 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am working on grub-1.97.1. I wanted to know if there is any mechanism in grub2 that maps virtual addresses to physical addresses below 1 MB? When I checked the code for grub-0.97, I found that there are function as below #define phys_to_virt(x) (x) #define virt_to_phys(x) (x) Are there any similar functions in grub-1.97.1? Also, when I allocated memory using grub_malloc() and printed the address returned from the function it was (0x7da6d810). This seems to be a 32-bit address. I wanted to know whether I can allocate some memory in the region below 1MB? Regards, Kiran Pawar. --0016e644c628774da2047c053731 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,
=A0=A0 =A0I am working on grub-1.97.1. I wanted to know if ther= e is any mechanism in grub2 that maps virtual addresses to physical address= es below 1 MB?
=A0=A0 =A0When I checked the code for grub-0.97, I= found that there are function as below
=A0=A0 =A0 =A0 =A0 =A0 #define =A0phys_to_virt(x) (x)
=A0=A0= =A0 =A0 =A0 =A0 #define =A0virt_to_phys(x) (x)
=A0=A0
= Are there any similar functions in grub-1.97.1?=A0

Also, when I allocated memory using grub_malloc() and printed the address = returned from the function it was (0x7da6d810). This seems to be a 32-bit a= ddress. I wanted to know whether I can allocate some memory in the region b= elow 1MB?

Regards,
Kiran Pawar.
--0016e644c628774da2047c053731--