From patchwork Fri Sep 27 16:56:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 20672 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EC6E25E77 for ; Fri, 27 Sep 2013 16:57:24 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m11sf2472896yen.5 for ; Fri, 27 Sep 2013 09:57:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=SJsLv1Zi46R2wt4FlD8lDyIpeXFosctvqJFeZGl5aeY=; b=eIOzv5NgM5G2NLztGhiuwxhlzCMqBxCz/TK+KGtw8imBlo7rvSJXIJ9tNsh1bZpIVY F/Y0UoaddRStF9xyvQa3wfVJU7Bo874iQRvUO9Hz4KarxktIhuV3zEOiAkDUHD/Hyx6I dG6/Nbq1OHdZIMebuMATRy4KocwcgFIlniubogPg2STrhBYJF/SURmzu5OhnjF6BwJ3b wu0zT3Q4m5YAroP+SQnTBXMPs5VkSHshcgm4TnsNVRCd/ooP6tNGv82G7ibG3y9vsmft YFqy4AJ0dnUufWFieFSRSY2is6y4z3/895jxO/GyrKK1gHZZe510RQh0KUDio5Ay8f73 JYQA== X-Gm-Message-State: ALoCoQlCV/NOarN1lEWM0L+ZeQc/zf+HuS0zMaMGVnIBifhYWQ5JE+9UrfdgHkenhB3xT/bVXhgq X-Received: by 10.236.80.42 with SMTP id j30mr1278556yhe.29.1380301044264; Fri, 27 Sep 2013 09:57:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.170 with SMTP id z10ls1323724qej.32.gmail; Fri, 27 Sep 2013 09:57:24 -0700 (PDT) X-Received: by 10.58.137.167 with SMTP id qj7mr7128057veb.1.1380301044161; Fri, 27 Sep 2013 09:57:24 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id g2si2050994vch.103.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:57:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db12so2194742veb.36 for ; Fri, 27 Sep 2013 09:56:54 -0700 (PDT) X-Received: by 10.58.133.66 with SMTP id pa2mr7192500veb.18.1380301014073; Fri, 27 Sep 2013 09:56:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp439650vcz; Fri, 27 Sep 2013 09:56:53 -0700 (PDT) X-Received: by 10.180.89.206 with SMTP id bq14mr3436869wib.56.1380301012984; Fri, 27 Sep 2013 09:56:52 -0700 (PDT) Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by mx.google.com with ESMTPS id dd4si3243326wjb.62.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:56:52 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.171 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.171; Received: by mail-we0-f171.google.com with SMTP id t61so3003010wes.30 for ; Fri, 27 Sep 2013 09:56:52 -0700 (PDT) X-Received: by 10.194.77.2 with SMTP id o2mr2331000wjw.57.1380301012454; Fri, 27 Sep 2013 09:56:52 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id q5sm15639406wiz.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 09:56:52 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, tim@xen.org, Julien Grall , Keir Fraser , Jan Beulich Subject: [PATCH v3 1/5] xen: Add macros MB and GB Date: Fri, 27 Sep 2013 17:56:33 +0100 Message-Id: <1380300997-28099-2-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1380300997-28099-1-git-send-email-julien.grall@linaro.org> References: <1380300997-28099-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Julien Grall CC: Keir Fraser CC: Jan Beulich --- Changes in v3: - Add GB - Move to common code (include/xen/config.h) --- xen/include/asm-arm/config.h | 1 - xen/include/xen/config.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 9e395c2..5b7b1a8 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -142,7 +142,6 @@ #define SLOT0_ENTRY_BITS 39 #define SLOT0(slot) (_AT(vaddr_t,slot) << SLOT0_ENTRY_BITS) #define SLOT0_ENTRY_SIZE SLOT0(1) -#define GB(_gb) (_AC(_gb, UL) << 30) #define VMAP_VIRT_START GB(1) #define VMAP_VIRT_END (VMAP_VIRT_START + GB(1) - 1) diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h index a52298e..657c6e5 100644 --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -69,6 +69,9 @@ #define __force #define __bitwise +#define MB(_mb) (_AC(_mb, UL) << 20) +#define GB(_gb) (_AC(_gb, UL) << 30) + #ifndef __ASSEMBLY__ int current_domain_id(void);