[BACK]Return to unaligned.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / asm-m68knommu

File: [Development] / linux-2.6-xfs / include / asm-m68knommu / Attic / unaligned.h (download)

Revision 1.2, Tue Jun 21 15:50:10 2005 UTC (12 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.1: +1 -9 lines

Merge up to 2.6.12
Merge of 2.6.x-xfs-melb:linux:22920a by kenmcd.

#ifndef __M68K_UNALIGNED_H
#define __M68K_UNALIGNED_H

#include <linux/config.h>

#ifdef CONFIG_COLDFIRE

#include <asm-generic/unaligned.h>

#else
/*
 * The m68k can do unaligned accesses itself. 
 *
 * The strange macros are there to make sure these can't
 * be misused in a way that makes them not work on other
 * architectures where unaligned accesses aren't as simple.
 */

#define get_unaligned(ptr) (*(ptr))
#define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))

#endif

#endif