On Thu, 5 Aug 1999, Zhigao Yao wrote:
> 4092K shared memory pool for use(append="mem=126980k". Shared Memory pool
> base address is 0x7C01000). The following piece of code works well in
> RTLinux1.1, but it cause segmentation fault in Beta11+Kernel2.2.10.
>
> data1 = (int *)0x7C01000;
Because you are using it incorrectly. See
/usr/src/linux/Documentation/IO-mapping.txt
You will probably need
#if LINUX_VERSION_CODE < 0x020100
#define ioremap vremap
#define iounmap vfree
#endif
data1 = (int *)ioremap(0x7C01000,4092*1024);
*data1 =3;
Or just take http://crds.chemie.unibas.ch/PCI-MIO-E/mbuff-0.5.tar.gz and use
it.
--
Tomek
--- [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/