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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel