From 7684bf691d28822c2d6166aa9ce2b2599b54668d Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sun, 30 Jun 2019 07:37:48 +0000 Subject: Compute address for ll/sc only once. --- sys/arch/sgi/sgi/locore.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/sgi/sgi/locore.S b/sys/arch/sgi/sgi/locore.S index 46b3109d771..10703adb4a0 100644 --- a/sys/arch/sgi/sgi/locore.S +++ b/sys/arch/sgi/sgi/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.18 2017/06/08 11:47:25 visa Exp $ */ +/* $OpenBSD: locore.S,v 1.19 2019/06/30 07:37:47 visa Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -125,10 +125,11 @@ LEAF(ip27_cpu_spinup_trampoline, 0) LA gp, _gp /* Wait the turn of this CPU. */ -1: ll v0, ip27_spinup_turn + LA v1, ip27_spinup_turn +1: ll v0, 0(v1) bne v0, a0, 1b not v0, zero - sc v0, ip27_spinup_turn + sc v0, 0(v1) beqz v0, 1b nop -- cgit v1.2.3