Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Tell mpc85xx about uvm_hotplug(9)
details: https://anonhg.NetBSD.org/src/rev/cd31542e1839
branches: trunk
changeset: 349818:cd31542e1839
user: cherry <cherry%NetBSD.org@localhost>
date: Sat Dec 24 18:34:31 2016 +0000
description:
Tell mpc85xx about uvm_hotplug(9)
Should fix the evbppc build breakage.
diffstat:
sys/arch/powerpc/booke/booke_pmap.c | 8 ++++----
sys/arch/powerpc/include/booke/pmap.h | 5 +++--
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r 1e585d846e3f -r cd31542e1839 sys/arch/powerpc/booke/booke_pmap.c
--- a/sys/arch/powerpc/booke/booke_pmap.c Sat Dec 24 18:07:31 2016 +0000
+++ b/sys/arch/powerpc/booke/booke_pmap.c Sat Dec 24 18:34:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: booke_pmap.c,v 1.24 2016/07/11 16:06:52 matt Exp $ */
+/* $NetBSD: booke_pmap.c,v 1.25 2016/12/24 18:34:31 cherry Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.24 2016/07/11 16:06:52 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.25 2016/12/24 18:34:31 cherry Exp $");
#include <sys/param.h>
#include <sys/kcore.h>
@@ -190,8 +190,8 @@
* for us. Must do this before uvm_pageboot_alloc()
* can be called.
*/
- pmap_limits.avail_start = vm_physmem[0].start << PGSHIFT;
- pmap_limits.avail_end = vm_physmem[vm_nphysseg - 1].end << PGSHIFT;
+ pmap_limits.avail_start = uvm_physseg_get_start(uvm_physseg_get_first()) << PGSHIFT;
+ pmap_limits.avail_end = uvm_physseg_get_end(uvm_physseg_get_last()) << PGSHIFT;
const size_t max_nsegtabs =
(pmap_round_seg(VM_MAX_KERNEL_ADDRESS)
- pmap_trunc_seg(VM_MIN_KERNEL_ADDRESS)) / NBSEG;
diff -r 1e585d846e3f -r cd31542e1839 sys/arch/powerpc/include/booke/pmap.h
--- a/sys/arch/powerpc/include/booke/pmap.h Sat Dec 24 18:07:31 2016 +0000
+++ b/sys/arch/powerpc/include/booke/pmap.h Sat Dec 24 18:34:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.16 2016/07/11 16:06:52 matt Exp $ */
+/* $NetBSD: pmap.h,v 1.17 2016/12/24 18:34:31 cherry Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -51,6 +51,7 @@
#include <sys/cpu.h>
#include <sys/kcore.h>
#include <uvm/uvm_page.h>
+#include <uvm/uvm_physseg.h>
#ifdef __PMAP_PRIVATE
#include <powerpc/booke/cpuvar.h>
#endif
@@ -151,7 +152,7 @@
struct vm_physseg;
static inline bool
-pmap_md_ok_to_steal_p(const struct vm_physseg *seg, size_t npgs)
+pmap_md_ok_to_steal_p(const uvm_physseg_t bank, size_t npgs)
{
return true;
}
Home |
Main Index |
Thread Index |
Old Index