Hi all,

  On my system, I use 128Mb for linux and 128Mb remapped for
PCI bus-master ( total 256Mb of physical RAM ).
I use kernel 2.2.10 with rtai-0.2x patch.
To work with the dedicated memory for bus-master,I use :
unsigned int *Virtual_buffer = (unsigned int
*)ioremap(FREE_MEM_BASE,FREE_MEM_SIZE) ;
(with FREE_MEM_BASE=128*1024*1024 and FREE_MEM_SIZE=128*1024*1024)
After many tests, I found that the virtual address and the physical
address
are correct for the memory location.
But if I try to get the physical address with the virtual address with:
physical_address = virt_to_phys(Virtual_buffer) ;
I get a bad physical address location !!!

Did someone got the same pb ???
Is there any explaination about that bad translation ???

Thanks for all.

-- 
Kumsta Christophe
<[EMAIL PROTECTED]>
Real-Time System developper
RT-Linux (RTAI) Use the Source Luck !
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to