DMA use in a Windows Dos Box (pls help)

DMA use in a Windows Dos Box (pls help)

Post by Simone Navar » Thu, 27 Jun 2002 15:41:41



I had to allocate a physical memory block to use it as a DMA buffer.
Under plain DOS, no problem ! To do it I use XMS services to allocate
and lock memory but if I try to do it in a Windows Dos Box, the
operating system halts my software when it calls the XMS lock service.
Why Windows don't allow me to do this operation ?

I've heard that VDS services can solve the problem but I don't
completely understand how use it and how it can solve my problem !

Any help will be apreciated....

Simone Navari.

--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

 
 
 

DMA use in a Windows Dos Box (pls help)

Post by Vinzent Hoefle » Fri, 28 Jun 2002 04:02:52



>To do it I use XMS services to allocate
>and lock memory but if I try to do it in a Windows Dos Box, the
>operating system halts my software when it calls the XMS lock service.
>Why Windows don't allow me to do this operation ?

Because Windows handles the memory in a virtual (paging) way, it can't
give you a physical address for such a block (it simply does not
exist), what the plain XMS-service normally does. This would mean, it
could not throw out the locked block to the paging file if physical
RAM is needed in another task, the block had to be a complete
contiguous section (not good for paging) and in such a way it would be
easily possible to knock down Windows by using all available memory
from within a DOS-session without any dirty tricks...

Vinzent.

 
 
 

1. DMA in Windows Dos Box (Help requested)

I need to allocate a fixed and large memory block to use it as a DMA
buffer. In plain dos I use XMS to allocate and lock physical memory and
it works, but when I run the software under a Windows Dos Box the
operating system halts my program on the lock request !
I've heard about VDS services but I've not yet understand if it can
resolve the problem and how to use it exatly.
I appraciate any kind of help.

Thanks,

Simone Navari.

--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

2. Which assembler?

3. help using dpmi in a dos window under windows 95

4. expansion slot

5. Help- Starting a windows application from a dos box ?

6. Anyone use Leviton greenline?

7. HELP: Failing disk changes in Windows DOS-Box

8. New Phone Plan Reduces Fees

9. Detect Windows from a DOS Box in Windows

10. Help: Ispell and Windows 3.11 DOS Boxes

11. Using a DOS box vs. booting to a DOS prompt

12. DOS Program in Win DOS box using 1.19MHz system clock.

13. DOS app plays WAV in windows DOS box???