home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6297 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.4 KB

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