delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/20/14:57:42

From: Ian D Romanick <idr AT cs DOT pdx DOT edu>
Message-Id: <199707201855.LAA14466@sapho.cs.pdx.edu>
Subject: Re: [Q] Is it possible to write-protect the text section ?
To: eldredge AT ap DOT net (Nate Eldredge)
Date: Sun, 20 Jul 1997 11:55:33 -0700 (PDT)
Cc: muller AT janus DOT u-strasbg DOT fr, djgpp AT delorie DOT com
In-Reply-To: <199707201651.JAA09428@adit.ap.net> from "Nate Eldredge" at Jul 20, 97 09:51:04 am
MIME-Version: 1.0

> Does anyone know why the decision was made to have CS and DS refer to the
> same region of memory, the program's entire address space? IMHO, CS should
> be `text' only, and DS and SS should be `DGROUP' (or whatever it's called)
> only. This would keep problems of this sort from occuring, since you can't
> write to the CS segment.

Well, for one thing, you wouldn't be able to have DXE's then.

-- 
"Respect the badge: he earned it with his blood.    http://www.cs.pdx.edu/~idr
Fear the gun: your sentence may be death
Because I am the law."

- Raw text -


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