From ceba797a838d399a5332f64316e1f93e9a62a6b6 Mon Sep 17 00:00:00 2001 From: tls Date: Mon, 13 Jun 2011 04:30:40 +0000 Subject: [PATCH] Fix Xen kernel builds (pmap_is_curpmap can't be static) --- sys/arch/x86/include/pmap.h | 4 +++- sys/arch/x86/x86/pmap.c | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/arch/x86/include/pmap.h b/sys/arch/x86/include/pmap.h index bb8d6023aac6..29d22d642e67 100644 --- a/sys/arch/x86/include/pmap.h +++ b/sys/arch/x86/include/pmap.h @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.h,v 1.39 2011/06/12 03:35:50 rmind Exp $ */ +/* $NetBSD: pmap.h,v 1.40 2011/06/13 04:30:40 tls Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -243,6 +243,8 @@ int pmap_pdes_invalid(vaddr_t, pd_entry_t * const *, pd_entry_t *); u_int x86_mmap_flags(paddr_t); +bool pmap_is_curpmap(struct pmap *); + vaddr_t reserve_dumppages(vaddr_t); /* XXX: not a pmap fn */ typedef enum tlbwhy { diff --git a/sys/arch/x86/x86/pmap.c b/sys/arch/x86/x86/pmap.c index 31c50db2eb86..6ca745e5b64a 100644 --- a/sys/arch/x86/x86/pmap.c +++ b/sys/arch/x86/x86/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.122 2011/06/12 03:35:50 rmind Exp $ */ +/* $NetBSD: pmap.c,v 1.123 2011/06/13 04:30:40 tls Exp $ */ /*- * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc. @@ -171,7 +171,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.122 2011/06/12 03:35:50 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.123 2011/06/13 04:30:40 tls Exp $"); #include "opt_user_ldt.h" #include "opt_lockdebug.h" @@ -564,7 +564,6 @@ static void pmap_freepage(struct pmap *, struct vm_page *, int); static void pmap_free_ptp(struct pmap *, struct vm_page *, vaddr_t, pt_entry_t *, pd_entry_t * const *); -static bool pmap_is_curpmap(struct pmap *); static bool pmap_is_active(struct pmap *, struct cpu_info *, bool); static bool pmap_remove_pte(struct pmap *, struct vm_page *, pt_entry_t *, vaddr_t, @@ -676,7 +675,7 @@ pv_pte_next(struct pmap_page *pp, struct pv_pte *pvpte) * of course the kernel is always loaded */ -inline static bool +bool pmap_is_curpmap(struct pmap *pmap) { #if defined(XEN) && defined(__x86_64__)