Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2016 01:33:07 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293128 - head/sys/powerpc/booke
Message-ID:  <201601040133.u041X7eM027569@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Mon Jan  4 01:33:07 2016
New Revision: 293128
URL: https://svnweb.freebsd.org/changeset/base/293128

Log:
  Set the cacheline size before calling powerpc_init()
  
  powerpc_init() initializes the mmu.  Since this may clear pages via
  pmap_zero_page(), set the cacheline size before calling into it, so
  pmap_zero_page() has the right cacheline size.  This isn't completely
  necessary now, but will be when 64-bit book-e is completed.

Modified:
  head/sys/powerpc/booke/booke_machdep.c

Modified: head/sys/powerpc/booke/booke_machdep.c
==============================================================================
--- head/sys/powerpc/booke/booke_machdep.c	Mon Jan  4 01:16:32 2016	(r293127)
+++ head/sys/powerpc/booke/booke_machdep.c	Mon Jan  4 01:33:07 2016	(r293128)
@@ -316,8 +316,6 @@ booke_init(uint32_t arg1, uint32_t arg2)
 	else					/* U-Boot */
 		mdp = NULL;
 
-	ret = powerpc_init(dtbp, 0, 0, mdp);
-
 	/* Default to 32 byte cache line size. */
 	switch ((mfpvr()) >> 16) {
 	case FSL_E500mc:
@@ -327,6 +325,8 @@ booke_init(uint32_t arg1, uint32_t arg2)
 		break;
 	}
 
+	ret = powerpc_init(dtbp, 0, 0, mdp);
+
 	/* Enable caches */
 	booke_enable_l1_cache();
 	booke_enable_l2_cache();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601040133.u041X7eM027569>