home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!PKSMRVM.VNET.IBM.COM
- From: KENKAHN@PKSMRVM.VNET.IBM.COM (Kenneth A. Kahn)
- Message-ID: <19921109.122204.330@almaden.ibm.com>
- Date: Mon, 9 Nov 92 15:01:41 EST
- Newsgroups: comp.os.os2.programmer
- Subject: Re: How to access physical memory addresses
- Organization: Staff of IBM Fellow - IBM Personal/370
- Disclaimer: This posting represents the poster's views, not those of IBM
- News-Software: UReply 3.0
- X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)
- References: <1992Nov9.165015.24602@msc.cornell.edu>
- Lines: 20
-
- In <1992Nov9.165015.24602@msc.cornell.edu> Mike Thompson writes:
- >I unfortunately bought a digitial I/O board which memory maps the chips rather
- >than mapping them to I/O ports. Consequently, I need to create a pointer to
- >a specific physical memory address.
- >
- >Need: Create a pointer to physical memory location 0x0CD400.
- >Compiler: MSC 6.1 (also curious how to do with IBM CSET/2)
- >
- >Does anyone know how to create a pointer to a physical address in MSC 6.1.
- >There is the MAKEP(seg,adr) function, but do I suspect the seg is a logical
- >segment rather than a physical segment. Also, how do I tell the operating
- >system to let me bash away at low memory from my protected mode program. Is
- >there an equivalent of config.sys command and .def specification for port
- >access?
- >
- >
-
- The *ONLY* way to access physical memory in OS/2 is via a device driver. If
- the board did not come with such a DD, you will have to write one.
-
-