From patchwork Tue Sep 17 12:43:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russ Dill X-Patchwork-Id: 2902501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E79F39F1BF for ; Tue, 17 Sep 2013 13:21:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2E5520121 for ; Tue, 17 Sep 2013 13:21:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 363422031C for ; Tue, 17 Sep 2013 13:20:56 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VLufq-0001QG-A1; Tue, 17 Sep 2013 12:46:37 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VLufA-0004IE-Nu; Tue, 17 Sep 2013 12:45:52 +0000 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VLudv-00045w-0p for linux-arm-kernel@lists.infradead.org; Tue, 17 Sep 2013 12:44:39 +0000 Received: by mail-pd0-f170.google.com with SMTP id x10so5553651pdj.15 for ; Tue, 17 Sep 2013 05:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=RYMElpIxuKh1/DAFqUywHCThwlwy9uXDZ4H4G1EkALo=; b=F09Y/GYojts4bYp/BzlyLAlp5W52l24YaHiYRB5VpmsLbLH5Ht4QDCNguaxiNKLAAT BLGrwEg6ffTIT+wurXF3wJwrsqGxomEDlvINKYAC2mPP4BXtGyDPErBBdpTdqe3CsQL0 2/iILwv55xC0h7h3jKIE7JVqFDIgE/HVg+dVpgZlWuq2j0DK20RdoOMzbbBHpIz+dKZc Dv7ph7KMQrozWF5sL6dn4/8zY63Tf6AppPsrG6Tjcm4vM4tATTuN6KTSFtdHenfxFGga uAkWl3SGV01JEtdnsjhE3+qvuwveEmzlSZYZrXso8+RdghubWEOKov9Q2hMbr4bjffMi RanQ== X-Received: by 10.68.130.1 with SMTP id oa1mr34774436pbb.35.1379421853470; Tue, 17 Sep 2013 05:44:13 -0700 (PDT) Received: from localhost (pool-71-189-49-9.lsanca.fios.verizon.net. [71.189.49.9]) by mx.google.com with ESMTPSA id fa4sm45816817pab.17.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Sep 2013 05:44:12 -0700 (PDT) From: Russ Dill To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [RFC PATCH 10/11] ARM: OMAP2+: AM33XX: Add PIE support for AM33XX Date: Tue, 17 Sep 2013 05:43:36 -0700 Message-Id: <1379421817-15759-11-git-send-email-Russ.Dill@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1379421817-15759-1-git-send-email-Russ.Dill@ti.com> References: <1379421817-15759-1-git-send-email-Russ.Dill@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130917_084435_202972_C7E47669 X-CRM114-Status: GOOD ( 10.33 ) X-Spam-Score: -1.9 (-) Cc: mans@mansr.com, Russell King - ARM Linux , Ard Biesheuvel , linux-kbuild@vger.kernel.org, Shawn Guo , Dave Martin X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This enables CONFIG_PIE for omap2plus_defconfig and adds an am33xx PIE section group. This is necessary for am33xx suspend/resume code as it is written in C. Signed-off-by: Russ Dill --- arch/arm/configs/omap2plus_defconfig | 1 + arch/arm/kernel/pie.lds.S | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index 5d4c9b8..f342f85 100644 --- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -102,6 +102,7 @@ CONFIG_SENSORS_TSL2550=m CONFIG_SENSORS_LIS3_I2C=m CONFIG_BMP085_I2C=m CONFIG_SRAM=y +CONFIG_PIE=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_SCSI_MULTI_LUN=y diff --git a/arch/arm/kernel/pie.lds.S b/arch/arm/kernel/pie.lds.S index 4fd5ac5..92fba61 100644 --- a/arch/arm/kernel/pie.lds.S +++ b/arch/arm/kernel/pie.lds.S @@ -23,6 +23,7 @@ SECTIONS PIE_OVERLAY_START OVERLAY : NOCROSSREFS { + PIE_OVERLAY_SECTION(am33xx) } PIE_OVERLAY_SEND