Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Allow cpu_uarea_alloc to return NULL for ...
details: https://anonhg.NetBSD.org/src/rev/8c8c6e1825f6
branches: trunk
changeset: 823831:8c8c6e1825f6
user: skrll <skrll%NetBSD.org@localhost>
date: Wed May 10 12:12:21 2017 +0000
description:
Allow cpu_uarea_alloc to return NULL for non-system LWPs in the non-_LP64
case. That way TLB mapped KVA can be found by uarea_poolpage_alloc.
diffstat:
sys/arch/mips/mips/vm_machdep.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 628498850d88 -r 8c8c6e1825f6 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Wed May 10 12:09:52 2017 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Wed May 10 12:12:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.154 2017/05/10 11:27:14 skrll Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.155 2017/05/10 12:12:21 skrll Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.154 2017/05/10 11:27:14 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.155 2017/05/10 12:12:21 skrll Exp $");
#include "opt_ddb.h"
#include "opt_coredump.h"
@@ -193,10 +193,8 @@
error = uvm_pglistalloc(USPACE, pmap_limits.avail_start, high,
USPACE_ALIGN, 0, &pglist, 1, 1);
if (error) {
-#ifdef _LP64
if (!system)
return NULL;
-#endif
panic("%s: uvm_pglistalloc failed: %d", __func__, error);
}
Home |
Main Index |
Thread Index |
Old Index