Module Name:    src
Committed By:   reinoud
Date:           Tue Dec 13 12:25:42 UTC 2011

Modified Files:
        src/sys/arch/usermode/dev: cpu.c

Log Message:
Just in case ease up the stack space a bit more


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/usermode/dev/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/dev/cpu.c
diff -u src/sys/arch/usermode/dev/cpu.c:1.49 src/sys/arch/usermode/dev/cpu.c:1.50
--- src/sys/arch/usermode/dev/cpu.c:1.49	Mon Dec 12 12:20:30 2011
+++ src/sys/arch/usermode/dev/cpu.c	Tue Dec 13 12:25:42 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.49 2011/12/12 12:20:30 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.50 2011/12/13 12:25:42 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcne...@invisible.ca>
@@ -30,7 +30,7 @@
 #include "opt_hz.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.49 2011/12/12 12:20:30 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.50 2011/12/13 12:25:42 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -326,7 +326,7 @@ cpu_lwp_fork(struct lwp *l1, struct lwp 
 	/* copy the PCB and its switchframes from parent */
 	memcpy(pcb2, pcb1, sizeof(struct pcb));
 
-	stacksize = PAGE_SIZE;
+	stacksize = 2*PAGE_SIZE;
 	stack_ucp           = malloc(stacksize, M_TEMP, M_NOWAIT);
 	stack_syscall_ucp   = malloc(stacksize, M_TEMP, M_NOWAIT);
 	stack_pagefault_ucp = malloc(stacksize, M_TEMP, M_NOWAIT);

Reply via email to