Mail Archives: djgpp/1996/03/07/06:10:32
Xref: | news2.mv.net comp.os.msdos.djgpp:1703
|
From: | jstuart AT iastate DOT edu (Joshua D Stuart)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Memory in real mode and protected mode?
|
Date: | 3 Mar 96 18:04:17 GMT
|
Organization: | Iowa State University, Ames, Iowa
|
Lines: | 16
|
Message-ID: | <jstuart.825876257@isua2.iastate.edu>
|
NNTP-Posting-Host: | isua2.iastate.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I just got djgpp, and I'm trying to learn the diffrences between real
mode and protected mode. Is there any way to allocate a block of memory
that is both in real mode and protected mode? I need to have a real
mode function put some stuff in a buffer that my protected mode
procedure can access. I've been looking at the function
__dpmi_allocate_shared_memory but I don't see how this function works.
Is this the right function, or am I going about this all wrong?
--
--
"No dictator, No invader, can hold an imprisoned population by force of
arms, forever. There is no greater power in the universe, than the need
for freedom. Against that power, governments, and tyrants, and armies
cannot stand. The Centauri learned this lesson once. We will teach it to
them again. Thou it take a thousand years, we will be free."
-- G'Kar (Babylon 5, "The Long, Twilight Struggle")
- Raw text -