From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 31 Aug 2011 10:52:03 -0400 Subject: [U-Boot] [PATCH v10 1/8] nds32: add header files support for nds32 In-Reply-To: <1314786360-31410-1-git-send-email-macpaul@andestech.com> References: <1304342712-17120-10-git-send-email-macpaul@andestech.com> <1314786360-31410-1-git-send-email-macpaul@andestech.com> Message-ID: <201108311052.04793.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, August 31, 2011 06:25:53 Macpaul Lin wrote: > --- /dev/null > +++ b/arch/nds32/include/asm/unaligned.h > @@ -0,0 +1,31 @@ > +/* > + * Copyright (C) 2016 Andes Technology Corporation > + * Copyright (C) 2011 Macpaul Lin (macpaul at andestech.com) > + * > + * This file is subject to the terms and conditions of the GNU General > Public + * License. See the file "COPYING" in the main directory of this > archive + * for more details. > + */ > + > +#ifndef _ASM_NDS_UNALIGNED_H > +#define _ASM_NDS_UNALIGNED_H > + > +#include > +/* > + * Select endianness > + */ > +#ifndef __NDSEB__ > +#define get_unaligned __get_unaligned_le > +#define put_unaligned __put_unaligned_le > +#else > +#define get_unaligned __get_unaligned_be > +#define put_unaligned __put_unaligned_be > +#endif /* __NDSEB__ */ > + > +#include > + > +#include > +#include > +#include > + > +#endif /* _ASM_NDS_UNALIGNED_H */ cant you just include asm-generic/unaligned.h ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110831/dd903403/attachment.pgp