Jeff Dike | 8ca842c | 2007-10-16 01:27:08 -0700 | [diff] [blame] | 1 | /* |
Jeff Dike | 6aa802c | 2007-10-16 01:26:56 -0700 | [diff] [blame] | 2 | * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #ifndef __SYSDEP_I386_PTRACE_H |
| 7 | #define __SYSDEP_I386_PTRACE_H |
| 8 | |
Al Viro | 243412b | 2012-05-20 00:05:58 -0400 | [diff] [blame] | 9 | #define MAX_FP_NR HOST_FPX_SIZE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
Paolo 'Blaisorblade' Giarrusso | 972410b | 2006-03-31 02:30:21 -0800 | [diff] [blame] | 11 | static inline void update_debugregs(int seq) {} |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
| 13 | /* syscall emulation path in ptrace */ |
| 14 | |
| 15 | #ifndef PTRACE_SYSEMU |
| 16 | #define PTRACE_SYSEMU 31 |
| 17 | #endif |
| 18 | |
| 19 | void set_using_sysemu(int value); |
| 20 | int get_using_sysemu(void); |
| 21 | extern int sysemu_supported; |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #ifndef PTRACE_SYSEMU_SINGLESTEP |
| 24 | #define PTRACE_SYSEMU_SINGLESTEP 32 |
| 25 | #endif |
| 26 | |
Al Viro | 243412b | 2012-05-20 00:05:58 -0400 | [diff] [blame] | 27 | #define UPT_SYSCALL_ARG1(r) UPT_BX(r) |
| 28 | #define UPT_SYSCALL_ARG2(r) UPT_CX(r) |
| 29 | #define UPT_SYSCALL_ARG3(r) UPT_DX(r) |
| 30 | #define UPT_SYSCALL_ARG4(r) UPT_SI(r) |
| 31 | #define UPT_SYSCALL_ARG5(r) UPT_DI(r) |
| 32 | #define UPT_SYSCALL_ARG6(r) UPT_BP(r) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Jeff Dike | a5f6096c | 2007-10-16 01:27:15 -0700 | [diff] [blame] | 34 | extern void arch_init_registers(int pid); |
| 35 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #endif |