<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Kashin,<div><br class="webkit-block-placeholder"></div><div>I'm taking a look at this problem and will get back to you shortly.</div><div><br class="webkit-block-placeholder"></div><div>Nelson.</div><div><br><div><div>On 28/01/2008, at 5:18 PM, kashin Lin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">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?</span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>(nt)</div><div><br class="webkit-block-placeholder"></div><div>Nelson Tam</div><div><a href="mailto:nelson@ok-labs.com">nelson@ok-labs.com</a></div><div><br class="webkit-block-placeholder"></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>