Mail Archives: djgpp/1996/11/05/08:42:26
From: | "T.W. Seddon" <T DOT W DOT Seddon AT ncl DOT ac DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Mapping memory
|
Date: | 4 Nov 1996 19:09:23 GMT
|
Organization: | University of Newcastle upon Tyne
|
Lines: | 21
|
Message-ID: | <55lf13$o51@whitbeck.ncl.ac.uk>
|
NNTP-Posting-Host: | glenb1.ncl.ac.uk
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Apparently-To: | djgpp AT delorie DOT com
|
I've been trying to use the dpmi function (can't remember which one) to
map MS-DOS memory to a different protected-mode location. Unfortunately
all my attempts to do this have resulted in a crash. Does CWSDPMI support
this, or will I have to run under Windows 95 or something like that?
I allocated some memory in the appropriate way (to get a _dpmi_meminfo
structure) and allocated some DOS memory in a similar fashion using the
other function, and then tried to map the DOS memory into the
protected-mode memory. The result was a crash.
I don't think I'm doing anything wrong... is anyone able to help?
Unfortunaetly I don't have my source code or any djgpp reference with me
so I can't remember the function names (they were long with lots of
underscores though) but the map function I used was the one to map MS-DOS
memory to a different protected-mode location.
Any help much appreciated. (Hopefully you can understand the above as well!)
--Tom Seddon
T.W.Seddon"ncl.ac.uk
- Raw text -