Fix struct pt_regs declaration on i386 and x86-64

* defs.h [I386] (i386_regs): Replace definition with declaration.
[X86_64] (x86_64_regs): Remove.
* syscall.c [X86_64] (x86_64_regs): Make static.
This commit is contained in:
Дмитрий Левин 2012-01-17 18:37:13 +00:00
parent fe585656f8
commit 024cad9a25
2 changed files with 2 additions and 4 deletions

4
defs.h
View File

@ -393,9 +393,7 @@ extern int mp_ioctl(int f, int c, void *a, int s);
#ifdef LINUX
# if defined(I386)
struct pt_regs i386_regs;
# elif defined(X86_64)
struct pt_regs x86_64_regs;
extern struct pt_regs i386_regs;
# endif
#endif /* LINUX */

View File

@ -737,7 +737,7 @@ struct tcb *tcp_last = NULL;
# if defined(I386)
struct pt_regs i386_regs;
# elif defined(X86_64)
struct pt_regs x86_64_regs;
static struct pt_regs x86_64_regs;
# elif defined (IA64)
long r8, r10, psr; /* TODO: make static? */
long ia32 = 0; /* not static */