From patchwork Wed Apr 20 13:54:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 8890171 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3F610BF29F for ; Wed, 20 Apr 2016 14:00:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C72920211 for ; Wed, 20 Apr 2016 14:00:49 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6C018201B4 for ; Wed, 20 Apr 2016 14:00:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asseV-00054x-AI; Wed, 20 Apr 2016 13:58:47 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asseT-00054N-4e for xen-devel@lists.xen.org; Wed, 20 Apr 2016 13:58:45 +0000 Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id 18/E3-27787-41B87175; Wed, 20 Apr 2016 13:58:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRWlGSWpSXmKPExsVyMfSOk65wt3i 4Qe8HK4slHxezODB6HN39mymAMYo1My8pvyKBNWPivyVMBZ/ZKo4unMfSwLiWtYuRk0NIYAKj RPPqii5GLg4WgZcsEpvbzzKDOBIC/awSTzdtBnI4gJwYiQ1PXUAaJARqJGaveALVrCIxd1MPI 4TdwyTxdi0niM0moCZx5P1MsLiIgLTEtc+XwWxmgVyJV90tLCC2sICRxPPm7WwgNouAqsSnK0 /B4rwCLhJXp/5kg9glJzHlfjsTiM0p4Crx+NwOZohdLhJ9N48xTmAUWMDIsIpRvTi1qCy1SNd IL6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMjMKgYgGAH4/c/TocYJTmYlER53zSJ hwvxJeWnVGYkFmfEF5XmpBYfYpTh4FCS4L3YCZQTLEpNT61Iy8wBhjdMWoKDR0mEl70LKM1bX JCYW5yZDpE6xWjPseX3tbVMHAt+3AaS26beA5LzJu06xiTEkpeflyolzrsFZKoASFtGaR7cUF g8XmKUlRLmZQQ6U4inILUoN7MEVf4VozgHo5Iw72mQKTyZeSVwu18BncUEdBb/XVGQs0oSEVJ SDYw9MiWeEde7mWsZNpbeYurPKljd/3PxBuG6U0cjjbIs/ZbOvutxv+bX392iH0Wlu9edtj5/ sPzpBY1sudd3Pi/uPZv785i3kihD2eLPyWa2gREvPdSdBbWZiydrTkq1mWxsxG1XN3ud6b57q xpYbjcpVVz77LUzOkXn5nIbDUMu+39LufjXRimxFGckGmoxFxUnAgDgG/M0wgIAAA== X-Env-Sender: van.freenix@gmail.com X-Msg-Ref: server-11.tower-206.messagelabs.com!1461160722!23296027!1 X-Originating-IP: [209.85.220.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 36879 invoked from network); 20 Apr 2016 13:58:43 -0000 Received: from mail-pa0-f66.google.com (HELO mail-pa0-f66.google.com) (209.85.220.66) by server-11.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 20 Apr 2016 13:58:43 -0000 Received: by mail-pa0-f66.google.com with SMTP id vv3so4676614pab.0 for ; Wed, 20 Apr 2016 06:58:43 -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:in-reply-to:references; bh=2Mjc30grI7apTFVVF/JTToycA5bK3BqzJozHbLKtK+A=; b=gghthoyXiZZmynZqLcygQusKohc9bhGbYte4nlAYPidONA6Wnel7A+Qra4xARjGR/k jMFZxLAyCZtYA1L92/a64JKkqEIMCFX3I0bBd5fjuPqZfzU4MBaKv8R5zPKfgQesIKht /p6Z0yypQKQlANgYxspO1KKKWoJYTSsm4n/GsdNk/eif6OByZfgWRFa0CeJJw9WjKEVn 3whDdFAMrdkjpsFSVS4esBxh4Qbl+XFfFEmWCO8T2v1196kx347dhoFkWWhEi7LqBANY ZAEDEG1abdYNtE2rO9+RL9pkH9CeIYLB2uE22cHorNDe/Xxnv5CxxwEPJFNsWPxVisWP b35Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2Mjc30grI7apTFVVF/JTToycA5bK3BqzJozHbLKtK+A=; b=FsOp4flRb8SSL2aMs1iWnudoALJrucGmJnFAa6PPOe5eg2PRzaECArJbi8peQimmj0 KC27NEauRT/1VWUXG1IDp68kt8mpPBprGN+aBVVl3IBLBjCOZx0WNimGmCCEiyBjCDsB TX8twn7t6+BVJNDPGpF8KHbC2RdcsmxB8+5/yc/uojTK5/xfFNLNNX5rp8Yq9dZIPBll m44TIPQoIyTupjJkFCen1YS1zPhUzmUjPT+bY136OSUObckN7pL5qi4sIG+U/QrhutYP PisL/BFdO399mWBP1oeIK9WolYM/OshW4zyWhi8hStOqdggjr7/w4WlJq2Hh78jK9UxG qBdQ== X-Gm-Message-State: AOPr4FWpKNJ7flSwfzmcFKezR2W5SbjVDmkVxdTkFPeqOoaYBhwOxskg2s1wsnLFEt9nKw== X-Received: by 10.66.225.235 with SMTP id rn11mr12350527pac.138.1461160722566; Wed, 20 Apr 2016 06:58:42 -0700 (PDT) Received: from linux-7smt.suse (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id m186sm37990384pfm.29.2016.04.20.06.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Apr 2016 06:58:41 -0700 (PDT) From: Peng Fan To: xen-devel@lists.xen.org Date: Wed, 20 Apr 2016 21:54:24 +0800 Message-Id: <1461160464-2194-2-git-send-email-van.freenix@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1461160464-2194-1-git-send-email-van.freenix@gmail.com> References: <1461160464-2194-1-git-send-email-van.freenix@gmail.com> Cc: van.freenix@gmail.com, Julien Grall , Stefano Stabellini Subject: [Xen-devel] [PATCH 2/2] xen/arm64: use shift operator X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 Use shift operator, but not muliplication. No function change. Signed-off-by: Peng Fan Cc: Stefano Stabellini Cc: Julien Grall --- xen/arch/arm/arm64/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index 05e3db0..ad6e593 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -524,7 +524,7 @@ paging: lsl x2, x2, #THIRD_SHIFT /* 4K aligned paddr of UART */ mov x3, #PT_DEV_L3 orr x2, x2, x3 /* x2 := 4K dev map including UART */ - str x2, [x1, #(FIXMAP_CONSOLE*8)] /* Map it in the first fixmap's slot */ + str x2, [x1, #(FIXMAP_CONSOLE << 3)] /* Map it in the first fixmap's slot */ 1: /* Map fixmap into boot_second */