delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/15/16:35:30

From: "Campbell, Rolf [SKY:1U32:EXCH]" <cp1v45 AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: malloc() and CWSDPMI 4.0
Date: Thu, 15 Jul 1999 16:03:15 -0400
Organization: Nortel Networks
Lines: 43
Message-ID: <378E3E83.144617B0@americasm01.nt.com>
References: <378bbab9 DOT 22414525 AT news DOT uni-wuppertal DOT de> <378CB591 DOT 82CC6753 AT americasm01 DOT nt DOT com> <378e1f70 DOT 6963482 AT news DOT uni-wuppertal DOT de>
NNTP-Posting-Host: bmerhc00.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en] (X11; I; HP-UX B.10.20 9000/712)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id QAB20617
Reply-To: djgpp AT delorie DOT com

Winfried Salomon wrote:

> I donīt need especially XMS-Ram, but only 32 Bit linear addressable
> Ram, but virtual memory must be switched off.

    There is a different version of the dpmi server that doesn't use virtual
memory, you can bind your executable with this.

> >#include <dpmi.h>
> >int __dpmi_get_memory_information(__dpmi_memory_info *_buffer);
>
> Now I have a typical C beginners question :-(, if I use this, the
> compiler makes an error message '__dpmi_memory_info' undeclared (first
> use in this function). I donīt understand this, because the structure
> is declared in <dpmi.h>.

__dmpi_memory_info a;
__dpmi_get_memory_information(&a);

Then, the first entry in 'a' will be the largest allocatable block.

> The
> program shall test the Ram, because I have problems with SIMMs. Years
> ago I have written such a program in Fortran77, it *must* work in C! I
> want to write test patterns in this block and think about an array to
> fill and verify it. The address of the memory cell should be offset +
> index.

    I don't know what you mean by that last statement.  But, if you mean that
you want to get the physical address of the ram that you detect as bad, then
it's not that easy.  In p-mode, ram it re-mapped by the DPMI server and I
don't know offhand how to find out the real address.

--
     -Rolf Campbell (39)3-6318



- Raw text -


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