socsvn commit: r271083 - in soc2014/op/freebsd-base/sys/amd64: amd64 include

op at FreeBSD.org op at FreeBSD.org
Fri Jul 18 16:01:41 UTC 2014


Author: op
Date: Fri Jul 18 16:01:40 2014
New Revision: 271083
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271083

Log:
  KSP: change pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode) visibility
  
  Signed-off-by: Oliver Pinter <oliver.pntr at gmail.com>
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/kpatch

Modified:
  soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c
  soc2014/op/freebsd-base/sys/amd64/include/pmap.h

Modified: soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c
==============================================================================
--- soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c	Fri Jul 18 15:39:07 2014	(r271082)
+++ soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c	Fri Jul 18 16:01:40 2014	(r271083)
@@ -429,7 +429,6 @@
     vm_page_t m, vm_prot_t prot, vm_page_t mpte, struct rwlock **lockp);
 static void pmap_fill_ptp(pt_entry_t *firstpte, pt_entry_t newpte);
 static int pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte);
-static void pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode);
 static vm_page_t pmap_lookup_pt_page(pmap_t pmap, vm_offset_t va);
 static void pmap_pde_attr(pd_entry_t *pde, int cache_bits, int mask);
 static void pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va,
@@ -1925,7 +1924,7 @@
 	pte_store(pte, pa | X86_PG_RW | X86_PG_V | X86_PG_G);
 }
 
-static __inline void
+__inline void
 pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode)
 {
 	pt_entry_t *pte;

Modified: soc2014/op/freebsd-base/sys/amd64/include/pmap.h
==============================================================================
--- soc2014/op/freebsd-base/sys/amd64/include/pmap.h	Fri Jul 18 15:39:07 2014	(r271082)
+++ soc2014/op/freebsd-base/sys/amd64/include/pmap.h	Fri Jul 18 16:01:40 2014	(r271083)
@@ -380,6 +380,7 @@
 void	pmap_demote_DMAP(vm_paddr_t base, vm_size_t len, boolean_t invalidate);
 void	pmap_init_pat(void);
 void	pmap_kenter(vm_offset_t va, vm_paddr_t pa);
+void	pmap_kenter_attr(vm_offset_t va, vm_paddr_t pa, int mode);
 void	*pmap_kenter_temporary(vm_paddr_t pa, int i);
 vm_paddr_t pmap_kextract(vm_offset_t);
 void	pmap_kremove(vm_offset_t);


More information about the svn-soc-all mailing list