Message-Id: <199709261425.KAA02593@delorie.com> From: Oberhumer Markus Subject: Re: [malcolm AT manawatu DOT gen DOT nz: Fork source code.] To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Fri, 26 Sep 1997 16:19:06 +0200 (METDST) Cc: dj AT delorie DOT com, djgpp-workers AT delorie DOT com, malcolm AT manawatu DOT gen DOT nz In-Reply-To: from "Eli Zaretskii" at Sep 21, 97 02:25:33 pm Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk > * Charles once told me that there are many bugs and subtleties > in the way different DPMI hosts implement functions 0900h > and 0901h. This code uses these heavily and seems to rely > on the fact that no interrupt will arrive when the virtual > interrupts are disabled. Will this assumtion hold? What, > if any, are other implications, for the case of this code, > of whatever problems there are in the different > implementations of 0900h out there? You can easily lock at least Windows 3.1 with some calls to 0900/0901. I'm always using the following macros in my programs: #define disable() __asm__ __volatile__("cli \n"); #define enable() __asm__ __volatile__("sti ; cld \n"); What about making this the default in as well ?