diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2018-08-14 16:26:44 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2018-08-14 16:26:44 +0000 |
commit | b3410bc6237946b2a9a08d7c2c68e351fd170d09 (patch) | |
tree | 1b3a9af41df492be369eb3029f5e09e05c680bef /sys/mips/malta | |
parent | 9aa2d5e4fa68d24c7bc917be22cfedc486b0eab3 (diff) | |
download | src-b3410bc6237946b2a9a08d7c2c68e351fd170d09.tar.gz src-b3410bc6237946b2a9a08d7c2c68e351fd170d09.zip |
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
Notes
Notes:
svn path=/head/; revision=337769
Diffstat (limited to 'sys/mips/malta')
-rw-r--r-- | sys/mips/malta/asm_malta.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/mips/malta/asm_malta.S b/sys/mips/malta/asm_malta.S index 5b0397708454..4f8fac223d56 100644 --- a/sys/mips/malta/asm_malta.S +++ b/sys/mips/malta/asm_malta.S @@ -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 |