From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NQKBR-0007oh-8W for mharc-grub-devel@gnu.org; Thu, 31 Dec 2009 07:31:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQKBP-0007nj-CV for grub-devel@gnu.org; Thu, 31 Dec 2009 07:31:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQKBK-0007ks-Lz for grub-devel@gnu.org; Thu, 31 Dec 2009 07:31:14 -0500 Received: from [199.232.76.173] (port=40318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQKBK-0007kl-Bp for grub-devel@gnu.org; Thu, 31 Dec 2009 07:31:10 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:34870) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQKBJ-0004l3-Tg for grub-devel@gnu.org; Thu, 31 Dec 2009 07:31:10 -0500 Received: by bwz7 with SMTP id 7so8825135bwz.26 for ; Thu, 31 Dec 2009 04:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=t5FadPbpO1bBXX07DRuAWh6lq2pFI9K9y3H8nfFu2es=; b=vRvATshoXWQwsQt9NBND36d6oVcIY8Xk9rp6pzrQGEPMryRUh9OVDIjmySPKy3jWTi lJ9a4CkeLUfRF55+3NKzwJZoMr/HQSAdU0YZdcohaPKykv1YKPdbOue92jfz15FE707t DWufgw35HRqZ12EV7UJyZ1Ynb3EGgrIkig1hU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=n5thKXFWtRUljPDxbIqfPioow+8ZZtseruxPMwgyKWlyaeeq23ObZv1GXy+pgJFeOf 9kzZpCldnmzSVBt5w1YnqfH0Pb231gWvir3DLdNVgUeWKtQ87pOLybo1nkBte7pBF57R bBzN8vIYRV1BUJplf84ASZHR2wfb9vqi8Oe0Y= Received: by 10.204.2.131 with SMTP id 3mr1888315bkj.175.1262262667871; Thu, 31 Dec 2009 04:31:07 -0800 (PST) Received: from debian.bg45.phnet (198-65.0-85.cust.bluewin.ch [85.0.65.198]) by mx.google.com with ESMTPS id 14sm4131264bwz.1.2009.12.31.04.31.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 31 Dec 2009 04:31:07 -0800 (PST) Message-ID: <4B3C9989.3000206@gmail.com> Date: Thu, 31 Dec 2009 13:31:05 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <97c3ddb10912310415y5033b4bbu45f68ba9fd519a09@mail.gmail.com> In-Reply-To: <97c3ddb10912310415y5033b4bbu45f68ba9fd519a09@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1A874F58B0FD4CE4BF76F574" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: 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:31:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1A874F58B0FD4CE4BF76F574 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable kiran pawar wrote: > 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) > =20 grub runs without paging enabled. So such function is identity on x86. > Are there any similar functions in grub-1.97.1?=20 > > 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? Only in experimental branch. But we're not currently sure if we will use this. If you want to make a BIOS call then use memory at GRUB_SCRATCH_ADDR. If you do something else please explain > > Regards, > Kiran Pawar. > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1A874F58B0FD4CE4BF76F574 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAks8mYkACgkQNak7dOguQgn+zwEAoHkOOfVQCs+03MtwGARrVfQ6 2smRq6UQqDtk2eUoisgA/j2Vg40fWTrmtau4G30CwwJ29pcRQ7o7HaIY5kMW37Vx =fH4Z -----END PGP SIGNATURE----- --------------enig1A874F58B0FD4CE4BF76F574--