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 (macp...@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 <compiler.h> > +/* > + * 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 <asm/byteorder.h> > + > +#include <linux/unaligned/le_byteshift.h> > +#include <linux/unaligned/be_byteshift.h> > +#include <linux/unaligned/generic.h> > + > +#endif /* _ASM_NDS_UNALIGNED_H */
cant you just include asm-generic/unaligned.h ? -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot