From patchwork Wed Aug 3 15:38:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73216 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp924054qga; Wed, 3 Aug 2016 08:42:45 -0700 (PDT) X-Received: by 10.98.155.17 with SMTP id r17mr117440994pfd.24.1470238963269; Wed, 03 Aug 2016 08:42:43 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id wm7si9353850pac.130.2016.08.03.08.42.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Aug 2016 08:42:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUyIT-00086o-Qm; Wed, 03 Aug 2016 15:41:29 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUyGU-00054l-Jf for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2016 15:39:31 +0000 Received: by mail-wm0-x230.google.com with SMTP id q128so65659463wma.1 for ; Wed, 03 Aug 2016 08:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fBdIAgGJB/KsBeO5DasC1mYGI2zvVxv3ceIofVMB+bI=; b=aFl/s7J957RqXXvmZn1sQaZ26HA8l0NxqfHkezIGcHKCEieO3EqD61Ped1gSWFn1u5 uiVEX5WMmUpTTSDWjusxDxuEuG8xd1hSscWSVUKUYzw3rOsTUPjw3mC7TLapz8FgEs/4 xXURXrQ4coiHh+zfwX2qVMU1n3ZPRHO+lMWRA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fBdIAgGJB/KsBeO5DasC1mYGI2zvVxv3ceIofVMB+bI=; b=EPAloROyMIEDOBviphgJZkxs9GyJIv4SHQkJNADpp8a550Ik+Y4If0Zm5D/pc3YkQR wRkDbyWBO1xo4BNNpqviGVyr1Urn7uxt7msqEB3NOZo5apTwG0aXS6dZ22VqoWKiNVon hOjDimhpSvvDM9Gna9RJ39ZVDGwc8fazygSKSHFmz5S3wNtRZqfJJstKl1SMMrjkKYxi TCpjTiWOlhXZq0pRifVtUHvRPJ93sLSkZxcEvtGYTY3wTzoxgL3Fvq7uo4Bw0U0hVkpB A3wC5lDDziD67Am/45lrwAoh2TDPEzUlnFfbBOsxeF0NFAgFGWJrDQyJgUsNJviGk3fR Fakg== X-Gm-Message-State: AEkoouubDkaT3G7FjCKlyGdUvVIY0olZrEWhSsZ1toEm3Y8ju78I4GkBrSqIFujd5FiS0CvZ X-Received: by 10.28.113.135 with SMTP id d7mr66121763wmi.43.1470238743955; Wed, 03 Aug 2016 08:39:03 -0700 (PDT) Received: from localhost.localdomain (3.red-81-34-118.dynamicip.rima-tde.net. [81.34.118.3]) by smtp.gmail.com with ESMTPSA id uo4sm8291402wjc.36.2016.08.03.08.39.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 08:39:03 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, nico@linaro.org, arnd@arndb.de, dave.martin@arm.com Subject: [PATCH 5/8] ARM: head: use PC-relative insn sequence for __smp_alt Date: Wed, 3 Aug 2016 17:38:47 +0200 Message-Id: <1470238730-30038-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470238730-30038-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470238730-30038-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160803_083926_949554_EBB7B14C X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Replace the open coded PC relative offset calculations with adr_l invocations. Signed-off-by: Ard Biesheuvel --- arch/arm/kernel/head.S | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 7a14622582de..a9d8f9004dfd 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S @@ -522,19 +522,11 @@ ARM_BE8(rev r0, r0) @ byteswap if big endian retne lr __fixup_smp_on_up: - adr r0, 1f - ldmia r0, {r3 - r5} - sub r3, r0, r3 - add r4, r4, r3 - add r5, r5, r3 + adr_l r4, __smpalt_begin + adr_l r5, __smpalt_end b __do_fixup_smp_on_up ENDPROC(__fixup_smp) - .align -1: .word . - .word __smpalt_begin - .word __smpalt_end - .pushsection .data .globl smp_on_up smp_on_up: