Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Add virtual_start to pmap_limits. This allows ...
details: https://anonhg.NetBSD.org/src/rev/cfeaa97fd22c
branches: trunk
changeset: 338834:cfeaa97fd22c
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 11 05:27:07 2015 +0000
description:
Add virtual_start to pmap_limits. This allows MD to steal address space
before pmap_bootstrap.
diffstat:
sys/uvm/pmap/pmap.c | 12 +++++++-----
sys/uvm/pmap/pmap.h | 3 ++-
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (57 lines):
diff -r 832f992f9e64 -r cfeaa97fd22c sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Thu Jun 11 05:22:55 2015 +0000
+++ b/sys/uvm/pmap/pmap.c Thu Jun 11 05:27:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.11 2015/02/03 10:25:53 nonaka Exp $ */
+/* $NetBSD: pmap.c,v 1.12 2015/06/11 05:27:07 matt Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.11 2015/02/03 10:25:53 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.12 2015/06/11 05:27:07 matt Exp $");
/*
* Manages physical address maps.
@@ -214,7 +214,9 @@
struct pmap * const kernel_pmap_ptr = &kernel_pmap_store.kernel_pmap;
-struct pmap_limits pmap_limits;
+struct pmap_limits pmap_limits = {
+ .virtual_start = VM_MIN_KERNEL_ADDRESS,
+};
#ifdef UVMHIST
static struct kern_history_ent pmapexechistbuf[10000];
@@ -351,8 +353,8 @@
pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
{
- *vstartp = VM_MIN_KERNEL_ADDRESS;
- *vendp = VM_MAX_KERNEL_ADDRESS;
+ *vstartp = pmap_limits.virtual_start;
+ *vendp = pmap_limits.virtual_end;
}
vaddr_t
diff -r 832f992f9e64 -r cfeaa97fd22c sys/uvm/pmap/pmap.h
--- a/sys/uvm/pmap/pmap.h Thu Jun 11 05:22:55 2015 +0000
+++ b/sys/uvm/pmap/pmap.h Thu Jun 11 05:27:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.4 2014/03/18 18:20:44 riastradh Exp $ */
+/* $NetBSD: pmap.h,v 1.5 2015/06/11 05:27:07 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -148,6 +148,7 @@
struct pmap_limits {
paddr_t avail_start;
paddr_t avail_end;
+ vaddr_t virtual_start;
vaddr_t virtual_end;
};
Home |
Main Index |
Thread Index |
Old Index