svn commit: r323340 - head/sys/powerpc/mpc85xx

Justin Hibbits jhibbits at FreeBSD.org
Sat Sep 9 02:19:45 UTC 2017


Author: jhibbits
Date: Sat Sep  9 02:19:44 2017
New Revision: 323340
URL: https://svnweb.freebsd.org/changeset/base/323340

Log:
  Add P5021 and P5040 conditions for LAW count check.
  
  P5040/P5021 have the same number of LAWs as P5020.  There may be a better way of
  getting the count from the FDT (fsl,num-laws property on soc/corenet-law or
  soc/ecm-law), but that's not supported everywhere, so we still need this check
  for those other cases.

Modified:
  head/sys/powerpc/mpc85xx/mpc85xx.c

Modified: head/sys/powerpc/mpc85xx/mpc85xx.c
==============================================================================
--- head/sys/powerpc/mpc85xx/mpc85xx.c	Sat Sep  9 02:08:22 2017	(r323339)
+++ head/sys/powerpc/mpc85xx/mpc85xx.c	Sat Sep  9 02:19:44 2017	(r323340)
@@ -96,6 +96,10 @@ law_getmax(void)
 		break;
 	case SVR_P5020:
 	case SVR_P5020E:
+	case SVR_P5021:
+	case SVR_P5021E:
+	case SVR_P5040:
+	case SVR_P5040E:
 		law_max = 32;
 		break;
 	default:


More information about the svn-src-all mailing list