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

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Dec 31 05:38:20 UTC 2017


Author: nwhitehorn
Date: Sun Dec 31 05:38:19 2017
New Revision: 327417
URL: https://svnweb.freebsd.org/changeset/base/327417

Log:
  Make sure the first instruction of the low-memory spinloop is in the
  cacheline being invalidated.
  
  MFC after:	1 month

Modified:
  head/sys/powerpc/aim/locore64.S

Modified: head/sys/powerpc/aim/locore64.S
==============================================================================
--- head/sys/powerpc/aim/locore64.S	Sun Dec 31 05:22:26 2017	(r327416)
+++ head/sys/powerpc/aim/locore64.S	Sun Dec 31 05:38:19 2017	(r327417)
@@ -85,8 +85,9 @@ ap_kexec_start:		/* At 0x60 past start, copied to 0x60
 	sync
 	icbi	0,%r0
 	isync
-	ba	0x78			/* Absolute branch to next inst */
+	ba	0x80			/* Absolute branch to next inst */
 
+. = kbootentry + 0x80			/* Aligned to cache line */
 1:	or	31,31,31		/* yield */
 	sync
 	lwz	%r1,0x40(0)		/* Spin on ap_kexec_spin_sem */


More information about the svn-src-head mailing list