From patchwork Fri Feb 8 15:11:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 219174 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9F5032C0082 for ; Sat, 9 Feb 2013 02:14:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C6FE24A150; Fri, 8 Feb 2013 16:14:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 hqmyuMoKazBH; Fri, 8 Feb 2013 16:14:26 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0E0324A10A; Fri, 8 Feb 2013 16:13:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6909C4A10A for ; Fri, 8 Feb 2013 16:13:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 7myUpVZn-qTi for ; Fri, 8 Feb 2013 16:13:52 +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 mail-ea0-f201.google.com (mail-ea0-f201.google.com [209.85.215.201]) by theia.denx.de (Postfix) with ESMTPS id 1265C4A0BE for ; Fri, 8 Feb 2013 16:13:50 +0100 (CET) Received: by mail-ea0-f201.google.com with SMTP id l13so265289eaa.2 for ; Fri, 08 Feb 2013 07:13:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=mUSl1MextAANGHDHUBItbAYYhcczJcpU+ikXjMAJ6Ds=; b=TLBBa1WFVJtnKAJtqghgfPENfC5smvs6kB5js3amul+Q52jrJNKcj1bb5QkYdfJfuW Mn00QGLP8vS0XEddIeEOXkJUQTWayH6TGDOguG6wYk/bKqyjDiij7vNrvRBl0pQfLDwx eV1/wq9MFHUsYiVBIxAYsTTW0CnIZWHUoMtvvcyAw2xTT5nhC1VwZvwfP7NN41XRJMWs m+872r+pJRVZLfH2nFTsQqWCZQUjQCqO3Q3Vxtki4d3Vgda1pnGK/K0wAluAYzaXS4P2 fAfO95tZgw0SgVm0LIHLkhPvR5Aweup3DbWhc5UUJQ8O57X7S3+/zhgw3Y9hbCA7yl4L 31qA== X-Received: by 10.14.184.9 with SMTP id r9mr5363091eem.7.1360336430439; Fri, 08 Feb 2013 07:13:50 -0800 (PST) Received: from corp2gmr1-2.eem.corp.google.com (corp2gmr1-2.eem.corp.google.com [172.25.138.117]) by gmr-mx.google.com with ESMTPS id m6si7541597een.1.2013.02.08.07.13.50 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Fri, 08 Feb 2013 07:13:50 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-2.eem.corp.google.com (Postfix) with ESMTP id 32B421E4048; Fri, 8 Feb 2013 07:13:50 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 902A316074A; Fri, 8 Feb 2013 07:13:49 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 8 Feb 2013 07:11:57 -0800 Message-Id: <1360336339-10703-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1360336339-10703-1-git-send-email-sjg@chromium.org> References: <1360336339-10703-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmV4vpkudL2Em5+OJ/EUkmPrGEK9outiyBz+mEHgeohize1o3iWRn4WhL06hGcedWNbxNRyx9Fs3j5dJXpoXSu+Mv4KNKMVlKtaPz1YRdWhH7P+BaQ+sUx0yPK8wNdjv5wSezkUag7Xw9BT8k8mGAYspPxSQvo77fw8Qm5Fby6hn7NOJZGHeNtzlKHwouDqBQQZO8mJ Cc: Kim Phillips , Graeme Russ , Kumar Gala , Andy Fleming , Tom Rini , Vadim Bendebury , Stefan Roese Subject: [U-Boot] [PATCH v5 01/23] ppc: Add initial memory barrier macros X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de These are available on other architectures, so add them on ppc. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/powerpc/include/asm/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index 1f12c29..1bf12f5 100644 --- a/arch/powerpc/include/asm/io.h +++ b/arch/powerpc/include/asm/io.h @@ -317,4 +317,12 @@ static inline phys_addr_t virt_to_phys(void * vaddr) #endif } +/* + * TODO: The kernel offers some more advanced versions of barriers, it might + * have some advantages to use them instead of the simple one here. + */ +#define dmb() __asm__ __volatile__ ("" : : : "memory") +#define __iormb() dmb() +#define __iowmb() dmb() + #endif