Hi,<br><br>i have tried &quot;memsection_virt_to_phys&quot; as following:<br><br>uintptr_t &nbsp;virt, mem_sect;<br>uintptr_t &nbsp;scm_phys;<br>size_t &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;size;<br>        <br>        mem_sect = memsection_create_user(0x1000, &amp;virt);<br>        result = hardware_back_memsection(mem_sect,0x01c40000, L4_IOMemory);<br>
<br>scm_phys = memsection_virt_to_phys(virt, &amp;size);<br><br><br>but i always got&nbsp;&quot;scm:0xfffffffe, size:0x0&quot; &nbsp;not &quot;scm:0x01c40000, size:0x1000&quot;.<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 &lt;<a href="mailto:anourai@ok-labs.com">anourai@ok-labs.com</a>&gt;:</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>&gt; Hi,<br>&gt;<br>&gt; are there any functions can be used in Iguana application which<br>
&gt; translate<br>&gt;<br>&gt; a virt addr to phys addr it maps?<br>&gt;<br>&gt; i want to send the phys addr to another non-MMU processor, so i need<br>&gt; this<br>&gt;<br>&gt; function.<br>&gt;<br>&gt; thanks for any suggestions.<br>
&gt;<br>&gt;<br>&gt; best,<br>&gt; kashin lin<br>&gt; _______________________________________________<br>&gt; Developer mailing list<br>&gt; <a href="mailto:Developer@okl4.org">Developer@okl4.org</a><br>&gt; <a href="https://lists.okl4.org/mailman/listinfo/developer">https://lists.okl4.org/mailman/listinfo/developer</a><br>
<br></blockquote></div><br>