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 reason why to have a larger pagefau...



details:   https://anonhg.NetBSD.org/src/rev/9f9a12bd1c6c
branches:  trunk
changeset: 772452:9f9a12bd1c6c
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Jan 04 15:18:57 2012 +0000

description:
No reason why to have a larger pagefault stackframe for lwp0

diffstat:

 sys/arch/usermode/dev/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 84b4742d0a04 -r 9f9a12bd1c6c sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c       Wed Jan 04 15:14:57 2012 +0000
+++ b/sys/arch/usermode/dev/cpu.c       Wed Jan 04 15:18:57 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.60 2012/01/04 15:14:57 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.61 2012/01/04 15:18:57 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.60 2012/01/04 15:14:57 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.61 2012/01/04 15:18:57 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -414,7 +414,7 @@
        memcpy(&lwp0pcb.pcb_trapret_ucp,   &lwp0pcb.pcb_ucp, sizeof(ucontext_t));
 
        /* set up the ucontext for the pagefault */
-       stacksize = 8*PAGE_SIZE;
+       stacksize = 2*PAGE_SIZE;
        stack_pagefault_ucp = malloc(stacksize, M_TEMP, M_WAITOK | M_ZERO);
 
        lwp0pcb.pcb_pagefault_ucp.uc_stack.ss_sp = stack_pagefault_ucp;



Home | Main Index | Thread Index | Old Index