Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66203
b: refs/heads/master
c: 9cfde20
h: refs/heads/master
i:
  66201: a2c0cb0
  66199: 4ebacfe
v: v3
  • Loading branch information
Ralf Baechle committed Oct 11, 2007
1 parent 15ceac5 commit 467bfe0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21a151d8ca3aa74ee79f9791a9d4dc370d3e0636
refs/heads/master: 9cfde2028bc487982a4bfb0d20d2ca76366fa80d
27 changes: 21 additions & 6 deletions trunk/include/asm-mips/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1996, 1999, 2000, 2001, 2003 by Ralf Baechle
* Copyright (C) 1999, 2000, 2001 Silicon Graphics, Inc.
* Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
*/
#ifndef _ASM_UNALIGNED_H
#define _ASM_UNALIGNED_H
#ifndef __ASM_GENERIC_UNALIGNED_H
#define __ASM_GENERIC_UNALIGNED_H

#include <asm-generic/unaligned.h>
#include <linux/compiler.h>

#endif /* _ASM_UNALIGNED_H */
#define get_unaligned(ptr) \
({ \
struct __packed { \
typeof(*(ptr)) __v; \
} *__p = (void *) (ptr); \
__p->__v; \
})

#define put_unaligned(val, ptr) \
do { \
struct __packed { \
typeof(*(ptr)) __v; \
} *__p = (void *) (ptr); \
__p->__v = (val); \
} while(0)

#endif /* __ASM_GENERIC_UNALIGNED_H */

0 comments on commit 467bfe0

Please sign in to comment.