diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-22 23:10:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-29 00:01:08 -0500 |
commit | e80d6661c3a5caa0cebec0853c6cb0db090fb506 (patch) | |
tree | efc60762bbcdf8904f9779310ac60d0131ac9f3d /arch/ia64 | |
parent | 18c26c27ae0abe82253cb2e2363df465dbbb657e (diff) |
flagday: kill pt_regs argument of do_fork()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/entry.S | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/kernel/entry.S index 940a67263629..e25b784a2b72 100644 --- a/arch/ia64/kernel/entry.S +++ b/arch/ia64/kernel/entry.S | |||
@@ -116,13 +116,12 @@ GLOBAL_ENTRY(sys_clone2) | |||
116 | mov loc1=r16 // save ar.pfs across do_fork | 116 | mov loc1=r16 // save ar.pfs across do_fork |
117 | .body | 117 | .body |
118 | mov out1=in1 | 118 | mov out1=in1 |
119 | mov out3=in2 | 119 | mov out2=in2 |
120 | tbit.nz p6,p0=in0,CLONE_SETTLS_BIT | 120 | tbit.nz p6,p0=in0,CLONE_SETTLS_BIT |
121 | mov out4=in3 // parent_tidptr: valid only w/CLONE_PARENT_SETTID | 121 | mov out3=in3 // parent_tidptr: valid only w/CLONE_PARENT_SETTID |
122 | ;; | 122 | ;; |
123 | (p6) st8 [r2]=in5 // store TLS in r16 for copy_thread() | 123 | (p6) st8 [r2]=in5 // store TLS in r16 for copy_thread() |
124 | mov out5=in4 // child_tidptr: valid only w/CLONE_CHILD_SETTID or CLONE_CHILD_CLEARTID | 124 | mov out4=in4 // child_tidptr: valid only w/CLONE_CHILD_SETTID or CLONE_CHILD_CLEARTID |
125 | adds out2=IA64_SWITCH_STACK_SIZE+16,sp // out2 = ®s | ||
126 | mov out0=in0 // out0 = clone_flags | 125 | mov out0=in0 // out0 = clone_flags |
127 | br.call.sptk.many rp=do_fork | 126 | br.call.sptk.many rp=do_fork |
128 | .ret1: .restore sp | 127 | .ret1: .restore sp |
@@ -148,13 +147,12 @@ GLOBAL_ENTRY(sys_clone) | |||
148 | mov loc1=r16 // save ar.pfs across do_fork | 147 | mov loc1=r16 // save ar.pfs across do_fork |
149 | .body | 148 | .body |
150 | mov out1=in1 | 149 | mov out1=in1 |
151 | mov out3=16 // stacksize (compensates for 16-byte scratch area) | 150 | mov out2=16 // stacksize (compensates for 16-byte scratch area) |
152 | tbit.nz p6,p0=in0,CLONE_SETTLS_BIT | 151 | tbit.nz p6,p0=in0,CLONE_SETTLS_BIT |
153 | mov out4=in2 // parent_tidptr: valid only w/CLONE_PARENT_SETTID | 152 | mov out3=in2 // parent_tidptr: valid only w/CLONE_PARENT_SETTID |
154 | ;; | 153 | ;; |
155 | (p6) st8 [r2]=in4 // store TLS in r13 (tp) | 154 | (p6) st8 [r2]=in4 // store TLS in r13 (tp) |
156 | mov out5=in3 // child_tidptr: valid only w/CLONE_CHILD_SETTID or CLONE_CHILD_CLEARTID | 155 | mov out4=in3 // child_tidptr: valid only w/CLONE_CHILD_SETTID or CLONE_CHILD_CLEARTID |
157 | adds out2=IA64_SWITCH_STACK_SIZE+16,sp // out2 = ®s | ||
158 | mov out0=in0 // out0 = clone_flags | 156 | mov out0=in0 // out0 = clone_flags |
159 | br.call.sptk.many rp=do_fork | 157 | br.call.sptk.many rp=do_fork |
160 | .ret2: .restore sp | 158 | .ret2: .restore sp |