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
This commit is contained in:
Ruslan Bukin 2018-08-14 16:26:44 +00:00
parent 9aa2d5e4fa
commit b3410bc623
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337769

View File

@ -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