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/c3a1ab2db47f
branches:  netbsd-8
changeset: 434765:c3a1ab2db47f
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 8db2c6b926ec -r c3a1ab2db47f 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