[okl4-developer] Request virt to phys mapping in Iguana application
Nelson Tam
nelson at ok-labs.com
Tue Jan 29 17:47:22 EST 2008
Hi Kashin,
I'm taking a look at this problem and will get back to you shortly.
Nelson.
On 28/01/2008, at 5:18 PM, kashin Lin wrote:
> 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?
--
(nt)
Nelson Tam
nelson at ok-labs.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080129/65dbc27f/attachment.html
More information about the Developer
mailing list