Xref: news2.mv.net comp.os.msdos.djgpp:1638 From: jstuart AT iastate DOT edu (Joshua D Stuart) Newsgroups: comp.os.msdos.djgpp Subject: Re: Memory in real mode and protected mode? Date: 4 Mar 96 04:42:24 GMT Organization: Iowa State University, Ames, Iowa Lines: 19 Message-ID: References: NNTP-Posting-Host: isua2.iastate.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In jstuart AT iastate DOT edu (Joshua D Stuart) writes: > 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? Never mind. I found a way to do this, I think. -- -- "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")