On Mon, 8 Dec 2003, Updegrove, Timothy (Tim) wrote: > Currently, DJGPP is used for a program to access a memory-mapped PCI device. > Currently, the program is compiled and run on a Windows machine. The task > is to take the same (or nearly same) source, compile and run it on a Linux > Red Hat 9 machine running DOSEMU. I'm wondering if the DJGPP/DPMI functions > to allocate DOS memory, get a physical address for that DOS memory to pass > to the DMA hardware, map a physical address to a linear address, etc will > work as is under Linux or are modifications required?
it's not possible, as Stas explained. You'd be better off to port the program to Linux, either as a kernel driver or running it as root. To access physical memory in a user program one needs to open /dev/mem and read or write or mmap it -- it works just like a normal file but instead it contents are the physical memory contents. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
