2003-01-10 Roland McGrath <roland@redhat.com>
* util.c [LINUX && X86_64] (arg0_offset, arg1_offset): Use correct values for x86-64, conditional on current_personality.
This commit is contained in:
parent
944d10f887
commit
7f33cc3eb5
3
util.c
3
util.c
@ -1205,6 +1205,9 @@ typedef struct regs arg_setup_state;
|
||||
# elif defined (HPPA)
|
||||
# define arg0_offset PT_GR26
|
||||
# define arg1_offset (PT_GR26-4)
|
||||
# elif defined (X86_64)
|
||||
# define arg0_offset ((long)(8*(current_personality ? RBX : RDI)))
|
||||
# define arg1_offset ((long)(8*(current_personality ? RCX : RSI)))
|
||||
# else
|
||||
# define arg0_offset 0
|
||||
# define arg1_offset 4
|
||||
|
Loading…
Reference in New Issue
Block a user