delorie.com/archives/browse.cgi | search |
From: | Joakim Svensson <Joakim DOT Svensson AT mbox200 DOT swipnet DOT se> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Physical_address_mapping needs help |
Date: | Fri, 15 Aug 1997 00:04:25 +0200 |
Organization: | BuggerSoft |
Lines: | 20 |
Message-ID: | <33F380E9.7ED@mbox200.swipnet.se> |
NNTP-Posting-Host: | mn8.swip.net |
Mime-Version: | 1.0 |
Cache-Post-Path: | mn8!s-41207 AT dialup117-4-8 DOT swipnet DOT se |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I cant get this to work. The "_dpmi_free_physical_address_mapping(&info)" returns -1. please help this is what i do. ... __dpmi_meminfo info; info.size=xxx; info.address=xxx; ... if(__dpmi_physical_address_mapping(&info) == -1) {exit(2);} info.address=(info.address + __djgpp_conventional_base); // i cant get this line to work, if(__dpmi_free_physical_address_mapping(&info) == -1) {exit(3);} ... I use it to address the video mem. The mapped linear address works fine, but i cant free it.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |