Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
decode_exc.c File Reference
#include <linux/kernel.h>
#include "float.h"
#include "sgl_float.h"
#include "dbl_float.h"
#include "cnv_float.h"
#include <asm/signal.h>
#include <asm/siginfo.h>

Go to the source code of this file.

Macros

#define Fpustatus_register   Fpu_register[0]
 
#define DOESTRAP   1
 
#define NOTRAP   0
 
#define SIGNALCODE(signal, code)   ((signal) << 24 | (code))
 
#define copropbit   1<<31-2 /* bit position 2 */
 
#define opclass   9 /* bits 21 & 22 */
 
#define df   13 /* bits 17 & 18 */
 
#define twobits   3 /* mask low-order 2 bits */
 
#define fivebits   31 /* mask low-order 5 bits */
 
#define MAX_EXCP_REG   7 /* number of excpeption registers to check */
 
#define Excp_type(index)   Exceptiontype(Fpu_register[index])
 
#define Excp_instr(index)   Instructionfield(Fpu_register[index])
 
#define Clear_excp_register(index)   Allexception(Fpu_register[index]) = 0
 
#define Excp_format()   (current_ir >> ((current_ir>>opclass & twobits)==1 ? df : fmt) & twobits)
 
#define Fpu_sgl(index)   Fpu_register[index*2]
 
#define Fpu_dblp1(index)   Fpu_register[index*2]
 
#define Fpu_dblp2(index)   Fpu_register[(index*2)+1]
 
#define Fpu_quadp1(index)   Fpu_register[index*2]
 
#define Fpu_quadp2(index)   Fpu_register[(index*2)+1]
 
#define Fpu_quadp3(index)   Fpu_register[(index*2)+2]
 
#define Fpu_quadp4(index)   Fpu_register[(index*2)+3]
 
#define update_trap_counts(Fpu_register, aflags, bflags, trap_counts)
 
: Name of the class.

struct class - device classes

: The module owner. : Default attributes of this class. : Default attributes of the devices belong to the class. : Default binary attributes of the devices belong to the class. : The kobject that represents this class and links it into the hierarchy. : Called when a device is added, removed from this class, or a few other things that generate uevents to add the environment variables. : Callback to provide the devtmpfs. : Called to release this class. : Called to release the device. : Used to put the device to sleep mode, usually to a low power state. : Used to bring the device from the sleep mode. : Callbacks so sysfs can detemine namespaces.

#define fmt   11 /* bits 19 & 20 */
 

Functions

u_int decode_fpu (unsigned int Fpu_register[], unsigned int trap_counts[])
 

Macro Definition Documentation

#define Clear_excp_register (   index)    Allexception(Fpu_register[index]) = 0

Definition at line 71 of file decode_exc.c.

#define copropbit   1<<31-2 /* bit position 2 */

Definition at line 60 of file decode_exc.c.

#define df   13 /* bits 17 & 18 */

Definition at line 63 of file decode_exc.c.

#define DOESTRAP   1

Definition at line 57 of file decode_exc.c.

#define Excp_format ( )    (current_ir >> ((current_ir>>opclass & twobits)==1 ? df : fmt) & twobits)

Definition at line 72 of file decode_exc.c.

#define Excp_instr (   index)    Instructionfield(Fpu_register[index])

Definition at line 70 of file decode_exc.c.

#define Excp_type (   index)    Exceptiontype(Fpu_register[index])

Definition at line 69 of file decode_exc.c.

#define fivebits   31 /* mask low-order 5 bits */

Definition at line 65 of file decode_exc.c.

int const char int const char * fmt   11 /* bits 19 & 20 */

Definition at line 62 of file decode_exc.c.

#define Fpu_dblp1 (   index)    Fpu_register[index*2]

Definition at line 78 of file decode_exc.c.

#define Fpu_dblp2 (   index)    Fpu_register[(index*2)+1]

Definition at line 79 of file decode_exc.c.

#define Fpu_quadp1 (   index)    Fpu_register[index*2]

Definition at line 81 of file decode_exc.c.

#define Fpu_quadp2 (   index)    Fpu_register[(index*2)+1]

Definition at line 82 of file decode_exc.c.

#define Fpu_quadp3 (   index)    Fpu_register[(index*2)+2]

Definition at line 83 of file decode_exc.c.

#define Fpu_quadp4 (   index)    Fpu_register[(index*2)+3]

Definition at line 84 of file decode_exc.c.

#define Fpu_sgl (   index)    Fpu_register[index*2]

Definition at line 76 of file decode_exc.c.

#define Fpustatus_register   Fpu_register[0]

Definition at line 54 of file decode_exc.c.

#define MAX_EXCP_REG   7 /* number of excpeption registers to check */

Definition at line 66 of file decode_exc.c.

#define NOTRAP   0

Definition at line 58 of file decode_exc.c.

#define opclass   9 /* bits 21 & 22 */

Definition at line 61 of file decode_exc.c.

#define SIGNALCODE (   signal,
  code 
)    ((signal) << 24 | (code))

Definition at line 59 of file decode_exc.c.

#define twobits   3 /* mask low-order 2 bits */

Definition at line 64 of file decode_exc.c.

#define update_trap_counts (   Fpu_register,
  aflags,
  bflags,
  trap_counts 
)
Value:
{ \
aflags=(Fpu_register[0])>>27; /* assumes zero fill. 32 bit */ \
Fpu_register[0] |= bflags; \
}

Definition at line 98 of file decode_exc.c.

Function Documentation

u_int decode_fpu ( unsigned int  Fpu_register[],
unsigned int  trap_counts[] 
)

Definition at line 104 of file decode_exc.c.