[okl4-developer] Request virt to phys mapping in Iguana application
kashin Lin
kashin08 at gmail.com
Mon Jan 28 17:18:59 EST 2008
Hi,
i have tried "memsection_virt_to_phys" as following:
uintptr_t virt, mem_sect;
uintptr_t scm_phys;
size_t size;
mem_sect = memsection_create_user(0x1000, &virt);
result = hardware_back_memsection(mem_sect,0x01c40000, L4_IOMemory);
scm_phys = memsection_virt_to_phys(virt, &size);
but i always got "scm:0xfffffffe, size:0x0" not "scm:0x01c40000,
size:0x1000".
is the way i used wrong or there are something i should take care?
thanks in advance~
2008/1/28, Abi Nourai <anourai at ok-labs.com>:
>
> Hi Kashlin,
>
> memsection_virt_to_phys and/or virt_to_phys should be of assistance.
>
> Regards
> Abi
>
> On 26/01/2008, at 2:02 AM, kashin Lin wrote:
>
> > Hi,
> >
> > are there any functions can be used in Iguana application which
> > translate
> >
> > a virt addr to phys addr it maps?
> >
> > i want to send the phys addr to another non-MMU processor, so i need
> > this
> >
> > function.
> >
> > thanks for any suggestions.
> >
> >
> > best,
> > kashin lin
> > _______________________________________________
> > Developer mailing list
> > Developer at okl4.org
> > https://lists.okl4.org/mailman/listinfo/developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080128/aafc0234/attachment.htm
More information about the Developer
mailing list