Add a kludge to prevent a double-fault under Windows 3.1
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 21 Sep 1993 18:08:09 +0000 (18:08 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 21 Sep 1993 18:08:09 +0000 (18:08 +0000)
v7/src/microcode/nttrap.c

index b319e4fa70072ad3e4d2de6f8a40e1fa42a650d0..3bf72e5eff0e7a88a6a53a7cbfcc11f3f191d461 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: nttrap.c,v 1.7 1993/09/21 17:54:10 gjr Exp $
+$Id: nttrap.c,v 1.8 1993/09/21 18:08:09 gjr Exp $
 
 Copyright (c) 1992-1993 Massachusetts Institute of Technology
 
@@ -1265,7 +1265,7 @@ DEFUN_VOID (winnt_stack_reset)
 
   boundary = ((((unsigned long) Stack_Guard)
               & (~ ((unsigned long) (PAGE_SIZE - 1))))
-             - PAGE_SIZE);
+             - (2 * PAGE_SIZE));
   if (stack_protected && (protected_stack_base == boundary))
     return;
   winnt_unprotect_stack ();