From patchwork Fri Oct 7 07:38:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 118245 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 496A1B70C9 for ; Fri, 7 Oct 2011 18:39:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B0F2928FB1; Fri, 7 Oct 2011 09:39:33 +0200 (CEST) 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 Yfx0mdXB1EQV; Fri, 7 Oct 2011 09:39:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 502C228FDC; Fri, 7 Oct 2011 09:39:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4239F28FA1 for ; Fri, 7 Oct 2011 09:39:10 +0200 (CEST) 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 Q3Fji6ci1H5S for ; Fri, 7 Oct 2011 09:39:09 +0200 (CEST) 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-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by theia.denx.de (Postfix) with ESMTPS id 2B99028F73 for ; Fri, 7 Oct 2011 09:39:06 +0200 (CEST) Received: by mail-ey0-f172.google.com with SMTP id 22so1978752eye.3 for ; Fri, 07 Oct 2011 00:39:06 -0700 (PDT) Received: by 10.223.85.139 with SMTP id o11mr9098262fal.0.1317973145947; Fri, 07 Oct 2011 00:39:05 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id o22sm11309104fab.11.2011.10.07.00.39.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 00:39:05 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 7 Oct 2011 09:38:58 +0200 Message-Id: <1317973139-24315-4-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1317973139-24315-3-git-send-email-monstr@monstr.eu> References: <1317973139-24315-1-git-send-email-monstr@monstr.eu> <1317973139-24315-2-git-send-email-monstr@monstr.eu> <1317973139-24315-3-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 4/5 v2] microblaze: Fix unaligned.h for endians X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Also support little endian MB. Signed-off-by: Michal Simek Acked-by: Mike Frysinger --- v2: Use asm-generic unaligned code --- arch/microblaze/include/asm/unaligned.h | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h index 785c2e9..6cecbbb 100644 --- a/arch/microblaze/include/asm/unaligned.h +++ b/arch/microblaze/include/asm/unaligned.h @@ -1,16 +1 @@ -#ifndef _ASM_MICROBLAZE_UNALIGNED_H -#define _ASM_MICROBLAZE_UNALIGNED_H - -#ifdef __KERNEL__ - -/* - * The Microblaze can do unaligned accesses itself in big endian mode. - */ -#include -#include - -#define get_unaligned __get_unaligned_be -#define put_unaligned __put_unaligned_be - -#endif /* __KERNEL__ */ -#endif /* _ASM_MICROBLAZE_UNALIGNED_H */ +#include