svn commit: r326208 - head/sys/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Nov 25 22:05:07 UTC 2017


Author: nwhitehorn
Date: Sat Nov 25 22:05:05 2017
New Revision: 326208
URL: https://svnweb.freebsd.org/changeset/base/326208

Log:
  Make n_slbs public in a more straightforward way. Some platforms (like
  PowerNV) use firmware-assisted mechanisms to discover it and need access
  to the variable.
  
  MFC after:	3 weeks

Modified:
  head/sys/powerpc/aim/aim_machdep.c
  head/sys/powerpc/aim/mmu_oea64.h

Modified: head/sys/powerpc/aim/aim_machdep.c
==============================================================================
--- head/sys/powerpc/aim/aim_machdep.c	Sat Nov 25 22:03:25 2017	(r326207)
+++ head/sys/powerpc/aim/aim_machdep.c	Sat Nov 25 22:05:05 2017	(r326208)
@@ -130,7 +130,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/ofw/openfirm.h>
 
 #ifdef __powerpc64__
-extern int n_slbs;
+#include "mmu_oea64.h"
 #endif
 
 #ifndef __powerpc64__

Modified: head/sys/powerpc/aim/mmu_oea64.h
==============================================================================
--- head/sys/powerpc/aim/mmu_oea64.h	Sat Nov 25 22:03:25 2017	(r326207)
+++ head/sys/powerpc/aim/mmu_oea64.h	Sat Nov 25 22:05:05 2017	(r326208)
@@ -81,6 +81,7 @@ extern int		moea64_large_page_shift;
 extern uint64_t		moea64_large_page_size;
 extern u_int		moea64_pteg_count;
 extern u_int		moea64_pteg_mask;
+extern int		n_slbs;
 
 #endif /* _POWERPC_AIM_MMU_OEA64_H */
 


More information about the svn-src-all mailing list