Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Prepare vm_physmem[] -> (*vm_physmem)[] migration, s...
details: https://anonhg.NetBSD.org/src/rev/05bda395d3ef
branches: trunk
changeset: 758589:05bda395d3ef
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Nov 10 01:24:46 2010 +0000
description:
Prepare vm_physmem[] -> (*vm_physmem)[] migration, so that physical
segments can be changed at run-time. Pointers are easier to update.
diffstat:
sys/uvm/uvm_page.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r b4e7116c06e7 -r 05bda395d3ef sys/uvm/uvm_page.h
--- a/sys/uvm/uvm_page.h Tue Nov 09 23:07:09 2010 +0000
+++ b/sys/uvm/uvm_page.h Wed Nov 10 01:24:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.h,v 1.61 2010/09/25 01:42:40 matt Exp $ */
+/* $NetBSD: uvm_page.h,v 1.62 2010/11/10 01:24:46 uebayasi Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -255,6 +255,9 @@
* physical memory config is stored in vm_physmem.
*/
+#define VM_PHYSMEM_PTR(i) (&vm_physmem[i])
+#define VM_PHYSDEV_PTR(i) (&vm_physdev[i]) /* XXX not yet */
+
extern struct vm_physseg vm_physmem[VM_PHYSSEG_MAX];
extern int vm_nphysseg;
Home |
Main Index |
Thread Index |
Old Index