Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/tls-maxphys]: src/sys/uvm The pagedaemon ca emit write as large as the u...
details: https://anonhg.NetBSD.org/src/rev/ff4d11f53c1e
branches: tls-maxphys
changeset: 852929:ff4d11f53c1e
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Oct 10 16:31:54 2012 +0000
description:
The pagedaemon ca emit write as large as the underlying device's maxphys,
so emergva size needs to be MACHINE_MAXPHYS, MAXPHYS is not enough.
diffstat:
sys/uvm/uvm_pager.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 6bdd96302841 -r ff4d11f53c1e sys/uvm/uvm_pager.c
--- a/sys/uvm/uvm_pager.c Wed Oct 10 16:30:42 2012 +0000
+++ b/sys/uvm/uvm_pager.c Wed Oct 10 16:31:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $ */
+/* $NetBSD: uvm_pager.c,v 1.108.6.1 2012/10/10 16:31:54 bouyer Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.108.6.1 2012/10/10 16:31:54 bouyer Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -95,8 +95,8 @@
KASSERT(!emerginuse);
new_emergva = uvm_km_alloc(kernel_map,
- round_page(MAXPHYS) + ptoa(uvmexp.ncolors), ptoa(uvmexp.ncolors),
- UVM_KMF_VAONLY);
+ round_page(MACHINE_MAXPHYS) + ptoa(uvmexp.ncolors),
+ ptoa(uvmexp.ncolors), UVM_KMF_VAONLY);
KASSERT(new_emergva != 0);
@@ -118,7 +118,7 @@
if (old_emergva)
uvm_km_free(kernel_map, old_emergva,
- round_page(MAXPHYS) + ptoa(old_emerg_ncolors),
+ round_page(MACHINE_MAXPHYS) + ptoa(old_emerg_ncolors),
UVM_KMF_VAONLY);
}
@@ -209,7 +209,7 @@
mutex_exit(&pager_map_wanted_lock);
kva = emergva + ptoa(first_color);
/* The shift implicitly truncates to PAGE_SIZE */
- KASSERT(npages <= (MAXPHYS >> PAGE_SHIFT));
+ KASSERT(npages <= (MACHINE_MAXPHYS >> PAGE_SHIFT));
goto enter;
}
if ((flags & UVMPAGER_MAPIN_WAITOK) == 0) {
Home |
Main Index |
Thread Index |
Old Index