Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
unaligned.c File Reference
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/tty.h>
#include <linux/ratelimit.h>
#include <asm/intrinsics.h>
#include <asm/processor.h>
#include <asm/rse.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>

Go to the source code of this file.

Data Structures

struct  load_store_t
 

Macros

#define DPRINT(a...)
 
#define DDUMP(str, vp, len)
 
#define IA64_FIRST_STACKED_GR   32
 
#define IA64_FIRST_ROTATING_FR   32
 
#define SIGN_EXT9   0xffffffffffffff00ul
 
#define IA64_OPCODE_MASK   0x1ef
 
#define IA64_OPCODE_SHIFT   32
 
#define LD_OP   0x080
 
#define LDS_OP   0x081
 
#define LDA_OP   0x082
 
#define LDSA_OP   0x083
 
#define LDBIAS_OP   0x084
 
#define LDACQ_OP   0x085
 
#define LDCCLR_OP   0x088
 
#define LDCNC_OP   0x089
 
#define LDCCLRACQ_OP   0x08a
 
#define ST_OP   0x08c
 
#define STREL_OP   0x08d
 
#define LD_IMM_OP   0x0a0
 
#define LDS_IMM_OP   0x0a1
 
#define LDA_IMM_OP   0x0a2
 
#define LDSA_IMM_OP   0x0a3
 
#define LDBIAS_IMM_OP   0x0a4
 
#define LDACQ_IMM_OP   0x0a5
 
#define LDCCLR_IMM_OP   0x0a8
 
#define LDCNC_IMM_OP   0x0a9
 
#define LDCCLRACQ_IMM_OP   0x0aa
 
#define ST_IMM_OP   0x0ac
 
#define STREL_IMM_OP   0x0ad
 
#define LDF_OP   0x0c0
 
#define LDFS_OP   0x0c1
 
#define LDFA_OP   0x0c2
 
#define LDFSA_OP   0x0c3
 
#define LDFCCLR_OP   0x0c8
 
#define LDFCNC_OP   0x0c9
 
#define STF_OP   0x0cc
 
#define LDF_IMM_OP   0x0e0
 
#define LDFS_IMM_OP   0x0e1
 
#define LDFA_IMM_OP   0x0e2
 
#define LDFSA_IMM_OP   0x0e3
 
#define LDFCCLR_IMM_OP   0x0e8
 
#define LDFCNC_IMM_OP   0x0e9
 
#define STF_IMM_OP   0x0ec
 
#define RPO(x)   ((size_t) &((struct pt_regs *)0)->x)
 
#define RSO(x)   ((size_t) &((struct switch_stack *)0)->x)
 
#define RPT(x)   (RPO(x) << 1)
 
#define RSW(x)   (1| RSO(x)<<1)
 
#define GR_OFFS(x)   (gr_info[x]>>1)
 
#define GR_IN_SW(x)   (gr_info[x] & 0x1)
 
#define FR_OFFS(x)   (fr_info[x]>>1)
 
#define FR_IN_SW(x)   (fr_info[x] & 0x1)
 
#define F(reg)   case reg: ia64_invala_gr(reg); break
 
#define F(reg)   case reg: ia64_invala_fr(reg); break
 

Enumerations

enum  update_t { UPD_IMMEDIATE, UPD_REG }
 

Functions

int die_if_kernel (char *str, struct pt_regs *regs, long err)
 
void ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs)
 

Variables

int no_unaligned_warning
 
int unaligned_dump_stack
 

Macro Definition Documentation

#define DDUMP (   str,
  vp,
  len 
)

Definition at line 49 of file unaligned.c.

#define DPRINT (   a...)

Definition at line 48 of file unaligned.c.

#define F (   reg)    case reg: ia64_invala_gr(reg); break
#define F (   reg)    case reg: ia64_invala_fr(reg); break
#define FR_IN_SW (   x)    (fr_info[x] & 0x1)

Definition at line 207 of file unaligned.c.

#define FR_OFFS (   x)    (fr_info[x]>>1)

Definition at line 206 of file unaligned.c.

#define GR_IN_SW (   x)    (gr_info[x] & 0x1)

Definition at line 204 of file unaligned.c.

#define GR_OFFS (   x)    (gr_info[x]>>1)

Definition at line 203 of file unaligned.c.

#define IA64_FIRST_ROTATING_FR   32

Definition at line 53 of file unaligned.c.

#define IA64_FIRST_STACKED_GR   32

Definition at line 52 of file unaligned.c.

#define IA64_OPCODE_MASK   0x1ef

