From patchwork Fri Jan 27 07:15:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 92557 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp108027qgi; Thu, 26 Jan 2017 23:16:28 -0800 (PST) X-Received: by 10.28.69.202 with SMTP id l71mr1844001wmi.68.1485501388759; Thu, 26 Jan 2017 23:16:28 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id w143si1773682wme.71.2017.01.26.23.16.28; Thu, 26 Jan 2017 23:16:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34098A75DC; Fri, 27 Jan 2017 08:16:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XmpU-8MVFlaE; Fri, 27 Jan 2017 08:16:26 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A0FF4A997; Fri, 27 Jan 2017 08:16:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32CC4A75C9 for ; Fri, 27 Jan 2017 08:16:14 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2h9QTkFWuonl for ; Fri, 27 Jan 2017 08:16:13 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by theia.denx.de (Postfix) with ESMTPS id 131F94A08A for ; Fri, 27 Jan 2017 08:16:09 +0100 (CET) Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v0R7FbTA029419; Fri, 27 Jan 2017 16:15:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v0R7FbTA029419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1485501338; bh=9lRvimAabLxF3DifJJdIM7GTorGpwhmHtVrSYkrxSOI=; h=From:To:Cc:Subject:Date:From; b=bPS5spbSr/v+RkTONFiPk6Qd0+DY0XgtjcFsDYc42UqtHYf60/N/s2hQMq1EKrx7k hr5Gc6KoHyBnmzwo8FxR9NplB8f/UEplOEcbobqNRBn33+gPrZgRl5uq20NRPjY2Nl KhjzeXv4IrbONxGc6BTVD428ppQTJl4c6UhrIOUr9Abmg1hsFL7hhk7UxOcXsBEHza MbuS3AiE7c87r1hC5NUYPgIxhbpJFoTcSMmMtkalO2h+qDslDpESlFSvTOrio/GBSD R0LTYUl8OvnUFHoBpRgZrjic/8s8KgZZrlziEtTi+9LtvweUOsxIVYhOfFu1IHfKtQ zT9sZjZ/deijQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 27 Jan 2017 16:15:29 +0900 Message-Id: <1485501330-9718-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Albert Aribaud , Jeremy Hunt Subject: [U-Boot] [PATCH 1/2] arm64: use xzr to zero-out the bss section X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" AArch64 has a zero register (xzr). Use it instead of x2. Signed-off-by: Masahiro Yamada --- arch/arm/lib/crt0_64.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Simon Glass diff --git a/arch/arm/lib/crt0_64.S b/arch/arm/lib/crt0_64.S index 91b19e0..f8e84b2 100644 --- a/arch/arm/lib/crt0_64.S +++ b/arch/arm/lib/crt0_64.S @@ -117,9 +117,8 @@ relocation_return: */ ldr x0, =__bss_start /* this is auto-relocated! */ ldr x1, =__bss_end /* this is auto-relocated! */ - mov x2, #0 clear_loop: - str x2, [x0] + str xzr, [x0] add x0, x0, #8 cmp x0, x1 b.lo clear_loop