Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
fpu_system.h File Reference
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>

Go to the source code of this file.

Macros

#define LDT_DESCRIPTOR(s)   (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
 
#define SEG_D_SIZE(x)   ((x).b & (3 << 21))
 
#define SEG_G_BIT(x)   ((x).b & (1 << 23))
 
#define SEG_GRANULARITY(x)   (((x).b & (1 << 23)) ? 4096 : 1)
 
#define SEG_286_MODE(x)   ((x).b & ( 0xff000000 | 0xf0000 | (1 << 23)))
 
#define SEG_BASE_ADDR(s)
 
#define SEG_LIMIT(s)   (((s).b & 0xff0000) | ((s).a & 0xffff))
 
#define SEG_EXECUTE_ONLY(s)   (((s).b & ((1 << 11) | (1 << 9))) == (1 << 11))
 
#define SEG_WRITE_PERM(s)   (((s).b & ((1 << 11) | (1 << 9))) == (1 << 9))
 
#define SEG_EXPAND_DOWN(s)
 
#define I387   (current->thread.fpu.state)
 
#define FPU_info   (I387->soft.info)
 
#define FPU_CS   (*(unsigned short *) &(FPU_info->regs->cs))
 
#define FPU_SS   (*(unsigned short *) &(FPU_info->regs->ss))
 
#define FPU_DS   (*(unsigned short *) &(FPU_info->regs->ds))
 
#define FPU_EAX   (FPU_info->regs->ax)
 
#define FPU_EFLAGS   (FPU_info->regs->flags)
 
#define FPU_EIP   (FPU_info->regs->ip)
 
#define FPU_ORIG_EIP   (FPU_info->___orig_eip)
 
#define FPU_lookahead   (I387->soft.lookahead)
 
#define no_ip_update   (*(u_char *)&(I387->soft.no_update))
 
#define FPU_rm   (*(u_char *)&(I387->soft.rm))
 
#define access_limit   (*(u_char *)&(I387->soft.alimit))
 
#define partial_status   (I387->soft.swd)
 
#define control_word   (I387->soft.cwd)
 
#define fpu_tag_word   (I387->soft.twd)
 
#define registers   (I387->soft.st_space)
 
#define top   (I387->soft.ftop)
 
#define instruction_address   (*(struct address *)&I387->soft.fip)
 
#define operand_address   (*(struct address *)&I387->soft.foo)
 
#define FPU_access_ok(x, y, z)
 
#define FPU_abort   math_abort(FPU_info, SIGSEGV)
 
#define FPU_code_access_ok(z)   FPU_access_ok(VERIFY_READ,(void __user *)FPU_EIP,z)
 
#define FPU_get_user(x, y)   get_user((x),(y))
 
#define FPU_put_user(x, y)   put_user((x),(y))
 

Macro Definition Documentation

#define access_limit   (*(u_char *)&(I387->soft.alimit))

Definition at line 54 of file fpu_system.h.

#define control_word   (I387->soft.cwd)

Definition at line 57 of file fpu_system.h.

#define FPU_abort   math_abort(FPU_info, SIGSEGV)

Definition at line 67 of file fpu_system.h.

#define FPU_access_ok (   x,
  y,
 
)
Value:
if ( !access_ok(x,y,z) ) \
math_abort(FPU_info,SIGSEGV)

Definition at line 65 of file fpu_system.h.

#define FPU_code_access_ok (   z)    FPU_access_ok(VERIFY_READ,(void __user *)FPU_EIP,z)

Definition at line 80 of file fpu_system.h.

#define FPU_CS   (*(unsigned short *) &(FPU_info->regs->cs))

Definition at line 37 of file fpu_system.h.

#define FPU_DS   (*(unsigned short *) &(FPU_info->regs->ds))

Definition at line 39 of file fpu_system.h.

#define FPU_EAX   (FPU_info->regs->ax)

Definition at line 40 of file fpu_system.h.

#define FPU_EFLAGS   (FPU_info->regs->flags)

Definition at line 41 of file fpu_system.h.

#define FPU_EIP   (FPU_info->regs->ip)

Definition at line 42 of file fpu_system.h.

#define FPU_get_user (   x,
  y 
)    get_user((x),(y))

Definition at line 83 of file fpu_system.h.

#define FPU_info   (I387->soft.info)

Definition at line 35 of file fpu_system.h.

#define FPU_lookahead   (I387->soft.lookahead)

Definition at line 45 of file fpu_system.h.

#define FPU_ORIG_EIP   (FPU_info->___orig_eip)

Definition at line 43 of file fpu_system.h.

#define FPU_put_user (   x,
  y 
)    put_user((x),(y))

Definition at line 84 of file fpu_system.h.

#define FPU_rm   (*(u_char *)&(I387->soft.rm))

Definition at line 50 of file fpu_system.h.

#define FPU_SS   (*(unsigned short *) &(FPU_info->regs->ss))

Definition at line 38 of file fpu_system.h.

#define fpu_tag_word   (I387->soft.twd)

Definition at line 58 of file fpu_system.h.

#define I387   (current->thread.fpu.state)

Definition at line 34 of file fpu_system.h.

#define instruction_address   (*(struct address *)&I387->soft.fip)

Definition at line 62 of file fpu_system.h.

#define LDT_DESCRIPTOR (   s)    (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])

Definition at line 21 of file fpu_system.h.

#define no_ip_update   (*(u_char *)&(I387->soft.no_update))

Definition at line 49 of file fpu_system.h.

#define operand_address   (*(struct address *)&I387->soft.foo)

Definition at line 63 of file fpu_system.h.

#define partial_status   (I387->soft.swd)

Definition at line 56 of file fpu_system.h.

#define registers   (I387->soft.st_space)

Definition at line 59 of file fpu_system.h.

#define SEG_286_MODE (   x)    ((x).b & ( 0xff000000 | 0xf0000 | (1 << 23)))

Definition at line 25 of file fpu_system.h.

#define SEG_BASE_ADDR (   s)
Value:
(((s).b & 0xff000000) \
| (((s).b & 0xff) << 16) | ((s).a >> 16))

Definition at line 26 of file fpu_system.h.

#define SEG_D_SIZE (   x)    ((x).b & (3 << 21))

Definition at line 22 of file fpu_system.h.

#define SEG_EXECUTE_ONLY (   s)    (((s).b & ((1 << 11) | (1 << 9))) == (1 << 11))

Definition at line 29 of file fpu_system.h.

#define SEG_EXPAND_DOWN (   s)
Value:
(((s).b & ((1 << 11) | (1 << 10))) \
== (1 << 10))

Definition at line 31 of file fpu_system.h.

#define SEG_G_BIT (   x)    ((x).b & (1 << 23))

Definition at line 23 of file fpu_system.h.

#define SEG_GRANULARITY (   x)    (((x).b & (1 << 23)) ? 4096 : 1)

Definition at line 24 of file fpu_system.h.

#define SEG_LIMIT (   s)    (((s).b & 0xff0000) | ((s).a & 0xffff))

Definition at line 28 of file fpu_system.h.

#define SEG_WRITE_PERM (   s)    (((s).b & ((1 << 11) | (1 << 9))) == (1 << 9))

Definition at line 30 of file fpu_system.h.

#define top   (I387->soft.ftop)

Definition at line 60 of file fpu_system.h.