Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc Don't panic if you can't allocate a...



details:   https://anonhg.NetBSD.org/src/rev/a1df7d7f7c64
branches:  trunk
changeset: 779932:a1df7d7f7c64
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 28 15:28:44 2012 +0000

description:
Don't panic if you can't allocate a contiguous stack for system threads.
Just use a mapped a stack.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 5b55acdecc32 -r a1df7d7f7c64 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Thu Jun 28 13:59:55 2012 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Thu Jun 28 15:28:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.96 2012/03/24 17:52:35 matt Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.97 2012/06/28 15:28:44 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.96 2012/03/24 17:52:35 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.97 2012/06/28 15:28:44 matt Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -292,9 +292,7 @@
         */
        error = uvm_pglistalloc(USPACE, 0, ~0UL, 0, 0, &pglist, 1, 1);
        if (error) {
-               if (!system)
-                       return NULL;
-               panic("%s: uvm_pglistalloc failed: %d", __func__, error);
+               return NULL;
        }
 
        /*



Home | Main Index | Thread Index | Old Index