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 Default to normal uvm_uarea_alloc i...



details:   https://anonhg.NetBSD.org/src/rev/f4b55582ad27
branches:  trunk
changeset: 766787:f4b55582ad27
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 02 00:38:29 2011 +0000

description:
Default to normal uvm_uarea_alloc if we can't allocate one ourselves.

diffstat:

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

diffs (36 lines):

diff -r 51213fb27701 -r f4b55582ad27 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Jul 02 00:22:06 2011 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Jul 02 00:38:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.90 2011/06/20 05:50:39 matt Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.91 2011/07/02 00:38:29 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.90 2011/06/20 05:50:39 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.91 2011/07/02 00:38:29 matt Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -298,7 +298,7 @@
        error = uvm_pglistalloc(USPACE, 0, ptoa(physmem), 0, 0, &pglist, 1, 1);
        if (error) {
                if (!system)
-                       return NULL;
+                       return (void *)uvm_uarea_alloc();
                panic("%s: uvm_pglistalloc failed: %d", __func__, error);
        }
 
@@ -315,7 +315,7 @@
 
        return (void *)(uintptr_t)PMAP_MAP_POOLPAGE(pa);
 #else
-       return NULL;
+       return (void *)uvm_uarea_alloc();
 #endif
 }
 



Home | Main Index | Thread Index | Old Index