blob: 031f6266f42564441f86535157923b146feff0c2 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_MATH_EMU_H
2#define _ASM_X86_MATH_EMU_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Tejun Heoae6af412009-02-09 22:17:39 +09004#include <asm/ptrace.h>
5#include <asm/vm86.h>
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007/* This structure matches the layout of the data saved to the stack
8 following a device-not-present interrupt, part of it saved
9 automatically by the 80386/80486.
10 */
Tejun Heoae6af412009-02-09 22:17:39 +090011struct math_emu_info {
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 long ___orig_eip;
Tejun Heoae6af412009-02-09 22:17:39 +090013 union {
Tejun Heod3157602009-02-09 22:17:39 +090014 struct pt_regs *regs;
15 struct kernel_vm86_regs *vm86;
Tejun Heoae6af412009-02-09 22:17:39 +090016 };
Linus Torvalds1da177e2005-04-16 15:20:36 -070017};
H. Peter Anvin1965aae2008-10-22 22:26:29 -070018#endif /* _ASM_X86_MATH_EMU_H */