Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3-0]: src/sys/arch/sparc/sparc Apply patch (requested by fair in ...
details: https://anonhg.NetBSD.org/src/rev/58748e9c46bc
branches: netbsd-3-0
changeset: 579257:58748e9c46bc
user: tron <tron%NetBSD.org@localhost>
date: Wed Jul 12 21:34:34 2006 +0000
description:
Apply patch (requested by fair in ticket #1401):
Avoid panic in memory management on some SPARC systems with QFE cards.
This fixes PR port-sparc/33340 and PR port-sparc/33894.
diffstat:
sys/arch/sparc/sparc/machdep.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 4b0c5c8573e2 -r 58748e9c46bc sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c Wed Jul 12 21:33:07 2006 +0000
+++ b/sys/arch/sparc/sparc/machdep.c Wed Jul 12 21:34:34 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.253 2005/03/09 19:04:45 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.253.4.1 2006/07/12 21:34:34 tron Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.253 2005/03/09 19:04:45 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.253.4.1 2006/07/12 21:34:34 tron Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_sunos.h"
@@ -1790,8 +1790,10 @@
* First, find a region large enough to contain any aligned chunk
*/
oversize = size + align - PAGE_SIZE;
- sva = uvm_km_valloc(kernel_map, oversize);
- if (sva == 0)
+ sva = vm_map_min(kernel_map);
+ if (uvm_map(kernel_map, &sva, oversize, NULL, UVM_UNKNOWN_OFFSET,
+ align, UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE,
+ UVM_ADV_RANDOM, UVM_FLAG_NOWAIT)))
return (0);
/*
Home |
Main Index |
Thread Index |
Old Index