aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/math-emu/fpu_system.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-02-09 08:17:39 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-09 08:56:39 -0500
commitae6af41f5a4841f06eb92bc86ad020ad44ae2a30 (patch)
tree767d325dba40e954b277fd23db5842d6090ac540 /arch/x86/math-emu/fpu_system.h
parent914c3d630b29b07d04908eab1b246812dadd5bd6 (diff)
x86: math_emu info cleanup
Impact: cleanup * Come on, struct info? s/struct info/struct math_emu_info/ * Use struct pt_regs and kernel_vm86_regs instead of defining its own register frame structure. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/math-emu/fpu_system.h')
-rw-r--r--arch/x86/math-emu/fpu_system.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/math-emu/fpu_system.h b/arch/x86/math-emu/fpu_system.h
index 13488fa153e0..6729c6a31348 100644
--- a/arch/x86/math-emu/fpu_system.h
+++ b/arch/x86/math-emu/fpu_system.h
@@ -18,7 +18,7 @@
18 18
19/* This sets the pointer FPU_info to point to the argument part 19/* This sets the pointer FPU_info to point to the argument part
20 of the stack frame of math_emulate() */ 20 of the stack frame of math_emulate() */
21#define SETUP_DATA_AREA(arg) FPU_info = (struct info *) &arg 21#define SETUP_DATA_AREA(arg) FPU_info = (struct math_emu_info *) &arg
22 22
23/* s is always from a cpu register, and the cpu does bounds checking 23/* s is always from a cpu register, and the cpu does bounds checking
24 * during register load --> no further bounds checks needed */ 24 * during register load --> no further bounds checks needed */
@@ -38,12 +38,12 @@
38#define I387 (current->thread.xstate) 38#define I387 (current->thread.xstate)
39#define FPU_info (I387->soft.info) 39#define FPU_info (I387->soft.info)
40 40
41#define FPU_CS (*(unsigned short *) &(FPU_info->___cs)) 41#define FPU_CS (*(unsigned short *) &(FPU_info->regs.cs))
42#define FPU_SS (*(unsigned short *) &(FPU_info->___ss)) 42#define FPU_SS (*(unsigned short *) &(FPU_info->regs.ss))
43#define FPU_DS (*(unsigned short *) &(FPU_info->___ds)) 43#define FPU_DS (*(unsigned short *) &(FPU_info->regs.ds))
44#define FPU_EAX (FPU_info->___eax) 44#define FPU_EAX (FPU_info->regs.ax)
45#define FPU_EFLAGS (FPU_info->___eflags) 45#define FPU_EFLAGS (FPU_info->regs.flags)
46#define FPU_EIP (FPU_info->___eip) 46#define FPU_EIP (FPU_info->regs.ip)
47#define FPU_ORIG_EIP (FPU_info->___orig_eip) 47#define FPU_ORIG_EIP (FPU_info->___orig_eip)
48 48
49#define FPU_lookahead (I387->soft.lookahead) 49#define FPU_lookahead (I387->soft.lookahead)