Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 05:38:19 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327417 - head/sys/powerpc/aim
Message-ID:  <201712310538.vBV5cJRr050364@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



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