Hi,<br><br>i have tried "memsection_virt_to_phys" as following:<br><br>uintptr_t virt, mem_sect;<br>uintptr_t scm_phys;<br>size_t size;<br>        <br>        mem_sect = memsection_create_user(0x1000, &virt);<br>        result = hardware_back_memsection(mem_sect,0x01c40000, L4_IOMemory);<br>
<br>scm_phys = memsection_virt_to_phys(virt, &size);<br><br><br>but i always got "scm:0xfffffffe, size:0x0" not "scm:0x01c40000, size:0x1000".<br>is the way i used wrong or there are something i should take care?<br>
<br>thanks in advance~<br><br><br><div><span class="gmail_quote">2008/1/28, Abi Nourai <<a href="mailto:anourai@ok-labs.com">anourai@ok-labs.com</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi Kashlin,<br><br>memsection_virt_to_phys and/or virt_to_phys should be of assistance.<br><br>Regards<br>Abi<br><br>On 26/01/2008, at 2:02 AM, kashin Lin wrote:<br><br>> Hi,<br>><br>> are there any functions can be used in Iguana application which<br>
> translate<br>><br>> a virt addr to phys addr it maps?<br>><br>> i want to send the phys addr to another non-MMU processor, so i need<br>> this<br>><br>> function.<br>><br>> thanks for any suggestions.<br>
><br>><br>> best,<br>> kashin lin<br>> _______________________________________________<br>> Developer mailing list<br>> <a href="mailto:Developer@okl4.org">Developer@okl4.org</a><br>> <a href="https://lists.okl4.org/mailman/listinfo/developer">https://lists.okl4.org/mailman/listinfo/developer</a><br>
<br></blockquote></div><br>