From patchwork Thu Jun 8 02:16:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoeun Ryu X-Patchwork-Id: 9773749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 76D3860234 for ; Thu, 8 Jun 2017 02:22:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D92428554 for ; Thu, 8 Jun 2017 02:22:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41E2B2855A; Thu, 8 Jun 2017 02:22:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C0F4328554 for ; Thu, 8 Jun 2017 02:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=0LrzrPmCTO57PkdWYq/KBGSne5ENP9/r0tme7E6OcBg=; b=lUv 1QGBV75VnYKNRqO3w4GBjV5nG3UUWAp4mXmgqnBELHk1gL7ER6tF0uEYhRKy4AIxx/CImZqQFXQdv Rg5KOO3YaK2QVlc4Mpbq4n6+7khUMHJJ944PwP9+pW1TZBImmpZnKF+OOp6hiQT5qd/fkhKLG/i1T PumtVr+jBc86MvS9p1hLW75fh4e2t9lx+0S7r5KJzHI0MCPPSekzGR9Jxg3/ycAMGGBSriM1E98Hw av578fypCnkj72CvR3J3FLCDFu4qBJWCYd1bscPRX69ZAjsY4IV016xeekvs0aJHRE3iwI+FA4Aqp iqdt9/8UVOnpP8cC4R1HnTQi8vwsVew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIn5M-0002pt-MX; Thu, 08 Jun 2017 02:22:08 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIn5J-0002p4-DS for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2017 02:22:06 +0000 Received: by mail-pf0-x241.google.com with SMTP id u1so3377906pfg.1 for ; Wed, 07 Jun 2017 19:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FbWTrUL+IZQBOj9hEla7G8TrqFYsapWfjm4wmUw/RYI=; b=q7XWqQxT/vNhn/doGjBP62qZBKE0Fcc+2YIl5p8QxUTizs1DAUEXPh6wZ8SupTVfKi Ox8uTX63Mz5i6u8A/G1SKyy4lbf9RiDfA2tUs8++cBPvUK02wMtVtoC56Tsv8JIUnDWJ oSf3heNs/sVPl3cu4StD3fwSiYsCr4Rz4jX+yd5iRsYvLYLtZh+5XkajZOB737FLyAMW OyE8iP2LMzYCt3DyhbsqsAnipeXC5zDK86dYSdYpkw1h7dLeCbiOqm+HbBlB1X/4hWoc UJH/ypLNzdlB8OMz0L5F6yh8q1sc2Nptxk4JJEqLPE1+WxaBzYHEOPY7e+qDJv0/llOE gyQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FbWTrUL+IZQBOj9hEla7G8TrqFYsapWfjm4wmUw/RYI=; b=lLzMop9qIi8T+O/PblL6M9XjtX+zz9HXJLSqCW4k5wCHu/3U100MBLgBB9FkcMLEwy qgkjFS38zVfvSTSKpMNvsIrmodvv5jQIYDPkdkAAos+eota8M1rHEw5w0cLTou4PLrlB SJJYTDZ4ipgK3dYPQywLYykbjMm2SVlvf8W/9y9ecE0yV4f0l3of/IZemeXC80Q3/ePt RODp2qTqOIlK/3y16ZFM2Wkk8nD53RvvVO6E8aKi77CZQVJLgghwF+bNCXmLzdJbiOL0 ybLdoDiReAlatt8ncKybQDzpAiPHUL+Ua7tT8e+KZYlliwmslK+e6KpBCuuF2ivB1brG NTkA== X-Gm-Message-State: AODbwcAAhuPx3nc+iP3vyXLapAAY1D0oE1xZUH04kf9srnJZNeJ7BO+a HuocFxJrxkrciw== X-Received: by 10.84.237.2 with SMTP id s2mr31254402plk.176.1496888502636; Wed, 07 Jun 2017 19:21:42 -0700 (PDT) Received: from sel-hryu-l2.corp.ad.wrs.com ([61.107.31.52]) by smtp.gmail.com with ESMTPSA id z64sm6172298pfd.20.2017.06.07.19.21.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 19:21:42 -0700 (PDT) From: Hoeun Ryu To: Russell King Subject: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Date: Thu, 8 Jun 2017 11:16:53 +0900 Message-Id: <1496888232-30764-1-git-send-email-hoeun.ryu@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170607_192205_480811_C13A0EE8 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hoeun Ryu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP omap_uart_phys, omap_uart_virt and omap_uart_lsr reside in .data section and it's right implementation. But because of this, we cannot enable CONFIG_DEBUG_UNCOMPRESS. LL_DEBUG and DEBUG_UNCOMPRESS are very useful tools for debugging early boot stage when something goes wrong if you don't have any hardware based debugging tools like a JTAG debugger. This patch is to put the variables into .text section instead only when the DEBUG_LL_INCLUDE file is included in the kernel decompressor, which is only when ZIMAGE is defined. This patch does not change anything when DEBUG_LL_INCLUDE is included in the other kernel parts like arch/arm/kernel/* Signed-off-by: Hoeun Ryu --- arch/arm/include/debug/omap2plus.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S index 6d867ae..6ce6ef9 100644 --- a/arch/arm/include/debug/omap2plus.S +++ b/arch/arm/include/debug/omap2plus.S @@ -58,11 +58,22 @@ #define UART_OFFSET(addr) ((addr) & 0x00ffffff) +/* + * Definition of ZIMAGE is in arch/arm/boot/compressed/Makefile. + * Place the following block in .text section only when this file is + * included by arch/arm/boot/compressed/* to make it possible to + * enable CONFIG_DEBUG_UNCOMPRESS and DEBUG in arch/arm/boot/compressed/head.S + * on OMAP2+ SoCs. + */ +#ifndef ZIMAGE .pushsection .data +#endif omap_uart_phys: .word 0 omap_uart_virt: .word 0 omap_uart_lsr: .word 0 +#ifndef ZIMAGE .popsection +#endif .macro addruart, rp, rv, tmp