summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-22 18:17:34 +0000
committerbde <bde@FreeBSD.org>1995-12-22 18:17:34 +0000
commitd9c3bcb21b2ab65479f9b9d2bfb829d17c1087b2 (patch)
tree9cd63c8f9637e18c79a2324ecb38bef318e1f5c6 /sys
parentb58d77177bfd1087c26535ae3365a1bce49e9483 (diff)
downloadFreeBSD-src-d9c3bcb21b2ab65479f9b9d2bfb829d17c1087b2.zip
FreeBSD-src-d9c3bcb21b2ab65479f9b9d2bfb829d17c1087b2.tar.gz
Increased the double fault stack size from 512 to PAGE_SIZE. This is
wasteful, but better than clobbering the variables below the stack. About 300 bytes of variables were clobbered when I examined double faults using ddb. Perhaps a page that is known not to be accessed by the double fault handler could be used. Such pages are not easy to find, since the double fault handler calls panic() which calls sync() and possibly dumpsys().
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/i386/i386/machdep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 947200e..f703c5f 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.160 1995/12/16 18:52:08 peter Exp $
+ * $Id: machdep.c,v 1.161 1995/12/19 14:30:26 davidg Exp $
*/
#include "npx.h"
@@ -1068,7 +1068,7 @@ struct gate_descriptor idt[NIDT]; /* interrupt descriptor table */
union descriptor ldt[NLDT]; /* local descriptor table */
static struct i386tss dblfault_tss;
-static char dblfault_stack[512];
+static char dblfault_stack[PAGE_SIZE];
extern struct user *proc0paddr;
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 947200e..f703c5f 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.160 1995/12/16 18:52:08 peter Exp $
+ * $Id: machdep.c,v 1.161 1995/12/19 14:30:26 davidg Exp $
*/
#include "npx.h"
@@ -1068,7 +1068,7 @@ struct gate_descriptor idt[NIDT]; /* interrupt descriptor table */
union descriptor ldt[NLDT]; /* local descriptor table */
static struct i386tss dblfault_tss;
-static char dblfault_stack[512];
+static char dblfault_stack[PAGE_SIZE];
extern struct user *proc0paddr;
OpenPOWER on IntegriCloud