Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/arch/alpha/alpha Pull up following revision(s) (reque...



details:   https://anonhg.NetBSD.org/src/rev/a6bbac1e7002
branches:  netbsd-8
changeset: 851501:a6bbac1e7002
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue Mar 20 09:15:33 2018 +0000

description:
Pull up following revision(s) (requested by martin in ticket #646):
        sys/arch/alpha/alpha/vm_machdep.c: revision 1.114
Nowadays we can create new kernel threads late after boot, so if we are
unable to find physically continous pages for their uarea, just allocate
them via uvm_km_alloc(), that is: make cpu_uarea_alloc() fail instead
of panic. cpu_uarea_free() already deals with this.
Should fix PR port-alpha/53077.
Discussed with maxv and mrg.

diffstat:

 sys/arch/alpha/alpha/vm_machdep.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r 836f3d215f1e -r a6bbac1e7002 sys/arch/alpha/alpha/vm_machdep.c
--- a/sys/arch/alpha/alpha/vm_machdep.c Tue Mar 20 09:13:15 2018 +0000
+++ b/sys/arch/alpha/alpha/vm_machdep.c Tue Mar 20 09:15:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.113 2014/05/16 19:18:21 matt Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.113.20.1 2018/03/20 09:15:33 bouyer Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.113 2014/05/16 19:18:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.113.20.1 2018/03/20 09:15:33 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -227,11 +227,8 @@
         * direct-mapped.
         */
        error = uvm_pglistalloc(USPACE, 0, ptoa(physmem), 0, 0, &pglist, 1, 1);
-       if (error) {
-               if (!system)
-                       return NULL;
-               panic("%s: uvm_pglistalloc failed: %d", __func__, error);
-       }
+       if (error)
+               return NULL;
 
        /*
         * Get the physical address from the first page.



Home | Main Index | Thread Index | Old Index