Staging
v0.5.1
https://github.com/torvalds/linux
Revision 6fc32179de9e14c542e0b1760e412bc670611c53 authored by Linus Torvalds on 07 August 2005, 18:18:56 UTC, committed by Linus Torvalds on 07 August 2005, 18:18:56 UTC
Last (?) -rc, partly brought on by the aic7xxx performance fixes (ie get
them tested in an -rc release before the real 2.6.13).
1 parent cfc646f
Raw File
Tip revision: 6fc32179de9e14c542e0b1760e412bc670611c53 authored by Linus Torvalds on 07 August 2005, 18:18:56 UTC
Linux 2.6.13-rc6
Tip revision: 6fc3217
unaligned.h
#ifndef __CRIS_UNALIGNED_H
#define __CRIS_UNALIGNED_H

/*
 * CRIS 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
back to top