From patchwork Tue Jun 13 01:09:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoeun Ryu X-Patchwork-Id: 9782923 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 C893A60212 for ; Tue, 13 Jun 2017 01:15:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB3F6284C7 for ; Tue, 13 Jun 2017 01:15:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF3CE28508; Tue, 13 Jun 2017 01:15:10 +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 08F03284C7 for ; Tue, 13 Jun 2017 01:15:09 +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=KN04C8yX8agYaZzf8MCWjJkpNTzuQSIkHqTIHVok4HA=; b=g3h JANe6oeyXRz+IIvixRX//WeFqlxOLncbzz2ijWMJlKl5ll3V3J4un9P6Yt/lXez8i/9XHbaJMrRTe UC3DbN/bcK11A1WCrW/gEz+Zc1ExKTqNDMtTbT9zfk/BH+hmuJjIiRx21zqw76q3iX4VL0h4bmyhW enc/y2rEU1h/jo+jk89t4XV0oRpNv2e94TsSHevWkCXHq3RxArvNukicv/Dw0QnlAAr+e+nkT9U6V qfurgWfbeRdvykpeumeMeq0VVzzIIF3eIFU5cevtmr0TgXicXZUKzXzIHGR99uWZyDUUnkvSx2Z+m DyPKSjZHFT1S0A5YLgTSuGBz9QY8img==; 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 1dKaQC-00075h-H7; Tue, 13 Jun 2017 01:15:04 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKaQ8-0006mW-Ib for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 01:15:02 +0000 Received: by mail-pg0-x243.google.com with SMTP id v14so15857426pgn.1 for ; Mon, 12 Jun 2017 18:14:36 -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=axrAzNZ6RCJK2bb2Tc/s8fKwgoyIu0NfTZMimD6lOaY=; b=M0dmDr0HVYorFQuyDF14Yoxw/m/+Ax1yW84a296wmsBHaI82kKygbJ/dc2Yh+x0kkR VqHcTt1bbMgs7ofzbS3OjWZKOGGWcMCiEwJoz696M1+7nvTAW05Tdo6itJJDcEflu1Jr qC7YbGMY4RwSL5XJnCf2n3sjU8dTwKsYBzxy1/4IbIiWJFmLiD7WeZoul00MygNJbIaR rNH2zBykNQfzvM/wZZHc8PWbvUfBzFIduF8N0M1P7sxYSUv6yRNB7POZXgiSJWuvSB/M EMhcy2uJUGTDiF5L2fbZJ5cPJM3K+KwYRMeX+KIahHEIgyEpQp527hc3uH0RGcMGWonX DvcQ== 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=axrAzNZ6RCJK2bb2Tc/s8fKwgoyIu0NfTZMimD6lOaY=; b=cZvXSXRszRrQf9gbXR4c4iEzUdxGfSxbFqFyYMdLx5dmQOT2QrznpdQvRziDXD25/g Im3AhBsIhqXGDTPy9LVGAzlPLzQsSjuBg82P6EFdFdw2meBYmTfzF6JNX+jBadlspzx4 yPa5cQNi2VLXgFz9kMBb5XUsUgvlf9cf32p1hCctlks80J2yuDDoTnzrGI9QYI5Quvdo rH3PF6EOMOw4kiNUpY+jbrDhU/msFefoiPCRG+sMiVP9vmCDA5ygxQ59QxEMw4ct1kWl +1GoIk18Z6CNMdHm+fhxuBMmYhQBwfvH2RXBVjvujpwEWdxCYN7vGitmmb1uLl4Tab+B kNCg== X-Gm-Message-State: AODbwcB7CvVckB/2AdFGzIlew6HET07Idus9240gI6QPDoe93BM8cUnq X7fz6p43+cttSA== X-Received: by 10.84.141.36 with SMTP id 33mr57749432plu.99.1497316476004; Mon, 12 Jun 2017 18:14:36 -0700 (PDT) Received: from sel-hryu-l2.corp.ad.wrs.com ([61.107.31.52]) by smtp.gmail.com with ESMTPSA id w26sm24072040pgc.13.2017.06.12.18.14.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 18:14:35 -0700 (PDT) From: Hoeun Ryu To: Tony Lindgren , Russell King Subject: [RESEND PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Date: Tue, 13 Jun 2017 10:09:48 +0900 Message-Id: <1497316206-11110-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-20170612_181500_680016_1AC30B8A X-CRM114-Status: GOOD ( 12.21 ) 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: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hoeun Ryu 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 --- * to mail to relevant recipients, no respond yet from them - TO=Tony Lindgren - CC=linux-omap@vger.kernel.org * indentical to previous patch 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