Definition at line 79 of file unaligned.c.

#define IA64_OPCODE_SHIFT   32

Definition at line 80 of file unaligned.c.

#define LD_IMM_OP   0x0a0

Definition at line 119 of file unaligned.c.

#define LD_OP   0x080

Definition at line 90 of file unaligned.c.

#define LDA_IMM_OP   0x0a2

Definition at line 121 of file unaligned.c.

#define LDA_OP   0x082

Definition at line 92 of file unaligned.c.

#define LDACQ_IMM_OP   0x0a5

Definition at line 124 of file unaligned.c.

#define LDACQ_OP   0x085

Definition at line 95 of file unaligned.c.

#define LDBIAS_IMM_OP   0x0a4

Definition at line 123 of file unaligned.c.

#define LDBIAS_OP   0x084

Definition at line 94 of file unaligned.c.

#define LDCCLR_IMM_OP   0x0a8

Definition at line 126 of file unaligned.c.

#define LDCCLR_OP   0x088

Definition at line 97 of file unaligned.c.

#define LDCCLRACQ_IMM_OP   0x0aa

Definition at line 128 of file unaligned.c.

#define LDCCLRACQ_OP   0x08a

Definition at line 99 of file unaligned.c.

#define LDCNC_IMM_OP   0x0a9

Definition at line 127 of file unaligned.c.

#define LDCNC_OP   0x089

Definition at line 98 of file unaligned.c.

#define LDF_IMM_OP   0x0e0

Definition at line 156 of file unaligned.c.

#define LDF_OP   0x0c0

Definition at line 136 of file unaligned.c.

#define LDFA_IMM_OP   0x0e2

Definition at line 158 of file unaligned.c.

#define LDFA_OP   0x0c2

Definition at line 138 of file unaligned.c.

#define LDFCCLR_IMM_OP   0x0e8

Definition at line 161 of file unaligned.c.

#define LDFCCLR_OP   0x0c8

Definition at line 141 of file unaligned.c.

#define LDFCNC_IMM_OP   0x0e9

Definition at line 162 of file unaligned.c.

#define LDFCNC_OP   0x0c9

Definition at line 142 of file unaligned.c.

#define LDFS_IMM_OP   0x0e1

Definition at line 157 of file unaligned.c.

#define LDFS_OP   0x0c1

Definition at line 137 of file unaligned.c.

#define LDFSA_IMM_OP   0x0e3

Definition at line 159 of file unaligned.c.

#define LDFSA_OP   0x0c3

Definition at line 139 of file unaligned.c.

#define LDS_IMM_OP   0x0a1

Definition at line 120 of file unaligned.c.

#define LDS_OP   0x081

Definition at line 91 of file unaligned.c.

#define LDSA_IMM_OP   0x0a3

Definition at line 122 of file unaligned.c.

#define LDSA_OP   0x083

Definition at line 93 of file unaligned.c.

#define RPO (   x)    ((size_t) &((struct pt_regs *)0)->x)

Definition at line 197 of file unaligned.c.

#define RPT (   x)    (RPO(x) << 1)

Definition at line 200 of file unaligned.c.

#define RSO (   x)    ((size_t) &((struct switch_stack *)0)->x)

Definition at line 198 of file unaligned.c.

#define RSW (   x)    (1| RSO(x)<<1)

Definition at line 201 of file unaligned.c.

#define SIGN_EXT9   0xffffffffffffff00ul

Definition at line 54 of file unaligned.c.

#define ST_IMM_OP   0x0ac

Definition at line 129 of file unaligned.c.

#define ST_OP   0x08c

Definition at line 100 of file unaligned.c.

#define STF_IMM_OP   0x0ec

Definition at line 163 of file unaligned.c.

#define STF_OP   0x0cc

Definition at line 144 of file unaligned.c.

#define STREL_IMM_OP   0x0ad

Definition at line 130 of file unaligned.c.

#define STREL_OP   0x08d

Definition at line 101 of file unaligned.c.

Enumeration Type Documentation

enum update_t
Enumerator:
UPD_IMMEDIATE 
UPD_REG 

Definition at line 180 of file unaligned.c.

Function Documentation

int die_if_kernel ( char str,
struct pt_regs regs,
long  err 
)

Definition at line 243 of file traps.c.

void ia64_handle_unaligned ( unsigned long  ifa,
struct pt_regs regs 
)

Definition at line 1292 of file unaligned.c.

Variable Documentation

int no_unaligned_warning

Definition at line 62 of file unaligned.c.

int unaligned_dump_stack

Definition at line 63 of file unaligned.c.