From patchwork Tue Mar 24 16:10:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 46264 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B6320214B0 for ; Tue, 24 Mar 2015 16:13:44 +0000 (UTC) Received: by widex7 with SMTP id ex7sf303156wid.2 for ; Tue, 24 Mar 2015 09:13:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=KBVu6rasTftRYBHLnOQF+HVCNoIacLAQciPCWD/BXUw=; b=WXgWd9sQaG2kZB5zzbr43h13FtTmb8adFEY6HqHUGpxZw4kpYOpst1kicXuVh+95B0 3GXIA32wqUeF+szchR0W60iecmR264UQI0ODJKKUnKVvsKt9yPIw+v5jX4WjGmJuhh1J VliM/fzhkukGxWSp7jU3UIAG5t8Gj776apo9Qd9dnjN/HUXRzQJTBTXgOldnAQb+h+51 gkDshdlHPLeYdohcOgJc6gMBgtbQ8sO2kQHeJY8Fa6eGt/fHal4E+5y51ziwUkM9s3K5 bH75WHFsJF8UswtUjQa5qbSPWoja2HNpbdp3NVwnDu9e/ObicMkvq0HTlKEt4hjcyBxS Tf8A== X-Gm-Message-State: ALoCoQk2F65Pjm5wVPy3lggj6N+TSYY7FYBpktky77UoXUcHpweuUbfLJnK93X9y0ImNZmrHes1h X-Received: by 10.180.101.39 with SMTP id fd7mr3277547wib.0.1427213623872; Tue, 24 Mar 2015 09:13:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.137 with SMTP id o9ls768914lal.65.gmail; Tue, 24 Mar 2015 09:13:43 -0700 (PDT) X-Received: by 10.152.5.170 with SMTP id t10mr4360736lat.43.1427213623590; Tue, 24 Mar 2015 09:13:43 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id cj11si3189366lbd.113.2015.03.24.09.13.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 09:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by laae1 with SMTP id e1so31422592laa.2 for ; Tue, 24 Mar 2015 09:13:43 -0700 (PDT) X-Received: by 10.152.26.201 with SMTP id n9mr4335758lag.29.1427213623171; Tue, 24 Mar 2015 09:13:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1551674lbq; Tue, 24 Mar 2015 09:13:42 -0700 (PDT) X-Received: by 10.70.140.99 with SMTP id rf3mr8939447pdb.156.1427213621436; Tue, 24 Mar 2015 09:13:41 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id m4si5990133pdm.252.2015.03.24.09.13.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 09:13:41 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaRQt-0002Ax-El; Tue, 24 Mar 2015 16:11:59 +0000 Received: from mail-wi0-f170.google.com ([209.85.212.170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaRQ6-0001kw-F9 for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2015 16:11:11 +0000 Received: by wixw10 with SMTP id w10so1762921wix.0 for ; Tue, 24 Mar 2015 09:10:45 -0700 (PDT) X-Received: by 10.180.99.98 with SMTP id ep2mr26520777wib.61.1427213445891; Tue, 24 Mar 2015 09:10:45 -0700 (PDT) Received: from ards-macbook-pro.local ([90.174.5.112]) by mx.google.com with ESMTPSA id ub1sm6685489wjc.43.2015.03.24.09.10.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Mar 2015 09:10:45 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, nico@linaro.org, linux@arm.linux.org.uk, dave.martin@arm.com, arnd@arndb.de Subject: [PATCH 2/3] ARM: exynos: move resume code to .text section Date: Tue, 24 Mar 2015 17:10:29 +0100 Message-Id: <1427213430-28463-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1427213430-28463-1-git-send-email-ard.biesheuvel@linaro.org> References: <1427213430-28463-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150324_091110_712252_AF1BABDE X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.170 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.170 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This code calls cpu_resume() using a straight branch (b), so now that we have moved cpu_resume() back to .text, this should be moved there as well. Note that all the .data references in the code are already open coded PC relative references. Signed-off-by: Ard Biesheuvel --- arch/arm/mach-exynos/sleep.S | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S index d3583773785e..98fba486fbe5 100644 --- a/arch/arm/mach-exynos/sleep.S +++ b/arch/arm/mach-exynos/sleep.S @@ -23,14 +23,7 @@ #define CPU_MASK 0xff0ffff0 #define CPU_CORTEX_A9 0x410fc090 - /* - * The following code is located into the .data section. This is to - * allow l2x0_regs_phys to be accessed with a relative load while we - * can't rely on any MMU translation. We could have put l2x0_regs_phys - * in the .text section as well, but some setups might insist on it to - * be truly read-only. (Reference from: arch/arm/kernel/sleep.S) - */ - .data + .text .align /*