From patchwork Thu Aug 14 05:31:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kpark3469@gmail.com X-Patchwork-Id: 4722191 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 A00C19F375 for ; Thu, 14 Aug 2014 05:34:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 968422017E for ; Thu, 14 Aug 2014 05:34:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BEC952017A for ; Thu, 14 Aug 2014 05:34:21 +0000 (UTC) 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 1XHneD-0004BT-GB; Thu, 14 Aug 2014 05:32:25 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XHneB-00048X-RT for linux-arm-kernel@lists.infradead.org; Thu, 14 Aug 2014 05:32:24 +0000 Received: by mail-pa0-f41.google.com with SMTP id rd3so982457pab.28 for ; Wed, 13 Aug 2014 22:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Hi6TYM+6/JYwZEMNWh0ZfQHBKgIxDTr2uqIoczNAUiI=; b=ZXVoF7NMyV7NwzUZBXMkYwI0Aju+HlP89ovm77bZE6ToTKn8wjp5BN04aYA9rvYlfY IN9Iog0aH3DO3xUQF5IdV2IjdkB1Njmn9gnIE0Xv0ZugQIaT6hDscbhKqQb1gBlxXTJV EzWAqYe6WQDcSdB8k8RUmavxhaO0fbivK3DhMugx4tgW8Vkjdjeh2pkP5d69AJJLqVaW 6pX9V1wkcP3GwheBt8IJc6ySeF9OFleCchvdwfTp3DbbVp1dI/5y+l7tVyzOtgDQStNv 9IE5zOofyZ0bpFD8ycsBNzYg4F4aNTU9OGabKfHPMY33OM8ttJK8hBZOw1aDKKIAng8T iBJg== X-Received: by 10.67.3.234 with SMTP id bz10mr2039762pad.111.1407994322965; Wed, 13 Aug 2014 22:32:02 -0700 (PDT) Received: from SEL-KPARK-D2.wrs.com ([61.107.31.52]) by mx.google.com with ESMTPSA id p8sm5911656pdm.36.2014.08.13.22.32.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Aug 2014 22:32:02 -0700 (PDT) From: kpark3469@gmail.com To: linux@arm.linux.org.uk Subject: [PATCH] ARM: compressed/head.S: use addruart properly Date: Thu, 14 Aug 2014 14:31:44 +0900 Message-Id: <1407994304-19979-1-git-send-email-kpark3469@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140813_223223_911786_469F228F X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.6 (/) Cc: nicolas.pitre@linaro.org, keun-o.park@windriver.com, heiko@sntech.de, linux-kernel@vger.kernel.org, ben.dooks@codethink.co.uk, linux-arm-kernel@lists.infradead.org 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 From: Sahara This patch fixes compile error in compressed/head.S, when DEBUG is defined. Since addruart macro accepts 3 params, rp, rv, and tmp, loadsp macro also needs to be fixed. Or you will meet the following error messages: Error: ARM register expected -- `mov ,#(5<<1)' Error: shift expression expected -- `add r3,r3,' Signed-off-by: Sahara --- arch/arm/boot/compressed/head.S | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 413fd94..9f1a6cd 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S @@ -24,19 +24,19 @@ #if defined(CONFIG_DEBUG_ICEDCC) #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) - .macro loadsp, rb, tmp + .macro loadsp, rp, rv, tmp .endm .macro writeb, ch, rb mcr p14, 0, \ch, c0, c5, 0 .endm #elif defined(CONFIG_CPU_XSCALE) - .macro loadsp, rb, tmp + .macro loadsp, rp, rv, tmp .endm .macro writeb, ch, rb mcr p14, 0, \ch, c8, c0, 0 .endm #else - .macro loadsp, rb, tmp + .macro loadsp, rp, rv, tmp .endm .macro writeb, ch, rb mcr p14, 0, \ch, c1, c0, 0 @@ -52,17 +52,17 @@ .endm #if defined(CONFIG_ARCH_SA1100) - .macro loadsp, rb, tmp - mov \rb, #0x80000000 @ physical base address + .macro loadsp, rp, rv, tmp + mov \rp, #0x80000000 @ physical base address #ifdef CONFIG_DEBUG_LL_SER3 - add \rb, \rb, #0x00050000 @ Ser3 + add \rp, \rp, #0x00050000 @ Ser3 #else - add \rb, \rb, #0x00010000 @ Ser1 + add \rp, \rp, #0x00010000 @ Ser1 #endif .endm #else - .macro loadsp, rb, tmp - addruart \rb, \tmp + .macro loadsp, rp, rv, tmp + addruart \rp, \rv, \tmp .endm #endif #endif @@ -1209,7 +1209,7 @@ phex: adr r3, phexbuf b 1b @ puts corrupts {r0, r1, r2, r3} -puts: loadsp r3, r1 +puts: loadsp r3, r2, r1 1: ldrb r2, [r0], #1 teq r2, #0 moveq pc, lr @@ -1225,9 +1225,9 @@ puts: loadsp r3, r1 mov pc, lr @ putc corrupts {r0, r1, r2, r3} putc: + loadsp r3, r2, r1 mov r2, r0 mov r0, #0 - loadsp r3, r1 b 2b @ memdump corrupts {r0, r1, r2, r3, r10, r11, r12, lr}