From: guenther Date: Mon, 26 Feb 2018 03:12:41 +0000 (+0000) Subject: Delete pmap_update_2pg(), the #include of , trailing X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=484ac2f4f9c769bde6802a7688cedce4f064f7a7;p=openbsd Delete pmap_update_2pg(), the #include of , trailing whitespace, and the leading underbars of '__inline' ok mlarkin@ --- diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h index c316521f6f3..f133e646008 100644 --- a/sys/arch/amd64/include/pmap.h +++ b/sys/arch/amd64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.64 2018/02/21 19:24:15 guenther Exp $ */ +/* $OpenBSD: pmap.h,v 1.65 2018/02/26 03:12:41 guenther Exp $ */ /* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */ /* @@ -71,7 +71,6 @@ #ifndef _LOCORE #ifdef _KERNEL #include -#include #endif /* _KERNEL */ #include #include @@ -350,10 +349,10 @@ extern long nkptp[], nbpd[], nkptpmax[]; #define pmap_clear_modify(pg) pmap_clear_attrs(pg, PG_M) #define pmap_clear_reference(pg) pmap_clear_attrs(pg, PG_U) -#define pmap_copy(DP,SP,D,L,S) +#define pmap_copy(DP,SP,D,L,S) #define pmap_is_modified(pg) pmap_test_attrs(pg, PG_M) #define pmap_is_referenced(pg) pmap_test_attrs(pg, PG_U) -#define pmap_move(DP,SP,D,L,S) +#define pmap_move(DP,SP,D,L,S) #define pmap_valid_entry(E) ((E) & PG_V) /* is PDE or PTE valid? */ #define pmap_proc_iflush(p,va,len) /* nothing */ @@ -374,7 +373,6 @@ static void pmap_protect(struct pmap *, vaddr_t, void pmap_remove(struct pmap *, vaddr_t, vaddr_t); boolean_t pmap_test_attrs(struct vm_page *, unsigned); static void pmap_update_pg(vaddr_t); -static void pmap_update_2pg(vaddr_t,vaddr_t); void pmap_write_protect(struct pmap *, vaddr_t, vaddr_t, vm_prot_t); void pmap_fix_ept(struct pmap *, vaddr_t); @@ -388,7 +386,7 @@ void pagezero(vaddr_t); int pmap_convert(struct pmap *, int); void pmap_enter_special(vaddr_t, paddr_t, vm_prot_t); -/* +/* * functions for flushing the cache for vaddrs and pages. * these functions are not part of the MI pmap interface and thus * should not be used as such. @@ -406,7 +404,7 @@ void pmap_flush_cache(vaddr_t, vsize_t); * inline functions */ -static __inline void +static inline void pmap_remove_all(struct pmap *pmap) { /* Nothing. */ @@ -417,23 +415,12 @@ pmap_remove_all(struct pmap *pmap) * if hardware doesn't support one-page flushing) */ -__inline static void +inline static void pmap_update_pg(vaddr_t va) { invlpg(va); } -/* - * pmap_update_2pg: flush two pages from the TLB - */ - -__inline static void -pmap_update_2pg(vaddr_t va, vaddr_t vb) -{ - invlpg(va); - invlpg(vb); -} - /* * pmap_page_protect: change the protection of all recorded mappings * of a managed page @@ -443,7 +430,7 @@ pmap_update_2pg(vaddr_t va, vaddr_t vb) * unprotecting a page is done on-demand at fault time. */ -__inline static void +inline static void pmap_page_protect(struct vm_page *pg, vm_prot_t prot) { if ((prot & PROT_WRITE) == 0) { @@ -463,7 +450,7 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot) * unprotecting a page is done on-demand at fault time. */ -__inline static void +inline static void pmap_protect(struct pmap *pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot) { if ((prot & PROT_WRITE) == 0) { @@ -484,13 +471,13 @@ pmap_protect(struct pmap *pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot) * kvtopte: return a pointer to the PTE mapping a kernel VA */ -static __inline pt_entry_t * +static inline pt_entry_t * vtopte(vaddr_t va) { return (PTE_BASE + pl1_i(va)); } -static __inline pt_entry_t * +static inline pt_entry_t * kvtopte(vaddr_t va) { #ifdef LARGEPAGES