Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
driver.c File Reference
#include <linux/sched.h>
#include "float.h"
#include "math-emu.h"

Go to the source code of this file.

Data Structures

struct  exc_reg
 

Macros

#define fptpos   31
 
#define fpr1pos   10
 
#define extru(r, pos, len)   (((r) >> (31-(pos))) & (( 1 << (len)) - 1))
 
#define FPUDEBUG   0
 
#define FP0CE_UID(i)   (((i) >> 6) & 3)
 
#define FP0CE_CLASS(i)   (((i) >> 9) & 3)
 
#define FP0CE_SUBOP(i)   (((i) >> 13) & 7)
 
#define FP0CE_SUBOP1(i)   (((i) >> 15) & 7) /* Class 1 subopcode */
 
#define FP0C_FORMAT(i)   (((i) >> 11) & 3)
 
#define FP0E_FORMAT(i)   (((i) >> 11) & 1)
 
#define FPPM_SUBOP(i)   (((i) >> 9) & 0x1f)
 
#define FP2E_SUBOP(i)   (((i) >> 5) & 1)
 
#define FP2E_FORMAT(i)   (((i) >> 11) & 1)
 
#define FPx6_FORMAT(i)   ((i) & 0x1f)
 
#define FPSW_FLAGS(w)   ((w) >> 27)
 
#define FPSW_ENABLE(w)   ((w) & 0x1f)
 
#define FPSW_V   (1<<4)
 
#define FPSW_Z   (1<<3)
 
#define FPSW_O   (1<<2)
 
#define FPSW_U   (1<<1)
 
#define FPSW_I   (1<<0)
 

Functions

int handle_fpe (struct pt_regs *regs)
 

Macro Definition Documentation

#define extru (   r,
  pos,
  len 
)    (((r) >> (31-(pos))) & (( 1 << (len)) - 1))

Definition at line 37 of file driver.c.

#define FP0C_FORMAT (   i)    (((i) >> 11) & 3)

Definition at line 54 of file driver.c.

#define FP0CE_CLASS (   i)    (((i) >> 9) & 3)

Definition at line 51 of file driver.c.

#define FP0CE_SUBOP (   i)    (((i) >> 13) & 7)

Definition at line 52 of file driver.c.

#define FP0CE_SUBOP1 (   i)    (((i) >> 15) & 7) /* Class 1 subopcode */

Definition at line 53 of file driver.c.

#define FP0CE_UID (   i)    (((i) >> 6) & 3)

Definition at line 50 of file driver.c.

#define FP0E_FORMAT (   i)    (((i) >> 11) & 1)

Definition at line 55 of file driver.c.

#define FP2E_FORMAT (   i)    (((i) >> 11) & 1)

Definition at line 62 of file driver.c.

#define FP2E_SUBOP (   i)    (((i) >> 5) & 1)

Definition at line 61 of file driver.c.

#define FPPM_SUBOP (   i)    (((i) >> 9) & 0x1f)

Definition at line 58 of file driver.c.

#define fpr1pos   10

Definition at line 36 of file driver.c.

#define FPSW_ENABLE (   w)    ((w) & 0x1f)

Definition at line 70 of file driver.c.

#define FPSW_FLAGS (   w)    ((w) >> 27)

Definition at line 69 of file driver.c.

#define FPSW_I   (1<<0)

Definition at line 75 of file driver.c.

#define FPSW_O   (1<<2)

Definition at line 73 of file driver.c.

#define FPSW_U   (1<<1)

Definition at line 74 of file driver.c.

#define FPSW_V   (1<<4)

Definition at line 71 of file driver.c.

#define FPSW_Z   (1<<3)

Definition at line 72 of file driver.c.

#define fptpos   31

Definition at line 35 of file driver.c.

#define FPUDEBUG   0

Definition at line 39 of file driver.c.

#define FPx6_FORMAT (   i)    ((i) & 0x1f)

Definition at line 66 of file driver.c.

Function Documentation

int handle_fpe ( struct pt_regs regs)

Definition at line 80 of file driver.c.