Mail Archives: djgpp/1999/07/15/16:35:30
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 -