From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Regarding virtual to physical memory mapping..
Date: Thu, 31 Dec 2009 13:31:05 +0100 [thread overview]
Message-ID: <4B3C9989.3000206@gmail.com> (raw)
In-Reply-To: <97c3ddb10912310415y5033b4bbu45f68ba9fd519a09@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]
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)
>
grub runs without paging enabled. So such function is identity on x86.
> 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?
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
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2009-12-31 12:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 12:15 Regarding virtual to physical memory mapping kiran pawar
2009-12-31 12:31 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2009-12-31 13:36 ` Javier Martín
2010-01-01 12:53 ` Robert Millan
-- strict thread matches above, loose matches on Subject: below --
2010-01-10 6:07 kiran pawar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B3C9989.3000206@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.