blob: b94a108de1dc894e77c9e49310e4d0a12d177ce8 [file] [log] [blame]
Jeff Dike8ca842c2007-10-16 01:27:08 -07001/*
Jeff Dike6aa802c2007-10-16 01:26:56 -07002 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * Licensed under the GPL
4 */
5
6#ifndef __SYSDEP_I386_PTRACE_H
7#define __SYSDEP_I386_PTRACE_H
8
Al Viro243412b2012-05-20 00:05:58 -04009#define MAX_FP_NR HOST_FPX_SIZE
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Paolo 'Blaisorblade' Giarrusso972410b2006-03-31 02:30:21 -080011static inline void update_debugregs(int seq) {}
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13/* syscall emulation path in ptrace */
14
15#ifndef PTRACE_SYSEMU
16#define PTRACE_SYSEMU 31
17#endif
18
19void set_using_sysemu(int value);
20int get_using_sysemu(void);
21extern int sysemu_supported;
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#ifndef PTRACE_SYSEMU_SINGLESTEP
24#define PTRACE_SYSEMU_SINGLESTEP 32
25#endif
26
Al Viro243412b2012-05-20 00:05:58 -040027#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 Torvalds1da177e2005-04-16 15:20:36 -070033
Jeff Dikea5f6096c2007-10-16 01:27:15 -070034extern void arch_init_registers(int pid);
35
Linus Torvalds1da177e2005-04-16 15:20:36 -070036#endif