Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2018 16:26:44 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337769 - head/sys/mips/malta
Message-ID:  <201808141626.w7EGQi5m082303@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Tue Aug 14 16:26:44 2018
New Revision: 337769
URL: https://svnweb.freebsd.org/changeset/base/337769

Log:
  Avoid repeated address calculation for malta_ap_boot.
  
  Submitted by:	"James Clarke" <jrtc4@cam.ac.uk>
  Reviewed by:	br, arichardson
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D16655

Modified:
  head/sys/mips/malta/asm_malta.S

Modified: head/sys/mips/malta/asm_malta.S
==============================================================================
--- head/sys/mips/malta/asm_malta.S	Tue Aug 14 16:25:09 2018	(r337768)
+++ head/sys/mips/malta/asm_malta.S	Tue Aug 14 16:26:44 2018	(r337769)
@@ -73,13 +73,15 @@ LEAF(malta_ap_wait)
 	jal	platform_processor_id
 	nop
 
+	PTR_LA	t1, malta_ap_boot
+
 1:
-	ll	t0, malta_ap_boot
+	ll	t0, 0(t1)
 	bne	v0, t0, 1b
 	nop
 
 	move	t0, zero
-	sc	t0, malta_ap_boot
+	sc	t0, 0(t1)
 
 	beqz	t0, 1b
 	nop



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