Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Convert #if 0'ed code to uvm_hotplug api
details: https://anonhg.NetBSD.org/src/rev/a194d9235f02
branches: trunk
changeset: 968476:a194d9235f02
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jan 17 22:03:56 2020 +0000
description:
Convert #if 0'ed code to uvm_hotplug api
diffstat:
sys/arch/alpha/alpha/pmap.c | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diffs (62 lines):
diff -r 1983c4422241 -r a194d9235f02 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Fri Jan 17 21:59:05 2020 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Fri Jan 17 22:03:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.265 2020/01/17 21:59:05 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.266 2020/01/17 22:03:56 skrll Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -140,7 +140,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.265 2020/01/17 21:59:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.266 2020/01/17 22:03:56 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1030,8 +1030,8 @@
#if 0
printf(" bank %d: avail_start 0x%"PRIxPADDR", start 0x%"PRIxPADDR", "
- "avail_end 0x%"PRIxPADDR"\n", bank, VM_PHYSMEM_PTR(bank)->avail_start,
- VM_PHYSMEM_PTR(bank)->start, VM_PHYSMEM_PTR(bank)->avail_end);
+ "avail_end 0x%"PRIxPADDR"\n", bank, uvm_physseg_get_avail_start(bank),
+ uvm_physseg_get_start(bank), uvm_physseg_get_avail_end(bank));
#endif
if (uvm_physseg_get_avail_start(bank) != uvm_physseg_get_start(bank) ||
@@ -1040,7 +1040,7 @@
#if 0
printf(" avail_end - avail_start = 0x%"PRIxPADDR"\n",
- VM_PHYSMEM_PTR(bank)->avail_end - VM_PHYSMEM_PTR(bank)->avail_start);
+ uvm_physseg_get_avail_end(bank) - uvm_physseg_get_avail_start(bank));
#endif
if (uvm_physseg_get_avail_end(bank) - uvm_physseg_get_avail_start(bank)
@@ -1098,14 +1098,16 @@
pmap_initialized = true;
#if 0
- for (bank = 0; bank < vm_nphysseg; bank++) {
+ for (uvm_physseg_t bank = uvm_physseg_get_first();
+ uvm_physseg_valid_p(bank);
+ bank = uvm_physseg_get_next(bank)) {
printf("bank %d\n", bank);
- printf("\tstart = 0x%x\n", ptoa(VM_PHYSMEM_PTR(bank)->start));
- printf("\tend = 0x%x\n", ptoa(VM_PHYSMEM_PTR(bank)->end));
- printf("\tavail_start = 0x%x\n",
- ptoa(VM_PHYSMEM_PTR(bank)->avail_start));
- printf("\tavail_end = 0x%x\n",
- ptoa(VM_PHYSMEM_PTR(bank)->avail_end));
+ printf("\tstart = 0x%lx\n", ptoa(uvm_physseg_get_start(bank)));
+ printf("\tend = 0x%lx\n", ptoa(uvm_physseg_get_end(bank)));
+ printf("\tavail_start = 0x%lx\n",
+ ptoa(uvm_physseg_get_avail_start(bank)));
+ printf("\tavail_end = 0x%lx\n",
+ ptoa(uvm_physseg_get_avail_end(bank)));
}
#endif
}
Home |
Main Index |
Thread Index |
Old Index