File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: d2e7336a01f1515564a32ecb5a6368ce10088c33
2
+ refs/heads/master: c3569abb8c7f81e521bc6002b351c3b4fbfcce4c
Original file line number Diff line number Diff line change @@ -144,11 +144,11 @@ MORESTACK:
144
144
// NB: __morestack is called misaligned by 4 bytes, i.e.
145
145
// subl $4, %esp would get us to a normal alignment
146
146
147
- subl $44 ,%esp
147
+ subl $28 ,%esp
148
148
149
149
// Save fastcc arguments
150
- movl %ecx , 28 (%esp )
151
- movl %edx , 24 (%esp )
150
+ movl %ecx , 16 (%esp )
151
+ movl %edx , 12 (%esp )
152
152
153
153
// FIXME (1226): main is compiled with the split-stack prologue,
154
154
// causing it to call __morestack, so we have to jump back out
@@ -160,14 +160,14 @@ MORESTACK:
160
160
161
161
// The size of the stack arguments to copy to the new stack,
162
162
// ane of the the arguments to __morestack
163
- movl 56 (%esp ),%eax
163
+ movl 40 (%esp ),%eax
164
164
movl %eax ,8 (%esp )
165
165
// The address of the stack arguments to the original function
166
- leal 64 (%esp ),%eax
166
+ leal 48 (%esp ),%eax
167
167
movl %eax ,4 (%esp )
168
168
// The amount of stack needed for the original function,
169
169
// the other argument to __morestack
170
- movl 52 (%esp ),%eax // The amount of stack needed
170
+ movl 36 (%esp ),%eax // The amount of stack needed
171
171
movl %eax ,(%esp )
172
172
173
173
call UPCALL_NEW_STACK
@@ -176,13 +176,13 @@ MORESTACK:
176
176
movl %eax , (%esp )
177
177
178
178
// Grab the __morestack return pointer
179
- movl 48 (%esp ),%eax
179
+ movl 32 (%esp ),%eax
180
180
// Skip past the ret instruction in the parent fn
181
181
inc %eax
182
182
183
183
// Restore the fastcc arguments to the original function
184
- movl 28 (%esp ), %ecx
185
- movl 24 (%esp ), %edx
184
+ movl 16 (%esp ), %ecx
185
+ movl 12 (%esp ), %edx
186
186
187
187
// Switch stacks
188
188
movl (%esp ),%esp
You can’t perform that action at this time.
0 commit comments