Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
align.c File Reference
#include <linux/kernel.h>
#include <linux/mm.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/cache.h>
#include <asm/cputable.h>
#include <asm/emulated_ops.h>
#include <asm/switch_to.h>

Go to the source code of this file.

Data Structures

struct  aligninfo
 

Macros

#define IS_XFORM(inst)   (((inst) >> 26) == 31)
 
#define IS_DSFORM(inst)   (((inst) >> 26) >= 56)
 
#define INVALID   { 0, 0 }
 
#define LD   0 /* load */
 
#define ST   1 /* store */
 
#define SE   2 /* sign-extend value, or FP ld/st as word */
 
#define F   4 /* to/from fp regs */
 
#define U   8 /* update index register */
 
#define M   0x10 /* multiple load/store */
 
#define SW   0x20 /* byte swap */
 
#define S   0x40 /* single-precision fp or... */
 
#define SX   0x40 /* ... byte count in XER */
 
#define HARD   0x80 /* string, stwcx. */
 
#define E4   0x40 /* SPE endianness is word */
 
#define E8   0x80 /* SPE endianness is double word */
 
#define SPLT   0x80 /* VSX SPLAT load */
 
#define DCBZ   0x5f /* 8xx/82xx dcbz faults when cache not enabled */
 
#define SWAP(a, b)   (t = (a), (a) = (b), (b) = t)
 
#define REG_BYTE(rp, i)   *((u8 *)(rp) + (i))
 
#define SWIZ_PTR(p)   ((unsigned char __user *)((p) ^ swiz))
 

Functions

int fix_alignment (struct pt_regs *regs)
 

Macro Definition Documentation

#define DCBZ   0x5f /* 8xx/82xx dcbz faults when cache not enabled */

Definition at line 55 of file align.c.

#define E4   0x40 /* SPE endianness is word */

Definition at line 50 of file align.c.

#define E8   0x80 /* SPE endianness is double word */

Definition at line 51 of file align.c.

#define F   4 /* to/from fp regs */

Definition at line 43 of file align.c.

#define HARD   0x80 /* string, stwcx. */

Definition at line 49 of file align.c.

#define INVALID   { 0, 0 }

Definition at line 37 of file align.c.

#define IS_DSFORM (   inst)    (((inst) >> 26) >= 56)

Definition at line 35 of file align.c.

#define IS_XFORM (   inst)    (((inst) >> 26) == 31)

Definition at line 34 of file align.c.

#define LD   0 /* load */

Definition at line 40 of file align.c.

#define M   0x10 /* multiple load/store */

Definition at line 45 of file align.c.

#define REG_BYTE (   rp,
  i 
)    *((u8 *)(rp) + (i))

Definition at line 262 of file align.c.

#define S   0x40 /* single-precision fp or... */

Definition at line 47 of file align.c.

#define SE   2 /* sign-extend value, or FP ld/st as word */

Definition at line 42 of file align.c.

#define SPLT   0x80 /* VSX SPLAT load */

Definition at line 52 of file align.c.

#define ST   1 /* store */

Definition at line 41 of file align.c.

#define SW   0x20 /* byte swap */

Definition at line 46 of file align.c.

#define SWAP (   a,
  b 
)    (t = (a), (a) = (b), (b) = t)

Definition at line 57 of file align.c.

#define SWIZ_PTR (   p)    ((unsigned char __user *)((p) ^ swiz))

Definition at line 265 of file align.c.

#define SX   0x40 /* ... byte count in XER */

Definition at line 48 of file align.c.

#define U   8 /* update index register */

Definition at line 44 of file align.c.

Function Documentation

int fix_alignment ( struct pt_regs regs)

Definition at line 702 of file align.c.