diff options
| author | reinoud <reinoud@NetBSD.org> | 2011-12-13 12:25:42 +0000 |
|---|---|---|
| committer | reinoud <reinoud@NetBSD.org> | 2011-12-13 12:25:42 +0000 |
| commit | 76d8b6d34a413610ad2d7dadcedf5cc0d4e12bc8 (patch) | |
| tree | 2bf0d8b9b75a239e53cb910478ea69920d939ceb /sys/arch/usermode/dev/cpu.c | |
| parent | f13d0e1636156a5e0e82ba2b21ef5cc523c749b8 (diff) | |
Just in case ease up the stack space a bit more
Diffstat (limited to 'sys/arch/usermode/dev/cpu.c')
| -rw-r--r-- | sys/arch/usermode/dev/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/usermode/dev/cpu.c b/sys/arch/usermode/dev/cpu.c index 816f2266ddb..7353b9134d8 100644 --- a/sys/arch/usermode/dev/cpu.c +++ b/sys/arch/usermode/dev/cpu.c @@ -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 <jmcneill@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 *l2, void *stack, size_t stacksize, /* 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); |
