grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding virtual to physical memory mapping..


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: Regarding virtual to physical memory mapping..
Date: Thu, 31 Dec 2009 13:31:05 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]