View | Details | Raw Unified | Return to bug 65236
Collapse All | Expand All

(-)a/linux/arch/ia64/kernel/entry.S (-7 / +19 lines)
Lines 46-53 Link Here
46
ENTRY(ia64_execve)
46
ENTRY(ia64_execve)
47
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(3)
47
	/*
48
	alloc loc1=ar.pfs,3,2,4,0
48
	 * Allocate 8 input registers since ptrace() may clobber them
49
	 */
50
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(8)
51
	alloc loc1=ar.pfs,8,2,4,0
Lines 93-100 Link Here
93
 *	      u64 tls)
96
 *	      u64 tls)
94
 */
97
 */
95
GLOBAL_ENTRY(sys_clone2)
98
GLOBAL_ENTRY(sys_clone2)
96
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(2)
99
	/*
97
	alloc r16=ar.pfs,6,2,6,0
100
	 * Allocate 8 input registers since ptrace() may clobber them
101
	 */
102
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(8)
103
	alloc r16=ar.pfs,8,2,6,0
Lines 122-129 Link Here
122
 *	Deprecated.  Use sys_clone2() instead.
128
 *	Deprecated.  Use sys_clone2() instead.
123
 */
129
 */
124
GLOBAL_ENTRY(sys_clone)
130
GLOBAL_ENTRY(sys_clone)
125
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(2)
131
	/*
126
	alloc r16=ar.pfs,4,2,5,0
132
	 * Allocate 8 input registers since ptrace() may clobber them
133
	 */
134
	.prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(8)
135
	alloc r16=ar.pfs,8,2,5,0
Lines 917-923 Link Here
917
926
918
ENTRY(sys_rt_sigreturn)
927
ENTRY(sys_rt_sigreturn)
919
	alloc r2=ar.pfs,0,0,1,0
928
	/*
929
	 * Allocate 8 input registers since ptrace() may clobber them
930
	 */
931
	alloc r2=ar.pfs,8,0,1,0
(-)a/linux/arch/ia64/kernel/ivt.S (+10 lines)
Lines 651-656 Link Here
651
651
652
# demine_args exits with r2 containing the frame marker when the syscall was issued.
653
	and r18=0x7f,r2				// get sof of issuer's cfm
654
	extr.u r17=r2,7,7			// get sol of issuer's cfm
655
	;;
656
	add r17=8,r17				// sol + 8
657
Lines 658-663 Link Here
664
(p6)	cmp.lt p7,p6=r17,r18			// frame size can't be more than local+8
665
	;;
658
(p6)	shladd r16=r15,3,r16
666
(p6)	shladd r16=r15,3,r16
659
(p7)	adds r16=(__NR_ni_syscall-1024)*8,r16	// force __NR_ni_syscall
667
(p7)	adds r16=(__NR_ni_syscall-1024)*8,r16	// force __NR_ni_syscall
Lines 695-700 Link Here
695
END(break_fault)
703
END(break_fault)
696
704
705
# Ensure that the syscall arguments plus r15 (syscall number) are valid.
706
# Exit with r2 containing the frame size when the syscall was issued.
697
ENTRY(demine_args)
707
ENTRY(demine_args)
(-)a/linux/arch/ia64/kernel/process.c (-1 / +1 lines)
Lines 496-502 Link Here
496
}
496
}
497
497
498
asmlinkage long
498
long
499
sys_execve (char *filename, char **argv, char **envp, struct pt_regs *regs)
499
sys_execve (char *filename, char **argv, char **envp, struct pt_regs *regs)
500
{
500
{

Return to bug 65236