www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/23/23:20:32

Xref: news2.mv.net comp.os.msdos.djgpp:1373
From: bodo AT wolf DOT ping DOT de (Bodo Wolf)
Newsgroups: comp.os.msdos.djgpp
Subject: Problem with Memory Map
Date: 21 Feb 1996 07:31:06 +0100
Organization: private site
Lines: 35
Message-ID: <4gee7a$cf@wolf.ping.de>
NNTP-Posting-Host: localhost
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
How can I get a pointer to the graphics-memory 0xa0000 ?

I use djgpp-v2  and  cwsdpmi.

I tried the Functions
  __dpmi_map_conventional_memory_in_memory_block()
  __     "  _device_  " 
  __dpmi_physical_address_mapping()
  __djgpp_map_physcal_memory()

.... but nothing runs....

Another Problem:
  ---------------------
   test.address=0xa0000; test.size=64*1024;
   __dpmi_physical_address_mapping(&test)
  ---------------------
  The Result is test.address==0xa0000
                test.size   ==64*1024
     and        test.handle is set....

If I write data to this address I get a segm. fault.
If I (m)alloc 1024 KB first, I get no segm. fault, but no data cames
to the graphics-memory.

Is there a error with dpmi and malloc ??


Ciao
  Bodo
--
o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o
| Bodo Wolf                                          email: Bodo AT Wolf DOT Ping DOT de |
o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o-----o

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019