cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/13/14:15:10

Message-ID: <F554E1189472D21198D000805F654BFE05FA95@ntxchangerend.engr.rendition.com>
From: yjtseng <yjtseng AT micron DOT com>
To: djgpp AT delorie DOT com, salvador AT init DOT gov DOT ar
Cc: yjtseng AT micron DOT com
Subject: RE: cwsdpr0.exe 4/13/99
Date: Tue, 13 Apr 1999 12:14:51 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

I thought that paging and virtual memory are the same, i.e. if paging is on
then virtual memory concept kicks in. And if virtual memory is disabled then
you are not supposed to have paging and in this case linear address is the
same as physical address. :-) 

What will happen if virtual memory is disabled (as is in cwsdpr0.exe),
paging is enabled (as shown in CR0 I read), and pages need to be swapped
out? Is this a legitimate scenario? Or, can you do paging without swapping
pages to/from disk storage?

Thanks.

Jay
	-----Original Message-----
	From:	Salvador Eduardo Tropea (SET) [SMTP:salvador AT inti DOT gov DOT ar]
	Sent:	April 13, 1999 5:11 AM
	To:	yjtseng; djgpp AT delorie DOT com
	Subject:	Re: cwsdpr0.exe

	yjtseng <yjtseng AT micron DOT com> asked:

	> I wrote inline assembly to access CR0. There was general
protection fault at
	> run time. After suggestions given by Salvador Eduardo Tropea and
Nate
	> Eldredge, I tried cwsdpr0.exe and it worked. I was able to access
CR0. 
	> 
	> Questions:
	> 
	> First:
	> Acording to cwsdpmi.doc, cwsdpr0.exe runs with virtual memory
disabled. But,
	> the value of CR0 that I read is 0x80000011 which means the paging
mechanism
	> is on. Any idea anybody?

	Paging mechanism isn't virtual memory. If I remmember OK the EMM386
driver 
	uses it in DOS. It allows to remap the memory using pages, of course
that's 
	needed for virtula memory but not the reverse.
	There are a DPMI call to know if VM is available.
	 
	> Second:
	> How can I pick cwsdpr0.exe as the DPMI host at compilation instead
of using 
	> 	stubedit  my.exe dpmi=cwsdpr0.exe
	> after the executable is generated?

	I think there is no easier way, you could tell the linker to use an
external 
	stub file, but I think the stubedit step is easier.

	SET

	P.S. As you can see that's a priviledged instruction ;-) 
	------------------------------------ 0
--------------------------------
	Visit my home page: http://welcome.to/SetSoft
	or
	http://www.geocities.com/SiliconValley/Vista/6552/
	Salvador Eduardo Tropea (SET). (Electronics Engineer)
	Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
	ICQ: 2951574
	Address: Curapaligue 2124, Caseros, 3 de Febrero
	Buenos Aires, (1678), ARGENTINA
	TE: +(5411) 4759 0013

- Raw text -


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