H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_MATH_EMU_H |
| 2 | #define _ASM_X86_MATH_EMU_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Tejun Heo | ae6af41 | 2009-02-09 22:17:39 +0900 | [diff] [blame] | 4 | #include <asm/ptrace.h> |
| 5 | #include <asm/vm86.h> |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | /* 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 Heo | ae6af41 | 2009-02-09 22:17:39 +0900 | [diff] [blame] | 11 | struct math_emu_info { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | long ___orig_eip; |
Tejun Heo | ae6af41 | 2009-02-09 22:17:39 +0900 | [diff] [blame] | 13 | union { |
Tejun Heo | d315760 | 2009-02-09 22:17:39 +0900 | [diff] [blame] | 14 | struct pt_regs *regs; |
| 15 | struct kernel_vm86_regs *vm86; |
Tejun Heo | ae6af41 | 2009-02-09 22:17:39 +0900 | [diff] [blame] | 16 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | }; |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 18 | #endif /* _ASM_X86_MATH_EMU_H */ |