Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev No need for such big stack spaces on l...
details: https://anonhg.NetBSD.org/src/rev/f886e553e398
branches: trunk
changeset: 771979:f886e553e398
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Dec 12 12:20:30 2011 +0000
description:
No need for such big stack spaces on lwp_fork() with the new setup.
diffstat:
sys/arch/usermode/dev/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 51e5f453a4cd -r f886e553e398 sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c Mon Dec 12 11:38:26 2011 +0000
+++ b/sys/arch/usermode/dev/cpu.c Mon Dec 12 12:20:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.48 2011/12/11 20:45:14 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.49 2011/12/12 12:20:30 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_hz.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.48 2011/12/11 20:45:14 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.49 2011/12/12 12:20:30 reinoud Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -326,7 +326,7 @@
/* copy the PCB and its switchframes from parent */
memcpy(pcb2, pcb1, sizeof(struct pcb));
- stacksize = 16*PAGE_SIZE;
+ stacksize = 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);
Home |
Main Index |
Thread Index |
Old Index